mirror of
https://github.com/silenceper/wechat.git
synced 2026-02-04 12:52:27 +08:00
支持文本消息的回复
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user