Explorar o código

fix: 完善入参邮件提醒

hsun %!s(int64=2) %!d(string=hai) anos
pai
achega
a9c2f3d79a
Modificáronse 1 ficheiros con 7 adicións e 1 borrados
  1. 7 1
      services/share_poster.go

+ 7 - 1
services/share_poster.go

@@ -35,7 +35,13 @@ func CreatePosterFromSource(codePage, codeScene, source, version, pars string) (
 	defer func() {
 		if err != nil {
 			global.LOG.Critical(fmt.Sprintf("CreatePosterFromSource: source=%s, pars:%s, errMsg:%s", source, pars, errMsg))
-			go alarm_msg.SendAlarmMsg("CreatePosterFromSource生成分享海报失败, Msg:"+errMsg+";Err:"+err.Error(), 2)
+			reqSlice := make([]string, 0)
+			reqSlice = append(reqSlice, fmt.Sprint("CodePage:", codePage))
+			reqSlice = append(reqSlice, fmt.Sprint("CodeScene:", codeScene))
+			reqSlice = append(reqSlice, fmt.Sprint("Source:", source))
+			reqSlice = append(reqSlice, fmt.Sprint("Version:", version))
+			reqSlice = append(reqSlice, fmt.Sprint("Pars:", pars))
+			go alarm_msg.SendAlarmMsg("CreatePosterFromSource生成分享海报失败, Msg:"+errMsg+";Err:"+err.Error()+";Req:"+strings.Join(reqSlice, ";"), 2)
 		}
 	}()
 	if codePage == "" || source == "" || pars == "" {