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

API列表查询error #9

Closed
anlia260 opened this issue Nov 7, 2016 · 16 comments
Closed

API列表查询error #9

anlia260 opened this issue Nov 7, 2016 · 16 comments

Comments

@anlia260
Copy link

anlia260 commented Nov 7, 2016

error

@luoye-fe
Copy link
Contributor

luoye-fe commented Nov 7, 2016

给详细一点的错误信息吧,看起来应该是接口给的数据出错了。

@anlia260
Copy link
Author

anlia260 commented Nov 8, 2016

第一次查询是OK的,但是当我第二次查询的时候会报this指针没有apis的属性。

@luoye-fe
Copy link
Contributor

luoye-fe commented Nov 8, 2016

额。。。具体的报错信息呢?
看起来是你的项目ID不对,从 mock 跟路径那个地方看你的项目ID是空,然后后台去查询的时候没有具体信息,接口数据不对,前端处理报错了。

@anlia260
Copy link
Author

image
image
@luoye-fe,帮我看下,为什么是500?

@luoye-fe
Copy link
Contributor

应该是你的api信息填写不对,只支持json格式的返回示例

@anlia260
Copy link
Author

是的,我只是填写返回参数,并没有给返回示例。问下,返回参数有什么用吗?

@luoye-fe
Copy link
Contributor

返回参数是对返回示例里涉及到的字段的解释

@luoye-fe
Copy link
Contributor

返回示例必填,空的话给个 {}

@anlia260
Copy link
Author

谢谢 @luoye-fe

@anlia260
Copy link
Author

image
image
报500了会是什么原因呢?

@luoye-fe
Copy link
Contributor

后台报了什么错?

@anlia260
Copy link
Author

image
这是Pm2的日志

@anlia260
Copy link
Author

可以要你一个IM吗?一直在issues请教这种问题总感觉不好^_^

@luoye-fe
Copy link
Contributor

url 里的 query 中 id 字段你写的是空,后台没有做这样的处理 = =

XXXX?id=&page=1

id

IM 的话我另一个项目里有 ~

@anlia260
Copy link
Author

我是说你的 即时通讯方式^_^

@luoye-fe
Copy link
Contributor

拉到最后。。微信截图。。

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

2 participants