xiaomianao666

小程序:数字图书馆Pro

Oct 16th, 2022
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 海阔视界规则分享,当前分享的是:小程序¥home_rule_v2¥base64://@数字图书馆Pro@eyJsYXN0X2NoYXB0ZXJfcnVsZSI6IiIsInRpdGxlIjoi5pWw5a2X5Zu+5Lmm6aaGUHJvIiwiYXV0aG9yIjoi5bCP5qOJ6KKE8J+MniIsInVybCI6Imhpa2VyOi8vZW1wdHkiLCJ2ZXJzaW9uIjoxNSwiY29sX3R5cGUiOiJwaWNfMyIsImNsYXNzX25hbWUiOiIiLCJ0eXBlIjoibmV3cyIsImNsYXNzX3VybCI6IiIsImFyZWFfbmFtZSI6IiIsImFyZWFfdXJsIjoiIiwic29ydF9uYW1lIjoiIiwieWVhcl9uYW1lIjoiIiwic29ydF91cmwiOiIiLCJ5ZWFyX3VybCI6IiIsImZpbmRfcnVsZSI6ImpzOlxudmFyIGQgPSBbXTtcbmQucHVzaCh7XG4gICAgdGl0bGU6IFwi5pCc57SiXCIsXG4gICAgdXJsOiBcIidoaWtlcjovL3NlYXJjaD9ydWxlPVwiICsgTVlfUlVMRS50aXRsZSArIFwiJnM9JytpbnB1dFwiLFxuICAgIGNvbF90eXBlOiBcImlucHV0XCIsXG4gICAgZGVzYzogXCJcIixcbiAgICBwaWNfdXJsOiBcIlwiXG59KTtcbmQucHVzaCh7XG4gICAgY29sX3R5cGU6IFwiYmlnX2JsYW5rX2Jsb2NrXCJcbn0pO1xuXG5sZXQge1xuICAgIGdldERvbWFpblxufSA9ICQucmVxdWlyZShcImhpa2VyOi8vcGFnZS90XCIpO1xubGV0IHtcbiAgICBkb21haW4sXG4gICAgaG9zdCxcbiAgICBoZWFkZXJzXG59ID0gZ2V0RG9tYWluKCk7XG5cbmQucHVzaCh7XG4gICAgdGl0bGU6IFwiPGJpZz7mnIDlj5fmrKLov47nmoQ8L2JpZz48c21hbGw+77yIPGEgaHJlZj1cXFwiaHR0cHM6Ly9c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gIGxldCBodCA9IHJlcXVlc3QoXCJodHRwczovL3poLnNpbmdsZWxvZ2luLmFwcC9cIik7XG4gICAgICAgIGxldCBhMSA9IHBkZmgoaHQsIFwiYm9keSYmc2NyaXB0LDEmJkh0bWxcIik7XG4gICAgICAgIGxldCBhMiA9IGExLnNwbGl0KFwiY29uc3QgYm9va3NEb21haW5zID0gXCIpWzFdO1xuICAgICAgICBhMiA9IGEyLnNwbGl0KFwifTtcIilbMF0gKyBcIn1cIjtcbiAgICAgICAgYTIgPSBhMi5yZXBsYWNlKC8nL2csICdcIicpO1xuICAgICAgICAvL2xvZyhhMik7XG4gICAgICAgIGV2YWwoXCJkb21haW5zID0gXCIgKyBhMik7XG4gICAgICAgIGRzID0gZHMuY29uY2F0KGRvbWFpbnMucmVnaW9uYWwuY29uY2F0KGRvbWFpbnMub3RoZXIpKTtcblxuICAgICAgICBhMiA9IGExLnNwbGl0KFwiY29uc3QgYXJ0aWNsZXNEb21haW5zID0gXCIpWzFdO1xuICAgICAgICBhMiA9IGEyLnNwbGl0KFwifTtcIilbMF0gKyBcIn1cIjtcbiAgICAgICAgYTIgPSBhMi5yZXBsYWNlKC8nL2csICdcIicpO1xuICAgICAgICBldmFsKFwiZG9tYWlucyA9IFwiICsgYTIpO1xuICAgICAgICBkcyA9IGRzLmNvbmNhdChkb21haW5zLnJlZ2lvbmFsLmNvbmNhdChkb21haW5zLm90aGVyKSk7XG4gICAgICAgIGxvZyhkcyk7XG4gICAgfSBjYXRjaCAoZSkge1xuICAgICAgICBsb2coXCLojrflj5bln5/lkI3liJfooajlpLHotKXvvJpcIiArIGUudG9TdHJpbmcoKSk7XG4gICAgfVxuXG4gICAgZnVuY3Rpb24gYmF0Y2hub3codGFza3MpIHtcbiAgICAgICAgYmF0Y2hFeGVjdXRlKHRhc2tzLCB7XG4gICAgICAgICAgICBmdW5jOiBmdW5jdGlvbihwYXJhbSwgaWQsIGVycm9yLCByZXN1bHQpIHtcbiAgICAgICAgICAgICAgICBpZiAocGFyYW0uZG9tYWluKSB7XG4gICAgICAgICAgICAgICAgICAgIHJldHVybiBcImJyZWFrXCI7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIGlmIChyZXN1bHQpIHtcbiAgICAgICAgICAgICAgICAgICAgcGFyYW0uZG9tYWluID0gaWQ7XG4gICAgICAgICAgICAgICAgICAgIHNldEl0ZW0oXCJkb21haW5cIiwgaWQpO1xuICAgICAgICAgICAgICAgICAgICBwdXRNeVZhcihcImRvbWFpblwiLCBpZCk7XG4gICAgICAgICAgICAgICAgICAgIGxvZyhpZCk7XG4gICAgICAgICAgICAgICAgICAgIHJldHVybiBcImJyZWFrXCI7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIHBhcmFtOiB7XG4gICAgICAgICAgICAgICAgZG9tYWluOiBudWxsXG4gICAgICAgICAgICB9XG4gICAgICAgIH0pXG4gICAgfVxuXG4gICAgZm9yIChsZXQgaXQgb2YgZHMpIHtcbiAgICAgICAgdGFza3MucHVzaCh7XG4gICAgICAgICAgICBmdW5jOiBmdW5jdGlvbihwYXJhbSkge1xuICAgICAgICAgICAgICAgIHJldHVybiBjaGVjayhwYXJhbS5kb21haW4pXG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAgcGFyYW06IHtcbiAgICAgICAgICAgICAgICBkb21haW46IGl0XG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAgaWQ6IGl0XG4gICAgICAgIH0pXG4gICAgfVxuICAgIGJhdGNobm93KHRhc2tzKVxufSIsInBhZ2VzIjoiW3tcImNvbF90eXBlXCI6XCJtb3ZpZV8zXCIsXCJuYW1lXCI6XCLlt6XlhbdcIixcInBhdGhcIjpcInRcIixcInJ1bGVcIjpcImZ1bmN0aW9uIGdldERvbWFpbihkb21haW4pIHtcXG4gICAgaWYgKGRvbWFpbiA9PSBudWxsKSB7XFxuICAgICAgICBkb21haW4gPSBnZXRNeVZhcihcXFwiZG9tYWluXFxcIiwgY29uZmlnLmRvbSk7XFxuICAgIH1cXG4gICAgbGV0IGhvc3RzID0gZG9tYWluLnNwbGl0KFxcXCJAXFxcIik7XFxuICAgIGxldCBoZWFkZXJzID0gbnVsbDtcXG4gICAgbGV0IGhvc3QgPSBkb21haW47XFxuICAgIGlmIChob3N0cy5sZW5ndGggPiAxKSB7XFxuICAgICAgICBkb21haW4gPSBob3N0c1swXTtcXG4gICAgICAgIGhlYWRlcnMgPSB7XFxuICAgICAgICAgICAgSG9zdDogaG9zdHNbMV1cXG4gICAgICAgIH07XFxuICAgICAgICBob3N0ID0gaG9zdHNbMV07XFxuICAgIH1cXG4gICAgcmV0dXJuIHtcXG4gICAgICAgIGRvbWFpbjogZG9tYWluLFxcbiAgICAgICAgaG9zdDogaG9zdCxcXG4gICAgICAgIGhlYWRlcnM6IGhlYWRlcnNcXG4gICAgfVxcbn1cXG5cXG4kLmV4cG9ydHMgPSB7XFxuICAgIGdldERvbWFpbjogZ2V0RG9tYWluXFxufVwifV0iLCJpY29uIjoiIn0=
Add Comment
Please, Sign In to add comment