xiaomianao666

小程序:看刊宝

Dec 10th, 2021
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 海阔视界规则分享,当前分享的是:小程序¥home_rule_v2¥base64://@看刊宝@eyJsYXN0X2NoYXB0ZXJfcnVsZSI6IiIsInRpdGxlIjoi55yL5YiK5a6dIiwiYXV0aG9yIjoiIiwidXJsIjoiaGlrZXI6Ly9lbXB0eSMjJnBhZ2U9ZnlwYWdlIiwidmVyc2lvbiI6MSwiY29sX3R5cGUiOiJtb3ZpZV8zIiwiY2xhc3NfbmFtZSI6IiIsImNsYXNzX3VybCI6IiIsImFyZWFfbmFtZSI6IiIsImFyZWFfdXJsIjoiIiwic29ydF9uYW1lIjoiIiwieWVhcl9uYW1lIjoiIiwic29ydF91cmwiOiIiLCJ5ZWFyX3VybCI6IiIsImZpbmRfcnVsZSI6ImpzOlxuLy/lrozlhajnhafmkKzoh6pKb2tlcuWkp+S9rOeahOKAnOacn+WIiuadguW/l+KAneWwj+eoi+W6j++8jOiwouiwouWkp+S9rH5cbi8v5YiG6aG15rKh5oqE77yM5rKh55yL6L+Z5Z2X55qE5Luj56CBXG5sZXQgZCA9IFtdO1xubGV0IHVybF9wcmVmaXggPSBcImh0dHA6Ly9hcGkuZngzNjEuY29tOjgwL0p1bkppUHJvamVjdC9hcHBcIjtcblxubGV0IG5vdyA9IGdldEl0ZW0oJ25vdycsICcwJyk7XG5NWV9VUkwgPSBNWV9VUkwucmVwbGFjZShcImhpa2VyOi8vZW1wdHkjI1wiLCBcIlwiKTtcbmxldCBwYWdlID0gTVlfVVJMLnNwbGl0KFwiPVwiKVsxXTtcblxuaWYgKHBhZ2UgPT0gMSkge1xuICAgIGxldCBtZW51X3VybCA9IHVybF9wcmVmaXggKyAnL2JrLzAwMSc7XG4gICAgXG4gICAgbGV0IHJlcyA9IGZldGNoKG1lbnVfdXJsLCB7XG4gICAgICAgIFwiaGVhZGVyc1wiOiB7XG4gICAgICAgICAgICBcIlgtS2hyb25vc1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IChub3cgPT0gJzAnKSB7XG4gICAgLy/mlLbol49cbiAgICBsZXQgY29sbGVjdGlvbiA9IEpTT04ucGFyc2UocmVhZEZpbGUoJ2NvbGxlY3Rpb24nKSB8fCAne30nKTtcbiAgICBmb3IgKGxldCBpIGluIGNvbGxlY3Rpb24pIHtcbiAgICAgICAgbGV0IGl0ID0gY29sbGVjdGlvbltpXTtcbiAgICAgICAgZC5wdXNoKHtcbiAgICAgICAgICAgIHRpdGxlOiBpdC5ia05hbWUsXG4gICAgICAgICAgICBjb2xfdHlwZTogJ21vdmllXzMnLFxuICAgICAgICAgICAgcGljX3VybDogaXQuYmtQaWMsXG4gICAgICAgICAgICBkZXNjOiBpdC5xaXNodSxcbiAgICAgICAgICAgIHVybDogJ2hpa2VyOi8vcGFnZS9jb250ZW50P2JrSWQ9JyArIGl0LmJrSWQsXG4gICAgICAgICAgICBleHRyYToge1xuICAgICAgICAgICAgICAgIGN1ckJrOiBpdFxuICAgICAgICAgICAgfVxuICAgICAgICB9KVxuICAgIH1cblxufSBlbHNlIGlmIChub3cgPT0gJzEnKSB7XG4gICAgLy/ng63pl6jmjpLooYxcbiAgICBsZXQgc3ViX3VybCA9IHVybF9wcmVmaXggKyBcIi9pbmRleC8wMDNcIjtcbiAgICBsZXQgcmVzMiA9IGZldGNoKHN1Yl91cmwsIHtcbiAgICAgICAgXCJoZWFkZXJzXCI6IHtcbiAgICAgICAgICAgIFwiWC1LaHJvbm9zXCI6IFwiMTYzOTAyNDgxOTkzOFwiLFxuICAgICAgICAgICAgXCJYLUdvcmdvblwiOiBcIjk2YzAwNDk1NjY3ZTk2YTU2ZTRiZTdkYzc0Yzg4YzMwXCJcbiAgICAgICAgfSxcbiAgICAgICAgXCJtZXRob2RcIjogXCJHRVRcIlxuICAgIH0pO1xuICAgIGxldCBzdWJfZGF0YSA9IEpTT04ucGFyc2UocmVzMikuZGF0YTtcbiAgICBmb3IgKGxldCBpdCBvZiBzdWJfZGF0YSkge1xuICAgICAgICBpZiAoaXQuY29sdW1uID09IFwi54Ot6Zeo5o6S6KGMXCIpIHtcbiAgICAgICAgICAgIGZvciAobGV0IGUgb2YgaXQuZGF0YSkge1xuICAgICAgICAgICAgICAgIGQucHVzaCh7XG4gICAgICAgICAgICAgICAgICAgIHRpdGxlOiBlLnRpdGxlLFxuICAgICAgICAgICAgICAgICAgICBjb2xfdHlwZTogJ21vdmllXzMnLFxuICAgICAgICAgICAgICAgICAgICBwaWNfdXJsOiBlLnBpYyxcbiAgICAgICAgICAgICAgICAgICAgZGVzYzogZS5xaXNodSxcbiAgICAgICAgICAgICAgICAgICAgdXJsOiAkKCcnKS5sYXp5UnVsZSgoZSkgPT4ge1xuICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuICdoaWtlcjovL3BhZ2UvY29udGVudD9ia0lkPScgKyBlLmJrSWQ7XG4gICAgICAgICAgICAgICAgICAgIH0sIGUpLFxuICAgICAgICAgICAgICAgICAgICBleHRyYToge1xuICAgICAgICAgICAgICAgICAgICAgICAgY3VyQms6IHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBxaXNodTogZS5xaXNodSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBia0lkOiBlLmJrSWQsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgYmtQaWM6IGUucGljLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGJrTmFtZTogZS50aXRsZVxuICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBicmVhaztcbiAgICAgICAgfVxuICAgIH1cbn0gZWxzZSB7XG4gICAgbGV0IHN1Yl91cmwgPSB1cmxfcHJlZml4ICsgXCIvYmsvMDAzP2NhdGVJZD1cIiArIG5vdyArIE1ZX1VSTFxuXG4gICAgbGV0IHJlczIgPSBmZXRjaChzdWJfdXJsLCB7XG4gICAgICAgIFwiaGVhZGVyc1wiOi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WdlKGZhbHNlKTtcXG4gICAgICAgICAgICAgICAgICAgIHJldHVybiAndG9hc3Q6Ly/lt7LmlLbotbcgJyArIHJlcy5ibURhdGFbaXRlbV0uYm1OYW1lO1xcbiAgICAgICAgICAgICAgICB9IGVsc2Uge1xcbiAgICAgICAgICAgICAgICAgICAgcHV0VmFyKCdpdGVtJywgaXRlbSk7XFxuICAgICAgICAgICAgICAgICAgICByZWZyZXNoUGFnZShmYWxzZSk7XFxuICAgICAgICAgICAgICAgICAgICByZXR1cm4gJ3RvYXN0Oi8v5bey5bGV5byAICcgKyByZXMuYm1EYXRhW2l0ZW1dLmJtTmFtZTtcXG4gICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgIH0scmVzLCBpdGVtKSxcXG4gICAgICAgICAgICBleHRyYToge1xcbiAgICAgICAgICAgICAgICBsaW5lVmlzaWJsZTogZmFsc2VcXG4gICAgICAgICAgICB9XFxuICAgICAgICB9KVxcblxcbiAgICAgICAgaWYgKG5vd0l0ZW0gJiYgbm93SXRlbSA9PSBpdGVtKSB7XFxuICAgICAgICAgICBsZXQgbGVuID0gcmVzLmJtRGF0YS5sZW5ndGg7IHJlcy5ibURhdGFbbm93SXRlbV0uYm1OZXdzLmZvckVhY2goKGUsaW5kZXgpID0+IHsgICBcXG4gICAgICAgICAgICAgICAgZC5wdXNoKHtcXG4gICAgICAgICAgICAgICAgICAgIHRpdGxlOiAn4oCc4oCc4oCd4oCdPHNtYWxsPicgKyBlLm5ld3NUaXRsZSArICc8L3NtYWxsPicsXFxuICAgICAgICAgICAgICAgICAgICBkZXNjOiAnJyxcXG4gICAgICAgICAgICAgICAgICAgIGNvbF90eXBlOiAndGV4dF8xJyxcXG4gICAgICAgICAgICAgICAgICAgIHVybDogJ2hpa2VyOi8vcGFnZS90ZXh0JyArIGZ1bGxUaGVtZSArICc/dGl0bGU9JyArIGUubmV3c1RpdGxlICsgJyZuZXdzSWQ9JyArIGUubmV3c0lkLFxcbiAgICAgZXh0cmE6e1xc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ly9lbXB0eVxcXCJcXG4gICAgfSwgaW5kZW50KVxcbn0pXFxuXFxuZC5wdXNoKHtcXG4gICAgY29sX3R5cGU6ICdsaW5lJ1xcbn0pXFxuXFxuZC5wdXNoKHtcXG4gICAgdGl0bGU6ICfpooTop4gnLmJpZygpICsgJyjlrZflj7c6JyArIGZvbnRzaXplICsgJyznvKnov5s6JyArIGluZGVudCArICcpJyxcXG4gICAgY29sX3R5cGU6ICdyaWNoX3RleHQnXFxufSwge1xcbiAgICB0aXRsZTogJzxwPuWwj+ajieiihOW4heWQlz88L3A+PHA+5bCP5qOJ6KKE5oCO5LmI6L+Z5LmI5biF77yfPC9wPjxwPuWwj+ajieiihOecn+aYr+i2hei2hei2hei2hei2hei2hei2hei2hee6p+W4hSEhISHluIXngrjkuoblpb3kuI3lpb3vvJ/kuL7kuJbpopzml6Dlj4whISEhPC9wPicucmVwbGFjZSgvXFxcXDxwXFxcXD4vZywgJzxwPicgKyBpbmRlbnRzKSxcXG4gICAgY29sX3R5cGU6ICdyaWNoX3RleHQnLFxcbiAgICBleHRyYToge1xcbiAgICAgICAgdGV4dFNpemU6IGZvbnRzaXplXFxuICAgIH1cXG59KVxcbnNldFJlc3VsdChkKTtcIn1dIiwiaWNvbiI6IiJ9
Add Comment
Please, Sign In to add comment