mirror of
https://gitee.com/dromara/sms4j.git
synced 2025-12-06 08:58:38 +08:00
Merge branch 'refs/heads/dev-3.0.x'
# Conflicts: # README.md
This commit is contained in:
commit
d7589aa7a1
@ -18,7 +18,7 @@
|
||||
[github](https://github.com/dromara/sms4j)
|
||||
[gitcode](https://gitcode.com/dromara/SMS4J)
|
||||
|
||||
#### [官方文档](http://sms4j.com)
|
||||
#### [官方文档](https://sms4j.com)
|
||||
#### [JavaDoc文档](https://apidoc.gitee.com/dromara/sms4j/)
|
||||
|
||||
## 支持厂商一览
|
||||
|
||||
@ -2,6 +2,7 @@ package org.dromara.sms4j.api.proxy;
|
||||
|
||||
|
||||
import org.dromara.sms4j.api.entity.SmsResponse;
|
||||
import org.dromara.sms4j.comm.exception.SmsBlendException;
|
||||
|
||||
import java.lang.reflect.Method;
|
||||
/**
|
||||
@ -45,5 +46,6 @@ public interface SmsProcessor extends Order {
|
||||
* @author :Wind
|
||||
*/
|
||||
default void exceptionHandleProcessor(Method method, Object source, Object[] param, Exception exception) throws RuntimeException {
|
||||
throw new SmsBlendException(exception);
|
||||
}
|
||||
}
|
||||
|
||||
@ -232,7 +232,7 @@ public class SmsUtils {
|
||||
if (isEmpty(map)) {
|
||||
return new String[0];
|
||||
}
|
||||
return toArray(map.values(), SmsUtils::isNotEmpty, s -> s, new String[0]);
|
||||
return toArray(map.values(), SmsUtils::isNotEmpty, s -> s, new String[map.size()]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@ -24,7 +24,7 @@ public class CtyunUtils {
|
||||
* 获取签名时间戳
|
||||
*/
|
||||
private static String signatureTime(){
|
||||
return SmsDateUtils.pureDateUtcGmt(new Date());
|
||||
return SmsDateUtils.pureDateUtcGmt8(new Date());
|
||||
}
|
||||
|
||||
/**
|
||||
@ -34,7 +34,7 @@ public class CtyunUtils {
|
||||
Map<String, String> map = new ConcurrentHashMap<>(4);
|
||||
|
||||
// 构造时间戳
|
||||
String signatureDate = SmsDateUtils.pureDateGmt(new Date());
|
||||
String signatureDate = SmsDateUtils.pureDateGmt8(new Date());
|
||||
String signatureTime = signatureTime();
|
||||
// 构造请求流水号
|
||||
String uuid = UUID.randomUUID().toString();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user