static function onConstruct($conf) { self::$host = $conf->host . '/' . $conf->org_name . '/' . $conf->app_name; self::$client_id = $conf->client_id; self::$client_secret = $conf->client_secret; //使用memcache缓存token $frontCache = new FrontData(["lifetime" => 86400]); self::$mCache = new BackMemCached($frontCache, ["servers" => [["host" => "127.0.0.1", "port" => "11211", "weight" => "1"]]]); }