1
0
mirror of https://github.com/silenceper/wechat.git synced 2026-02-04 12:52:27 +08:00

支持文本消息的回复

This commit is contained in:
wenzl
2016-09-11 00:27:37 +08:00
parent e713b4ffb2
commit 33f2b2ef60
10 changed files with 403 additions and 96 deletions

View File

@@ -4,7 +4,6 @@ import (
"net/http"
"github.com/silenceper/wechat/context"
"github.com/silenceper/wechat/log"
"github.com/silenceper/wechat/server"
)
@@ -23,13 +22,6 @@ type Config struct {
//NewWechat init
func NewWechat(cfg *Config) *Wechat {
channelLen := int64(10000)
adapterName := "console"
config := ""
logLevel := log.LevelDebug
log.InitLogger(channelLen, adapterName, config, logLevel)
context := new(context.Context)
copyConfigToContext(cfg, context)
return &Wechat{context}