Преглед на файлове

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()