|
@@ -269,6 +269,11 @@ class predeposit_helper
|
|
$this->write_rates($this->mBonusState,$bonus_rate);
|
|
$this->write_rates($this->mBonusState,$bonus_rate);
|
|
$this->mRates->clean();
|
|
$this->mRates->clean();
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ if(intval($this->mTotalPred * 100 + 0.5) < intval($this->mRates->total() * 100 + 0.5)) {
|
|
|
|
+ $this->mTotalPred = $this->mRates->total();
|
|
|
|
+ Model('member')->editMember(array('member_id' => $this->member_id),array('available_predeposit' => $this->mTotalPred));
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
public function __destruct()
|
|
public function __destruct()
|