他的回复:
查询用户信息 importClass(com.roma.apic.livedata.client.v1.HttpClient); importClass(com.huawei.livedata.lambdaservice.util.CacheUtils); importClass(com.roma.apic.livedata.provider.v1.APIConnectResponse); function execute(data) { var event = JSON.parse(data); var httpClient = new HttpClient(); var IVSIAMEndpoint = "#{IVSIAMEndpoint}"; var sessionIDhxd = ""; var ContentType = "application/json;charset=utf8"; var cache = new CacheUtils(); 上面的var httpClient = new HttpClient(); new HttpClient();改为new HttpClient(false); new Httpclient() 这里默认为true 会拿默认的cookie,改为false会拿设置的请求的cookie