Merge branch 'refs/heads/dev-3.0.x'

# Conflicts:
#	README.md
This commit is contained in:
wind 2024-09-07 17:53:19 +08:00
commit d7589aa7a1
4 changed files with 6 additions and 4 deletions

View File

@ -18,7 +18,7 @@
[github](https://github.com/dromara/sms4j) [github](https://github.com/dromara/sms4j)
[gitcode](https://gitcode.com/dromara/SMS4J) [gitcode](https://gitcode.com/dromara/SMS4J)
#### [官方文档](http://sms4j.com) #### [官方文档](https://sms4j.com)
#### [JavaDoc文档](https://apidoc.gitee.com/dromara/sms4j/) #### [JavaDoc文档](https://apidoc.gitee.com/dromara/sms4j/)
## 支持厂商一览 ## 支持厂商一览

View File

@ -2,6 +2,7 @@ package org.dromara.sms4j.api.proxy;
import org.dromara.sms4j.api.entity.SmsResponse; import org.dromara.sms4j.api.entity.SmsResponse;
import org.dromara.sms4j.comm.exception.SmsBlendException;
import java.lang.reflect.Method; import java.lang.reflect.Method;
/** /**
@ -45,5 +46,6 @@ public interface SmsProcessor extends Order {
* @author :Wind * @author :Wind
*/ */
default void exceptionHandleProcessor(Method method, Object source, Object[] param, Exception exception) throws RuntimeException { default void exceptionHandleProcessor(Method method, Object source, Object[] param, Exception exception) throws RuntimeException {
throw new SmsBlendException(exception);
} }
} }

View File

@ -232,7 +232,7 @@ public class SmsUtils {
if (isEmpty(map)) { if (isEmpty(map)) {
return new String[0]; 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()]);
} }
/** /**

View File

@ -24,7 +24,7 @@ public class CtyunUtils {
* 获取签名时间戳 * 获取签名时间戳
*/ */
private static String signatureTime(){ 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); Map<String, String> map = new ConcurrentHashMap<>(4);
// 构造时间戳 // 构造时间戳
String signatureDate = SmsDateUtils.pureDateGmt(new Date()); String signatureDate = SmsDateUtils.pureDateGmt8(new Date());
String signatureTime = signatureTime(); String signatureTime = signatureTime();
// 构造请求流水号 // 构造请求流水号
String uuid = UUID.randomUUID().toString(); String uuid = UUID.randomUUID().toString();