1.提交缺失的东西
This commit is contained in:
@ -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('该商品正在参与拼团,请先关闭后才允许下架');
|
||||||
|
|||||||
Reference in New Issue
Block a user