Selaa lähdekoodia

Merge remote-tracking branch 'origin/master' into debug

Roc 3 vuotta sitten
vanhempi
commit
157e190364
3 muutettua tiedostoa jossa 3 lisäystä ja 25 poistoa
  1. 1 1
      .gitignore
  2. 1 23
      controllers/wechat.go
  3. 1 1
      services/task.go

+ 1 - 1
.gitignore

@@ -10,4 +10,4 @@
 /binlog
 /rdlucklog
 .DS_Store
-/rdlucklog/*
+/rdlucklog/*

+ 1 - 23
controllers/wechat.go

@@ -428,26 +428,4 @@ type Notify struct {
 	MsgType      string `xml:"MsgType"`
 	Event        string `xml:"Event"`
 	EventKey     string `xml:"EventKey"`
-}
-
-//func init() {
-//	str := `<xml><ToUserName><![CDATA[gh_5dc508325c6f]]></ToUserName>
-//<FromUserName><![CDATA[oN0jD1eTfIAf68Y2n24RrvIGXFw4]]></FromUserName>
-//<CreateTime>1654671283</CreateTime>
-//<MsgType><![CDATA[event]]></MsgType>
-//<Event><![CDATA[subscribe]]></Event>
-//<EventKey><![CDATA[]]></EventKey>
-//</xml>`
-//
-//	item := new(Notify)
-//	err := xml.Unmarshal([]byte(str), &item)
-//	if err != nil {
-//		fmt.Println(err.Error())
-//	}
-//	fmt.Println(item.ToUserName)
-//	fmt.Println(item.FromUserName)
-//	fmt.Println(item.CreateTime)
-//	fmt.Println(item.MsgType)
-//	fmt.Println(item.Event)
-//	fmt.Println(item.EventKey)
-//}
+}

+ 1 - 1
services/task.go

@@ -14,7 +14,7 @@ func Task() {
 	//FixUnionId()
 	fmt.Println("end")
 
-	//go AutoUpdateUserView()
+	go AutoUpdateUserView()
 }
 
 // AutoUpdateUserView 自动添加阅读记录