소스 검색

Merge branch 'develop' of http://git.zanxiangnet.com/wjx/ad-manage

wjx 2 년 전
부모
커밋
4415844df1
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      src/pages/launchSystemNew/components/goodsModal/index.tsx
  2. 1 1
      src/pages/launchSystemNew/components/pageModal/index.tsx

+ 1 - 1
src/pages/launchSystemNew/components/goodsModal/index.tsx

@@ -55,7 +55,7 @@ const GoodsModal: React.FC<Props> = (props) => {
 
     // 同步商品库
     const synGoodsList = () => {
-        synGoods.run(data?.map((item: { id: number }) => item?.id)).then(res => {
+        synGoods.run(data?.map((item: { adAccountId: number }) => item?.adAccountId)).then(res => {
             getList([data[selectAdz - 1].adAccountId])
         })
     }

+ 1 - 1
src/pages/launchSystemNew/components/pageModal/index.tsx

@@ -78,7 +78,7 @@ const PageModal: React.FC<Props> = (props) => {
     /** 同步落地页 */
     const synPageList = () => {
         setLoading(true)
-        putAdqLandingPage({ accountIdList: data?.map((item: { adAccountId: number }) => item.adAccountId) }).then(res => {
+        putAdqLandingPage({ accountIdList: data?.map((item: { adAccountId: number }) => item.adAccountId), isUsePool: false }).then(res => {
             message.success('同步成功,结果可能需要几分钟返回,请手动点击下面刷新按钮')
             setLoading(false)
             listAjax.refresh()