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