|
|
@@ -9,6 +9,7 @@ namespace bizGhs\order\traits;
|
|
|
use biz\ghs\classes\GhsClass;
|
|
|
use bizGhs\admin\classes\AdminClass;
|
|
|
use bizGhs\product\classes\ProductClass;
|
|
|
+use common\components\imgUtil;
|
|
|
|
|
|
trait OrderTrait
|
|
|
{
|
|
|
@@ -50,10 +51,12 @@ trait OrderTrait
|
|
|
$ghsIds = array_unique(array_filter(array_column($list, 'ghsId')));
|
|
|
$ghsInfo = GhsClass::getGhsByIds($ghsIds);
|
|
|
|
|
|
+
|
|
|
foreach ($list as $k => $val) {
|
|
|
$ghsId = $val['ghsId'] ?? 0;
|
|
|
$list[$k]['supplierName'] = $ghsInfo[$ghsId]['name'] ?? '';
|
|
|
- $list[$k]['supplierAvatar'] = $ghsInfo[$ghsId]['smallLogoUrl'] ?? '';
|
|
|
+ $avatar = imgUtil::groupImg($ghsInfo[$ghsId]['avatar']);
|
|
|
+ $list[$k]['supplierAvatar'] = $avatar;
|
|
|
$list[$k]['supplierMobile'] = $ghsInfo[$ghsId]['mobile'] ?? '';
|
|
|
$list[$k]['supplierAddress'] = $ghsInfo[$ghsId]['address'] ?? '';
|
|
|
}
|