await $.ajax({
"url":"url",
"method":"POST",
"content-type":"appication/json",
"data":JSON.stringify({
"userName": "11",
"ipAddress": "",
"clientType": "WINPC_V1"
}
),
"success":function(response){
console.log("返回结果1"+response);
response = typeof response == "object" ? response : JSON.parse(response);
console.log("返回结果"+response.publickey);
apt.variables.set("publickey", response.publickey);
apt.setRequestBody(
{
"publickey": response.publickey,
"signature": "",// 该处需要对返回数据加密 如何操作?
"userName": "system",
"randomKey":response.randomKey,
"encryptType":"md5",
"userType": "0"
}
);
}
});