|
@@ -100,8 +100,12 @@ public class CourseQwLoginController extends AppBaseController {
|
|
|
final WxMaService wxService = wxServiceSupplier.get();
|
|
|
WxMaJscode2SessionResult session = wxService.getUserService().getSessionInfo(param.getCode());
|
|
|
this.logger.info("获取{} Session:{}", logName, session);
|
|
|
+ if (session.getUnionid()==null){
|
|
|
+ return R.error("未绑定开放平台");
|
|
|
+ }
|
|
|
|
|
|
FsUser user = userService.selectFsUserByUnionid(session.getUnionid());
|
|
|
+
|
|
|
boolean isNewUser = false;
|
|
|
|
|
|
// 用户存在时的更新逻辑
|