diff --git a/app/lib/flexible_employment/pupiao.go b/app/lib/flexible_employment/pupiao.go index 558fde3..a6cea82 100644 --- a/app/lib/flexible_employment/pupiao.go +++ b/app/lib/flexible_employment/pupiao.go @@ -1,7 +1,6 @@ package flexible_employment import ( - "applet/app/cfg" "bytes" "crypto/md5" "encoding/hex" @@ -23,7 +22,7 @@ type PuPiao struct { AppSecret string } -const urlForPrd = "https://admin.linglong.net.cn" +const urlForPrd = "http://admin.linglong.net.cn" const urlForDev = "http://api.testlg.cn" func NewPuPiao(appId, appSecret string) *PuPiao { @@ -77,7 +76,7 @@ func (gm *PuPiao) Curl(uri string, params map[string]interface{}) (result map[st // 构造请求 var url string - if cfg.Prd { + if true { url = urlForPrd + uri } else { url = urlForDev + uri