afa 7 月之前
父节点
当前提交
3f47ad562b
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      application/common/model/ProductBuying.php

+ 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
         ]);