hujiali@jihes.com 6 vuotta sitten
vanhempi
commit
c07365cb77
1 muutettua tiedostoa jossa 1 lisäystä ja 2 poistoa
  1. 1 2
      alipay_client.go

+ 1 - 2
alipay_client.go

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