- Timestamp:
- Nov 20, 2014 11:00:32 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pro-violet-viettel/sourcecode/application/modules/frontend/models/user_model.php
r574 r579 71 71 } 72 72 73 public function register($username, $collaborator, &$ status= '') {73 public function register($username, $collaborator, &$collaboratorMsg = '') { 74 74 $user = array (); 75 75 $password = $this->create_random_password (); … … 80 80 $token = md5 ( $username . self::TOKENPW ); 81 81 $phone = $username; 82 $status = 0; 82 83 83 84 if (! is_null ( $collaborator ) || $collaborator != '') { 84 85 if (! $this->isExistcollaborator ( $collaborator )) { 85 86 $sms = "Khong tim thay cong tac vien nao co so dien thoai [" . $collaborator . "] tren soanbaigiang.smas.vn"; 86 $ status = 0;87 $collaboratorMsg = $status . '|'.$sms; 87 88 return $status . '|' . $sms; 88 89 } … … 101 102 { 102 103 $sms = "Tam thoi Qui vi khong the dang ky duoc. Xin thu lai sau. Cam on!"; 103 $ status = 0;104 $collaboratorMsg = $status . '|'.$sms; 104 105 return $status . '|' . $sms; 105 106 } … … 120 121 $sms = "Chuc mung Qui vi da dang ky thanh cong tai khoan Soan Bai giang Online. Hay dang nhap vao soanbaigiang.smas.vn voi ten truy nhap " . $username . ", mat khau " . $password . " de su dung."; 121 122 $status = 1; 123 $collaboratorMsg = $status . '|'. 'Ban da dang ky thanh cong dich vu Soan bai giang Online cho '.$username; 122 124 break; 123 125 case 2 : … … 125 127 $sms = "So dien thoai cua Qui vi da duoc dang ky"; 126 128 $status = 0; 129 $collaboratorMsg = $status . '|'. 'So dien thoai '.$username.' da duoc dang ky'; 127 130 break; 128 131 default : 129 132 $status = 0; 130 133 $sms = $errMsg; 134 $collaboratorMsg = $status . '|'. $sms; 131 135 break; 132 136 } … … 258 262 259 263 $result = $this->get_user_by_cellphone ( $username ); 264 260 265 if ($result) { 261 266 $us_id = $result ['us_id']; … … 368 373 $user ['updated_time'] = date ( 'Y-m-d H:i:s' ); 369 374 $this->updateUser ( $us_id, $user ); 370 $sms = "Qui vi da nap thanh cong " . $amount . " VN Ävao tai khoan " . $username . " tren soanbaigiang.smas.vn";375 $sms = "Qui vi da nap thanh cong " . $amount . " VND vao tai khoan " . $username . " tren soanbaigiang.smas.vn"; 371 376 $status = 1; 372 377 } else {
Note: See TracChangeset
for help on using the changeset viewer.