Jelajahi Sumber

标点符号替换

WH01243 1 Minggu lalu
induk
melakukan
9e576a7d7c
2 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 1 1
      client/service/wx.go
  2. 1 1
      rpc/main.go

+ 1 - 1
client/service/wx.go

@@ -199,7 +199,7 @@ func userJudge(c *wcf.RpcContact) (bool, string, string) {
 func sendText(content, wxId, appellation string) (bool, error) {
 	if appellation != "" {
 		appellation = string([]rune(appellation)[0])
-		content = fmt.Sprintf("%s老师,%s", appellation, content)
+		content = fmt.Sprintf("%s老师%s", appellation, content)
 	}
 	if app.WxClient.SendTxt(content, wxId, nil) != 0 {
 		return false, fmt.Errorf(fmt.Sprintf("%s%s文字消息发送失败", content, wxId))

+ 1 - 1
rpc/main.go

@@ -127,7 +127,7 @@ func (s *server) setupTimedTasks(ctx context.Context) {
 		taskName string
 	}{
 		{1 * time.Minute, "sendTalk"},
-		{1 * time.Hour, "getContacts"},
+		{12 * time.Hour, "getContacts"},
 	}
 
 	for _, task := range tasks {