Browse Source

fix config

he2802 2 years ago
parent
commit
17164e6b24

+ 0 - 1
zhongzheng-api/src/main/java/com/zhongzheng/controller/user/UserController.java

@@ -170,7 +170,6 @@ public class UserController extends BaseController {
     @PostMapping("/gzh_bind")
     public AjaxResult gzh_bind(@RequestBody WxLoginBody loginBody)
     {
-        log.error("购买前获取公众号openid参数", JSON.toJSONString(loginBody));
         ClientLoginUser loginUser = wxTokenService.getLoginUser(ServletUtils.getRequest());
         loginBody.setUserId(loginUser.getUser().getUserId());
         wxLoginService.bindWxGzhUnionIdUser(loginBody);

+ 1 - 3
zhongzheng-system/src/main/java/com/zhongzheng/modules/user/service/impl/UserStudyRecordServiceImpl.java

@@ -911,7 +911,7 @@ public class UserStudyRecordServiceImpl extends ServiceImpl<UserStudyRecordMappe
         //记录学时审核
         Long periodId = null;
         // 学习无记录加一条学时审核记录
-        if (baseMapper.selectStudyRecord(entity) < 1) {
+        if (baseMapper.selectStudyRecord(entity) < 1L) {
             UserPeriod userPeriod = new UserPeriod();
             userPeriod.setUserId(entity.getUserId());
             userPeriod.setCourseId(entity.getCourseId());
@@ -923,8 +923,6 @@ public class UserStudyRecordServiceImpl extends ServiceImpl<UserStudyRecordMappe
             userPeriod.setModuleId(entity.getModuleId());
             userPeriod.setChapterId(entity.getChapterId());
             userPeriod.setGradeId(entity.getGradeId());
-            log.error("学时记录插入"+JSON.toJSONString(userPeriod));
-            iUserPeriodService.save(userPeriod);
             periodId = userPeriod.getId();
             UserPeriodStatus userPeriodStatusAddBo = new UserPeriodStatus();
             userPeriodStatusAddBo.setPeriodStatus(1);