fix: adjust api of add_interaction 3
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
8ca5843a62
commit
c3cd257cbf
|
@ -27,7 +27,7 @@ def add_interaction(json_data):
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
raise AddInteractionError(extra_data={'error_docs': str(e)})
|
raise AddInteractionError(extra_data={'error_docs': str(e)})
|
||||||
if is_existed:
|
if is_existed:
|
||||||
return {'msg': '已经提交过,不能再次提交~', 'code': 401}
|
return {'msg': '不能重复提交了~', 'code': 401}
|
||||||
return {'msg': 'add interaction successfully', 'code': 200}
|
return {'msg': 'add interaction successfully', 'code': 200}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue