Skip to content

Commit

Permalink
Merge branch 'refs/heads/dev-3.0.x'
Browse files Browse the repository at this point in the history
# Conflicts:
#	README.md
  • Loading branch information
Hi-Mr-Wind committed Sep 7, 2024
2 parents 319a0d2 + 2ee0389 commit d7589aa
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/)

## 支持厂商一览
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@


import org.dromara.sms4j.api.entity.SmsResponse;
import org.dromara.sms4j.comm.exception.SmsBlendException;

import java.lang.reflect.Method;
/**
Expand Down Expand Up @@ -45,5 +46,6 @@ default Object postProcessor(SmsResponse result, Object[] param) {
* @author :Wind
*/
default void exceptionHandleProcessor(Method method, Object source, Object[] param, Exception exception) throws RuntimeException {
throw new SmsBlendException(exception);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ public static String[] toArray(Map<String, String> map){
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()]);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public class CtyunUtils {
* 获取签名时间戳
*/
private static String signatureTime(){
return SmsDateUtils.pureDateUtcGmt(new Date());
return SmsDateUtils.pureDateUtcGmt8(new Date());
}

/**
Expand All @@ -34,7 +34,7 @@ public static Map<String, String> signHeader(String body, String key, String sec
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();
Expand Down

0 comments on commit d7589aa

Please sign in to comment.