|
@@ -1696,5 +1696,30 @@ public class BatchController {
|
|
|
return result;
|
|
|
}
|
|
|
|
|
|
+ @GetMapping(value = "/pullPopulationList")
|
|
|
+ public Result pullPopulationList(Long accountId) {
|
|
|
+ Result result = new Result<>();
|
|
|
+ try {
|
|
|
+
|
|
|
+ CtopOauthToken oauthToken = oauthTokenService.getTokenByAccountId(accountId);
|
|
|
+ if (Check.isNull(oauthToken)) {
|
|
|
+ throw new Exception("未获取到账户信息");
|
|
|
+ }
|
|
|
+ Thread thread = new Thread() {
|
|
|
+ @Override
|
|
|
+ public void run() {
|
|
|
+ iKuaishouInterfaceService.getPopulationList(accountId, oauthToken.getAccessToken());
|
|
|
+ }
|
|
|
+ };
|
|
|
+ thread.start();
|
|
|
+
|
|
|
+ result.setSuccess(true);
|
|
|
+ } catch (Exception e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ result.setSuccess(false);
|
|
|
+ }
|
|
|
+ return result;
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
}
|