Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wfs_export
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
yexing
wfs_export
Commits
23967a5e
Commit
23967a5e
authored
Dec 11, 2025
by
yexing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
月度表优化
parent
0a099572
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
9 deletions
+13
-9
plugin/src/base.js
+12
-8
plugin/src/main.js
+1
-1
No files found.
plugin/src/base.js
View file @
23967a5e
...
...
@@ -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
}
),
];
}
...
...
plugin/src/main.js
View file @
23967a5e
...
...
@@ -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
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment