1.提交缺失的东西

This commit is contained in:
2025-05-28 10:53:31 +08:00
parent fd3b3afb51
commit 828d440083

View File

@ -137,7 +137,6 @@ class GoodsController extends BaseAdminController
$post = $this->request->post(); $post = $this->request->post();
$post['del'] = 0; $post['del'] = 0;
$post['id'] = $post['goods_id'];
//主表验证 //主表验证
@ -191,11 +190,11 @@ class GoodsController extends BaseAdminController
if ($post['status'] == 0) { if ($post['status'] == 0) {
$status = Db::name('goods') $status = Db::name('goods')
->where(['id' => $post['goods_id']]) ->where(['id' => $post['id']])
->value('status'); ->value('status');
if ($status == 1) { if ($status == 1) {
$res = Db::name('team_activity') $res = Db::name('team_activity')
->where(['status' => 1, 'goods_id'=> $post['goods_id']]) ->where(['status' => 1, 'goods_id'=> $post['id']])
->find(); ->find();
if ($res) { if ($res) {
return $this->fail('该商品正在参与拼团,请先关闭后才允许下架'); return $this->fail('该商品正在参与拼团,请先关闭后才允许下架');