兼容bool类型
This commit is contained in:
parent
96e25fe2e3
commit
9cca6622cd
@ -20,6 +20,9 @@ def restore_field(data: dict) -> tuple:
|
||||
if isinstance(item, dict) or isinstance(item, list):
|
||||
raise ValueError(f'请检查字段:{key} 数据类型,值:{v}')
|
||||
sign_kv[key] = ','.join(map(lambda x: str(x), v))
|
||||
elif isinstance(v, bool):
|
||||
sign_kv[key] = str(v).lower()
|
||||
res[key] = int(v)
|
||||
else:
|
||||
sign_kv[key] = v
|
||||
return res, sign_kv
|
||||
|
Loading…
Reference in New Issue
Block a user