导读:今天在项目的时候,查看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格式,就不报错了。