Commit 4698883f by 王悦

fix

parent a22f890e
...@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment