fix wechat pay
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user