1
This commit is contained in:
parent
0138c13069
commit
ee1960550d
@ -9,6 +9,7 @@ use app\api\validate\UserValidate;
|
|||||||
use app\common\enum\PayEnum;
|
use app\common\enum\PayEnum;
|
||||||
use app\common\logic\PaymentLogic;
|
use app\common\logic\PaymentLogic;
|
||||||
use app\common\model\user\User;
|
use app\common\model\user\User;
|
||||||
|
use app\common\model\user\UserAddress;
|
||||||
use app\common\model\user_sign\UserSign;
|
use app\common\model\user_sign\UserSign;
|
||||||
use support\Cache;
|
use support\Cache;
|
||||||
use think\Exception;
|
use think\Exception;
|
||||||
@ -244,6 +245,19 @@ class UserController extends BaseApiController
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 用户信息
|
||||||
|
*/
|
||||||
|
public function other_user_info(){
|
||||||
|
$mobile=$this->request->get('mobile');
|
||||||
|
if($mobile){
|
||||||
|
$user=User::where('mobile',$mobile)->field('id,avatar,real_name,nickname,mobile,user_ship,purchase_funds')->find();
|
||||||
|
if($user){
|
||||||
|
$user['address_info']=UserAddress::where('uid',$user['id'])->where('is_default',1)->find();
|
||||||
|
}
|
||||||
|
return $this->success('ok',$user);
|
||||||
|
}
|
||||||
|
return $this->success('ok',[]);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user