yumeng 5 лет назад
Родитель
Сommit
763b326431

+ 40 - 0
module-kuaishou/src/main/java/cn/com/ctop/kuaishou/modules/batch/controller/BatchController.java

@@ -1377,6 +1377,11 @@ public class BatchController {
             if (Check.isNull(accountId) || Check.isNull(unitId)) {
                 throw new Exception("参数错误");
             }
+            CtopOauthToken oauthToken = oauthTokenService.getTokenByAccountId(accountId);
+            if (Check.isNull(oauthToken)) {
+                throw new Exception("未获取到账户信息");
+            }
+            kuaiShouGroupService.getGroupByUnitId(oauthToken.getAccessToken(), oauthToken.getAccountId(), unitId);
             JSONObject returnJson = new JSONObject();
             QueryWrapper<KuaiShouGroup> groupQueryWrapper = new QueryWrapper<>();
             groupQueryWrapper.eq("account_id", accountId);
@@ -2201,4 +2206,39 @@ public class BatchController {
     }
 
 
+
+    /**
+     * 收藏标题
+     *
+     * @param accountId
+     * @return
+     */
+    @GetMapping(value = "/titleCollection")
+    public Result<Long> titleCollection(Long accountId, String title) {
+        Result<Long> result = new Result<>();
+        try {
+            if (Check.isNull(accountId)) {
+                throw new Exception("入参为空");
+            }
+
+            KuaiShouAdvertiserBaseInfo baseInfo = KuaiShouAdvertiserBaseInfoService.getBaseInfo(accountId);
+            Long userId = null;
+            if (!Check.isNull(baseInfo)) {
+                userId = Long.valueOf(baseInfo.getUserId());
+            }
+
+
+
+        } catch (Exception e) {
+            e.printStackTrace();
+            result.setSuccess(false);
+            result.setMessage(e.getMessage());
+        }
+        return result;
+    }
+
+
+
+
+
 }