Your Name 3 lat temu
rodzic
commit
7bb801f6f1
1 zmienionych plików z 4 dodań i 2 usunięć
  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('您已超过限购数量');
+						}
 					}
 				}
 			}