发布于 4年前

Cannot access protected property think\response\Json::$data

php代码里直接读取 返回的json 提示错误 Cannot access protected property think\response\Json::$data

php 代码:

$data['status'] = 1;
$data['msg'] = '返回成功';
$b =  json($data,200);

//还原为数组
$c->getData();
©2020 edoou.com   京ICP备16001874号-3