shish 1 год назад
Родитель
Сommit
10760cd403
1 измененных файлов с 0 добавлено и 4 удалено
  1. 0 4
      app-ghs/controllers/CustomController.php

+ 0 - 4
app-ghs/controllers/CustomController.php

@@ -39,10 +39,6 @@ class CustomController extends BaseController
 
         $post = Yii::$app->request->post();
         $shopId = $this->shopId;
-        $home = $post['home'] ?? 1;
-        if ($home == 0) {
-            $post['homeAmount'] = 0;
-        }
         ShopClass::updateById($shopId, $post);
 
         $showStock = $post['showStock'] ?? 0;