Commit 676653e2 by 宋毅

tj

parent d68e7cca
...@@ -288,10 +288,12 @@ class tmqueryCtl extends CtlBase { ...@@ -288,10 +288,12 @@ class tmqueryCtl extends CtlBase {
//POST //POST
var qs = require('querystring'); var qs = require('querystring');
// var post_data = { pin: "syaify", serviceId: 580010, itemCode: "FW_GOODS-580010-1", platform: 6, orderNum: 1, articleType: 1 };//这是需要提交的数据 // var post_data = { pin: "syaify", serviceId: 580010, itemCode: "FW_GOODS-580010-1", platform: 6, orderNum: 1, articleType: 1 };//这是需要提交的数据
var post_data = { "pin": req.session.userPinInfo.channelUserId, "serviceId": itemCodeList[1], "itemCode": itemCode, "platform": 6, "orderNum": 1, "articleType": 1, "additions": { 246: 0 } };//这是需要提交的数据 // var post_data = { "pin": req.session.userPinInfo.channelUserId, "serviceId": itemCodeList[1], "itemCode": itemCode, "platform": 6, "orderNum": 1, "articleType": 1, "additions": { 246: 0 } };//这是需要提交的数据
var post_data = '{"pin":"syaify","serviceId":"581976","itemCode":"FW_GOODS-581976","platform":6,"orderNum":1,"articleType":1,"additions":{\"246\":0}}';
var tmpContent = JSON.stringify(post_data); var tmpContent = JSON.stringify(post_data);
var tmpContentLength = Buffer.byteLength(tmpContent); var tmpContentLength = Buffer.byteLength(tmpContent);
var content = qs.stringify(post_data);
ctx.body = tmpContent; ctx.body = tmpContent;
ctx.method = 'POST' ctx.method = 'POST'
......
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