4444
This commit is contained in:
parent
5f7e7a0c5f
commit
c0f182de55
@ -21,4 +21,7 @@ public class AppConfig {
|
||||
|
||||
@Value("${app.platformPointAccount}")
|
||||
private String platformPointAccount;
|
||||
|
||||
@Value("${app.access-token}")
|
||||
private String accessToken;
|
||||
}
|
||||
|
||||
@ -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);
|
||||
|
||||
@ -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
|
||||
Loading…
x
Reference in New Issue
Block a user