sync: soul-api 接口逻辑 | 原因: 后端接口逻辑修改
This commit is contained in:
@@ -299,6 +299,8 @@ func CKBLead(c *gin.Context) {
|
||||
params := map[string]interface{}{
|
||||
"timestamp": ts,
|
||||
"source": "小程序-链接卡若",
|
||||
"tags": "链接卡若,创业实验",
|
||||
"siteTags": "创业实验APP,链接卡若",
|
||||
"remark": "首页点击「链接卡若」留资",
|
||||
"name": name,
|
||||
}
|
||||
@@ -311,6 +313,7 @@ func CKBLead(c *gin.Context) {
|
||||
params["apiKey"] = ckbAPIKey
|
||||
params["sign"] = ckbSign(params, ckbAPIKey)
|
||||
raw, _ := json.Marshal(params)
|
||||
fmt.Printf("[CKBLead] 请求: phone=%s wechatId=%s name=%s\n", phone, wechatId, name)
|
||||
resp, err := http.Post(ckbAPIURL, "application/json", bytes.NewReader(raw))
|
||||
if err != nil {
|
||||
c.JSON(http.StatusOK, gin.H{"success": false, "message": "网络异常,请稍后重试"})
|
||||
|
||||
Reference in New Issue
Block a user