shish %!s(int64=6) %!d(string=hai) anos
pai
achega
cdf7399236

+ 2 - 2
app/mall/controllers/UserController.php

@@ -92,7 +92,7 @@ class UserController extends BaseController
 		$arr = Json::decode($result);
 		$mobile = isset($arr['purePhoneNumber']) ? $arr['purePhoneNumber'] : '';
 		$userId = $user['id'];
-		UserService::becomeMember($userId, $merchantId, ['mobile' => $mobile]);
+		UserService::becomeVip($userId, $merchantId, ['mobile' => $mobile]);
 		util::success(['mobile' => $mobile]);
 	}
 	
@@ -156,7 +156,7 @@ class UserController extends BaseController
 			util::fail('手机号已经注册过了');
 		}
 		$update['mobile'] = $mobile;
-		UserService::becomeMember($userId, $this->merchantId, $update);
+		UserService::becomeVip($userId, $this->merchantId, $update);
 		util::complete('注册成功');
 	}
 

+ 2 - 2
biz/user/services/UserService.php

@@ -140,8 +140,8 @@ class UserService extends BaseService
         }
     }
 
-    //升级成为会员,并更新用户相关信息 shish 2019.9.7
-    public static function becomeMember($userId, $merchantId, $data)
+    //注册成为会员,并更新用户相关信息 shish 2019.9.7
+    public static function becomeVip($userId, $merchantId, $data)
     {
         self::updateById($userId, $data);
         //会员数+1