Changeset 685 for pro-violet-viettel/sourcecode
- Timestamp:
- Dec 30, 2014 11:06:09 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pro-violet-viettel/sourcecode/application/modules/services/models/services_model.php
r677 r685 35 35 36 36 if ( ! defined('_SBG_MO_PROCCESS_ERR')) define('_SBG_MO_PROCCESS_ERR', 0); 37 38 if ( ! defined('_SBG_GET_COLLABORATOR_FAIL')) define('_SBG_GET_COLLABORATOR_FAIL', -1); 37 39 38 40 Class Services_model extends CI_Model … … 382 384 $client->useHTTPPersistentConnection(); 383 385 $client->soap_defencoding = 'UTF-8'; 386 //$client->soap_defencoding = 'ISO-8859-1'; 387 384 388 $client->operation = $action; 385 389 $result = $client->send($xml, $action); 386 return $result; 390 if ($client->fault || (int)$result['Result']['error'] != 0) { 391 return _SBG_GET_COLLABORATOR_FAIL; 392 } 393 394 return $result['Result']['original']; 387 395 } 388 396
Note: See TracChangeset
for help on using the changeset viewer.