参数更换

main
limu 10 months ago
parent 29d6290f8a
commit ffcc499cce
  1. 6
      app/controller/api/user/User.php

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

Loading…
Cancel
Save