Browse Source

预售 设置

shish 3 years ago
parent
commit
21d6fcd2a1
1 changed files with 2 additions and 4 deletions
  1. 2 4
      app-ghs/controllers/ShopController.php

+ 2 - 4
app-ghs/controllers/ShopController.php

@@ -53,10 +53,8 @@ class ShopController extends BaseController
     public function actionBookSet()
     public function actionBookSet()
     {
     {
         $get = Yii::$app->request->get();
         $get = Yii::$app->request->get();
-        $kiloFee = $get['kiloFee'] ?? 0;
-        $miniKilo = $get['miniKilo'] ?? 0;
-        $this->shop->kiloFee = $kiloFee;
-        $this->shop->miniKilo = $miniKilo;
+        $presell = $get['presell'] ?? 0;
+        $this->shop->presell = $presell;
         $this->shop->save();
         $this->shop->save();
         util::complete();
         util::complete();
     }
     }