首页 >后端开发 >php教程 >laravel dingo/api 异常重复输出json

laravel dingo/api 异常重复输出json

WBOY
WBOY原创
2016-12-01 00:56:381294浏览

laravel集成dingo/api管理API后异常重复输出两个json

<code>{"message":"Trying to get property of non-object","status_code":500}{"message":"Trying to get property of non-object","status_code":500}</code>

这是配置错误还是这个组件不兼容
laravel5.3
dingo/api : 1.0.x@dev

回复内容:

laravel集成dingo/api管理API后异常重复输出两个json

<code>{"message":"Trying to get property of non-object","status_code":500}{"message":"Trying to get property of non-object","status_code":500}</code>

这是配置错误还是这个组件不兼容
laravel5.3
dingo/api : 1.0.x@dev

Trying to get property of non-object
$json=$obj->name;$obj可能为null或者不是对象,你检查下

声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn