Kaynağa Gözat

修复delete问题

chenxiqiang 6 yıl önce
ebeveyn
işleme
e05a4d6337

+ 2
- 1
manage-server/app/Http/Controllers/ProductController.php Dosyayı Görüntüle

@@ -28,9 +28,10 @@ class ProductController extends Controller
28 28
         } else {
29 29
             $product = new Product;
30 30
             $product->status = 0;
31
+            $product->collect_num = 0;
32
+            $product->sell_num = 0;
31 33
         }
32 34
         if ($name && $info && $classify && $color) {
33
-            $product->collect_num = 0;
34 35
             $product->name = $name;
35 36
             $product->info = $info;
36 37
             $product->color = $color;

Loading…
İptal
Kaydet