/** * @return ApiServiceFacade */ static function share($apiname, $act) { static $ins = null; $config = getC($apiname); self::$act = $act; self::$key = @$config['DES_KEY']; self::$token = @$config["token"]; if (!$ins) { self::$url = @$config['url']; $ins = new ApiServiceFacade(); } return $ins; }
function getApi($apiname, $act, $para) { $res = ApiServiceFacade::share($apiname, $act)->getPara($para); return $res; }