diff --git a/business/dao/print_temp_utils.go b/business/dao/print_temp_utils.go
index 11dff9b42..890049693 100644
--- a/business/dao/print_temp_utils.go
+++ b/business/dao/print_temp_utils.go
@@ -408,23 +408,38 @@ func PrintStoreStatus(param map[string]string, setting *model.PrintSettingObj) s
textMsgValue = make([]interface{}, 0, 0)
)
- // 离线打印文本开启
- if setting.PickingSetting.BusinessOffLine == model.SettingOpen {
- textMsg += `
门店下线通知
`
+ switch utils.Str2Int(param[model.StoreStatusPrint]) {
+ case -9:
+ printVoiceMsg += `%s`
+ printVoiceValue = append(printVoiceValue, model.LoseTokenVoice)
+ textMsg += `门店丢失授权通知
`
textMsg += `门店:%s
`
textMsg += `平台:%s
`
textMsg += `下线时间:%s
`
+ textMsg += `授权丢失,将无法继续打压订单!!!!
`
textMsgValue = append(textMsgValue, param[model.StoreNamePrint], param[model.VendorNamePrint], utils.Time2DateStr(time.Now()))
- }
- // 离线打印语音开启
- if setting.SystemVoice == model.SettingOpen && setting.PickingSetting.BusinessOffLineVoice == model.SettingOpen {
- printVoiceMsg += `%s`
- printVoiceValue = append(printVoiceValue, model.StoreOfflineVoice)
- }
- voice := strings.Replace(fmt.Sprintf(strings.Replace(printVoiceMsg, "\n", "", -1), printVoiceValue...), "\\n", "\r\n", -1)
- msg := strings.Replace(fmt.Sprintf(strings.Replace(textMsg, "\n", "", -1), textMsgValue...), "\\n", "\r\n", -1)
+ voice := strings.Replace(fmt.Sprintf(strings.Replace(printVoiceMsg, "\n", "", -1), printVoiceValue...), "\\n", "\r\n", -1)
+ msg := strings.Replace(fmt.Sprintf(strings.Replace(textMsg, "\n", "", -1), textMsgValue...), "\\n", "\r\n", -1)
+ return voice + msg
+ default:
+ // 离线打印文本开启
+ if setting.PickingSetting.BusinessOffLine == model.SettingOpen {
+ textMsg += `门店下线通知
`
+ textMsg += `门店:%s
`
+ textMsg += `平台:%s
`
+ textMsg += `下线时间:%s
`
+ textMsgValue = append(textMsgValue, param[model.StoreNamePrint], param[model.VendorNamePrint], utils.Time2DateStr(time.Now()))
+ }
+ // 离线打印语音开启
+ if setting.SystemVoice == model.SettingOpen && setting.PickingSetting.BusinessOffLineVoice == model.SettingOpen {
+ printVoiceMsg += `%s`
+ printVoiceValue = append(printVoiceValue, model.StoreOfflineVoice)
+ }
+ voice := strings.Replace(fmt.Sprintf(strings.Replace(printVoiceMsg, "\n", "", -1), printVoiceValue...), "\\n", "\r\n", -1)
+ msg := strings.Replace(fmt.Sprintf(strings.Replace(textMsg, "\n", "", -1), textMsgValue...), "\\n", "\r\n", -1)
- return voice + msg
+ return voice + msg
+ }
}
// SyntheticSpeech 合成语音 (美团xxx号订单)