Jerry 6 years ago
parent
commit
d8191d3e37
2 changed files with 30 additions and 2 deletions
  1. 15 2
      README.md
  2. 15 0
      README_EN.md

+ 15 - 2
README.md

@@ -17,7 +17,6 @@
 
 * client := gopay.NewWeChatClient() => 初始化微信支付客户端
 * client的其他配置
-    * client.GetVersion() => 获取当前GoPay版本号
     * client.SetCountry() => 设置国家地区,默认中国国内(gopay.China、gopay.China2、gopay.SoutheastAsia、gopay.Other)
 
 ## 微信支付API
@@ -59,7 +58,6 @@
 
 * client := gopay.NewAliPayClient() => 初始化支付宝支付客户端
 * client请求部分公共参数的设置
-    * client.GetVersion() => 获取当前GoPay版本号
     * client.SetReturnUrl() => 设置返回URL
     * client.SetNotifyUrl() => 设置异步通知URL
     * client.SetCharset() => 设置字符编码,默认 utf-8
@@ -102,6 +100,21 @@
 $ go get -u github.com/iGoogle-ink/gopay
 ```
 
+# 查看 GoPay 版本
+
+```go
+package main
+
+import (
+	"fmt"
+	"github.com/iGoogle-ink/gopay"
+)
+
+func main() {
+  fmt.Println("GoPay Version: ", gopay.Version)
+}
+```
+
 # 文档
 
 * [GoDoc](https://godoc.org/github.com/iGoogle-ink/gopay)

+ 15 - 0
README_EN.md

@@ -99,6 +99,21 @@ The Golang SDK for WeChat and AliPay
 $ go get -u github.com/iGoogle-ink/gopay
 ```
 
+# View the GoPay version
+
+```go
+package main
+
+import (
+	"fmt"
+	"github.com/iGoogle-ink/gopay"
+)
+
+func main() {
+  fmt.Println("GoPay Version: ", gopay.Version)
+}
+```
+
 # Document
 
 * [GoDoc](https://godoc.org/github.com/iGoogle-ink/gopay)