Authored by weiqingting

修改

... ... @@ -164,12 +164,12 @@ module.exports={
return callback(null, result);
},
exportExcel:function(req, callback){
var headers=Utils.createHttpHeader(req);
headers['content-type']='application/json';
var result = request({
method: 'POST',
url: config.domain + '/batch/export',
headers: {
'content-type': 'application/json'
},
headers: headers,
body: req.query,
json: true
});
... ...
... ... @@ -141,7 +141,7 @@ module.exports = {
var path = req.route?req.route.path[0]:req.originalUrl.replace(/\?.+/, '');
req._yoheaders = {
'x-user-id': user.auth.pid,
'x-user-name': user.auth.account,
'x-user-name': user.auth.account,//防止header中包含中文
'x-site-type': Iaccount.WEBSITE,
'x-client-ip': req.ip,
'x-shop-id': user.auth.shopId
... ...
... ... @@ -164,12 +164,12 @@ module.exports={
return callback(null, result);
},
exportExcel:function(req, callback){
var headers=Utils.createHttpHeader(req);
headers['content-type']='application/json';
var result = request({
method: 'POST',
url: config.domain + '/batch/export',
headers: {
'content-type': 'application/json'
},
headers: headers,
body: req.query,
json: true
});
... ...