Changeset 677 for pro-violet-viettel/sourcecode/application/modules/services/models/services_model.php
- Timestamp:
- Dec 29, 2014 11:11:39 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.