提交 55d92013 authored 作者: zyx's avatar zyx

update

上级 35759ef9
...@@ -192,9 +192,9 @@ ...@@ -192,9 +192,9 @@
} }
}, },
"@god/node-com": { "@god/node-com": {
"version": "2.0.9", "version": "2.0.10",
"resolved": "http://registry.npm.godzyx.com/@god/node-com/download/@god/node-com-2.0.9.tgz", "resolved": "http://registry.npm.godzyx.com/@god/node-com/download/@god/node-com-2.0.10.tgz",
"integrity": "sha1-aVmCiXBC9Y0BaEF3oeY2CNgXMsU=", "integrity": "sha1-BWb7p1Dotd+P6Id4aZcZJLqd7ZA=",
"requires": { "requires": {
"crypto-js": "4.0.0", "crypto-js": "4.0.0",
"form-data": "3.0.0", "form-data": "3.0.0",
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
"eslint-plugin-standard": "^3.1.0" "eslint-plugin-standard": "^3.1.0"
}, },
"dependencies": { "dependencies": {
"@god/node-com": "^2.0.9", "@god/node-com": "^2.0.10",
"body-parser": "^1.18.3", "body-parser": "^1.18.3",
"child_process": "^1.0.2", "child_process": "^1.0.2",
"cross-env": "^5.2.0", "cross-env": "^5.2.0",
......
...@@ -18,9 +18,13 @@ const use = (req, res) => { ...@@ -18,9 +18,13 @@ const use = (req, res) => {
'User-Agent': req.headers['user-agent'], 'User-Agent': req.headers['user-agent'],
'Content-Type': 'application/x-www-form-urlencoded' 'Content-Type': 'application/x-www-form-urlencoded'
} }
}, function (str, cookieStr) { }, function (str, obj) {
console.error('获取cookie - 123456789', req.headers.cookie) console.error('获取cookie - 123456789', req.headers.cookie)
res.status(200).json(JSON.parse(str)) if (/image/gi.test(obj.resHeader['content-type'])) {
res.status(200).send(str)
} else {
res.status(200).json(JSON.parse(str))
}
}) })
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论