This commit is contained in:
mkm 2024-01-21 20:51:02 +08:00
parent d004a8ad16
commit 1b2aed7a4f

View File

@ -673,6 +673,10 @@ class UserRepository extends BaseRepository
];
if($code){
$data['promotion_code']=$code;
$shop=explode('shop_',$code);
if(count($shop)==2){
$data['spread_uid']=$shop[1];
}
Cache::delete('promote_'.$ip);
}
return $this->create($user_type, $data);