Let's use AI to Earn!
TypeScript auto-publishdouyindouyin-apielectron-appelectron-reactkuaishoukwaipublishedshipinhaotoolxiaohongshu
feat: 字段添加
gaoSir050d53216258
diff --git a/electron/main/plat/plat.type.ts b/electron/main/plat/plat.type.tsindex c6f892aa..8bf5471e 100644--- a/electron/main/plat/plat.type.ts+++ b/electron/main/plat/plat.type.ts@@ -111,8 +111,12 @@ export interface ILocationDataItem {simpleAddress: string;// 地址IDid: string;- // 距离- distance: string;+ // 小红书特有+ poi_type?: number;+ latitude: number;+ longitude: number;+ // 市+ city: string;}// 获取地点数据返回值diff --git a/electron/main/plat/platforms/douyin/index.ts b/electron/main/plat/platforms/douyin/index.tsindex 2a83b3d0..201b9bc6 100644--- a/electron/main/plat/platforms/douyin/index.ts+++ b/electron/main/plat/platforms/douyin/index.ts@@ -216,7 +216,9 @@ export class Douyin extends PlatformBase {name: v.poi_name,simpleAddress: v.simple_address_str,id: v.poi_id,- distance: v.distance,+ latitude: v.poi_latitude,+ longitude: v.poi_longitude,+ city: v.address_info.city,};}),};diff --git a/electron/main/plat/platforms/wxSph/index.ts b/electron/main/plat/platforms/wxSph/index.tsindex c11ac31a..aecfe745 100644--- a/electron/main/plat/platforms/wxSph/index.ts+++ b/electron/main/plat/platforms/wxSph/index.ts@@ -175,7 +175,9 @@ export class WxSph extends PlatformBase {name: v.name,simpleAddress: v.fullAddress,id: v.poiCheckSum,- distance: '',+ latitude: v.latitude,+ longitude: v.longitude,+ city: v.city,};}),};diff --git a/electron/main/plat/platforms/xhs/index.ts b/electron/main/plat/platforms/xhs/index.tsindex 55041fa6..b6934e55 100644--- a/electron/main/plat/platforms/xhs/index.ts+++ b/electron/main/plat/platforms/xhs/index.ts@@ -21,6 +21,7 @@ import { PublishVideoResult } from '../../module';import { xiaohongshuService } from '../../../../plat/xiaohongshu';import { AccountType } from '../../../../../commont/AccountEnum';import { AccountModel } from '../../../../db/models/account';+import { VisibleTypeEnum } from '../../../../../commont/publish/PublishEnum';export class Xhs extends PlatformBase {constructor() {@@ -153,6 +154,7 @@ export class Xhs extends PlatformBase {topicsDetail:params.diffParams?.[AccountType.Xhs]?.topicsDetail || [],timingTime: params.timingTime?.getTime(),+ privacy: params.visibleType !== VisibleTypeEnum.Public,},callback,)@@ -213,7 +215,10 @@ export class Xhs extends PlatformBase {name: v.name,simpleAddress: v.full_address,id: v.poi_id,- distance: '',+ poi_type: v.poi_type,+ latitude: v.latitude,+ longitude: v.longitude,+ city: v.city_name,};}),};diff --git a/electron/plat/shipinhao/index.ts b/electron/plat/shipinhao/index.tsindex 9d8c40a5..0a6303b5 100644--- a/electron/plat/shipinhao/index.ts+++ b/electron/plat/shipinhao/index.ts@@ -1229,6 +1229,7 @@ export class ShipinhaoService {topics?: string[];des?: string;timingTime?: number;+ // 位置信息poiInfo?: {latitude: string;longitude: string;diff --git a/electron/plat/xiaohongshu/index.ts b/electron/plat/xiaohongshu/index.tsindex cd49222a..f2db4acb 100644--- a/electron/plat/xiaohongshu/index.ts+++ b/electron/plat/xiaohongshu/index.ts@@ -820,7 +820,6 @@ export class XiaohongshuService {publishType: 'video' | 'image',uploadResult: any,platformSetting: any,- privacy: boolean = false,) {return new Promise(async (resolve, reject) => {try {@@ -1054,8 +1053,8 @@ export class XiaohongshuService {post_loc: post_loc,privacy_info: {op_type: 1,- type: privacy ? 1 : 0,- user_ids: privacy ? [] : undefined,+ type: platformSetting['privacy'] ? 1 : 0,+ user_ids: platformSetting['privacy'] ? [] : undefined,},},image_info: xhs_image_info,@@ -1144,7 +1143,16 @@ export class XiaohongshuService {topicId: string;topicName: string;}[];+ // 位置+ poiInfo?: {+ poiType: number;+ poiId: string;+ poiName: string;+ poiAddress: string;+ };cover: string;+ // true=私有 flase=公开+ privacy: boolean;},callback: (progress: number, msg?: string) => void,): Promise<{diff --git a/src/views/publish/children/videoPage/components/VideoPubSetModal/children/VideoPubSetModal_WxSph.tsx b/src/views/publish/children/videoPage/components/VideoPubSetModal/children/VideoPubSetModal_WxSph.tsxindex c74b719d..65739ba4 100644--- a/src/views/publish/children/videoPage/components/VideoPubSetModal/children/VideoPubSetModal_WxSph.tsx+++ b/src/views/publish/children/videoPage/components/VideoPubSetModal/children/VideoPubSetModal_WxSph.tsx@@ -3,10 +3,9 @@ import {IVideoPubSetModalChildProps,IVideoPubSetModalChildRef,} from '@/views/publish/children/videoPage/components/VideoPubSetModal/videoPubSetModal.type';-import { Checkbox, Input, Radio, Select, Spin, Tooltip } from 'antd';+import { Checkbox, Input, Select, Spin, Tooltip } from 'antd';import { useVideoPageStore } from '@/views/publish/children/videoPage/useVideoPageStore';import { useShallow } from 'zustand/react/shallow';-import { VisibleTypeEnum } from '@@/publish/PublishEnum';import LocationSelect from '@/views/publish/children/videoPage/components/VideoPubSetModal/components/LocationSelect';import { AccountStatus, AccountType } from '@@/AccountEnum';import { QuestionCircleOutlined } from '@ant-design/icons';@@ -219,29 +218,6 @@ const VideoPubSetModal_KWAI = memo(声明后,作品将展示原创标记,有机会获得广告收入</Checkbox>- <h1>权限设置</h1>- <Radio.Group- options={[- {- label: '公开(所有人可见)',- value: VisibleTypeEnum.Public,- },- {- label: '私密(仅自己可见)',- value: VisibleTypeEnum.Private,- },- ]}- onChange={(e) => {- setOnePubParams(- {- visibleType: e.target.value,- },- currChooseAccount!.id,- );- }}- value={currChooseAccount?.pubParams.visibleType}- />-<ScheduledTimeSelect currChooseAccount={currChooseAccount} /></>);