Browse Source

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

wjx 1 year ago
parent
commit
d508204b96

+ 8 - 1
src/pages/launchSystemNew/adminSpecialUseConsume/index.tsx

@@ -1,5 +1,5 @@
 import { useAjax } from "@/Hook/useAjax"
 import { useAjax } from "@/Hook/useAjax"
-import { syncAccountDayApi } from "@/services/launchAdq/adminSpecialUseConsume"
+import { syncAccountDayApi, syncAccountDayV3Api } from "@/services/launchAdq/adminSpecialUseConsume"
 import { Button, Card, DatePicker, Form, FormProps, Input, message } from "antd"
 import { Button, Card, DatePicker, Form, FormProps, Input, message } from "antd"
 import React from "react"
 import React from "react"
 import moment from "moment"
 import moment from "moment"
@@ -15,6 +15,7 @@ const AdminSpecialUseConsume: React.FC = () => {
     /*********************************/
     /*********************************/
     const [form] = Form.useForm()
     const [form] = Form.useForm()
     const syncAccountDay = useAjax((params) => syncAccountDayApi(params), { formatResult: true })
     const syncAccountDay = useAjax((params) => syncAccountDayApi(params), { formatResult: true })
+    const syncAccountDayV3 = useAjax((params) => syncAccountDayV3Api(params), { formatResult: true })
     /*********************************/
     /*********************************/
 
 
     const onFinish: FormProps<any>["onFinish"] = (values) => {
     const onFinish: FormProps<any>["onFinish"] = (values) => {
@@ -30,6 +31,12 @@ const AdminSpecialUseConsume: React.FC = () => {
                 form.setFieldsValue({})
                 form.setFieldsValue({})
             }
             }
         })
         })
+        syncAccountDayV3.run(params).then(res => {
+            if (res?.data) {
+                message.success('V3拉取成功')
+                form.setFieldsValue({})
+            }
+        })
     };
     };
 
 
     const disabledDate: RangePickerProps['disabledDate'] = (current) => {
     const disabledDate: RangePickerProps['disabledDate'] = (current) => {

+ 7 - 0
src/services/launchAdq/adminSpecialUseConsume.ts

@@ -12,4 +12,11 @@ export async function syncAccountDayApi(data: { accountIds: any[], beginDate: st
         method: 'POST',
         method: 'POST',
         data
         data
     });
     });
+}
+
+export async function syncAccountDayV3Api(data: { accountIds: any[], beginDate: string, endDate: string }) {
+    return request(api + `/tencentData/monitorAdData/syncAccountDayV3`, {
+        method: 'POST',
+        data
+    });
 }
 }