修复比例默认选择和二维码预警崩溃

This commit is contained in:
yml
2026-06-17 21:58:29 +08:00
parent 0a42392d5e
commit 342edad78b
4 changed files with 9 additions and 7 deletions
@@ -316,7 +316,7 @@ func checkQrCodeStockAndAlert(tx *gorm.DB, conversation *model.ChatConversation)
alertContent := fmt.Sprintf("企业微信群二维码库存不足(剩余 %d 张),请及时补充", count)
// 发送站内信给所有客服
var entries []interface{}
entries := make([]map[string]interface{}, 0, len(csAdmins))
now := time.Now()
for _, admin := range csAdmins {
entries = append(entries, map[string]interface{}{