|
@@ -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'] ) {
|