Skip to content

Commit

Permalink
test main
Browse files Browse the repository at this point in the history
  • Loading branch information
Matrix-X committed Jan 7, 2025
1 parent 02a5182 commit ad88194
Showing 1 changed file with 18 additions and 10 deletions.
28 changes: 18 additions & 10 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ package main
import (
"context"
"fmt"
fmt2 "github.com/ArtisanCloud/PowerLibs/v3/fmt"
"os"
"strconv"

fmt2 "github.com/ArtisanCloud/PowerLibs/v3/fmt"
"github.com/ArtisanCloud/PowerWeChat/v3/src/kernel"
"github.com/ArtisanCloud/PowerWeChat/v3/src/kernel/power"
"github.com/ArtisanCloud/PowerWeChat/v3/src/miniProgram"
Expand All @@ -29,6 +29,8 @@ func GetOfficialConfig() *officialAccount.UserConfig {
Log: officialAccount.Log{
Level: "debug",
Stdout: false,
File: "/Users/michaelhu/wechat/official-account/info.log",
Error: "/Users/michaelhu/wechat/official-account/error.log",
},
Http: officialAccount.Http{
ProxyURI: "",
Expand All @@ -40,7 +42,7 @@ func GetOfficialConfig() *officialAccount.UserConfig {
Password: "",
DB: 1,
}),
HttpDebug: false,
HttpDebug: true,
Debug: false,
}
}
Expand All @@ -55,8 +57,10 @@ func GetWorkConfig() *work.UserConfig {
ResponseType: os.Getenv("array"),
Log: work.Log{
Level: "debug",
File: "./wechat/info.log",
Error: "./wechat/error.log",
//File: "./wechat/info.log",
//Error: "./wechat/error.log",
File: "/Users/michaelhu/wechat/work/info.log",
Error: "/Users/michaelhu/wechat/work/error.log",
ENV: os.Getenv("work.env"),
},

Expand Down Expand Up @@ -101,8 +105,10 @@ func GetPaymentConfig() *payment.UserConfig {
ResponseType: os.Getenv("array"),
Log: payment.Log{
Level: "debug",
File: "./wechat/info.log",
Error: "./wechat/error.log",
//File: "./wechat/info.log",
//Error: "./wechat/error.log",
File: "/Users/michaelhu/wechat/payment/info.log",
Error: "/Users/michaelhu/wechat/payment/error.log",
},
Http: payment.Http{
Timeout: 30.0,
Expand Down Expand Up @@ -135,8 +141,8 @@ func GetMiniProgramConfig() *miniProgram.UserConfig {
ResponseType: os.Getenv("array"),
Log: miniProgram.Log{
Level: "debug",
File: "./wechat/info.log",
Error: "./wechat/error.log",
File: "/Users/michaelhu/wechat/mini-program/info.log",
Error: "/Users/michaelhu/wechat/mini-program/error.log",
},
Cache: kernel.NewRedisClient(&kernel.UniversalOptions{
Addrs: []string{"127.0.0.1:6379"},
Expand All @@ -162,8 +168,10 @@ func GetOpenPlatformConfig() *openPlatform.UserConfig {
ResponseType: os.Getenv("array"),
Log: openPlatform.Log{
Level: "debug",
File: "./wechat/info.log",
Error: "./wechat/error.log",
//File: "./wechat/info.log",
//Error: "./wechat/error.log",
File: "/Users/michaelhu/wechat/platform/info.log",
Error: "/Users/michaelhu/wechat/platform/error.log",
},
Cache: kernel.NewRedisClient(&kernel.UniversalOptions{
Addrs: []string{"127.0.0.1:6379"},
Expand Down

0 comments on commit ad88194

Please sign in to comment.