MCPcopy Create free account
hub / github.com/Semporia/Scripts / getTokens

Function getTokens

jd_cfdtx.js:127–143  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

125}
126
127function getTokens() {
128 if ($.isNode()) {
129 Object.keys(jdTokenNode).forEach((item) => {
130 $.tokenArr.push(jdTokenNode[item] ? JSON.parse(jdTokenNode[item]) : '{}');
131 })
132 } else {
133 $.tokenArr = JSON.parse($.getdata('jx_tokens') || '[]');
134 }
135 if (!$.tokenArr[0]) {
136 $.msg(
137 $.name,
138 "【⏰提示】请先获取京喜Token\n获取方式见脚本说明"
139 );
140 return false;
141 }
142 return true;
143}
144
145function showMsg() {
146 return new Promise((resolve) => {

Callers 1

jd_cfdtx.jsFile · 0.85

Calls 3

isNodeMethod · 0.45
getdataMethod · 0.45
msgMethod · 0.45

Tested by

no test coverage detected