浏览代码

update pay order product store rules

abiao 4 年之前
父节点
当前提交
e3b9af2eab
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      go/gopath/src/fohow.com/apps/controllers/pay_controller/pay_exchange_controller.go

+ 1 - 1
go/gopath/src/fohow.com/apps/controllers/pay_controller/pay_exchange_controller.go

@@ -445,7 +445,7 @@ func FindNotEnoughPrd(storeMap map[int64]int64) (bool, string) {
 	}
 	for r_pid, r_nums := range storeMap {
 		product := product_model.GetProductById(r_pid, false)
-		if product.Count > int64(0) && product.Count < r_nums {
+		if product.Count > int64(0) && product.Count < (r_nums+product.SaleNums) {
 			return true, product.Name
 		}
 	}