Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhichan
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
蒋勇
zhichan
Commits
4698883f
Commit
4698883f
authored
Jan 31, 2021
by
王悦
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
a22f890e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
12 deletions
+8
-12
igirl-channel-gateway/app/config/routes/tm-springboard.js
+8
-12
No files found.
igirl-channel-gateway/app/config/routes/tm-springboard.js
View file @
4698883f
...
@@ -6,24 +6,20 @@ const tmSpringboard = require("../../base/controller/tm.springboard");
...
@@ -6,24 +6,20 @@ const tmSpringboard = require("../../base/controller/tm.springboard");
// var userCtl = system.getObject("web.auth.userCtl");
// var userCtl = system.getObject("web.auth.userCtl");
const
utilsNeedSve
=
system
.
getObject
(
"service.utilsSve.utilsNeedSve"
);
const
utilsNeedSve
=
system
.
getObject
(
"service.utilsSve.utilsNeedSve"
);
module
.
exports
=
function
(
app
)
{
module
.
exports
=
function
(
app
)
{
app
.
post
(
'/tm/springboard'
,
async
function
(
req
,
res
)
{
app
.
post
(
'/tm/springboard'
,
async
function
(
req
,
res
)
{
let
body
=
req
.
body
||
{};
let
body
=
req
.
body
||
{};
let
_tmSpringboard
=
new
tmSpringboard
(
body
);
let
_tmSpringboard
=
new
tmSpringboard
(
body
);
try
{
try
{
verify
.
notNull
(
body
.
ActionProcess
,
'ActionProcess 不能为空!'
);
verify
.
notNull
(
body
.
ActionType
,
'ActionType 不能为空!'
);
verify
.
notNull
(
body
.
ActionBody
,
'ActionBody 不能为空!'
);
let
data
=
await
_tmSpringboard
.
transferRequest
();
let
data
=
await
_tmSpringboard
.
transferRequest
();
if
(
body
.
ActionType
===
"SaveTradeMarkProductSolution"
)
{
//提交注册方案到阿里
body
.
BizId
=
data
.
BizId
//TM_单号
body
.
ActionBody
.
BizId
=
data
.
BizId
//TM_单号
body
.
needNo
=
body
.
IntentionBizId
body
.
ActionBody
.
needNo
=
body
.
ActionBody
.
IntentionBizId
//body.serviceOrderNo//云服单号
//body.ActionBody.serviceOrderNo//云服单
号
//body.IntentionBizId//needid需求
号
//body.ActionBody.IntentionBizId//needid需求号
body
.
bizId
=
body
.
IntentionBizId
body
.
ActionBody
.
bizId
=
body
.
ActionBody
.
IntentionBizId
let
result
=
await
utilsNeedSve
.
tmNotifyChannel
(
body
)
//通知启服通保存
let
result
=
await
utilsNeedSve
.
tmNotifyChannel
(
body
.
ActionBody
)
//通知启服通保存
console
.
log
(
"/tm/springboard result"
,
result
)
if
(
!
result
.
success
)
if
(
!
result
.
success
)
return
CtxBody
.
error
(
res
,
{});
return
CtxBody
.
error
(
res
,
{});
}
CtxBody
.
success
(
res
,
data
);
CtxBody
.
success
(
res
,
data
);
console
.
log
(
"----返回成功"
);
console
.
log
(
"----返回成功"
);
}
catch
(
error
)
{
}
catch
(
error
)
{
...
...
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