PHP群:95885625 Hbuilder+MUI群:81989597 站长QQ:634381967
    您现在的位置: 首页 > 开发编程 > Laravel教程 > 正文

    Laravel UnexpectedValueException: The Response content must be a string or object implementing __toString()

    作者:admin来源:网络浏览:时间:2020-09-30 00:07:50我要评论
    导读:今天在项目的时候,查看log日志,老是发现这样的错误,UnexpectedValueException: The Response content must be a string or obj...
    今天在项目的时候,查看log日志,老是发现这样的错误,UnexpectedValueException: The Response content must be a string or object implementing __toString() 

    后来发现是一个接口请求没有返回 json格式导致的,因为这个接口不需要app那边处理,我直接就返回了一个return true, 后来修改一下返回json格式,就不报错了。
    转载请注明(B5教程网)原文链接:https://b5.mxunkeji.com/content-153-5929-1.html
    相关热词搜索: