|
@@ -288,10 +288,6 @@ func pcSetUserKeys(user map[string]interface{}, shareid, pccodepre string) (map[
|
|
o_jy["a_key"] = tmp
|
|
o_jy["a_key"] = tmp
|
|
result = "ok"
|
|
result = "ok"
|
|
}
|
|
}
|
|
- //pc端订阅页面 扫码回复vip连接也需要用此码
|
|
|
|
- if pccodepre == "11" {
|
|
|
|
- redis.Del("sso", "pc_subscribe_"+shareid)
|
|
|
|
- }
|
|
|
|
} else {
|
|
} else {
|
|
for _, key := range keys {
|
|
for _, key := range keys {
|
|
tmp = append(tmp, map[string]interface{}{"key": []string{key}})
|
|
tmp = append(tmp, map[string]interface{}{"key": []string{key}})
|
|
@@ -323,6 +319,10 @@ func pcSetUserKeys(user map[string]interface{}, shareid, pccodepre string) (map[
|
|
}
|
|
}
|
|
result = "ok"
|
|
result = "ok"
|
|
}
|
|
}
|
|
|
|
+ //pc端订阅页面 扫码回复vip连接也需要用此码
|
|
|
|
+ if pccodepre == "11" {
|
|
|
|
+ redis.Del("sso", "pc_subscribe_"+shareid)
|
|
|
|
+ }
|
|
} else {
|
|
} else {
|
|
subkey = ""
|
|
subkey = ""
|
|
//如果vip订阅扫码
|
|
//如果vip订阅扫码
|
|
@@ -639,7 +639,6 @@ func Subscribe(w ResponseWriter, r *Request) {
|
|
if pccodepre == "12" || pccodepre == "11" || pccodepre == "19" || pccodepre == "17" { //12pc搜索关键词,11pc订阅=11,19拟建项目搜索关键词 22落地页订阅关键词
|
|
if pccodepre == "12" || pccodepre == "11" || pccodepre == "19" || pccodepre == "17" { //12pc搜索关键词,11pc订阅=11,19拟建项目搜索关键词 22落地页订阅关键词
|
|
pchints := config.Sysconfig["pchints"].(map[string]interface{})
|
|
pchints := config.Sysconfig["pchints"].(map[string]interface{})
|
|
if pcresult == "ok" {
|
|
if pcresult == "ok" {
|
|
- log.Println("465464164156")
|
|
|
|
w.ReplyText(fmt.Sprintf(fmt.Sprint(pchints["key_success"]), subkey, autoReplUrl))
|
|
w.ReplyText(fmt.Sprintf(fmt.Sprint(pchints["key_success"]), subkey, autoReplUrl))
|
|
} else if pcresult == "repeat" {
|
|
} else if pcresult == "repeat" {
|
|
fastSubscribeText := config.Sysconfig["fastSubscribe"].(map[string]interface{})
|
|
fastSubscribeText := config.Sysconfig["fastSubscribe"].(map[string]interface{})
|
|
@@ -1020,7 +1019,6 @@ func ScanHandler(w ResponseWriter, r *Request) {
|
|
}, false, false)
|
|
}, false, false)
|
|
}
|
|
}
|
|
if pcresult == "ok" {
|
|
if pcresult == "ok" {
|
|
- log.Println("asdasdasdasdasd")
|
|
|
|
pchints := config.Sysconfig["pchints"].(map[string]interface{})
|
|
pchints := config.Sysconfig["pchints"].(map[string]interface{})
|
|
url := fmt.Sprintf(config.Sysconfig["proxysess"].(string), se.EncodeString(openid+","+user.UnionId+","+strconv.Itoa(int(time.Now().Unix()))+",rssset"))
|
|
url := fmt.Sprintf(config.Sysconfig["proxysess"].(string), se.EncodeString(openid+","+user.UnionId+","+strconv.Itoa(int(time.Now().Unix()))+",rssset"))
|
|
w.ReplyText(fmt.Sprintf(fmt.Sprint(pchints["key_success"]), subkey, url))
|
|
w.ReplyText(fmt.Sprintf(fmt.Sprint(pchints["key_success"]), subkey, url))
|