创建一个用于访问子租户自定义接口的客户端。
子租户的 id
import * as http from 'http';let childTenantId = "动态获取子租户的ID";let cli = http.newChildClient(childTenantId);let resp = cli.get("/service/WD__D/0.0.1/getsimple");console.log(resp.body); Copy
import * as http from 'http';let childTenantId = "动态获取子租户的ID";let cli = http.newChildClient(childTenantId);let resp = cli.get("/service/WD__D/0.0.1/getsimple");console.log(resp.body);
创建一个用于访问子租户自定义接口的客户端。