Browse Source

取消特价

shish 3 years ago
parent
commit
df68014991
1 changed files with 2 additions and 0 deletions
  1. 2 0
      app-ghs/controllers/ProductController.php

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

@@ -85,6 +85,8 @@ class ProductController extends BaseController
         $info = ProductClass::getById($id, true);
         ProductClass::check($info, $this->mainId);
         $info->discountPrice = 0;
+        $info->skDiscountPrice = 0;
+        $info->hjDiscountPrice = 0;
         $info->save();
         util::complete();
     }