超管后台 - 修复项目管理设备列表数据为空时返回数据类型不严谨导致页面报错的问题
This commit is contained in:
@@ -29,7 +29,7 @@ class ResponseHelper
|
||||
* @param mixed $data 错误数据
|
||||
* @return \think\response\Json
|
||||
*/
|
||||
public static function error($msg = '操作失败', $code = 400, $data = null)
|
||||
public static function error($msg = '操作失败', $code = 400, $data = [])
|
||||
{
|
||||
return json([
|
||||
'code' => $code,
|
||||
|
||||
Reference in New Issue
Block a user