sync: soul-api 接口逻辑 | 原因: 后端接口逻辑修改

This commit is contained in:
卡若
2026-03-08 11:35:50 +08:00
parent f6a5b25a06
commit 65affb9963

View File

@@ -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": "网络异常,请稍后重试"})