mirror of
https://github.com/yangjian102621/geekai.git
synced 2025-11-08 02:03:42 +08:00
feat: 集成微信收款服务
This commit is contained in:
@@ -6,6 +6,7 @@ import (
|
||||
"chatplus/handler"
|
||||
"chatplus/handler/admin"
|
||||
logger2 "chatplus/logger"
|
||||
"chatplus/modules/wexin"
|
||||
"chatplus/service"
|
||||
"chatplus/service/function"
|
||||
"chatplus/store"
|
||||
@@ -101,6 +102,12 @@ func main() {
|
||||
return xdb.NewWithBuffer(cBuff)
|
||||
}),
|
||||
|
||||
// 创建微信机器人
|
||||
fx.Provide(wexin.NewWeChatBot),
|
||||
fx.Invoke(func(bot *wexin.WeChatBot) error {
|
||||
return bot.Login()
|
||||
}),
|
||||
|
||||
// 创建函数
|
||||
fx.Provide(func() (function.FuncZaoBao, error) {
|
||||
apiToken := os.Getenv("AL_API_TOKEN")
|
||||
|
||||
Reference in New Issue
Block a user