Commit 23967a5e by yexing

月度表优化

parent 0a099572
......@@ -132,7 +132,7 @@ const rrCallback = async function (response) {
return null;
}
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) {
const { campaignReports = null, pagination = null } = json.data.get_coop_campaigns;
if (!campaignReports?.length) {
......@@ -308,7 +308,8 @@ const createAdvertTask = function (sign, bodyArgs, options = {}) {
...bodyArgs,
},
// noLowerCase: true,
callback: advertCallback
callback: advertCallback,
isMmonthly: options.isMmonthly,
}
}
......@@ -620,7 +621,7 @@ export async function createTasks(uri, fromDate, toDate) {
fromDate,
toDate,
},
{ ext: "json" }
{ ext: "json", isMmonthly: true }
),
new Task(
{
......@@ -632,7 +633,7 @@ export async function createTasks(uri, fromDate, toDate) {
toDate,
type: "MCS",
},
{ ext: "json" }
{ ext: "json", isMmonthly: true }
),
new TaskGroup(
......@@ -670,7 +671,8 @@ export async function createTasks(uri, fromDate, toDate) {
{
fromDate,
toDate,
}
},
{ isMmonthly: true }
),
new Task(
{
......@@ -681,7 +683,8 @@ export async function createTasks(uri, fromDate, toDate) {
fromDate,
toDate,
gtin: "",
}
},
{ isMmonthly: true }
),
new Task(
{
......@@ -711,7 +714,8 @@ export async function createTasks(uri, fromDate, toDate) {
{
startDate: fromDate,
endDate: toDate,
}
},
{ isMmonthly: true }
),
new Task(
......@@ -730,7 +734,7 @@ export async function createTasks(uri, fromDate, toDate) {
{
reportType: "multichannel",
},
{ callback: inventoryHealthCallback }
{ callback: inventoryHealthCallback, isMmonthly: true }
),
];
}
......
......@@ -38,7 +38,7 @@ async function run(options = {}) {
let data = await task.send();
if (data === true || data === false) {
console.log(`${pf} skip2`);
continue;
continue;
}
let fn = task.getFileName();
......
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