// 重置录音上传状态
g_recording_upload_started = false;
+ g_story_index=0;
+
const char *command_name = (command_type == LN_AUDIO_CHAT_VOICE_CHAT_REQUEST) ?
"VoiceChatRequest" : "ChooseStoryRequest";
} else {
LN_WS_ERROR("Failed to send RandomStoryRequest\n");
}
-
+ g_story_index=0;
+
return ret;
}
return WS_CMD_PONG;
} else if (strcmp(command_str, "VoiceChatResponse") == 0) {
return WS_CMD_VOICE_CHAT_RESPONSE;
- } else if (strcmp(command_str, "ChooseStoryResponse") == 0) {
+ } else if (strcmp(command_str, "ChooseStoryResponse") == 0 || strcmp(command_str, "StoryContinueResponse") == 0) {
return WS_CMD_CHOOSE_STORY_RESPONSE;
- } else if (strcmp(command_str, "RandomStoryResponse") == 0) {
+ } else if (strcmp(command_str, "RandomStoryResponse") == 0 || strcmp(command_str, "StoryContinueResponse") == 0) {
return WS_CMD_RANDOM_STORY_RESPONSE;
} else if (strcmp(command_str, "DeviceUpgrade") == 0) {
return WS_CMD_DEVICE_UPGRADE;