shish hace 2 años
padre
commit
a903c7c71c
Se han modificado 1 ficheros con 13 adiciones y 0 borrados
  1. 13 0
      app-ghs/controllers/ProductController.php

+ 13 - 0
app-ghs/controllers/ProductController.php

@@ -78,6 +78,19 @@ class ProductController extends BaseController
         util::complete();
     }
 
+    //取消满减 ssh 20231216
+    public function actionCancelFullOff()
+    {
+        $get = Yii::$app->request->get();
+        $id = $get['id'] ?? 0;
+        $info = ProductClass::getById($id, true);
+        ProductClass::check($info, $this->mainId);
+        $info->reachNum = 0;
+        $info->reachNumDiscount = 0;
+        $info->save();
+        util::complete();
+    }
+
     //取消特价 ssh 20220901
     public function actionCancelDiscount()
     {