shish 1 tahun lalu
induk
melakukan
10760cd403
1 mengubah file dengan 0 tambahan dan 4 penghapusan
  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();
         $post = Yii::$app->request->post();
         $shopId = $this->shopId;
         $shopId = $this->shopId;
-        $home = $post['home'] ?? 1;
-        if ($home == 0) {
-            $post['homeAmount'] = 0;
-        }
         ShopClass::updateById($shopId, $post);
         ShopClass::updateById($shopId, $post);
 
 
         $showStock = $post['showStock'] ?? 0;
         $showStock = $post['showStock'] ?? 0;