Sfoglia il codice sorgente

快手-更新时间

yumeng 6 anni fa
parent
commit
40c68f272f

+ 1 - 0
jeecg-boot-module-system/src/main/java/org/jeecg/modules/ctop/controller/CallbackController.java

@@ -112,6 +112,7 @@ public class CallbackController {
                     long refreshTokenExpireIn = token.getRefreshTokenExpiresIn() * 1000L;
                     Date refreshTokenExpireInDate = new Date(now + refreshTokenExpireIn);
                     topOauthToken.setRefreshTokenExpiresIn(refreshTokenExpireInDate);
+                    topOauthToken.setUpdateTime(new Date());
                     cTopOauthTokenMapper.insert(topOauthToken);
                     bindAccountAuthService.addBindAccount(accountId, KuaishouInterfaceConstant.LOGIN_TYPE_KUAISHOU, advertiser_id); //账号绑定
                 }

+ 2 - 0
jeecg-boot-module-system/src/main/java/org/jeecg/modules/ctop/service/impl/BindAccountAuthServiceImpl.java

@@ -14,6 +14,7 @@ import org.springframework.stereotype.Service;
 
 import java.io.UnsupportedEncodingException;
 import java.net.URLEncoder;
+import java.util.Date;
 import java.util.HashMap;
 import java.util.Map;
 
@@ -48,6 +49,7 @@ public class BindAccountAuthServiceImpl extends ServiceImpl<BindAccountAuthMappe
         bindAccount.setAccountId(accountId);
 
         bindAccount.setAdvertiserId(state);
+        bindAccount.setUpdateTime(new Date());
         bindAccount.setAuthType(authType);
         int i = bindAccountAuthMapper.insert(bindAccount);
         if (i > 0) {