Changeset 528 for pro-violet-viettel/sourcecode/application
- Timestamp:
- Nov 16, 2014 2:53:31 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pro-violet-viettel/sourcecode/application/modules/services/models/services_model.php
r520 r528 92 92 case _SBG_MO_REGISTER: 93 93 case _SBG_MO_REGISTER_FOR: 94 $userName = isset($aryContents[2]) ? $aryContents[2]:$sentNumber; 95 $collaborator = isset($aryContents[2]) ? $aryContents[0]:null; 96 $smsReturn = $this->objUserModel->register($userName, $collaborator); 94 $userName = isset($aryContents[2]) ? $aryContents[2] : $sentNumber; 95 $collaborator = isset($aryContents[2]) ? $sentNumber:null; 96 $sms = $this->objUserModel->register($userName, $collaborator); 97 if ($case == _SBG_MO_REGISTER_FOR) { 98 $smsReturn = '1|Ban da dang ky thanh cong dich vu Soan bai giang Online cho '. $userName; 99 $arySMS = explode ('|', $sms); 100 $sendMT = $this->sendMT($userName, $arySMS[1]); 101 } 102 else { 103 $smsReturn = $sms; 104 } 97 105 break; 98 106 case _SBG_MO_PHONENUM_CHANGE: … … 101 109 $smsReturn = $this->objUserModel->changeProfile($sentNumber, $oldPhoneNumber, $password); 102 110 $sendMT = $this->sendMT($oldPhoneNumber, $smsReturn); 103 $smsReturn .= ' - SendMT: ';104 111 break; 105 112 case _SBG_MO_PASSWORD_RECOVERY: … … 173 180 } 174 181 175 $aryTopupResult = $result['TopUpResult']; 182 $keys = array_keys($result); 183 184 $aryTopupResult = $result[$keys[0]]; 176 185 177 186 if ($aryTopupResult['Success'] == 'false') {
Note: See TracChangeset
for help on using the changeset viewer.