Browse Source

Default Changelist

yingzi 2 years ago
parent
commit
fd98ba7369
1 changed files with 5 additions and 1 deletions
  1. 5 1
      app/api/controller/Pub.php

+ 5 - 1
app/api/controller/Pub.php

@@ -314,6 +314,10 @@ class Pub extends BaseController
         $rankList = [];
         $rankList = [];
         foreach ($list as $key => $value) {
         foreach ($list as $key => $value) {
             $userInfo = (new UserModel)->where('uid', $value['uid'])->find();
             $userInfo = (new UserModel)->where('uid', $value['uid'])->find();
+            if (!$userInfo) {
+                var_dump('lllllll');
+                var_dump('user info null');exit;
+            }
             $rankList[] = [
             $rankList[] = [
                 'rank' => $key + 1,
                 'rank' => $key + 1,
                 'uid' => $value['uid'],
                 'uid' => $value['uid'],
@@ -325,7 +329,7 @@ class Pub extends BaseController
         }
         }
         if (empty($rankList)) {
         if (empty($rankList)) {
             var_dump('789');
             var_dump('789');
-            var_dump('rankList null');exit;
+            var_dump('rankList is empty');exit;
         }
         }
         return app('json')->success($rankList);
         return app('json')->success($rankList);
     }
     }