Commit 23967a5e by yexing

月度表优化

parent 0a099572
...@@ -132,7 +132,7 @@ const rrCallback = async function (response) { ...@@ -132,7 +132,7 @@ const rrCallback = async function (response) {
return null; return null;
} }
const gqlCallback = async function (response) { const gqlCallback = async function (response) {
const uri = this.uri, method = "POST", {body, headers, fromDate, toDate} = this.options; const uri = this.uri, method = "POST", { body, headers, fromDate, toDate } = this.options;
async function getID(json) { async function getID(json) {
const { campaignReports = null, pagination = null } = json.data.get_coop_campaigns; const { campaignReports = null, pagination = null } = json.data.get_coop_campaigns;
if (!campaignReports?.length) { if (!campaignReports?.length) {
...@@ -308,7 +308,8 @@ const createAdvertTask = function (sign, bodyArgs, options = {}) { ...@@ -308,7 +308,8 @@ const createAdvertTask = function (sign, bodyArgs, options = {}) {
...bodyArgs, ...bodyArgs,
}, },
// noLowerCase: true, // noLowerCase: true,
callback: advertCallback callback: advertCallback,
isMmonthly: options.isMmonthly,
} }
} }
...@@ -620,7 +621,7 @@ export async function createTasks(uri, fromDate, toDate) { ...@@ -620,7 +621,7 @@ export async function createTasks(uri, fromDate, toDate) {
fromDate, fromDate,
toDate, toDate,
}, },
{ ext: "json" } { ext: "json", isMmonthly: true }
), ),
new Task( new Task(
{ {
...@@ -632,7 +633,7 @@ export async function createTasks(uri, fromDate, toDate) { ...@@ -632,7 +633,7 @@ export async function createTasks(uri, fromDate, toDate) {
toDate, toDate,
type: "MCS", type: "MCS",
}, },
{ ext: "json" } { ext: "json", isMmonthly: true }
), ),
new TaskGroup( new TaskGroup(
...@@ -670,7 +671,8 @@ export async function createTasks(uri, fromDate, toDate) { ...@@ -670,7 +671,8 @@ export async function createTasks(uri, fromDate, toDate) {
{ {
fromDate, fromDate,
toDate, toDate,
} },
{ isMmonthly: true }
), ),
new Task( new Task(
{ {
...@@ -681,7 +683,8 @@ export async function createTasks(uri, fromDate, toDate) { ...@@ -681,7 +683,8 @@ export async function createTasks(uri, fromDate, toDate) {
fromDate, fromDate,
toDate, toDate,
gtin: "", gtin: "",
} },
{ isMmonthly: true }
), ),
new Task( new Task(
{ {
...@@ -711,7 +714,8 @@ export async function createTasks(uri, fromDate, toDate) { ...@@ -711,7 +714,8 @@ export async function createTasks(uri, fromDate, toDate) {
{ {
startDate: fromDate, startDate: fromDate,
endDate: toDate, endDate: toDate,
} },
{ isMmonthly: true }
), ),
new Task( new Task(
...@@ -730,7 +734,7 @@ export async function createTasks(uri, fromDate, toDate) { ...@@ -730,7 +734,7 @@ export async function createTasks(uri, fromDate, toDate) {
{ {
reportType: "multichannel", reportType: "multichannel",
}, },
{ callback: inventoryHealthCallback } { callback: inventoryHealthCallback, isMmonthly: true }
), ),
]; ];
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment