Your Name 3 년 전
부모
커밋
7bb801f6f1
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']) {
 						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('您已超过限购数量');
+						}
 					}
 				}
 			}