Commit 9405913a authored by 郑磊's avatar 郑磊

朋友圈和朋友圈评论免审

parent 38488610
......@@ -10,6 +10,7 @@ from src.modules.friend import FriendMessage, FriendGive, FriendComment
def save_friends(data):
try:
data['audit_status'] = 2
friendmessage = FriendMessage().set_attrs(data).direct_commit_()
Logger().logger.info(f"发送朋友圈参数:{friendmessage}")
data['fcmid'] = friendmessage.id
......@@ -26,6 +27,7 @@ def save_comment(data):
Logger().logger.info(f"评论存入参数:{data}")
friendcomment = FriendComment().set_attrs(data).direct_commit_()
print(data)
data['audit_status'] = 2
Examinecomment().set_attrs(data).direct_commit_()
except Exception as e:
print(e)
......
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