|
@@ -71,6 +71,9 @@ public class CtopOauthTokenServiceImpl extends ServiceImpl<CtopOauthTokenMapper,
|
|
queryWrapper.eq("account_id", accountId).orderByDesc("create_time");
|
|
queryWrapper.eq("account_id", accountId).orderByDesc("create_time");
|
|
queryWrapper.last("limit 1");
|
|
queryWrapper.last("limit 1");
|
|
CtopOauthToken one = this.getOne(queryWrapper);
|
|
CtopOauthToken one = this.getOne(queryWrapper);
|
|
|
|
+ if(Check.isNull(one)){
|
|
|
|
+ return null;
|
|
|
|
+ }
|
|
if (one.getMediaId().equals("2") || one.getMediaId().equals("4")) {
|
|
if (one.getMediaId().equals("2") || one.getMediaId().equals("4")) {
|
|
OauthAgentToken tokenByAppId = agentTokenService.getTokenByAppId(one.getAppId());
|
|
OauthAgentToken tokenByAppId = agentTokenService.getTokenByAppId(one.getAppId());
|
|
if (!Check.isNull(tokenByAppId)) {
|
|
if (!Check.isNull(tokenByAppId)) {
|