fix: remove qx copy shortcut action
This commit is contained in:
@@ -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({})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user