...
|
...
|
@@ -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
|
...
|
...
|
|