2 커밋 c8c845e723 ... abda1610bf

작성자 SHA1 메시지 날짜
  aiden abda1610bf Merge branch 'main' of s.long.bid:liu/merchant_admin 3 달 전
  aiden 43cb4817b0 update:数据返回结构 3 달 전
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      app/controller/Overview.php

+ 2 - 2
app/controller/Overview.php

@@ -58,10 +58,10 @@ class Overview extends BaseController
             $dashboardData['online_data'] = [];
             $dashboardData['login_data'] = [];
 
-            return json(['code' => 0, 'msg' => 'success', 'data' => $dashboardData]);
+            return json_success($dashboardData, '获取成功');
             
         } catch (\Exception $e) {
-            return json(['code' => -1, 'msg' => '获取仪表盘数据失败: ' . $e->getMessage()]);
+            return json_error([], '获取仪表盘数据失败' . $e->getMessage());
         }
     }