Jerry 7 years ago
parent
commit
a503177c2f
3 changed files with 16 additions and 16 deletions
  1. 1 1
      README.md
  2. 7 7
      ali_pay.go
  3. 8 8
      wechat_pay.go

+ 1 - 1
README.md

@@ -32,7 +32,7 @@ $ go get github.com/iGoogle-ink/gopay
 
 ## 文档
 
-[GoPay使用手册](https://doc.gopay.ink)
+未完成
 
 ## 微信统一下单 example
 

+ 7 - 7
ali_pay.go

@@ -25,37 +25,37 @@ func NewAlipayClient(appId, mchId string, isProd bool, secretKey ...string) *ali
 }
 
 //统一下单
-func (this aliPayClient) UnifiedOrder() {
+func (this *aliPayClient) UnifiedOrder() {
 
 }
 
 //查询订单
-func (this aliPayClient) QueryOrder() {
+func (this *aliPayClient) QueryOrder() {
 
 }
 
 //关闭订单
-func (this aliPayClient) CloseOrder() {
+func (this *aliPayClient) CloseOrder() {
 
 }
 
 //申请退款
-func (this aliPayClient) Refund() {
+func (this *aliPayClient) Refund() {
 
 }
 
 //查询退款
-func (this aliPayClient) QueryRefund() {
+func (this *aliPayClient) QueryRefund() {
 
 }
 
 //下载对账单
-func (this aliPayClient) DownloadBill() {
+func (this *aliPayClient) DownloadBill() {
 
 }
 
 //下载资金账单
-func (this aliPayClient) DownloadFundFlow() {
+func (this *aliPayClient) DownloadFundFlow() {
 
 }
 

+ 8 - 8
wechat_pay.go

@@ -27,7 +27,7 @@ func NewWeChatClient(appId, mchId, secretKey string, isProd bool) *weChatClient
 }
 
 //统一下单
-func (this weChatClient) UnifiedOrder(param *WeChatPayParams) (wxRsp *weChatPayResponse, err error) {
+func (this *weChatClient) UnifiedOrder(param *WeChatPayParams) (wxRsp *weChatPayResponse, err error) {
 	var reqs requestBody
 	var sign string
 	//生成下单请求参数
@@ -74,36 +74,36 @@ func (this weChatClient) UnifiedOrder(param *WeChatPayParams) (wxRsp *weChatPayR
 }
 
 //查询订单
-func (this weChatClient) QueryOrder() {
+func (this *weChatClient) QueryOrder() {
 
 }
 
 //关闭订单
-func (this weChatClient) CloseOrder() {
+func (this *weChatClient) CloseOrder() {
 
 }
 
 //申请退款
-func (this weChatClient) Refund() {
+func (this *weChatClient) Refund() {
 
 }
 
 //查询退款
-func (this weChatClient) QueryRefund() {
+func (this *weChatClient) QueryRefund() {
 
 }
 
 //下载对账单
-func (this weChatClient) DownloadBill() {
+func (this *weChatClient) DownloadBill() {
 
 }
 
 //下载资金账单
-func (this weChatClient) DownloadFundFlow() {
+func (this *weChatClient) DownloadFundFlow() {
 
 }
 
 //拉取订单评价数据
-func (this weChatClient) BatchQueryComment() {
+func (this *weChatClient) BatchQueryComment() {
 
 }