fix: remove qx copy shortcut action

This commit is contained in:
2026-05-17 16:28:55 +08:00
parent ef17909032
commit cf1ad9e68d
3 changed files with 5 additions and 10 deletions
+3 -9
View File
@@ -60,14 +60,8 @@ function getUid(cookie, body) {
const obj = parseJson(body || '', null)
return findUid(obj)
}
function notify(title, sub, msg, opts) {
try { $notify(title, sub || '', msg || '', opts || {}) } catch (e) { $notify(title, sub || '', msg || '') }
}
function copyAction(command) {
return {
'open-url': 'shortcuts://run-shortcut?name=Copy&input=text&text=' + encodeURIComponent(command),
'media-url': 'data:text/plain;charset=utf-8,' + encodeURIComponent(command)
}
function notify(title, sub, msg) {
$notify(title, sub || '', msg || '')
}
const cookie = getHeader($request && $request.headers, 'Cookie')
@@ -84,7 +78,7 @@ if (!cookie) {
// 发给 Autman 机器人的完整快速登录命令。Autman 插件保留“启点ck <cookie>”快速提交通道。
const submitText = `启点ck ${cookie}`
const msg = submitText
notify('启点读书', `抓取成功 uid:${uid}`, msg, copyAction(submitText))
notify('启点读书', `抓取成功 uid:${uid}`, msg)
$done({})
}
}