|
|
@@ -900,6 +900,9 @@ class ProductRepository extends BaseRepository
|
|
900
|
900
|
$item['sales'] = $item['sales'] + $item['ficti'];
|
|
901
|
901
|
unset($item['ficti']);
|
|
902
|
902
|
$item['yanglao'] = $this->yanglaojin($item['product_id']);
|
|
|
903
|
+ $item['icon_type_map'] = [
|
|
|
904
|
+ 1 => 'https://api.hxxfb.com/share/xcx/icon/icon_tjms.png'
|
|
|
905
|
+ ];
|
|
903
|
906
|
return $item;
|
|
904
|
907
|
});
|
|
905
|
908
|
|
|
|
@@ -1621,6 +1624,7 @@ class ProductRepository extends BaseRepository
|
|
1621
|
1624
|
if ($data['share_is'] == 1 || $data['pension_is'] == 1) {
|
|
1622
|
1625
|
|
|
1623
|
1626
|
$member_settings = merchantConfig($merId, 'member_settings');
|
|
|
1627
|
+ $member_settings = $member_settings ?: [];
|
|
1624
|
1628
|
|
|
1625
|
1629
|
$where['mer_id'] = $merId;
|
|
1626
|
1630
|
$where['state'] = 1;
|