Browse Source

update

order_statistics
dengbiao 6 months ago
parent
commit
a5219d866f
1 changed files with 2 additions and 3 deletions
  1. +2
    -3
      app/lib/flexible_employment/pupiao.go

+ 2
- 3
app/lib/flexible_employment/pupiao.go View File

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


Loading…
Cancel
Save