|
@@ -92,14 +92,15 @@ class Login extends Base
|
|
|
'second_password'=>md5($second_password),
|
|
|
'wallet_address'=>'',
|
|
|
'accountName'=>$accountName,
|
|
|
- 'money'=> '0.00'
|
|
|
+ 'money'=> '0.00',
|
|
|
+ 'name'=> '象链'.substr('18669648837',7)
|
|
|
];
|
|
|
$member_id = Db::name('store_member')->insertGetId($data);
|
|
|
if ($member_id){
|
|
|
$code = get32Str(8);
|
|
|
$invite_img = setintivecode($code);
|
|
|
$invite_address = getintiveaddress($code);
|
|
|
- Db::name('store_member')->where('id',$member_id)->update(['name'=>'收藏家'.$member_id,'invite_img'=>$invite_img,'invite_address'=>$invite_address,'invite_code'=>$code]);
|
|
|
+ Db::name('store_member')->where('id',$member_id)->update(['invite_img'=>$invite_img,'invite_address'=>$invite_address,'invite_code'=>$code]);
|
|
|
//邀请好友送积分
|
|
|
if ($invite_code>0){
|
|
|
$invite_friends_integral = getConfigValue('invite_friends_integral');
|