Browse Source

wip:日志

wangshan 9 tháng trước cách đây
mục cha
commit
a225e1b9fe
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  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 {
 		return err
 	}
+	log.Println("arr:", arr)
 	for _, task := range arr {
 		//校验类型
 		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)
 			}
 		case "TEXT":
+			log.Println("----task.Desc----:", task.Desc)
 			if task.Desc != "" {
 				sendErr = w.PostText(task.Desc)
 			}