Browse Source

fix:模板消息推送的bug修复

Roc 7 months ago
parent
commit
db4b7391d8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      services/wechat_send_msg.go

+ 1 - 1
services/wechat_send_msg.go

@@ -111,7 +111,7 @@ func SendMiniProgramReportWxMsg(reportId int) (err error) {
 
 	var wxAppPath string
 	weekClassifyId, err := company.GetReportClassifyIdByConfigKey("report_week_classify_id")
-	if err != nil {
+	if err != nil && err.Error() != utils.ErrNoRow() {
 		msg = "获取周报ID配置失败:" + err.Error()
 		return err
 	}