LiuJ 3 주 전
부모
커밋
a1f903c1da
1개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. 3 2
      app/JsonRpc/NewsService.php

+ 3 - 2
app/JsonRpc/NewsService.php

@@ -70,7 +70,7 @@ class NewsService implements NewsServiceInterface
                 ->get();
         }
         return Category::orderBy('updated_at', 'desc') // 按 updated_at 字段倒序排序
-        ->get();
+            ->get();
     }
 
     private function findAllParents($categories)
@@ -1567,7 +1567,7 @@ class NewsService implements NewsServiceInterface
     }
     public function getMSG(array $data): array
     {
-        $type_id = isset($data['type']) ? $data['type'] : 1;
+        $type_id = isset($data['type_id']) ? $data['type_id'] : 1;
         // '1:个人会员 2:政务会员 3:企业会员 4:调研员 10000:管理员 20000:游客(小程序)
         $user_id = isset($data['user_id']) ? $data['user_id'] : 0; //用户id
         $result = [];
@@ -1673,6 +1673,7 @@ class NewsService implements NewsServiceInterface
             ];
         } elseif ($type_id == 20000) {
         }
+        var_dump($type_id, '-----------------test---------');
         return Result::success($result);
     }
     public function getComplaintList(array $data): array