|
@@ -26,7 +26,7 @@ Class User extends Core
|
|
|
}
|
|
|
$info = Dever::db('active/order')->getNum(array('uid'=>$this->uid,'active_id'=>$order['active_id']));
|
|
|
$active = Dever::db('active/info')->find($order['active_id']);
|
|
|
- if ($info['total'] >= $active['num']) {
|
|
|
+ if ($active['num']>0 && $info['total'] >= $active['num']) {
|
|
|
Dever::alert('您已超过限购数量');
|
|
|
}
|
|
|
$jump = Dever::input('jump');
|