- Timestamp:
- Jan 27, 2015 10:53:31 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified pro-violet-viettel/sourcecode/application/modules/frontend/models/user_model.php ¶
r706 r707 103 103 $sms = preg_replace($aryPatterns, array($trialdays. ' ngay', $username, $password), lang('_SBG_MO_USER_REGISTER_SUCCESS_MSG')); 104 104 $status = 1; 105 $aryPatterns = array('/: collaborator:/');106 $collaboratorMsg = $status . '|'. preg_replace($aryPatterns, array($ collaborator), lang('_SBG_MO_COLLABOLATOR_REGISTER_SUCCESS_MSG'));105 $aryPatterns = array('/:username:/'); 106 $collaboratorMsg = $status . '|'. preg_replace($aryPatterns, array($username), lang('_SBG_MO_COLLABOLATOR_REGISTER_SUCCESS_MSG')); 107 107 break; 108 108 case 2 : … … 327 327 } 328 328 329 public function registerVip($username, $p_code ) {329 public function registerVip($username, $p_code, &$packageData = null) { 330 330 $user = array (); 331 331 $sms = ''; … … 333 333 $result = $this->get_user_by_cellphone ( $username ); 334 334 $package = $this->get_package ( ( int ) $p_code ); 335 335 336 if (!$package) 336 337 { … … 339 340 return $status . '|' . $sms; 340 341 } 342 343 $packageData = $package; 344 341 345 if ($result) { 342 343 346 if ($result ['acc_balanced'] >= $package ['p_price']) { 344 347 $us_id = $result ['us_id']; … … 497 500 $this->db->query ( 'UNLOCK TABLES' ); 498 501 $sql = 'INSERT INTO tblcardlog(sender, us_id, status, pin_code, serial_num, card_value, created_time) VALUES(?,?,?,?,?,?,?)'; 499 $query =$this->db->query ($sql, $cardlog);502 return $this->db->query ($sql, $cardlog); 500 503 } 501 504
Note: See TracChangeset
for help on using the changeset viewer.