Your Name 3 年之前
父節點
當前提交
13dbba49ad
共有 1 個文件被更改,包括 1 次插入1 次删除
  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'] ) {