优化结构
This commit is contained in:
@@ -596,10 +596,3 @@ func parseJSONInteger(object map[string]any, key string) (int64, bool, error) {
|
||||
amount, err := parseIntegerAmount(fmt.Sprint(raw))
|
||||
return amount, true, err
|
||||
}
|
||||
|
||||
func decryptWechatV3(ciphertext, nonce, associatedData, key string) ([]byte, error) {
|
||||
if len(key) != 32 {
|
||||
return nil, errors.New("微信支付 v3 api_v3_key 必须为 32 字节")
|
||||
}
|
||||
return gopayWechatV3.V3DecryptNotifyCipherTextToBytes(ciphertext, nonce, associatedData, key)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user