|
|
@@ -765,17 +765,17 @@ public class FsUserCourseVideoServiceImpl extends ServiceImpl<FsUserCourseVideoM
|
|
|
logger.info("【判断添加客服】:{}", param);
|
|
|
//查询用户
|
|
|
FsUser fsUser = fsUserMapper.selectFsUserByUserId(param.getUserId());
|
|
|
-// String dateString = "2026-02-11 22:00:00";
|
|
|
-// SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
|
|
-// Date targetDate = null;
|
|
|
-// try {
|
|
|
-// targetDate = sdf.parse(dateString);
|
|
|
-// }catch (Exception e){
|
|
|
-// e.printStackTrace();
|
|
|
-// }
|
|
|
+ String dateString = "2026-02-11 20:00:00";
|
|
|
+ SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
|
|
+ Date targetDate = null;
|
|
|
+ try {
|
|
|
+ targetDate = sdf.parse(dateString);
|
|
|
+ }catch (Exception e){
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
|
|
|
//用户不存在唤起重新授权
|
|
|
- if (fsUser == null ) {
|
|
|
+ if (fsUser == null || fsUser.getCreateTime().before(targetDate) ) {
|
|
|
return R.error(ExceptionCodeEnum.USER_NOT_FOUND.getCode(), ExceptionCodeEnum.USER_NOT_FOUND.getDescription());
|
|
|
}
|
|
|
|
|
|
@@ -2692,15 +2692,15 @@ public class FsUserCourseVideoServiceImpl extends ServiceImpl<FsUserCourseVideoM
|
|
|
boolean oneCompanyCourse = config.isOneCompanyCourse();
|
|
|
//查询用户
|
|
|
FsUser fsUser = fsUserMapper.selectFsUserById(param.getUserId());
|
|
|
-// String dateString = "2026-02-10 23:59:59";
|
|
|
-// SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
|
|
-// Date targetDate = null;
|
|
|
-// try {
|
|
|
-// targetDate = sdf.parse(dateString);
|
|
|
-// }catch (Exception e){
|
|
|
-// e.printStackTrace();
|
|
|
-// }
|
|
|
- if (fsUser == null ) {
|
|
|
+ String dateString = "2026-02-11 20:00:00";
|
|
|
+ SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
|
|
+ Date targetDate = null;
|
|
|
+ try {
|
|
|
+ targetDate = sdf.parse(dateString);
|
|
|
+ }catch (Exception e){
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
+ if (fsUser == null || fsUser.getCreateTime().before(targetDate) ) {
|
|
|
return ResponseResult.fail(ExceptionCodeEnum.USER_NOT_FOUND.getCode(), ExceptionCodeEnum.USER_NOT_FOUND.getDescription());
|
|
|
}
|
|
|
if (fsUser.getStatus() == 0) {
|