...
|
...
|
@@ -25,6 +25,7 @@ class YHMApi_App_V2_Passport extends YHMApi_App_V1_Passport { |
|
|
return self::result(401, "店铺不存在");
|
|
|
}
|
|
|
$userInfo = YHMPassport_Models_Profile_Client::getByUid($uid);
|
|
|
$userInfo['head_ico'] = YHMUpload_Images::template(($userInfo['head_ico']?:YHMConfig_Image::USER_BACKGROUD_IMG), 'yhfair-user-head');
|
|
|
//TODO 获得卖家用户好评率
|
|
|
$userInfo['reputably'] = floor(YHMComment_Models_Comment_Client::getReputablyByStoreid($store_id) * 100);
|
|
|
return self::result(200, "获取成功", $userInfo);
|
...
|
...
|
@@ -53,7 +54,10 @@ class YHMApi_App_V2_Passport extends YHMApi_App_V1_Passport { |
|
|
);
|
|
|
if(!empty($list)){
|
|
|
foreach($list as $l){
|
|
|
$retData['list'][] = YHMPassport_Models_Profile_Client::getByUid($l['uid']);
|
|
|
|
|
|
$uData = YHMPassport_Models_Profile_Client::getByUid($l['uid']);
|
|
|
$uData['head_ico'] = YHMUpload_Images::template(($uData['head_ico']?:YHMConfig_Image::USER_BACKGROUD_IMG), 'yhfair-user-head');
|
|
|
$retData['list'][] = $uData;
|
|
|
}
|
|
|
}
|
|
|
return self::result(200,'获取成功',$retData);
|
...
|
...
|
|