区分环境
This commit is contained in:
8
aes.go
8
aes.go
@@ -48,15 +48,13 @@ type Data struct {
|
||||
|
||||
func main() {
|
||||
// 定义 AES 密钥
|
||||
key, _ := hex.DecodeString("c58e5aa2f91ddd5e0947ffc119b029c4")
|
||||
key, _ := hex.DecodeString("958de6826370b57d9ae93b88e5009e26")
|
||||
|
||||
var data interface{}
|
||||
|
||||
data = map[string]interface{}{
|
||||
"id_card": "45212220000827423X",
|
||||
"mobile_no": "18276151590",
|
||||
"name": "张荣宏",
|
||||
"time_range": "5",
|
||||
"id_card": "45212220000827423X",
|
||||
"name": "张荣宏",
|
||||
}
|
||||
|
||||
// 将结构体转为 JSON 字符串
|
||||
|
||||
Reference in New Issue
Block a user