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

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

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