Your Name 3 years ago
parent
commit
13dbba49ad
1 changed files with 1 additions and 1 deletions
  1. 1 1
      learn/active/lib/Active.php

+ 1 - 1
learn/active/lib/Active.php

@@ -69,7 +69,7 @@ class Active
 			}
 		} else {
 			if ($order) {
-				if ($order['total'] && ($order['total'] + $num) > $data['num']) {
+				if ($data['num'] > 0 && $order['total'] && ($order['total'] + $num) > $data['num']) {
 					Dever::alert('您已超过限购数量');
 				}
 			} elseif ($data['num']>0 && $num > $data['num'] ) {