|
...
|
...
|
@@ -212,9 +212,12 @@ class _VoiceWelcomeSettingPageState extends State<VoiceWelcomeSettingPage> { |
|
|
|
if (voiceInco != null && voiceInco.isNotEmpty) {
|
|
|
|
defaultVoiceText = voiceInco;
|
|
|
|
}
|
|
|
|
//模板reserve字段为null时:被请人语音播报与预订人不一致默认选中、特殊用餐类型复选框默认开启;
|
|
|
|
//reserve字段有值时:被请人语音播报与预订人一致默认选中、特殊用餐类型复选框默认关闭
|
|
|
|
if (model.reserve == null) {
|
|
|
|
//reserve为null,或reserve有值但voiceInco为null/空时:默认选中“不一致”、特殊用餐类型复选框默认开启;
|
|
|
|
//reserve有值且voiceInco有内容时:默认选中“一致”、特殊用餐类型复选框默认关闭
|
|
|
|
String? reserveVoiceInco = model.reserve?.voiceInco;
|
|
|
|
bool reserveVoiceIsEmpty =
|
|
|
|
reserveVoiceInco == null || reserveVoiceInco.trim().isEmpty;
|
|
|
|
if (model.reserve == null || reserveVoiceIsEmpty) {
|
|
|
|
guestVoiceSame = false;
|
|
|
|
specialVoiceEnabled = true;
|
|
|
|
} else {
|
...
|
...
|
|