|
|
@@ -18,7 +18,7 @@ class CustomClass extends BaseClass
|
|
|
{
|
|
|
return self::add($data);
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
//获取客户信息 shish 2021.2.4
|
|
|
public static function getCustom($id)
|
|
|
{
|
|
|
@@ -47,8 +47,10 @@ class CustomClass extends BaseClass
|
|
|
$currentInfo = isset($retailInfo[$customSjId]) ? $retailInfo[$customSjId] : [];
|
|
|
//组合头像
|
|
|
$currentInfo = business::formatMerchantLogo($currentInfo);
|
|
|
- $list[$key]['smallAvatar'] = isset($currentInfo['smallLogoUrl']) ? $currentInfo['smallLogoUrl'] : '';
|
|
|
- $list[$key]['avatar'] = isset($currentInfo['logoUrl']) ? $currentInfo['logoUrl'] : '';
|
|
|
+ $smallAvatar = !empty($currentInfo['smallLogoUrl']) ? $currentInfo['smallLogoUrl'] : Yii::$app->params['imgHost'] . '/hhb_small.png';
|
|
|
+ $avatar = !empty($currentInfo['logoUrl']) ? $currentInfo['logoUrl'] : Yii::$app->params['imgHost'] . '/hhb_small.png';
|
|
|
+ $list[$key]['smallAvatar'] = $smallAvatar;
|
|
|
+ $list[$key]['avatar'] = $avatar;
|
|
|
$list[$key]['visitTime'] = '06-11 12:50';
|
|
|
$list[$key]['level'] = 0;
|
|
|
}
|