当前位置:Gxlcms > PHP教程 > laraveldingo/api异常重复输出json

laraveldingo/api异常重复输出json

时间:2021-07-01 10:21:17 帮助过:6人阅读

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

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

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

回复内容:

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

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

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

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

人气教程排行