This commit is contained in:
dimengzhe
2024-12-11 16:42:55 +08:00
parent 525996fa82
commit f638d9512c
2 changed files with 3 additions and 3 deletions

View File

@@ -16,7 +16,7 @@ import java.util.Map;
* @date: 2024/12/11
**/
@Service
public class ClientService2 {
public class ClientService {
@Autowired
private AppKeyConfig appKeyConfig;

View File

@@ -23,8 +23,8 @@ public class SignatureUtil {
* @return 签名
*/
public static String generateSignature(Map<String, String> parameters, String secret) throws UnsupportedEncodingException, NoSuchAlgorithmException {
//1.对参数进行排序
Map<tring, String> treeMap=new TreeMap<>(parameters);
//1.对参数进行排序
Map<String, String> treeMap = new TreeMap<>(parameters);
// 2. 拼接参数字符串
String content = joinParameters(treeMap);