From a5219d866f064d31f1592f2a197088dc5f8c05f9 Mon Sep 17 00:00:00 2001 From: dengbiao Date: Sat, 25 May 2024 16:33:57 +0800 Subject: [PATCH] update --- app/lib/flexible_employment/pupiao.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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