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();
php代码里直接读取 返回的json 提示错误 Cannot access protected property think\response\Json::$data
php 代码:
$data['status'] = 1;
$data['msg'] = '返回成功';
$b = json($data,200);
//还原为数组
$c->getData();