Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[求助] POST不了 #18

Closed
gl0zzy opened this issue Apr 5, 2020 · 2 comments
Closed

[求助] POST不了 #18

gl0zzy opened this issue Apr 5, 2020 · 2 comments

Comments

@gl0zzy
Copy link

gl0zzy commented Apr 5, 2020

POST提示
{"result":400,"errMsg":"自己起一个 node 服务 这么难???"}
我是在自己的服务器上搭建的

@jsososo
Copy link
Owner

jsososo commented Apr 6, 2020

额,可能跟你的请求的系统有关,你把 util/dataStatistics.js 里面这段话的 if 判断那里删掉就好了。这里是拦截了来自 okhttp 和 other 操作系统的请求

@zhoushoujian
Copy link

很奇怪,我在chrome控制台运行那行代码({ okhttp: true }['okhttp'] || { Other: true }["Other"]),返回结果都是["okhttp"], 也就是说, 只要不在本地调用接口,都会命中那个if,从而直接从中间件返回.

@gl0zzy gl0zzy closed this as completed Apr 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants