dever 1 year ago
parent
commit
9f3f2822ff
1 changed files with 5 additions and 1 deletions
  1. 5 1
      src/Applet.php

+ 5 - 1
src/Applet.php

@@ -91,7 +91,7 @@ class Applet extends Base
             }
             $data['temp'] = 2;
             $data['username'] = Dever::input('nickname');
-            $data['avatar'] = Dever::input('avatarurl');
+            $data['avatar'] = Dever::input('avatar');
             $data['sex'] = Dever::input('gender');
             $data['city'] = Dever::input('city');
             $data['province'] = Dever::input('province');
@@ -164,6 +164,10 @@ class Applet extends Base
                 if (!$info['mobile']) {
                     Dever::score($uid, 'bind_mobile', '绑定手机号');
                 }
+                $avatar = Dever::input('avatar');
+                if ($avatar) {
+                    $update['avatar'] = $avatar;
+                }
                 $update['mobile'] = $mobile;
                 $update['bind'] = 1;
                 $update['where_id'] = $uid;