|
@@ -1,7 +1,6 @@ |
|
|
package flexible_employment |
|
|
package flexible_employment |
|
|
|
|
|
|
|
|
import ( |
|
|
import ( |
|
|
"applet/app/cfg" |
|
|
|
|
|
"bytes" |
|
|
"bytes" |
|
|
"crypto/md5" |
|
|
"crypto/md5" |
|
|
"encoding/hex" |
|
|
"encoding/hex" |
|
@@ -23,7 +22,7 @@ type PuPiao struct { |
|
|
AppSecret string |
|
|
AppSecret string |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
const urlForPrd = "https://admin.linglong.net.cn" |
|
|
|
|
|
|
|
|
const urlForPrd = "http://admin.linglong.net.cn" |
|
|
const urlForDev = "http://api.testlg.cn" |
|
|
const urlForDev = "http://api.testlg.cn" |
|
|
|
|
|
|
|
|
func NewPuPiao(appId, appSecret string) *PuPiao { |
|
|
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 |
|
|
var url string |
|
|
if cfg.Prd { |
|
|
|
|
|
|
|
|
if true { |
|
|
url = urlForPrd + uri |
|
|
url = urlForPrd + uri |
|
|
} else { |
|
|
} else { |
|
|
url = urlForDev + uri |
|
|
url = urlForDev + uri |
|
|