Skip to content

Commit

Permalink
增加表情显示
Browse files Browse the repository at this point in the history
  • Loading branch information
xaoyaoo committed Aug 4, 2024
1 parent 0895693 commit c377cc1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions pywxdump/api/remote_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,12 +234,12 @@ def get_msgs():
return ReJson(1002, body=f"start or limit is not int {start} {limit}")

db = DBHandler(db_config)
msgs, wxid_list = db.get_msg_list(wxid, start, limit)
msgs, wxid_list = db.get_msg_list(wxid=wxid, start_index=start, page_size=limit)
if not msgs:
msgs, wxid_list = db.get_plc_msg_list(wxid, start, limit)
msgs, wxid_list = db.get_plc_msg_list(wxid=wxid, start_index=start, page_size=limit)
wxid_list.append(my_wxid)
user_list = db.get_user_list(wxids=wxid_list)
return ReJson(0, {"msg_list": msgs, "user_list": user_list})
user = db.get_user_list(wxids=wxid_list)
return ReJson(0, {"msg_list": msgs, "user_list": user})


@rs_api.route('/api/rs/video/<path:videoPath>', methods=["GET", 'POST'])
Expand Down
2 changes: 1 addition & 1 deletion pywxdump/db/dbMSG.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def get_msg_detail(self, row):
DictExtra = get_BytesExtra(BytesExtra)
cdnurl = match_BytesExtra(DictExtra)
if cdnurl:
content = {"src": cdnurl, "msg": "表情"}
msg, src = "表情", cdnurl

elif type_id == (48, 0): # 地图信息
content_tmp = xml2dict(StrContent)
Expand Down

0 comments on commit c377cc1

Please sign in to comment.