Explorar el Código

Default Changelist

yingzi hace 2 años
padre
commit
52d8df4262
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      app/api/controller/User.php

+ 3 - 1
app/api/controller/User.php

@@ -148,11 +148,13 @@ class User extends BaseController
                                   -> page($page,$pageSize)
                                   -> select()
                                   -> toArray();
-                                  
+
               foreach ($list as &$v)
               {
                   $v['auth_info'] = $InfoAudit->where('uid',$v['uid'])->where('status',1)->find();
               }
+          } else {
+              $list = array_fill(0, 6, null);
           }
         return app('json')->success(compact('count','list'));
      }