Browse Source

wip:提交微信关注标签

wkyuer 4 tháng trước cách đây
mục cha
commit
6399ebe22f
3 tập tin đã thay đổi với 6 bổ sung5 xóa
  1. 4 4
      wxSign/config.yaml
  2. 1 0
      wxSign/main.go
  3. 1 1
      wxSign/wxSignGroup/group.go

+ 4 - 4
wxSign/config.yaml

@@ -28,11 +28,11 @@ redis:
 wxTokenRpc: "172.17.162.29:1166"
 
 groupConfig:
-  default: #默认剑鱼
-    wxAppId: "wxd6f3e855ef4258cd"
-    subDaySign: [ 1,3,7,9 ]
+#  default: #默认剑鱼
+#    wxAppId: "wxd6f3e855ef4258cd"
+#    subDaySign: [ 1,3,7,9 ]
   wyztb:
-    wxAppid: "wx701ee9f9bd87b208"
+    wxAppId: "wx701ee9f9bd87b208"
     subDaySign: [ 1,3,7,9 ]
 #    "appid": "wx701ee9f9bd87b208",
 #    "appsecret": "2007a26591ca3cb93a417adffc608927",

+ 1 - 0
wxSign/main.go

@@ -23,6 +23,7 @@ type (
 func main() {
 	ctx := gctx.New()
 	_, err := gcron.Add(gctx.New(), g.Cfg().MustGet(ctx, "runCron", "# 0 2 * * *").String(), func(ctx context.Context) {
+
 		for code, mConfig := range g.Cfg().MustGet(ctx, "groupConfig").Map() {
 			var (
 				mConfig = gconv.Map(mConfig)

+ 1 - 1
wxSign/wxSignGroup/group.go

@@ -117,7 +117,7 @@ func (wsg *WxSignGroup) GetWxAccessToken(ctx context.Context, code string) strin
 	if repl == "" {
 		g.Log().Errorf(ctx, "未获取到accessToken")
 	} else {
-		g.Log().Errorf(ctx, "获取到accessToken %s", repl)
+		g.Log().Infof(ctx, "获取到accessToken %s", repl)
 	}
 	return repl
 }