孙永军 преди 2 години
родител
ревизия
6213ac82d0

+ 5 - 5
src/main/java/com/sxtvs/open/api/odata/controller/OauthController.java

@@ -36,7 +36,7 @@ public class OauthController {
         logger.info("key", "oauth/douyin/callback", "code", code, "state", state, "token", token);
         // todo 用户数据入库
         douyinAccountService.upsert(code);
-        return "redirect:https://cxzx.smcic.net/mediaAll/index.html";
+        return "redirect:https://cxzx.smcic.net/mediaAll/index.html#/main_home/convergence";
     }
 
     @Autowired
@@ -48,7 +48,7 @@ public class OauthController {
         logger.info("key", "oauth/kuaishou/callback", "code", code, "state", state, "token", token);
         // todo 用户数据入库
         kuaishouAccountService.upsert(code);
-        return "redirect:https://open.sxtvs.net/login.html?platform=kuaishou";
+        return "redirect:https://cxzx.smcic.net/mediaAll/index.html#/main_home/convergence";
     }
 
     @Autowired
@@ -60,7 +60,7 @@ public class OauthController {
         logger.info("key", "oauth/toutiao/callback", "code", code, "state", state, "token", token);
         // todo 用户数据入库
         toutiaoAccountService.upsert(code);
-        return "redirect:https://open.sxtvs.net/login.html?platform=toutiao";
+        return "redirect:https://cxzx.smcic.net/mediaAll/index.html#/main_home/convergence";
     }
 
     @Autowired
@@ -71,7 +71,7 @@ public class OauthController {
         logger.info("key", "oauth/weibo/callback", "code", networkGroupId);
         // todo 用户数据入库
         weiboAccountService.upsert(networkGroupId);
-        return "redirect:https://open.sxtvs.net";
+        return "redirect:https://cxzx.smcic.net/mediaAll/index.html#/main_home/convergence";
     }
 
     @Autowired
@@ -83,7 +83,7 @@ public class OauthController {
         logger.info("key", "oauth/bilibili/callback", "code", code, "state", state, "token", token);
         // todo 用户数据入库
         bilibiliAccountService.upsert(code);
-        return "redirect:https://open.sxtvs.net/login.html?platform=bilibili";
+        return "redirect:https://cxzx.smcic.net/mediaAll/index.html#/main_home/convergence";
     }
 
     @Autowired

+ 1 - 0
src/main/java/com/sxtvs/open/api/odata/service/impl/WbYmAccountServiceImpl.java

@@ -45,6 +45,7 @@ public class WbYmAccountServiceImpl extends ServiceImpl<WbYmAccountMapper, WbYmA
         wbYmAccount.setNickName(o.getData().get(0).getUser().getName());
         wbYmAccount.setGroupType(1);
         wbYmAccount.setUpdateTime(LocalDateTime.now());
+        wbYmAccount.setCreateTime(LocalDateTime.now());
         saveOrUpdate(wbYmAccount);
     }
 }