/** * 实例化类和指定API KEY * @param apikey string * @return instance object */ public static function getInstance($apikey) { if (self::$instance == NULL) { self::$instance = new self(); self::$apikey = $apikey; } return self::$instance; }