|
@@ -2,7 +2,6 @@ package org.jeecg.modules.ctop.controller;
|
|
|
|
|
|
import cn.com.ctop.common.module.entity.CtopOauthToken;
|
|
|
import cn.com.ctop.common.module.entity.UserAllocation;
|
|
|
-import cn.com.ctop.common.module.mapper.CtopOauthTokenMapper;
|
|
|
import cn.com.ctop.common.module.mapper.UserAllocationMapper;
|
|
|
import cn.com.ctop.common.module.service.IBindAccountAuthService;
|
|
|
import cn.com.ctop.common.module.service.ICtopOauthTokenService;
|
|
@@ -84,7 +83,7 @@ public class CallbackController {
|
|
|
userAllocationQueryWrapper.orderByDesc("create_time");
|
|
|
userAllocationQueryWrapper.last("limit 1");
|
|
|
UserAllocation checkUserAllocation = allocationMapper.selectOne(userAllocationQueryWrapper);
|
|
|
- if (Check.isNull(checkUserAllocation)) {
|
|
|
+ if (!Check.isNull(checkUserAllocation)) {
|
|
|
return "授权失败,该账号已被:" + checkUserAllocation.getAuthName() + "绑定!";
|
|
|
}
|
|
|
String advertiserId = json.getString("advertiserId");
|
|
@@ -219,7 +218,7 @@ public class CallbackController {
|
|
|
userAllocationQueryWrapper.orderByDesc("create_time");
|
|
|
userAllocationQueryWrapper.last("limit 1");
|
|
|
UserAllocation checkUserAllocation = allocationMapper.selectOne(userAllocationQueryWrapper);
|
|
|
- if (Check.isNull(checkUserAllocation)) {
|
|
|
+ if (!Check.isNull(checkUserAllocation)) {
|
|
|
returnMap.put("code", -1);
|
|
|
returnMap.put("desc", "授权失败,账号已被:" + checkUserAllocation.getUserName() + "绑定");
|
|
|
}
|