MCPcopy Create free account
hub / github.com/6dylan6/jdpro / getEnvByPtPin

Function getEnvByPtPin

function/sendNotify.js:2244–2253  ·  view source on GitHub ↗
(Ptpin)

Source from the content-addressed store, hash-verified

2242};
2243
2244async function getEnvByPtPin(Ptpin){
2245 const envs = await getEnvs();
2246 for (let i = 0; i < envs.length; i++) {
2247 var tempptpin = decodeURIComponent(envs[i].value.match(/pt_pin=([^; ]+)(?=;?)/) && envs[i].value.match(/pt_pin=([^; ]+)(?=;?)/)[1]);
2248 if(tempptpin==Ptpin){
2249 return envs[i];
2250 }
2251 }
2252 return "";
2253};
2254
2255async function delEnv(eid){
2256 const token = await getToken();

Callers 2

sendNotifyFunction · 0.70
sendNotifybyWxPucherFunction · 0.70

Calls 2

getEnvsFunction · 0.70
matchMethod · 0.45

Tested by

no test coverage detected