Commit a7b2fc54ef3a399bcac88c2284a9eaae35558d4c

Authored by weixin_45529955
2 parents 3520b32d f05824dc

Merge branch 'v7.1.0+' into v7.2.0+

... ... @@ -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 {
... ...