|
|
@@ -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()
|
|
|
{
|