|
@@ -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
|