fix 合并数据库,以及部分专业工具的显示问题
This commit is contained in:
1 parent
512c2ae6d4
commit
32a702acc3
4 files changed
+24
-13
No files matched your search
@@ -16,7 +16,7 @@ import pythoncom
|
||||
import pywxdump
|
||||
|
||||
from flask import Flask, request, render_template, g, Blueprint, send_file, make_response, session
|
||||
from pywxdump import get_core_db, all_merge_real_time_db
|
||||
from pywxdump import get_core_db, all_merge_real_time_db, get_wx_db
|
||||
from pywxdump.api.rjson import ReJson, RqJson
|
||||
from pywxdump.api.utils import get_conf, get_conf_wxids, set_conf, error9999, gen_base64, validate_title, \
|
||||
get_conf_local_wxid, ls_loger
|
||||
@@ -277,7 +277,9 @@ def merge():
|
||||
out_path = request.json.get("outPath")
|
||||
if not out_path:
|
||||
return ReJson(1002)
|
||||
rdata = merge_db(wxdb_path, out_path)
|
||||
db_path = get_wx_db(wxdb_path)
|
||||
# for i in db_path:print(i)
|
||||
rdata = merge_db(db_path, out_path)
|
||||
return ReJson(0, str(rdata))
|
||||
|
||||
# END 这部分为专业工具的api ***********************************************************************************************
|
||||
@@ -147,7 +147,9 @@ def get_imgsrc(imgsrc):
|
||||
rc, fomt, md5, out_bytes = dat2img(original_img_path)
|
||||
if not rc:
|
||||
return ReJson(1001, body=original_img_path)
|
||||
imgsavepath = os.path.join(str(img_tmp_path), img_path + "_" + ".".join([md5, fomt]))
|
||||
imgsavepath = os.path.join(str(img_tmp_path), img_path + "_" + "".join([md5, fomt]))
|
||||
if os.path.exists(imgsavepath):
|
||||
return send_file(imgsavepath)
|
||||
if not os.path.exists(os.path.dirname(imgsavepath)):
|
||||
os.makedirs(os.path.dirname(imgsavepath))
|
||||
with open(imgsavepath, "wb") as f:
|
||||
|
||||
Reference in new issue
Block a user