|
@@ -127,8 +127,11 @@ class bonus_helper
|
|
|
static public function topup_bonus($mobile)
|
|
|
{
|
|
|
$mod_bonus = Model('user_bonus');
|
|
|
+
|
|
|
+ Db::beginTransaction();
|
|
|
$bind_bonus = $mod_bonus->getBinded($mobile);
|
|
|
if(empty($bind_bonus)) {
|
|
|
+ Db::commit();
|
|
|
return false;
|
|
|
}
|
|
|
|
|
@@ -157,6 +160,7 @@ class bonus_helper
|
|
|
Db::rollback();
|
|
|
}
|
|
|
}
|
|
|
+ Db::commit();
|
|
|
|
|
|
if(empty($bonusex)) {
|
|
|
return false;
|