Jerry 6 лет назад
Родитель
Сommit
5b7444df65
29 измененных файлов с 32 добавлено и 3 удалено
  1. 1 0
      examples/alipay/alipay_AliPaySystemOauthToken.go
  2. 1 0
      examples/alipay/alipay_AliPayTradeAppPay.go
  3. 1 0
      examples/alipay/alipay_AliPayTradeCancel.go
  4. 1 0
      examples/alipay/alipay_AliPayTradeClose.go
  5. 1 0
      examples/alipay/alipay_AliPayTradeCreate.go
  6. 1 0
      examples/alipay/alipay_AliPayTradeFastPayRefundQuery.go
  7. 2 1
      examples/alipay/alipay_AliPayTradeOrderSettle.go
  8. 1 0
      examples/alipay/alipay_AliPayTradePagePay.go
  9. 1 0
      examples/alipay/alipay_AliPayTradePay.go
  10. 1 0
      examples/alipay/alipay_AliPayTradePrecreate.go
  11. 1 0
      examples/alipay/alipay_AliPayTradeQuery.go
  12. 1 0
      examples/alipay/alipay_AliPayTradeRefund.go
  13. 1 0
      examples/alipay/alipay_AliPayTradeWapPay.go
  14. 1 0
      examples/alipay/alipay_AlipayFundTransToaccountTransfer.go
  15. 1 0
      examples/alipay/alipay_AlipayOpenAuthTokenApp.go
  16. 1 0
      examples/alipay/alipay_AlipayUserInfoShare.go
  17. 2 1
      examples/alipay/alipay_ServiceApi.go
  18. 1 0
      examples/alipay/alipay_ZhimaCreditScoreGet.go
  19. 1 0
      examples/wechat/wx_BatchQueryComment.go
  20. 1 0
      examples/wechat/wx_CloseOrder.go
  21. 1 0
      examples/wechat/wx_DownloadBill.go
  22. 1 0
      examples/wechat/wx_DownloadFundFlow.go
  23. 1 0
      examples/wechat/wx_Micropay.go
  24. 1 0
      examples/wechat/wx_QueryOrder.go
  25. 1 0
      examples/wechat/wx_QueryRefund.go
  26. 1 0
      examples/wechat/wx_Refund.go
  27. 1 0
      examples/wechat/wx_Reverse.go
  28. 2 1
      examples/wechat/wx_ServiceApi.go
  29. 1 0
      examples/wechat/wx_Transfer.go

+ 1 - 0
examples/alipay/alipay_AliPaySystemOauthToken.go

@@ -2,6 +2,7 @@ package alipay
 
 import (
 	"fmt"
+
 	"github.com/iGoogle-ink/gopay"
 )
 

+ 1 - 0
examples/alipay/alipay_AliPayTradeAppPay.go

@@ -2,6 +2,7 @@ package alipay
 
 import (
 	"fmt"
+
 	"github.com/iGoogle-ink/gopay"
 )
 

+ 1 - 0
examples/alipay/alipay_AliPayTradeCancel.go

@@ -2,6 +2,7 @@ package alipay
 
 import (
 	"fmt"
+
 	"github.com/iGoogle-ink/gopay"
 )
 

+ 1 - 0
examples/alipay/alipay_AliPayTradeClose.go

@@ -2,6 +2,7 @@ package alipay
 
 import (
 	"fmt"
+
 	"github.com/iGoogle-ink/gopay"
 )
 

+ 1 - 0
examples/alipay/alipay_AliPayTradeCreate.go

@@ -2,6 +2,7 @@ package alipay
 
 import (
 	"fmt"
+
 	"github.com/iGoogle-ink/gopay"
 )
 

+ 1 - 0
examples/alipay/alipay_AliPayTradeFastPayRefundQuery.go

@@ -2,6 +2,7 @@ package alipay
 
 import (
 	"fmt"
+
 	"github.com/iGoogle-ink/gopay"
 )
 

+ 2 - 1
examples/alipay/alipay_AliPayTradeOrderSettle.go

@@ -2,6 +2,7 @@ package alipay
 
 import (
 	"fmt"
+
 	"github.com/iGoogle-ink/gopay"
 )
 
@@ -11,7 +12,7 @@ func AliPayTradeOrderSettle() {
 	//    appId:应用ID
 	//    privateKey:应用秘钥
 	//    isProd:是否是正式环境
-	client := gopay.NewAliPayClient("2016091200494382", privateKey, true)
+	client := gopay.NewAliPayClient("2016091200494382", privateKey, false)
 	//配置公共参数
 	client.SetCharset("utf-8").
 		SetSignType("RSA2")

+ 1 - 0
examples/alipay/alipay_AliPayTradePagePay.go

@@ -2,6 +2,7 @@ package alipay
 
 import (
 	"fmt"
+
 	"github.com/iGoogle-ink/gopay"
 )
 

+ 1 - 0
examples/alipay/alipay_AliPayTradePay.go

@@ -2,6 +2,7 @@ package alipay
 
 import (
 	"fmt"
+
 	"github.com/iGoogle-ink/gopay"
 )
 

+ 1 - 0
examples/alipay/alipay_AliPayTradePrecreate.go

@@ -2,6 +2,7 @@ package alipay
 
 import (
 	"fmt"
+
 	"github.com/iGoogle-ink/gopay"
 )
 

+ 1 - 0
examples/alipay/alipay_AliPayTradeQuery.go

@@ -2,6 +2,7 @@ package alipay
 
 import (
 	"fmt"
+
 	"github.com/iGoogle-ink/gopay"
 )
 

+ 1 - 0
examples/alipay/alipay_AliPayTradeRefund.go

@@ -2,6 +2,7 @@ package alipay
 
 import (
 	"fmt"
+
 	"github.com/iGoogle-ink/gopay"
 )
 

+ 1 - 0
examples/alipay/alipay_AliPayTradeWapPay.go

@@ -2,6 +2,7 @@ package alipay
 
 import (
 	"fmt"
+
 	"github.com/iGoogle-ink/gopay"
 )
 

+ 1 - 0
examples/alipay/alipay_AlipayFundTransToaccountTransfer.go

@@ -2,6 +2,7 @@ package alipay
 
 import (
 	"fmt"
+
 	"github.com/iGoogle-ink/gopay"
 )
 

+ 1 - 0
examples/alipay/alipay_AlipayOpenAuthTokenApp.go

@@ -2,6 +2,7 @@ package alipay
 
 import (
 	"fmt"
+
 	"github.com/iGoogle-ink/gopay"
 )
 

+ 1 - 0
examples/alipay/alipay_AlipayUserInfoShare.go

@@ -2,6 +2,7 @@ package alipay
 
 import (
 	"fmt"
+
 	"github.com/iGoogle-ink/gopay"
 )
 

+ 2 - 1
examples/alipay/alipay_ServiceApi.go

@@ -2,9 +2,10 @@ package alipay
 
 import (
 	"fmt"
-	"github.com/iGoogle-ink/gopay"
 	"log"
 	"net/http"
+
+	"github.com/iGoogle-ink/gopay"
 )
 
 func FormatPrivateKey() {

+ 1 - 0
examples/alipay/alipay_ZhimaCreditScoreGet.go

@@ -2,6 +2,7 @@ package alipay
 
 import (
 	"fmt"
+
 	"github.com/iGoogle-ink/gopay"
 )
 

+ 1 - 0
examples/wechat/wx_BatchQueryComment.go

@@ -2,6 +2,7 @@ package wechat
 
 import (
 	"fmt"
+
 	"github.com/iGoogle-ink/gopay"
 )
 

+ 1 - 0
examples/wechat/wx_CloseOrder.go

@@ -2,6 +2,7 @@ package wechat
 
 import (
 	"fmt"
+
 	"github.com/iGoogle-ink/gopay"
 )
 

+ 1 - 0
examples/wechat/wx_DownloadBill.go

@@ -2,6 +2,7 @@ package wechat
 
 import (
 	"fmt"
+
 	"github.com/iGoogle-ink/gopay"
 )
 

+ 1 - 0
examples/wechat/wx_DownloadFundFlow.go

@@ -2,6 +2,7 @@ package wechat
 
 import (
 	"fmt"
+
 	"github.com/iGoogle-ink/gopay"
 )
 

+ 1 - 0
examples/wechat/wx_Micropay.go

@@ -2,6 +2,7 @@ package wechat
 
 import (
 	"fmt"
+
 	"github.com/iGoogle-ink/gopay"
 )
 

+ 1 - 0
examples/wechat/wx_QueryOrder.go

@@ -2,6 +2,7 @@ package wechat
 
 import (
 	"fmt"
+
 	"github.com/iGoogle-ink/gopay"
 )
 

+ 1 - 0
examples/wechat/wx_QueryRefund.go

@@ -2,6 +2,7 @@ package wechat
 
 import (
 	"fmt"
+
 	"github.com/iGoogle-ink/gopay"
 )
 

+ 1 - 0
examples/wechat/wx_Refund.go

@@ -2,6 +2,7 @@ package wechat
 
 import (
 	"fmt"
+
 	"github.com/iGoogle-ink/gopay"
 )
 

+ 1 - 0
examples/wechat/wx_Reverse.go

@@ -2,6 +2,7 @@ package wechat
 
 import (
 	"fmt"
+
 	"github.com/iGoogle-ink/gopay"
 )
 

+ 2 - 1
examples/wechat/wx_ServiceApi.go

@@ -2,8 +2,9 @@ package wechat
 
 import (
 	"fmt"
-	"github.com/iGoogle-ink/gopay"
 	"net/http"
+
+	"github.com/iGoogle-ink/gopay"
 )
 
 func Code2Session() {

+ 1 - 0
examples/wechat/wx_Transfer.go

@@ -7,6 +7,7 @@ package wechat
 
 import (
 	"fmt"
+
 	"github.com/iGoogle-ink/gopay"
 )