Browse Source

Merge remote-tracking branch 'origin/master'

Jerry 6 years ago
parent
commit
9eb2e96606
2 changed files with 1 additions and 3 deletions
  1. 0 1
      README.md
  2. 1 2
      alipay_client.go

+ 0 - 1
README.md

@@ -534,7 +534,6 @@ if err != nil {
 }
 fmt.Println("aliRsp:", *aliRsp)
 ```
-
 ## License
 ```
 Copyright 2019 Jerry

+ 1 - 2
alipay_client.go

@@ -4,7 +4,6 @@ import (
 	"encoding/json"
 	"errors"
 	"fmt"
-	"github.com/parnurzeal/gorequest"
 	"golang.org/x/text/encoding/simplifiedchinese"
 	"log"
 	"time"
@@ -322,7 +321,7 @@ func (this *aliPayClient) doAliPay(body BodyMap, method string) (bytes []byte, e
 		}
 	}
 	var url string
-	agent := gorequest.New()
+	agent := HttpAgent()
 	if !this.isProd {
 		//沙箱环境
 		url = zfb_sanbox_base_url