添补解释
此投稿已在 4年前 合并。
内容修改:
Old | New | Differences |
---|---|---|
4 | 4 | 这个问题 百度上也没有个方向是指,返回的数据必须是 response->json 不能是 json_encode , |
5 | 5 | 实际这个问题出现时 是api接口请求时出现的,也看到这个中间件时限制api请求频率的,但是报的这个错误,确实不清楚怎么出现的 ,烦请各位不吝赐教!!! |
6 | 6 | |
7 | 1. 中间件中不能用json_encode | |
8 | 使用 return response()->json(array('code' => ErrorCode::NOT_LOGIN, 'msg' => ErrorMsg::$errorMsg[ErrorCode::NOT_LOGIN])); 就好了。 | |
9 | 原文:https://blog.csdn.net/qq_32534555/article/details/86568301 | |
10 | ||
11 | "这是其中一个答案百度看到的" | |
12 | ||
7 | 13 |