|
@@ -242,6 +242,7 @@ class user_bonusModel extends Model
|
|
$cond['usable_time'] = array(array('gt',$cur_time), array('elt',$cur_time + $left_warn_secs),'and');
|
|
$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;
|
|
$cond['expired'] = 0;
|
|
|
|
+ $cond['remain_amount'] = array('gt','0.00');
|
|
|
|
|
|
$ret = $this->getBonusList($cond,'*');
|
|
$ret = $this->getBonusList($cond,'*');
|
|
if(empty($ret)) {
|
|
if(empty($ret)) {
|
|
@@ -253,7 +254,7 @@ class user_bonusModel extends Model
|
|
|
|
|
|
public function getExpired()
|
|
public function getExpired()
|
|
{
|
|
{
|
|
- $cond = array('expired' => 0, 'bonus_status' => 3,'usable_time' => array('elt',time()));
|
|
|
|
|
|
+ $cond = array('expired' => 0, 'remain_amount' => array('gt','0.00'),'bonus_status' => 3,'usable_time' => array('elt',time()));
|
|
$ret = $this->getBonusList($cond,"*");
|
|
$ret = $this->getBonusList($cond,"*");
|
|
|
|
|
|
return $ret;
|
|
return $ret;
|