更新编辑转售商品

This commit is contained in:
yaooo 2023-08-19 09:17:04 +08:00
parent ddc9c67448
commit 2d70eccc45

View File

@ -612,7 +612,7 @@ class Community extends BaseController
*/
public function editResale($id)
{
$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)->whereIn('status', '0,-1')->where('is_del', 0)->fetchSql()->find();
if (!$communityInfo) {
return app('json')->fail('转售商品不存在');
}