Compare commits

..

No commits in common. "7472a962829e99312f483760fc9f8aaaf2e76d75" and "f1cf1f0eb834d4aad9d0000000dda36126e949ec" have entirely different histories.

3 changed files with 9 additions and 13 deletions

View File

@ -25,11 +25,7 @@
}
.title {
margin-top: 36px;
}
table.jsoneditor-tree>tbody>tr.jsoneditor-expandable:first-child {
display: none;
margin-top: 30px;
}
.modal-body {
@ -93,8 +89,8 @@
</span>
</div>
</div>
<div v-for="(plugin, pluginName) in formData.plugins" :key="pluginName">
<div class="form-group row mb-0" style="display:flex; align-items:center;">
<div v-for="(plugin, pluginName) in formData.plugins" :key="pluginName" class="task mb-3">
<div class="form-group row" style="display:flex; align-items:center">
<div class="col-9" data-toggle="collapse" :data-target="'#collapse_'+pluginName" aria-expanded="true" :aria-controls="'collapse_'+pluginName">
<div class="btn btn-block text-left">
<i class="bi bi-caret-right-fill"></i> <span v-html="`${pluginName}`"></span>
@ -131,7 +127,7 @@
<hr>
<div class="row">
<div class="col-lg-6 col-md-12">
<div class="row">
<div class="form-group row">
<label class="col-form-label col-md-3">名称筛选</label>
<div class="input-group col-md-9">
<input type="text" class="form-control" v-model="taskNameFilter" placeholder="名称 筛选/搜索">
@ -142,7 +138,7 @@
</div>
</div>
<div class="col-lg-6 col-md-12">
<div class="row">
<div class="form-group row">
<label class="col-form-label col-md-3">路径筛选</label>
<div class="input-group col-md-9">
<select class="form-control" v-model="taskDirSelected">
@ -261,7 +257,7 @@
</div>
<div class="form-group row">
<label class="col-sm-2 col-form-label">运行星期</label>
<div class="col-sm-10 col-form-label">
<div class="col-sm-10">
<div class="form-check form-check-inline" v-for="(day, index) in weekdays" :key="index">
<input class="form-check-input" type="checkbox" v-model="task.runweek" :value="index+1">
<label class="form-check-label" v-html="day"></label>

View File

@ -51,7 +51,7 @@ class Aria2:
{
"header": [
f"Cookie: {cookie}",
f"User-Agent: {account.USER_AGENT}",
f"User-Agent: {account.common_headers().get('user-agent')}",
],
"out": os.path.basename(save_path),
"dir": os.path.dirname(save_path),

View File

@ -151,7 +151,6 @@ class Config:
class Quark:
BASE_URL = "https://drive-pc.quark.cn"
BASE_URL_APP = "https://drive-m.quark.cn"
USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) quark-cloud-drive/3.14.2 Chrome/112.0.5615.165 Electron/24.1.3.8 Safari/537.36 Channel/pckk_other_ch"
def __init__(self, cookie, index=None):
self.cookie = cookie.strip()
@ -178,7 +177,7 @@ class Quark:
headers = {
"cookie": self.cookie,
"content-type": "application/json",
"user-agent": self.USER_AGENT,
"user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) quark-cloud-drive/3.14.2 Chrome/112.0.5615.165 Electron/24.1.3.8 Safari/537.36 Channel/pckk_other_ch",
}
if "headers" in kwargs:
headers = kwargs["headers"]
@ -264,6 +263,7 @@ class Quark:
response = self._send_request(
"POST", url, json=payload, params=querystring
).json()
print(response)
if response.get("status") == 200:
return True, response["data"]["stoken"]
else: