Commit 4f10a22d authored by xianyang's avatar xianyang

优化

parent 0372aa3e
Pipeline #500 canceled with stages
...@@ -4,7 +4,8 @@ from werkzeug.utils import secure_filename ...@@ -4,7 +4,8 @@ from werkzeug.utils import secure_filename
from flask import request from flask import request
from src.app.api.friends.data_delte import FriendMessageNotice,save_friends, get_infoname, save_comment from src.app.api.friends.data_delte import FriendMessageNotice, save_friends, get_infoname, save_comment, \
CircleOfFriends
from src.app.api.friends.validaters import FriendSendAddFrom, FriendsListFrom, FriendCommentAddFrom, \ from src.app.api.friends.validaters import FriendSendAddFrom, FriendsListFrom, FriendCommentAddFrom, \
FriendCommentDeleteFrom, FriendGivetAddFrom, FriendGivetDeleteFrom, FriendBackgroundFrom, FriendsCommentListFrom, \ FriendCommentDeleteFrom, FriendGivetAddFrom, FriendGivetDeleteFrom, FriendBackgroundFrom, FriendsCommentListFrom, \
CircleListFrom, ContentListFrom CircleListFrom, ContentListFrom
...@@ -76,8 +77,7 @@ def friends_give(): ...@@ -76,8 +77,7 @@ def friends_give():
res_data = FriendGive().set_attrs(form.data).direct_commit_() res_data = FriendGive().set_attrs(form.data).direct_commit_()
FriendMessageNotice(form.fcmid.data, res_data, form.uid.data).query_praise_comment() FriendMessageNotice(form.fcmid.data, res_data, form.uid.data).query_praise_comment()
else: else:
res_data = FriendGive().set_attrs(form.data).direct_commit_() FriendGive().set_attrs(form.data).direct_commit_()
FriendMessageNotice(form.fcmid.data, res_data, form.uid.data).query_praise_comment()
return result_format(code=200,message='操作成功') return result_format(code=200,message='操作成功')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment