This commit is contained in:
wucongxing8150 2025-08-05 10:16:22 +08:00
parent 5f7e7a0c5f
commit c0f182de55
3 changed files with 7 additions and 5 deletions

View File

@ -21,4 +21,7 @@ public class AppConfig {
@Value("${app.platformPointAccount}")
private String platformPointAccount;
@Value("${app.access-token}")
private String accessToken;
}

View File

@ -380,12 +380,10 @@ public class UserService {
params.put("mobile", mobile);
params.put("platform", "case");
params.put("timestamp", System.currentTimeMillis() / 1000);
String signature = Sha256Util.getSign(params, "zd8V2LYD4achjFZrbHgD2PuzKuthDCVx");
String signature = Sha256Util.getSign(params, appConfig.getAccessToken());
params.put("signature", signature);
String result = HttpUtil.post(appConfig.getApiUrl() + "/hcp/getInfo", params);
log.info("11111");
String result = HttpUtil.post(appConfig.getApiUrl() + "/hcp/mobileLogin", params);
log.info(result);
log.info("2222");
// 解析JSON
ObjectMapper objectMapper = new ObjectMapper();
Map resultMap = objectMapper.readValue(result, Map.class);

View File

@ -82,4 +82,5 @@ app:
secretKey: nmBCF@hEK6eN&h03dYUin@AU3%bMf%$O
imagePrefix: https://dev-doc.igandan.com/app
platform: case-storge
platformPointAccount: GDXZadmin01
platformPointAccount: GDXZadmin01
access-token: XUUHml5iQ9mlFsa8QqOwyBrLI2nGGGxJ