Skip to content

Commit

Permalink
新增微信V3回调验签和通知解密说明
Browse files Browse the repository at this point in the history
  • Loading branch information
iGoogle-ink committed Mar 16, 2021
1 parent c05f102 commit 13e1dbd
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -688,8 +688,11 @@ ok, err = alipay.VerifySignWithCert("alipayCertPublicKey_RSA2.crt", notifyReq)
// ==异步通知,返回支付宝平台的信息==
// 文档:https://opendocs.alipay.com/open/203/105286
// 程序执行完后必须打印输出“success”(不包含引号)。如果商户反馈给支付宝的字符不是success这7个字符,支付宝服务器会不断重发通知,直到超过24小时22分钟。一般情况下,25小时以内完成8次通知(通知的间隔频率一般是:4m,10m,10m,1h,2h,6h,15h)
return c.String(http.StatusOK, "success") // 此写法是 echo 框架返回支付宝的写法
c.String(http.StatusOK, "%s", "success") // 此写法是 gin 框架返回支付宝的写法

// 此写法是 gin 框架返回支付宝的写法
c.String(http.StatusOK, "%s", "success")
// 此写法是 echo 框架返回支付宝的写法
return c.String(http.StatusOK, "success")
```

## 6、微信、支付宝 公共API(仅部分说明)
Expand Down

0 comments on commit 13e1dbd

Please sign in to comment.