示例#1
0
文件: api.php 项目: Atropin/4SWeb
 private static function getStandingsXml()
 {
     self::$standingsXml = API::getApiXmlByUrl(self::$url);
     //todo remove and fix
     //CURL error: Unknown SSL protocol error in connection to standings.goonfleet.com:443
     //sent update request to provider
     echo self::$standingsXml . "<br/>";
     if (!self::$standingsXml) {
         self::$errorInfo = "Unknown error.";
     }
     if (StrHelper::startsWith(self::$standingsXml, "CURL")) {
         self::$errorInfo = self::$standingsXml;
     }
     if (isset(self::$standingsXml->error['code'])) {
         self::$errorInfo = self::$standingsXml->error['code'] . " " . self::$standingsXml->error;
     }
 }