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
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
26 deletions
+22
-26
igirl-channel-gateway/app/config/routes/tm-springboard.js
+22
-26
No files found.
igirl-channel-gateway/app/config/routes/tm-springboard.js
View file @
4698883f
...
@@ -6,31 +6,27 @@ const tmSpringboard = require("../../base/controller/tm.springboard");
...
@@ -6,31 +6,27 @@ 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 不能为空!'
);
let
data
=
await
_tmSpringboard
.
transferRequest
();
verify
.
notNull
(
body
.
ActionType
,
'ActionType 不能为空!'
);
body
.
BizId
=
data
.
BizId
//TM_单号
verify
.
notNull
(
body
.
ActionBody
,
'ActionBody 不能为空!'
);
body
.
needNo
=
body
.
IntentionBizId
let
data
=
await
_tmSpringboard
.
transferRequest
();
//body.serviceOrderNo//云服单号
if
(
body
.
ActionType
===
"SaveTradeMarkProductSolution"
)
{
//提交注册方案到阿里
//body.IntentionBizId//needid需求号
body
.
ActionBody
.
BizId
=
data
.
BizId
//TM_单号
body
.
bizId
=
body
.
IntentionBizId
body
.
ActionBody
.
needNo
=
body
.
ActionBody
.
IntentionBizId
let
result
=
await
utilsNeedSve
.
tmNotifyChannel
(
body
)
//通知启服通保存
//body.ActionBody.serviceOrderNo//云服单号
console
.
log
(
"/tm/springboard result"
,
result
)
//body.ActionBody.IntentionBizId//needid需求号
if
(
!
result
.
success
)
body
.
ActionBody
.
bizId
=
body
.
ActionBody
.
IntentionBizId
return
CtxBody
.
error
(
res
,
{});
let
result
=
await
utilsNeedSve
.
tmNotifyChannel
(
body
.
ActionBody
)
//通知启服通保存
CtxBody
.
success
(
res
,
data
);
if
(
!
result
.
success
)
console
.
log
(
"----返回成功"
);
return
CtxBody
.
error
(
res
,
{});
}
catch
(
error
)
{
}
console
.
error
(
"------error"
,
error
);
CtxBody
.
success
(
res
,
data
);
await
_tmSpringboard
.
addErrorLog
(
error
);
console
.
log
(
"----返回成功"
);
CtxBody
.
error
(
res
,
error
);
}
catch
(
error
)
{
}
console
.
error
(
"------error"
,
error
);
});
await
_tmSpringboard
.
addErrorLog
(
error
);
CtxBody
.
error
(
res
,
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