📅  最后修改于: 2022-03-11 14:45:08.676000             🧑  作者: Mango
if 'to' not in data:
raise ValueError("No target in given data")
if 'data' not in data['to']:
raise ValueError("No data for target")