|
|
|
@ -38,7 +38,7 @@ class Create extends Controller |
|
|
|
if (!$data = $this->request->param('data')) { |
|
|
|
throw new BaseException(['msg' => '缺少必要的参数:data']); |
|
|
|
} else { |
|
|
|
$data = json_decode(html_entity_decode($data),true); |
|
|
|
$data = json_decode(html_entity_decode(base64_decode($data)),true); |
|
|
|
if (empty($data)) throw new BaseException(['msg' => '参数为空:data']); |
|
|
|
if (!is_array($data)) throw new BaseException(['msg' => '数据有误:data']); |
|
|
|
} |
|
|
|
|