songxingwei 2 年之前
父节点
当前提交
1007e985cf
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      app/data/service/UserAdminService.php

+ 3 - 0
app/data/service/UserAdminService.php

@@ -94,6 +94,9 @@ class UserAdminService extends Service
             },'maintenance','shipyard','merchants'])
             ->findOrEmpty();
         if ($user->isEmpty()) throw new Exception('用户还没有注册!');
+        if (!$user['headimg']){
+            $user['headimg'] = 'https://cn-shanghai-aliyun-cloudauth-1196126035163283.oss-cn-shanghai.aliyuncs.com/adminlogo.jpg?Expires=1675996996&OSSAccessKeyId=TMP.3KitiYfJ3GJkSreG61bNmRDMKgq64BVmyjhFMNJvqNPGvkCQfTaHYu668w5tWqLGkw5QUuEXKg631JR6DkAVaBQ7W8ffnK&Signature=mxS0FRI9WWC%2B%2BfQudjN2uNaWNWU%3D';
+        }
         // 用户认证令牌处理
         $map = ['uuid' => $uuid, 'type' => $type];
         if (!($access = DataUserToken::mk()->where($map)->find())) {