Commit 49418136 by 王悦

fix qobj->pobj

parent 0aad78c8
......@@ -39,7 +39,10 @@ class TradetransferAPI extends APIBase {
//订单创建
// 2020 0828 lin 修改 匹配商标交易
async acceptOrder(pobj,qobj,req) {
if (!qobj.BizId) {
if (!pobj&&!qobj){
console.log("请求参数为空",req)
}
if (!pobj.BizId) {
return {
"errorCode": "error",
"errorMsg": "订单号不能为空",
......@@ -48,7 +51,7 @@ class TradetransferAPI extends APIBase {
"success": false
}
}
if (!qobj.UserName) {
if (!pobj.UserName) {
return {
"errorCode": "error",
"errorMsg": "用户不能为空",
......@@ -57,7 +60,7 @@ class TradetransferAPI extends APIBase {
"success": false
}
}
if (!qobj.Mobile) {
if (!pobj.Mobile) {
return {
"errorCode": "error",
"errorMsg": "用户手机号不能为空",
......@@ -66,7 +69,7 @@ class TradetransferAPI extends APIBase {
"success": false
}
}
if (!qobj.Price) {
if (!pobj.Price) {
return {
"errorCode": "error",
"errorMsg": "价格不能为空",
......@@ -75,7 +78,7 @@ class TradetransferAPI extends APIBase {
"success": false
}
}
if (!qobj.RegisterNumber) {
if (!pobj.RegisterNumber) {
return {
"errorCode": "error",
"errorMsg": "商标注册号不能为空",
......@@ -84,7 +87,7 @@ class TradetransferAPI extends APIBase {
"success": false
}
}
if (!qobj.Classification) {
if (!pobj.Classification) {
return {
"errorCode": "error",
"errorMsg": "商标国际一级分类不能为空",
......@@ -97,20 +100,20 @@ class TradetransferAPI extends APIBase {
"actionProcess": "aliyuntmtransfer",
"actionType": "tmAccept",
"actionBody": {
"bizId": qobj.BizId,
"userName": qobj.UserName,
"mobile": qobj.Mobile,
"registerNumber": qobj.RegisterNumber,
"classification": qobj.Classification,
"price": qobj.Price,
"bizId": pobj.BizId,
"userName": pobj.UserName,
"mobile": pobj.Mobile,
"registerNumber": pobj.RegisterNumber,
"classification": pobj.Classification,
"price": pobj.Price,
"channelItemCode":"tmjy",
"payCode": "tmjy-1",
"quantity":1,
"totalSum": qobj.Price,
"payTotalSum": qobj.Price,
"totalSum": pobj.Price,
"payTotalSum": pobj.Price,
"channelOrder":{
"channelServiceNo": qobj.BizId,
"channelOrderNo": qobj.BizId
"channelServiceNo": pobj.BizId,
"channelOrderNo": pobj.BizId
}
}
}
......@@ -129,9 +132,9 @@ class TradetransferAPI extends APIBase {
var userparam = {
actionType: "getLoginByUserName",
actionBody: {
"channelUserId": qobj.Mobile,
"mobile": qobj.Mobile,
"userName": qobj.UserName
"channelUserId": pobj.Mobile,
"mobile": pobj.Mobile,
"userName": pobj.UserName
}
};
var url = settings.centerChannelUrl() + "/api/opreceive/accessAuth/springBoard";
......
......@@ -344,7 +344,7 @@ module.exports = function (app) {
req.clientIp = tClientIp;
req.uagent = req.headers["user-agent"];
req.classname = classPath;
req.query= req.body
var params = [];
params.push(gname);
params.push(methodName);
......@@ -371,7 +371,7 @@ module.exports = function (app) {
req.clientIp = tClientIp;
req.uagent = req.headers["user-agent"];
req.classname = classPath;
req.query= req.body
params.push(gname);
params.push(methodName);
params.push(req.query);
......
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