插件-支付宝红包转账,转账,查询,回调开发
This commit is contained in:
parent
70402f2f07
commit
5715e4c598
|
@ -24,6 +24,9 @@ func req(config *Config, req *po.Param) (url.Values, error) {
|
||||||
if kv.Key == "sign" {
|
if kv.Key == "sign" {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
if kv.Value == "" {
|
||||||
|
continue
|
||||||
|
}
|
||||||
uv.Set(kv.Key, kv.Value)
|
uv.Set(kv.Key, kv.Value)
|
||||||
strToBeSigned.WriteString(fmt.Sprintf("%s=%s&", kv.Key, kv.Value))
|
strToBeSigned.WriteString(fmt.Sprintf("%s=%s&", kv.Key, kv.Value))
|
||||||
}
|
}
|
||||||
|
@ -68,6 +71,9 @@ func Verify(n *po.Notify, publicKeyPEM string) (bool, error) {
|
||||||
if kv.Key == "sign_type" {
|
if kv.Key == "sign_type" {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
if kv.Value == "" {
|
||||||
|
continue
|
||||||
|
}
|
||||||
uv.Set(kv.Key, kv.Value)
|
uv.Set(kv.Key, kv.Value)
|
||||||
strToBeSigned.WriteString(fmt.Sprintf("%s=%s&", kv.Key, kv.Value))
|
strToBeSigned.WriteString(fmt.Sprintf("%s=%s&", kv.Key, kv.Value))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue