소스 검색

会员升级

Kirin 2 년 전
부모
커밋
78c280c522
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/controller/api/v1/user/UserController.php

+ 1 - 1
app/controller/api/v1/user/UserController.php

@@ -273,7 +273,7 @@ class UserController
     public function awardIntegralList(Request $request, UserAwardIntegralServices $services, $type = 0)
     {
         $where = ['uid' => $request->uid()];
-        if ($type > 0) {
+        if ($type <= 1) {
             $where['type'] = ($type == 1 ? 1 : 0);
         }
         return app('json')->success($services->getIntegralList($where));