Changeset 677
- Timestamp:
- Dec 29, 2014 11:11:39 AM (10 years ago)
- Location:
- pro-violet-viettel/sourcecode/application/modules/services
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pro-violet-viettel/sourcecode/application/modules/services/controllers/sendmessage.php
r647 r677 214 214 public function collaborator () 215 215 { 216 216 error_reporting(E_ALL); 217 $this->load->model('Services_model'); 218 $result = $this->Services_model->getCollaborator(); 219 220 var_dump($result); 217 221 } 218 222 } -
pro-violet-viettel/sourcecode/application/modules/services/models/services_model.php
r656 r677 363 363 } 364 364 365 public function getCollaborator ($type = 2, $page = 10, $displaypage = 1) { 366 $action = 'http://tempuri.org/InsertMT'; 367 $url = $this->config->item('bccs_service_url'); 368 $username = $this->config->item('bccs_username'); 369 $password = $this->config->item('bccs_password'); 370 $wscode = 'getListShopAndStaftInfo'; 371 $aryParams = array( 372 'user' => $username, 373 'pass' => $password, 374 'wscode' => $wscode, 375 'type' => $type, 376 'page' => $page, 377 'displaypage' => $displaypage 378 ); 379 $xml = $this->load->view('bscc', $aryParams, true); 380 381 $client = new nusoap_client($url); 382 $client->useHTTPPersistentConnection(); 383 $client->soap_defencoding = 'UTF-8'; 384 $client->operation = $action; 385 $result = $client->send($xml, $action); 386 return $result; 387 } 388 365 389 /** 366 390 * formatPhoneNumber
Note: See TracChangeset
for help on using the changeset viewer.