由于页面存在跨域,需要从三方服务器获取数据的接口供页面调用,确保页面的出口统一。
hilink.requestThirdPartConfig( "json_body", // string 三方服务器完整的URL地址 "resultCallback" // resultCallback,成功或失败时,将调用传入resultStr返回结果 );
json_body中列出请求所需参数,格式如下:
{
"domain": "https://xxx.xxxx.com", // 请求域名
"path": "/xxxxxx/xxxx.xxxx", // 请求路径
"method": "GET", // 请求方法
"param": { // 请求参数
"xxx": "xxx",
"xxx": "xxx"
}
}