浏览代码

Merge branch 'master' of ssh://git.dever.cc:10022/dever-product/churen

rabin 3 年之前
父节点
当前提交
7eed96a4fb
共有 1 个文件被更改,包括 4 次插入2 次删除
  1. 4 2
      learn/active/lib/Active.php

+ 4 - 2
learn/active/lib/Active.php

@@ -60,8 +60,10 @@ class Active
 					if ($v['num'] > 0 && $num > $v['num']) {
 					if ($v['num'] > 0 && $num > $v['num']) {
 						Dever::alert('您已超过限购数量');
 						Dever::alert('您已超过限购数量');
 					}
 					}
-					if ($order && $order['total']  && $v['num'] > 0 && $order['total'] > $v['num']) {
-						Dever::alert('您已超过限购数量');
+					if ($order) {
+						if ($order['total']  && $v['num'] > 0 && ($order['total']+$num) > $v['num']) {
+							Dever::alert('您已超过限购数量');
+						}
 					}
 					}
 				}
 				}
 			}
 			}