Browse Source

wip:日志

wangshan 9 months ago
parent
commit
a225e1b9fe
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/jfw/modules/weixin/src/wx/scanReplayStream.go

+ 2 - 0
src/jfw/modules/weixin/src/wx/scanReplayStream.go

@@ -42,6 +42,7 @@ func ScanReplayStream(w ResponseWriter, openId, code string, action int) error {
 	if err := g.Cfg("reply").MustGet(context.TODO(), "stream").Struct(&arr); err != nil {
 	if err := g.Cfg("reply").MustGet(context.TODO(), "stream").Struct(&arr); err != nil {
 		return err
 		return err
 	}
 	}
+	log.Println("arr:", arr)
 	for _, task := range arr {
 	for _, task := range arr {
 		//校验类型
 		//校验类型
 		if !(task.Action == 0 || task.Action == action) {
 		if !(task.Action == 0 || task.Action == action) {
@@ -70,6 +71,7 @@ func ScanReplayStream(w ResponseWriter, openId, code string, action int) error {
 				sendErr = w.PostImage(mid)
 				sendErr = w.PostImage(mid)
 			}
 			}
 		case "TEXT":
 		case "TEXT":
+			log.Println("----task.Desc----:", task.Desc)
 			if task.Desc != "" {
 			if task.Desc != "" {
 				sendErr = w.PostText(task.Desc)
 				sendErr = w.PostText(task.Desc)
 			}
 			}