自定义路径,不使用key时,设置非必须参数
This commit is contained in:
parent
b9d5bf1c0f
commit
800933453a
@ -85,10 +85,9 @@ def init():
|
|||||||
return ReJson(2001, body=merge_save_path)
|
return ReJson(2001, body=merge_save_path)
|
||||||
|
|
||||||
else:
|
else:
|
||||||
if not msg_path or not micro_path or not media_path or not wx_path or not my_wxid:
|
if not msg_path or not micro_path:
|
||||||
return ReJson(1002)
|
return ReJson(1002, body="msg_path and micro_path is required")
|
||||||
if not os.path.exists(msg_path) or not os.path.exists(micro_path) or not os.path.exists(
|
if not os.path.exists(msg_path) or not os.path.exists(micro_path):
|
||||||
media_path) or not os.path.exists(wx_path):
|
|
||||||
return ReJson(1001)
|
return ReJson(1001)
|
||||||
|
|
||||||
save_session(g.sf, "msg_path", msg_path)
|
save_session(g.sf, "msg_path", msg_path)
|
||||||
|
Loading…
Reference in New Issue
Block a user