|
|
|
@ -360,7 +360,7 @@ class User extends BaseController |
|
|
|
|
$card = $this->request->param('card') ?? ''; |
|
|
|
|
$spread_phone = $this->request->param('spread_phone') ?? ''; |
|
|
|
|
$real_name = $this->request->param('real_name') ?? ''; |
|
|
|
|
$spread_uid2 = $this->request->param('spread_uid2') ?? ''; |
|
|
|
|
$spread_phone2 = $this->request->param('spread_phone2') ?? ''; |
|
|
|
|
|
|
|
|
|
$user = userModel::getDB()->where('uid',$this->user->uid)->find(); |
|
|
|
|
if(!empty($age)){ |
|
|
|
@ -386,8 +386,8 @@ class User extends BaseController |
|
|
|
|
} |
|
|
|
|
$user->spread_uid = $a->uid; |
|
|
|
|
} |
|
|
|
|
if(!empty($spread_uid2)){ |
|
|
|
|
$b = userModel::getDB()->where('phone',$spread_uid2)->find(); |
|
|
|
|
if(!empty($spread_phone2)){ |
|
|
|
|
$b = userModel::getDB()->where('phone',$spread_phone2)->find(); |
|
|
|
|
if(!$b){ |
|
|
|
|
return app('json')->fail('查无此推荐人'); |
|
|
|
|
} |
|
|
|
|