Merge branch 'test' into dev
This commit is contained in:
@@ -23,8 +23,7 @@ import javax.servlet.http.HttpServletRequest;
|
||||
public class AppApiMethodAspect {
|
||||
|
||||
@Pointcut("!execution(public * (com.sqx.modules.sys.controller.SysLoginController).*(..)) " +
|
||||
"&& (execution(public * (com.sqx.modules.*.controller.*).*(..)) " +
|
||||
"|| execution(public * (com.sqx.modules.app.*.controller.*).*(..)))")
|
||||
"&& execution(public * (com.sqx.modules.*.controller..*).*(..)))")
|
||||
public void pkg() {
|
||||
}
|
||||
|
||||
|
||||
@@ -907,13 +907,17 @@ public class UserServiceImpl extends ServiceImpl<UserDao, UserEntity> implements
|
||||
if (StringUtils.isEmpty(msg)) {
|
||||
return Result.error("验证码不能为空!");
|
||||
}
|
||||
Msg msg1 = null;
|
||||
if (!"prod".equals(profiles) && !"61626364".equals(msg)) {
|
||||
msg1 = msgDao.findByPhoneAndCode(phone, msg);
|
||||
if (msg1 == null) {
|
||||
return Result.error("验证码不正确!");
|
||||
}
|
||||
Msg msg1 = msgDao.findByPhoneAndCode(phone, msg);
|
||||
if (msg1 == null) {
|
||||
return Result.error("验证码不正确!");
|
||||
}
|
||||
// Msg msg1 = null;
|
||||
// if (!"prod".equals(profiles) || !"61626364".equals(msg)) {
|
||||
// msg1 = msgDao.findByPhoneAndCode(phone, msg);
|
||||
// if (msg1 == null) {
|
||||
// return Result.error("验证码不正确!");
|
||||
// }
|
||||
// }
|
||||
|
||||
userInfo = new UserEntity();
|
||||
UserEntity userEntity = null;
|
||||
|
||||
@@ -217,9 +217,11 @@ public class TaskCenterServiceImpl extends ServiceImpl<TaskCenterDao, TaskCenter
|
||||
}
|
||||
} else if (taskCenter.getType().equals(3) && taskCenter.getId().equals(1L)) {
|
||||
InviteAchievement inviteAchievement = inviteAchievementService.getByUserId(userId);
|
||||
|
||||
Integer sumOrderNum = 0;
|
||||
if (inviteAchievement != null) {
|
||||
sumOrderNum = inviteAchievement.getCount();
|
||||
}
|
||||
// Integer sumOrderNum = ordersService.countOrderNum(userId, null);
|
||||
Integer sumOrderNum = inviteAchievement.getCount();
|
||||
if (sumOrderNum != null && sumOrderNum < taskCenter.getNumber()) {
|
||||
return Result.error("领取失败,未达成领取条件");
|
||||
} else if (recordService.countTaskNum(userId, taskCenter.getId(), null) > 0) {
|
||||
|
||||
Reference in New Issue
Block a user