shish 5 năm trước cách đây
mục cha
commit
d24b4e0c30
1 tập tin đã thay đổi với 5 bổ sung3 xóa
  1. 5 3
      biz-ghs/custom/classes/CustomClass.php

+ 5 - 3
biz-ghs/custom/classes/CustomClass.php

@@ -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;
 		}