|
|
@@ -496,10 +496,6 @@ public class FsUserCourseVideoServiceImpl implements IFsUserCourseVideoService
|
|
|
return R.error(504,"未授权");
|
|
|
}
|
|
|
|
|
|
- if (StringUtil.strIsNullOrEmpty(fsUser.getMpOpenId())){
|
|
|
- return R.error(401,"授权后可继续!");
|
|
|
- }
|
|
|
-
|
|
|
if (fsUser.getStatus()==0){
|
|
|
return R.error("会员被停用,无权限,请联系客服!");
|
|
|
}
|
|
|
@@ -534,6 +530,13 @@ public class FsUserCourseVideoServiceImpl implements IFsUserCourseVideoService
|
|
|
|
|
|
String json = configService.selectConfigByKey("course.config");
|
|
|
CourseConfig config = JSONUtil.toBean(json, CourseConfig.class);
|
|
|
+
|
|
|
+
|
|
|
+ //服务号授权的,缺mpOpenId的重新登录
|
|
|
+ if (config.getMiniAppAuthType()==2 && StringUtil.strIsNullOrEmpty(fsUser.getMpOpenId())){
|
|
|
+ return R.error(401,"授权后可继续!");
|
|
|
+ }
|
|
|
+
|
|
|
boolean oneCompanyCourse = config.isOneCompanyCourse();
|
|
|
if(oneCompanyCourse && fsUser.getQwExtId() != null){
|
|
|
QwExternalContact qwExternalContact = qwExternalContactMapper.selectById(fsUser.getQwExtId());
|