作者 tangxvhui

小调整

@@ -255,6 +255,8 @@ func AppMessageRun() { @@ -255,6 +255,8 @@ func AppMessageRun() {
255 if interval < 0 { 255 if interval < 0 {
256 interval = (24 * time.Hour) + interval 256 interval = (24 * time.Hour) + interval
257 } 257 }
  258 + // interval := 10 * time.Second
  259 +
258 timer := time.NewTimer(interval) 260 timer := time.NewTimer(interval)
259 for { 261 for {
260 <-timer.C 262 <-timer.C
@@ -264,6 +266,6 @@ func AppMessageRun() { @@ -264,6 +266,6 @@ func AppMessageRun() {
264 log.Logger.Error("发送关于任务异常的消息通知:" + err.Error()) 266 log.Logger.Error("发送关于任务异常的消息通知:" + err.Error())
265 } 267 }
266 timer.Reset(24 * time.Hour) 268 timer.Reset(24 * time.Hour)
267 - log.Logger.Error(fmt.Sprintf("发送关于任务异常的消息通知用时:%v", time.Since(beginTime).Seconds())) 269 + log.Logger.Info(fmt.Sprintf("发送关于任务异常的消息通知用时:%v", time.Since(beginTime).Seconds()))
268 } 270 }
269 } 271 }
@@ -29,7 +29,6 @@ type MessageExt struct { @@ -29,7 +29,6 @@ type MessageExt struct {
29 29
30 // PushInfo 个推 30 // PushInfo 个推
31 func (serviceGateway *HttplibMmmOpenApiServiceGateway) PushInfo(msgType int, project string, uids []int64, title string, content string) (map[string]interface{}, error) { 31 func (serviceGateway *HttplibMmmOpenApiServiceGateway) PushInfo(msgType int, project string, uids []int64, title string, content string) (map[string]interface{}, error) {
32 - // url := strings.Join([]string{"v1", "push", "pushInfo"}, "/")  
33 url := "/v1/push/pushInfo" 32 url := "/v1/push/pushInfo"
34 serviceGateway.CreateRequest("post", url) 33 serviceGateway.CreateRequest("post", url)
35 options := &MessageOptions{ 34 options := &MessageOptions{