hujiali@jihes.com 7 年之前
父节点
当前提交
c07365cb77
共有 1 个文件被更改,包括 1 次插入2 次删除
  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