tingwu_new
All checks were successful
Deploy to Server / deploy (push) Successful in 15s

This commit is contained in:
jeremygan2021
2026-03-11 15:22:05 +08:00
parent 188f1fd22d
commit 60423c4323

View File

@@ -167,7 +167,10 @@ class TranscriptionTaskViewSet(viewsets.ModelViewSet):
except:
pass
data_obj = result.get('Data', result)
if isinstance(result, dict):
data_obj = result.get('Data', result)
else:
data_obj = result
if not isinstance(data_obj, dict):
# 如果 Data 不是字典,可能它本身就是字符串,或者 result 结构更平铺
data_obj = result