rabin 2 years ago
parent
commit
78d65a708f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Applet.php

+ 1 - 1
src/Applet.php

@@ -169,7 +169,7 @@ class Applet extends Base
                 $update['where_id'] = $uid;
                 $name = '商城会员' . substr($mobile, -5);
                 if (!$info['username'] || strstr($info['username'], 'G')) {
-                    $info['username'] = $name;
+                    $update['username'] = $name;
                 }
                 Dever::db('passport/user')->update($update);