|
@@ -232,7 +232,7 @@ class user_bonusModel extends Model
|
|
|
|
|
|
$cond = array();
|
|
|
$cond['usable_time'] = array(array('gt',$cur_time), array('elt',$cur_time + $left_warn_secs),'and');
|
|
|
- $cond['notify_time'] = array(array('eq',0), array('elt',$cur_time + $period_secs),'or');
|
|
|
+ $cond['notify_time'] = array(array('eq',0), array('elt',$cur_time - $period_secs),'or');
|
|
|
$cond['expired'] = 0;
|
|
|
|
|
|
$ret = $this->getBonusList($cond,$field);
|