| xqd
@@ -85,9 +85,16 @@ class HomeService
|
|
|
}
|
|
|
|
|
|
//用户详情
|
|
|
- public function user_detail($user_id){
|
|
|
+ public function user_detail($param){
|
|
|
$user = auth('api')->user();
|
|
|
+ if(!empty($param['user_id'])&& $param['user_id']>0){
|
|
|
+ $touser = User::query()->where('user_id',$param['user_id'])->first();
|
|
|
+ }
|
|
|
|
|
|
+ if(!empty($param['tencent_im_user_id'])){
|
|
|
+ $touser = User::query()->where('tencent_im_user_id',$param['tencent_im_user_id'])->first();
|
|
|
+ }
|
|
|
+ $user_id = $touser->id;
|
|
|
|
|
|
//判断逛一逛用户和非会员用户
|
|
|
if(!$user){
|