Esempio n. 1
0
 private static function getFromApi()
 {
     if (!empty(self::$_outputData)) {
         return;
     }
     self::config();
     $tmp = XiiCurl::Run(['url' => self::$_apiUrl, 'data' => self::$_apiCondition]);
     if ($tmp['errorCode']) {
         self::$_outputData = XiiUtil::JsonDecode($tmp['data']);
         self::$_dataFrom = self::DATA_FROM_API;
     } else {
         self::$_requestError[] = $tmp['errorMsg'];
     }
 }
Esempio n. 2
0
 private static function getFromApi()
 {
     return XiiCurl::Run(['url' => self::$_apiUrl, 'data' => self::$_apiCondition]);
 }