diff --git a/app/controller/api/community/Community.php b/app/controller/api/community/Community.php index 0a5fc65e..93fc3d12 100644 --- a/app/controller/api/community/Community.php +++ b/app/controller/api/community/Community.php @@ -640,8 +640,9 @@ class Community extends BaseController $communityInfo = Db::name('community')->where('uid', $this->request->uid())->where('community_id', $id)->where('is_del', 0)->find(); if (!$communityInfo) { return app('json')->fail('委托商品不存在'); - } - $entrustInfo = Db::name('entrust')->where('community_id', $id)->where('entrust_mer_id', $this->request->uid())->where('is_del', 0)->where('status', 0)->fetchSql(false)->find(); + } + $merchantId = Db::name('merchant')->where('uid', $this->request->uid())->value('mer_id'); + $entrustInfo = Db::name('entrust')->where('community_id', $id)->where('entrust_mer_id', $merchantId)->where('is_del', 0)->where('status', 0)->fetchSql(false)->find(); if (!$entrustInfo) { return app('json')->fail('用户无审核此委托商品权限'); } diff --git a/app/controller/api/store/merchant/Merchant.php b/app/controller/api/store/merchant/Merchant.php index 0be883de..f499306a 100644 --- a/app/controller/api/store/merchant/Merchant.php +++ b/app/controller/api/store/merchant/Merchant.php @@ -246,7 +246,7 @@ class Merchant extends BaseController $delivery = $repository->get($id) + systemConfig(['tx_map_key']); $data = array_merge($data,$delivery); $data['sys_bases_status'] = systemConfig('sys_bases_status') === '0' ? 0 : 1; - + $data['type_code'] = Db::name('MerchantType')->where('mer_type_id', $data['type_id'])->value('type_code'); return app('json')->success($data); } diff --git a/public/static.dev/images/cancellation-header.png b/public/static.dev/images/cancellation-header.png new file mode 100644 index 00000000..92c6b0b1 Binary files /dev/null and b/public/static.dev/images/cancellation-header.png differ diff --git a/public/static.dev/images/cancellation-header.png:Zone.Identifier b/public/static.dev/images/cancellation-header.png:Zone.Identifier new file mode 100644 index 00000000..ab3c7a14 --- /dev/null +++ b/public/static.dev/images/cancellation-header.png:Zone.Identifier @@ -0,0 +1,3 @@ +[ZoneTransfer] +ZoneId=3 +HostUrl=https://mer.crmeb.net/static/images/cancellation-header.png diff --git a/public/static/images/cancellation-header.png b/public/static/images/cancellation-header.png new file mode 100644 index 00000000..92c6b0b1 Binary files /dev/null and b/public/static/images/cancellation-header.png differ diff --git a/public/static/images/cancellation-header.png:Zone.Identifier b/public/static/images/cancellation-header.png:Zone.Identifier new file mode 100644 index 00000000..ab3c7a14 --- /dev/null +++ b/public/static/images/cancellation-header.png:Zone.Identifier @@ -0,0 +1,3 @@ +[ZoneTransfer] +ZoneId=3 +HostUrl=https://mer.crmeb.net/static/images/cancellation-header.png