|
@@ -647,7 +647,10 @@ func Subscribe(w ResponseWriter, r *Request) {
|
|
|
w.ReplyText(fmt.Sprintf(exists, subkey, fastSubscribeText["skill"].(string)))
|
|
|
} else if pcresult == "vipsubscribe##reply" { //关注
|
|
|
vipsubReply := config.Sysconfig["vipSubscribeReply"].(map[string]interface{})
|
|
|
- w.ReplyText(fmt.Sprintf(fmt.Sprint(vipsubReply["content"]), config.Sysconfig["webdomain"].(string)+vipsubReply["href"].(string)))
|
|
|
+ time.AfterFunc(time.Second/2, func() {
|
|
|
+ w.PostText(fmt.Sprintf(fmt.Sprint(vipsubReply["content"]), config.Sysconfig["webdomain"].(string)+vipsubReply["href"].(string)))
|
|
|
+ })
|
|
|
+ isAutoRepl = true
|
|
|
} else {
|
|
|
if subkey != "" {
|
|
|
w.ReplyText(fmt.Sprintf(fmt.Sprint(pchints["key_fail"]), subkey, autoReplUrl))
|
|
@@ -944,7 +947,9 @@ func ScanHandler(w ResponseWriter, r *Request) {
|
|
|
w.ReplyText(fmt.Sprintf(config.Sysconfig["welcomemsg"].(string), url))
|
|
|
if pcresult == "vipsubscribe##reply" { //新用户扫码
|
|
|
vipsubReply := config.Sysconfig["vipSubscribeReply"].(map[string]interface{})
|
|
|
- w.ReplyText(fmt.Sprintf(fmt.Sprint(vipsubReply["content"]), config.Sysconfig["webdomain"].(string)+vipsubReply["href"].(string)))
|
|
|
+ time.AfterFunc(time.Second/2, func() {
|
|
|
+ w.PostText(fmt.Sprintf(fmt.Sprint(vipsubReply["content"]), config.Sysconfig["webdomain"].(string)+vipsubReply["href"].(string)))
|
|
|
+ })
|
|
|
}
|
|
|
}
|
|
|
}
|