语音字符未设置传过来是null

This commit is contained in:
pxzleo 2023-07-23 00:35:50 +08:00
parent f1157fbed3
commit 90de7b9892

View File

@ -1053,12 +1053,12 @@ void writeRoute(String topicStr) {
double y = obj["tasks"][fc.writeSeq]["y"];
double z = obj["tasks"][fc.writeSeq]["z"];
String str = obj["tasks"][fc.writeSeq]["sound"];
if ((str!=NULL)&&(str != ""))
if ((str!=NULL)&&(str != "")&&(str != "null"))
{
fc.questVoiceStr = str;
//printf("writevoice str: %s \n", fc.questVoiceStr);
// if (fc.writeSeq==0)
// fhc.playText(fc.questVoiceStr);
//fc.playText(fc.questVoiceStr);
}
fc.logln((char*)"frame--");
fc.logln(frame);