update sms4j-provider/src/main/java/org/dromara/sms4j/submail/service/SubMailSmsImpl.java.

fix 修复SubMail获取timestamp时,由于取值key错误导致无法获取timestamp,导致短信无法发送

Signed-off-by: Bleachtred <bleachtred@163.com>
This commit is contained in:
Bleachtred 2024-10-23 03:07:44 +00:00 committed by Gitee
parent e81eeffe40
commit 1a31bb5189
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -360,6 +360,6 @@ public class SubMailSmsImpl extends AbstractSmsBlend<SubMailConfig> {
private String timestamp(){ private String timestamp(){
JSONObject resp = http.getUrl("https://api-v4.mysubmail.com/service/timestamp"); JSONObject resp = http.getUrl("https://api-v4.mysubmail.com/service/timestamp");
return resp.getStr("resp"); return resp.getStr("timestamp");
} }
} }