更新审核委托商品异常
This commit is contained in:
parent
504787899a
commit
cb42e2d8ce
@ -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();
|
$communityInfo = Db::name('community')->where('uid', $this->request->uid())->where('community_id', $id)->where('is_del', 0)->find();
|
||||||
if (!$communityInfo) {
|
if (!$communityInfo) {
|
||||||
return app('json')->fail('委托商品不存在');
|
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) {
|
if (!$entrustInfo) {
|
||||||
return app('json')->fail('用户无审核此委托商品权限');
|
return app('json')->fail('用户无审核此委托商品权限');
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user