u8生产环境配置

This commit is contained in:
xiang2lin 2024-06-27 09:51:07 +08:00
parent dfab9aa128
commit 456a3fdbd6
1 changed files with 2 additions and 2 deletions

View File

@ -18,10 +18,10 @@ public class U8Util {
//获取token //获取token
public static String getToken() { public static String getToken() {
String url = "http://192.168.2.240:8099/Api/Base/GetToken"; String url = "http://192.168.16.254:8090/Api/Base/GetToken";
JSONObject jsonObject = new JSONObject(); JSONObject jsonObject = new JSONObject();
jsonObject.put("appid",""); jsonObject.put("appid","");
jsonObject.put("secretkey", "lDihm+RTN8y9digs7f/KtU2pyoJkYyoT+8rNL2TxBEj+QbXU6dvw6fGcy4VDZWi8"); jsonObject.put("secretkey", "TTbL3vW+7zacFsXMC6+Shb5glU+akoflYopJ0OdEGVA=");
logger.info("获取U8token参数:{}", jsonObject.toJSONString()); logger.info("获取U8token参数:{}", jsonObject.toJSONString());
String token = HttpRequest.post( url).body(jsonObject.toJSONString()).timeout(60000).execute().body(); String token = HttpRequest.post( url).body(jsonObject.toJSONString()).timeout(60000).execute().body();
logger.info("token返回参数:{}", jsonObject.toJSONString()); logger.info("token返回参数:{}", jsonObject.toJSONString());