Skip to content

Commit

Permalink
✨ 文件开始选择:分享失效提示
Browse files Browse the repository at this point in the history
  • Loading branch information
Cp0204 committed Sep 2, 2024
1 parent 6adcc37 commit ce0a0f6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion app/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,9 @@ def get_share_files():
shareurl = request.args.get("shareurl", "")
account = Quark("", 0)
pwd_id, pdir_fid = account.get_id_from_url(shareurl)
_, stoken = account.get_stoken(pwd_id)
is_sharing, stoken = account.get_stoken(pwd_id)
if not is_sharing:
return jsonify({"error": stoken})
share_file_list = account.get_detail(pwd_id, stoken, pdir_fid)
return jsonify(share_file_list)

Expand Down
3 changes: 2 additions & 1 deletion app/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,8 @@ <h5 class="modal-title"><b>分享文件列表</b>
</button>
</div>
<div class="modal-body">
<table class="table table-hover table-sm" v-if="!modalLoading" title="请选择转存起始文件,将只转存修改日期>选中文件的文件">
<div class="alert alert-warning" v-if="shareFiles.error" v-html="shareFiles.error"></div>
<table class="table table-hover table-sm" v-else-if="!modalLoading" title="请选择转存起始文件,将只转存修改日期>选中文件的文件">
<thead>
<tr>
<!-- <th scope="col">fid</th> -->
Expand Down

0 comments on commit ce0a0f6

Please sign in to comment.