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

Function changeShareCodeJson

jd_jxnc.js:117–124  ·  view source on GitHub ↗
(code)

Source from the content-addressed store, hash-verified

115// 检查互助码格式是否为 json
116// 成功返回 json 对象,失败返回 ''
117function changeShareCodeJson(code) {
118 try {
119 let json = code && JSON.parse(code);
120 return json['smp'] && json['active'] && json['joinnum'] ? json : '';
121 } catch (e) {
122 return '';
123 }
124}
125
126// 加载配置 cookie token shareCode
127function requireConfig() {

Callers 2

requireConfigFunction · 0.85
helpFriendsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected