Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
fj-livekit
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xianyang
fj-livekit
Commits
46acfc12
Commit
46acfc12
authored
May 23, 2023
by
xianyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化字段
parent
7ee9519f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
data_delte.py
src/app/api/friends/data_delte.py
+7
-7
No files found.
src/app/api/friends/data_delte.py
View file @
46acfc12
...
...
@@ -32,7 +32,7 @@ def get_infoname(data):
result
=
[]
uids
=
[
item
.
get
(
"uid"
,
""
)
for
item
in
data
]
if
uids
:
sql
=
f
"SELECT nickname,user_avatar_file_name,bg_image,user_uid FROM `missu_users` where user_uid in
{tuple(uids)}"
sql
=
f
"SELECT nickname,user_avatar_file_name,bg_image,user_uid FROM `missu_users` where user_uid in{tuple(uids)}"
user_info
=
LinkMysql
(
env
.
BUSINESS
)
.
query_mysql
(
sql
)
for
i
in
range
(
len
(
data
)):
for
s
in
range
(
len
(
user_info
)):
...
...
@@ -50,7 +50,7 @@ class FriendMessageNotice(object):
self
.
fcmid
=
fcmid
self
.
praise
=
praise
self
.
uid
=
uid
self
.
to_uuid
=
None
self
.
to_uuid
=
None
# 朋友圈发送者id
def
query_friends_info
(
self
,
user_id
):
"""获取朋友圈发送者"""
...
...
@@ -114,10 +114,10 @@ class FriendMessageNotice(object):
"id"
:
self
.
praise
.
id
,
"fcmid"
:
self
.
praise
.
fcmid
,
"uid"
:
self
.
praise
.
uid
,
"head_path"
:
user_data
.
get
(
'user_avatar_file_name'
),
"nick
name"
:
user_data
.
get
(
'nickname'
),
"source_head_path"
:
source_user
.
get
(
'user_avatar_file_name'
),
"source_name"
:
source_user
.
get
(
'nickname'
),
"head_path"
:
user_data
.
get
(
'user_avatar_file_name'
),
# 点赞者头像
"nick
_name"
:
user_data
.
get
(
'nickname'
),
# 点赞者名字
"source_head_path"
:
source_user
.
get
(
'user_avatar_file_name'
),
# 朋友圈发送者头像
"source_name"
:
source_user
.
get
(
'nickname'
),
# 朋友圈发送者名字
"friend_path"
:
img_str
,
"coding"
:
"1"
,
"create_time"
:
str_to_time
(
str
(
self
.
praise
.
create_time
))
...
...
@@ -130,7 +130,7 @@ class FriendMessageNotice(object):
"uid"
:
self
.
praise
.
uid
,
"content"
:
self
.
praise
.
content
,
"head_path"
:
user_data
.
get
(
'user_avatar_file_name'
),
"nickname"
:
user_data
.
get
(
'nickname'
),
"nick
_
name"
:
user_data
.
get
(
'nickname'
),
"source_head_path"
:
source_user
.
get
(
'user_avatar_file_name'
),
"source_name"
:
source_user
.
get
(
'nickname'
),
"friend_path"
:
img_str
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment