|
@@ -161,7 +161,13 @@ class session_helper
|
|
|
if ($member_id != false) {
|
|
|
$info = $mod_member->getMemberInfo(array('member_mobile' => $mobile));
|
|
|
relation_helper::onRegister($member_id,$mobile,$info['member_nickname']);
|
|
|
- sms_helper::send_nostore_message($mobile,Sms::passwd_code,array('account'=> $mobile,'code'=>$password,'time'=>'5'));
|
|
|
+ $bonus = account_helper::register_bonus($member_id,200);
|
|
|
+ if($bonus == false) {
|
|
|
+ sms_helper::send_nostore_message($mobile,Sms::passwd_code,array('account'=> $mobile,'code'=>$password,'time'=>'5'));
|
|
|
+ } else {
|
|
|
+ sms_helper::send_nostore_message($mobile,Sms::passwd_code,array('account'=> $mobile,'code'=>$password,'time'=>'5'));
|
|
|
+ }
|
|
|
+
|
|
|
} else {
|
|
|
return false;
|
|
|
}
|