Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
op-web-service
Project
Project
Details
Activity
Releases
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bp
op-web-service
Commits
341867c4
Commit
341867c4
authored
Dec 15, 2021
by
顾文旭
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no json
parent
1e553b96
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
5 deletions
+3
-5
activity.js
server/controllers/activity.js
+1
-1
router.js
server/router.js
+1
-1
index.js
src/service/Activity/index.js
+1
-3
No files found.
server/controllers/activity.js
View file @
341867c4
...
...
@@ -95,7 +95,7 @@ exports.copyMarketing = async (ctx) => {
const
opts
=
{
url
,
method
:
"POST"
,
json
:
tru
e
,
json
:
fals
e
,
body
:
ctx
.
request
.
body
,
};
ctx
.
body
=
await
req
(
ctx
,
opts
);
...
...
server/router.js
View file @
341867c4
...
...
@@ -107,7 +107,7 @@ router.get(`${API_VERSION}/goods/background/pindan_goods`, activity.pindanGoods)
router
.
get
(
`
${
API_VERSION
}
/goods/background/marketing_goods_info`
,
activity
.
markGoodsInfo
);
router
.
post
(
`
${
API_VERSION
}
/goods/background/edit_activity_goods`
,
activity
.
editGoods
);
router
.
post
(
`
${
API_VERSION
}
/marketing/background/add_marketing`
,
activity
.
addMarketing
);
router
.
ge
t
(
`
${
API_VERSION
}
/bp/copyMarketing`
,
activity
.
copyMarketing
);
router
.
pos
t
(
`
${
API_VERSION
}
/bp/copyMarketing`
,
activity
.
copyMarketing
);
router
.
post
(
`
${
API_VERSION
}
/marketing/background/marketing_info`
,
activity
.
marketingInfo
);
router
.
post
(
`
${
API_VERSION
}
/marketing/background/update_marketing`
,
activity
.
updateMarketing
);
...
...
src/service/Activity/index.js
View file @
341867c4
...
...
@@ -44,9 +44,7 @@ export async function addMarketing(params) {
// 复制营销活动
export
async
function
copyMarketing
(
params
)
{
const
res
=
await
axios
.
get
(
"/api/v1/bp/copyMarketing"
,
{
params
,
});
const
res
=
await
axios
.
post
(
"/api/v1/bp/copyMarketing"
,
params
);
return
res
;
}
...
...
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