|
|
|
@ -1711,9 +1711,15 @@ function extension(){ |
|
|
|
|
let note_name = 'Juying'+num; |
|
|
|
|
let sharecode = JYconfig['sharecode'] || {}; |
|
|
|
|
sharecode['note_name'] = sharecode['note_name'] || note_name; |
|
|
|
|
let noteinfo = JSON.parse(request('https://netcut.cn/api/note2/info/', { |
|
|
|
|
headers: { 'Referer': 'https://netcut.cn/' }, |
|
|
|
|
body: 'note_name='+sharecode['note_name'], |
|
|
|
|
method: 'POST' |
|
|
|
|
})); |
|
|
|
|
|
|
|
|
|
d.push({ |
|
|
|
|
title: sharecode['note_id']?'复制聚影资源码口令':'申请聚影资源码',//sharetime
|
|
|
|
|
desc: sharecode['time']?sharecode['time']+' 有效期三年\n'+(sharecode['time']?sharecode['time']+" 上次同步时间":"暂未分享同步"):'点击申请三年长期资源码', |
|
|
|
|
title: noteinfo.status==1&&sharecode['note_id']?'复制聚影资源码口令':'申请聚影资源码',//sharetime
|
|
|
|
|
desc: noteinfo.status==1&&sharecode['sharetime']?noteinfo.data.created_time+' 有效期三年\n'+(sharecode['time']?sharecode['time']+" 上次同步时间":"暂未分享同步"):'点击申请三年长期资源码', |
|
|
|
|
url: sharecode['note_id']?$().lazyRule((codeid)=>{ |
|
|
|
|
let code = '聚影资源码¥'+codeid; |
|
|
|
|
copy(code); |
|
|
|
|