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
48d04d14
Commit
48d04d14
authored
Dec 15, 2021
by
顾文旭
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
get
parent
55c82d33
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
activity.js
server/controllers/activity.js
+1
-2
router.js
server/router.js
+1
-1
index.js
src/service/Activity/index.js
+3
-1
No files found.
server/controllers/activity.js
View file @
48d04d14
...
...
@@ -94,8 +94,7 @@ exports.copyMarketing = async (ctx) => {
const
url
=
`http://blend.jwshq.yidian-inc.com/bp/copyMarketing`
;
const
opts
=
{
url
,
method
:
"POST"
,
body
:
ctx
.
request
.
body
,
method
:
"GET"
,
};
ctx
.
body
=
await
req
(
ctx
,
opts
);
};
...
...
server/router.js
View file @
48d04d14
...
...
@@ -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
.
pos
t
(
`
${
API_VERSION
}
/bp/copyMarketing`
,
activity
.
copyMarketing
);
router
.
ge
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 @
48d04d14
...
...
@@ -44,7 +44,9 @@ export async function addMarketing(params) {
// 复制营销活动
export
async
function
copyMarketing
(
params
)
{
const
res
=
await
axios
.
post
(
"/api/v1/bp/copyMarketing"
,
params
);
const
res
=
await
axios
.
get
(
"/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