|
|
@@ -425,8 +425,8 @@ func CreateOrderNotify(order *order_model.Order, product *product_model.Product)
|
|
|
}
|
|
|
|
|
|
//获取库存不足商品
|
|
|
-func FindNotEnoughPrd(buyList map[int64]int64) (bool, string) {
|
|
|
-
|
|
|
+func FindNotEnoughPrd(storeMap map[int64]int64) (bool, string) {
|
|
|
+ buyList := storeMap
|
|
|
//判断商品库存
|
|
|
for pId, nums := range buyList {
|
|
|
product := product_model.GetProductById(pId, true)
|