mirror of
https://gitee.com/dromara/sms4j.git
synced 2025-12-07 01:18:33 +08:00
fix 修复调用百度接口提示缺少请求头 #IAR2RU
This commit is contained in:
parent
8aca0fd957
commit
8a0dd4bc3d
@ -98,6 +98,7 @@ public class BaiduUtils {
|
|||||||
Map<String, String> headers = new HashMap<>(2);
|
Map<String, String> headers = new HashMap<>(2);
|
||||||
headers.put(Constant.AUTHORIZATION, authorization);
|
headers.put(Constant.AUTHORIZATION, authorization);
|
||||||
headers.put("host", config.getHost());
|
headers.put("host", config.getHost());
|
||||||
|
headers.put("x-bce-date", SmsDateUtils.normDateGmt8(new Date()));
|
||||||
return headers;
|
return headers;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user