fix wechat pay

This commit is contained in:
2025-05-27 11:17:51 +08:00
parent f5b3eaca07
commit 031ba733f5
2 changed files with 44 additions and 6 deletions

View File

@@ -9,10 +9,9 @@ import (
func TestAesEcbMobileEncryption(t *testing.T) {
// 测试手机号加密
mobile := "13800138000"
key := []byte("1234567890abcdef") // 16字节AES-128密钥
mobile := "15008098853"
keyStr := hex.EncodeToString(key)
keyStr := "ff83609b2b24fc73196aac3d3dfb874f"
// 测试加密
encrypted, err := EncryptMobile(mobile, keyStr)
if err != nil {