Let's use AI to Earn!
TypeScript auto-publishdouyindouyin-apielectron-appelectron-reactkuaishoukwaipublishedshipinhaotoolxiaohongshu
feat: 各平台作品列表
牛文政961b6327b629
diff --git a/electron/main/plat/index.ts b/electron/main/plat/index.tsindex 71cc5439..bf60eed5 100644--- a/electron/main/plat/index.ts+++ b/electron/main/plat/index.ts@@ -54,8 +54,6 @@ class PlatController {const info = await platform.getAccountInfo({cookies: JSON.parse(res.loginCookie),});- console.log('------ info', info);-if (!!info) res.fansCount = info.fansCount || 0;return res;}diff --git a/electron/main/plat/platforms/Kwai/index.ts b/electron/main/plat/platforms/Kwai/index.tsindex 16cbb0a4..1c1f050d 100644--- a/electron/main/plat/platforms/Kwai/index.ts+++ b/electron/main/plat/platforms/Kwai/index.ts@@ -165,6 +165,7 @@ export class Kwai extends PlatformBase {) {const cookie: CookiesType = JSON.parse(account.loginCookie);const res = await kwaiPub.getPhotoList(cookie, Number(pageInfo.pcursor));+const photoList = res.data.data.photoList;const list: WorkData[] = photoList.map((v) => {return {@@ -212,8 +213,6 @@ export class Kwai extends PlatformBase {// Number(pageInfo.pcursor),);- console.log('------ res ----', res);-const list: CommentData[] = res.data.data.list.map((v) => {return {dataId: v.photoId + '',diff --git a/electron/plat/Kwai/index.ts b/electron/plat/Kwai/index.tsindex 77118607..cf3fd8e4 100644--- a/electron/plat/Kwai/index.ts+++ b/electron/plat/Kwai/index.ts@@ -338,14 +338,14 @@ class KwaiPub {pcursor?: number, // 下一页页码) {const res = await requestNet<GetPhotoListResponse>({- url: `https://cp.kuaishou.com/rest/cp/creator/comment/photoList?__NS_sig3=79692e1e5040f94d562427268d0d3694fc18b05c38383a3a3534372d`,+ url: `https://cp.kuaishou.com/rest/cp/creator/comment/photoList?__NS_sig3=425215256a67c576621f1c1db6360dafc7238b67030301010e0f0c16`,method: 'POST',headers: {cookie: CookieToString(cookies),},body: {'kuaishou.web.cp.api_ph': '69799694cfd7e689847219cf678dec275266',- pcursor,+ ...(pcursor ? { pcursor } : {}),},});return res;