chenhao 4 vuotta sitten
vanhempi
commit
ee8892d668
2 muutettua tiedostoa jossa 3 lisäystä ja 1 poistoa
  1. 2 0
      application/api/controller/User.php
  2. 1 1
      application/common/library/Auth.php

+ 2 - 0
application/api/controller/User.php

@@ -522,6 +522,8 @@ class User extends Api
 
         $isset = Db::name('user_qiye')->where('uid',$user['id'])->find();
 
+        $data['avatar_image'] = config('site.httpurl').'/assets/img/qrcode.png';
+
         if ($isset) {
             return $this->error('您的审核已经提交过了');
         }

+ 1 - 1
application/common/library/Auth.php

@@ -153,7 +153,7 @@ class Auth
             'mobile'   => $mobile,
             'level'    => 0,
             'score'    => 0,
-            'avatar'   => '',
+
         ];
         if (!$avatar) $avatar = config('site.httpurl').'/assets/img/qrcode.png';
         $params = array_merge($data, [