|
|
@@ -231,9 +231,11 @@ public class OwnerAppLoginSMOImpl extends AbstractFrontServiceSMO implements IOw
|
|
|
userDto.setUserId(ownerAppUserDtos.get(0).getUserId());
|
|
|
UserDto tmpUserDto = super.getForApi(pd, userDto, ServiceCodeConstant.QUERY_USER_SECRET, UserDto.class);
|
|
|
|
|
|
-// if(StringUtil.isEmpty(tmpUserDto.getKey())){
|
|
|
-// tmpUserDto = super.postForApi(pd, tmpUserDto, ServiceCodeConstant.SERVICE_CODE_USER_LOGIN, UserDto.class);
|
|
|
-// }
|
|
|
+ if(StringUtil.isEmpty(tmpUserDto.getKey())){
|
|
|
+ String code = UUID.randomUUID().toString();
|
|
|
+ CommonCache.setValue(code, openId, expireTime);
|
|
|
+ return ResultVo.redirectPage(errorUrl + "?code=" + code);
|
|
|
+ }
|
|
|
redirectUrl = redirectUrl + (redirectUrl.indexOf("?") > 0 ? "&key=" + tmpUserDto.getKey() : "?key=" + tmpUserDto.getKey());
|
|
|
return ResultVo.redirectPage(redirectUrl);
|
|
|
|