stop mtask view bug

This commit is contained in:
曹前明 2022-10-16 00:33:18 +08:00
parent 96b851e6bd
commit a4a6cd4a93
1 changed files with 2 additions and 0 deletions

View File

@ -123,6 +123,8 @@ class OplViewSet(CustomModelViewSet):
if obj.mtask_uid:
close_mtask(obj.mtask_uid)
# 防止没变化,手动处理一下
obj.mtask_uid = None
obj.save()
return Response()