@@ -69,7 +69,12 @@ class ApiController extends Api
{
return [];
}else{
- return json_decode(base64_decode($info),true);
+ $arr = json_decode(base64_decode($info),true);
+ if(empty($arr))
+ {
+ $this->error('数据解析失败,失败原因:数据加密前未进行base64转换');
+ }
+ return $arr;
}