更新转售商品接口详情

This commit is contained in:
yaooo 2023-08-18 11:07:03 +08:00
parent 6462c0b186
commit f24250c990

View File

@ -586,6 +586,10 @@ class Community extends BaseController
if (!empty($communityInfo['image'])) {
$communityInfo['image'] = explode(',', $communityInfo['image']);
}
$merInfo = Db::name('StoreService')->alias('ss')->leftJoin('Merchant m','ss.mer_id = M.mer_id')->where('ss.uid', $this->request->uid())->field('m.mer_avatar, m.mer_name')->find();
$communityInfo['mer_name'] = $merInfo['mer_name'] ?? '';
$communityInfo['mer_avatar'] = $merInfo['mer_avatar'] ?? '';
$resaleList = Db::name('resale')->alias('r')->leftJoin('store_product_attr_value s','r.product_attr_unique = s.unique')->where('r.community_id', $id)->where('r.is_del', 0)->field(['r.product_id', 'r.product_attr_unique', 'r.number', 'r.price', 'r.float_rate', 'r.deliver_method', 'r.resale_type', 's.detail', 's.sku', 's.image'])->select();
if ($resaleList) $resaleList = $resaleList->toArray();
foreach($resaleList as $k=>$v) {