Kirin 1 anno fa
parent
commit
78c280c522
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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));