afa 7 сар өмнө
parent
commit
3f47ad562b

+ 2 - 2
application/common/model/ProductBuying.php

@@ -52,13 +52,13 @@ class ProductBuying extends Model
     }
 
     //创建订单
-    public static function setCreateBuying(int $userId, int $productId, int $num, float $minPrice, float $totalPrice)
+    public static function setCreateBuying(int $userId, int $productId, int $stock, float $minPrice, float $totalPrice)
     {
 
         return self::create([
             'user_id'       => $userId,
             'product_id'    => $productId,
-            'num'           => $num,
+            'stock'         => $stock,
             'min_price'     => $minPrice,
             'total_price'   => $totalPrice
         ]);