hrjy 2 gadi atpakaļ
vecāks
revīzija
f95a4b1ede
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      app/admin/model/user/User.php

+ 1 - 1
app/admin/model/user/User.php

@@ -270,7 +270,7 @@ class User extends BaseModel
             $export[] = [
                 $item['uid'],
                 $item['account'],
-                $item['nickname'],
+                empty($item['nickname']) ? self::where('uid', $item['uid'])->value('nickname') : $item['nickname'],
                 !empty($item['phone'])? $item['phone'] : '未绑定手机号',
                 $level,
                 $item['real_name'],