xiaomianao666

小程序:至臻

Dec 13th, 2024
463
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 海阔视界规则分享,当前分享的是:小程序¥home_rule_v2¥base64://@至臻@eyJsYXN0X2NoYXB0ZXJfcnVsZSI6IiIsInRpdGxlIjoi6Iez6Ie7IiwiYXV0aG9yIjoi5a2j6aOOJkNhdCIsInVybCI6Imhpa2VyOi8vZW1wdHkjIyIsInZlcnNpb24iOjAsImNvbF90eXBlIjoibW92aWVfMyIsImNsYXNzX25hbWUiOiIiLCJ0eXBlIjoidmlkZW8iLCJjbGFzc191cmwiOiIiLCJhcmVhX25hbWUiOiIiLCJhcmVhX3VybCI6IiIsInNvcnRfbmFtZSI6IiIsInllYXJfbmFtZSI6IiIsInNvcnRfdXJsIjoiIiwieWVhcl91cmwiOiIiLCJmaW5kX3J1bGUiOiJqczpcbnZhciBkID0gW107XG4vL+W8leWFpeiHquWKqOWIh+aNouWfn+WQjeexu1xuZXZhbChKU09OLnBhcnNlKHJlcXVlc3QoJ2hpa2VyOi8vcGFnZS9BdXRvVXJsJykpLnJ1bGUpO1xuXG4vKlxuLy/ojrflj5blj6/orr/pl67ln5/lkI1cbmlmIChnZXRNeVZhcihcImhvc3RcIikgPT0gXCJcIikge1xuICAgIGdldFVybCgpO1xufVxuXG4vL+mqjOivgeWfn+WQjeaYr+WQpuWPr+S7peiuv+mXrlxuaWYgKCFnZXRNeVZhcihcImhvc3RcIikgPT0gXCJcIikge1xuICAgIGxldCBDb2RlID0gSlNPTi5wYXJzZShmZXRjaChnZXRNeVZhcihcImhvc3RcIiksIHtcbiAgICAgICAgd2l0aFN0YXR1c0NvZGU6IHRydWUsXG4gICAgICAgIHRpbWVvdXQ6IDUwMDBcbiAgICB9KSkuc3RhdHVzQ29kZTtcbiAgICBpZiAoIUNvZGUgPT0gMjAwKSB7XG4gICAgICAgIGdldFVybCgpO1xuICAgIH1cbn1cbiovXG5cbi8v6I635Y+W5Y+v6K6/6Zeu5Z+f5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gICAgIHB1dE15VmFyKE1ZX1JVTEUudXJsLCBNWV9VUkwrJy9pbmRleC5waHAvdm9kL3R5cGUvaWQvJyArIGlkICsgJy5odG1sJyk7XG4gICAgICAgICAgICAgICAgcmV0dXJuIFVSTFxuICAgICAgICAgICAgfSwgVVJMLCBpZCksXG4gICAgICAgICAgICBjb2xfdHlwZTogXCJhdmF0YXJcIixcbiAgICAgICAgICAgIGV4dHJhOiB7XG4gICAgICAgICAgICAgICAgaWQ6IGlkLFxuICAgICAgICAgICAgICAgIHBhZ2VUaXRsZTogXCLniYflupNcIlxuICAgICAgICAgICAgfVxuICAgICAgICB9KTtcbiAgICB9IGVsc2Uge1xuICAgICAgICBkLnB1c2goe1xuICAgICAgICAgICAgdGl0bGU6IHBkZmgoZGF0YSwgJy5tb2R1bGUtdGl0bGUmJlRleHQnKSxcbiAgICAgICAgICAgIGRlc2M6IHBkZmgoZGF0YSwgJy5tb3JlJiZUZXh0JyksXG4gICAgICAgICAgICBwaWNfdXJsOiBJY29uICsgTGFiZWxfc2V0X2ljb25baWRdLFxuICAgICAgICAgICAgdXJsOiAkKFwiI25vTG9hZGluZyNcIikubGF6eVJ1bGUoKFVSTCwgaWQpID0+IHtcbiAgICAgICAgICAgICAgICBpZCA9PSBcIjBcIiA/IFwiMVwiIDogaWQ7XG4gICAgICAgICAgICAgICAgcHV0TXlWYXIoTVlfUlVMRS51cmwsIE1ZX1VSTCsnL2luZGV4LnBocC92b2QvdHlwZS9pZC8nICsgaWQgKyAnLmh0bWwnKTtcbiAgICAgICAgICAgICAgICByZXR1cm4gVVJMXG4gICAgICAgICAgICB9LCBVUkwsIGlkKSxcbiAgICAgICAgICAgIGNvbF90eXBlOiBcImF2YXRhclwiLFxuICAgICAgICAgICAgZXh0cmE6IHtcbiAgICAgICAgICAgICAgICBpZDogaWQsXG4gICAgICAgICAgICAgICAgcGFnZVRpdGxlOiBcIueJh+W6k1wiXG4gICAgICAgICAgICB9XG4gICAgICAgIH0pO1xuICAgIH1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FxuICAgICAgICBpZiAoaSA+IGRhdGEubGVuZ3RoIC0gMSkge1xcbiAgICAgICAgICAgIGkgPSAwXFxuICAgICAgICB9XFxuICAgICAgICB2YXIgaXRlbSA9IGRhdGFbaV07XFxuICAgICAgICAvL2xvZyhpdGVtKVxcbiAgICAgICAgdHJ5IHtcXG4gICAgICAgICAgICB1cGRhdGVJdGVtKGlkKydiYXInLCB7XFxuICAgICAgICAgICAgICAgIHRpdGxlOiBpdGVtLnRpdGxlLFxcbiAgICAgICAgICAgICAgICBpbWc6IGl0ZW0uaW1nLFxcbiAgICAgICAgICAgICAgICB1cmw6IGl0ZW0udXJsLFxcbiAgICAgICAgICAgICAgICBleHRyYToge1xcbiAgICAgICAgICAgICAgICAgICAgLy9uYW1lOiBpdGVtLnRpdGxlLnJlcGxhY2UoLzxbXj5dKz4vZywgJycpLFxcbiAgICAgICAgICAgICAgICAgICAgLy9zbmFtZTogaXRlbS5leHRyYS5zbmFtZSxcXG4gICAgICAgICAgICAgICAgICAgIC8vc3R5cGU6IGl0ZW0uZXh0cmEuc3R5cGUsXFxuICAgICAgICAgICAgICAgICAgICAvL3N1cmw6IGl0ZW0udXJsLFxcbiAgICAgICAgICAgICAgICAgICAgLy9pbWc6aXRlbS5pbWcsXFxuICAgICAgICAgICAgICAgICAgICB0aXRsZTogaXRlbS50aXRsZS5yZXBsYWNlKC88W14+XSs+L2csICcnKSxcXG4gICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgIH0pXFxuICAgICAgICB9IGNhdGNoIChlKSB7XFxuICAgICAgICAgICAgbG9nKGUubWVzc2FnZSlcXG4gICAgICAgICAgICB1blJlZ2lzdGVyVGFzayhpZClcXG4gICAgICAgIH1cXG4gICAgICAgIHB1dE15VmFyKCdiYW5uZXJpJywgaSk7XFxuXFxuICAgIH0sIG9iaixpZCkpXFxufVwifSx7XCJjb2xfdHlwZVwiOlwibW92aWVfM1wiLFwibmFtZVwiOlwi5LiA57qnXCIsXCJwYXRoXCI6XCJ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3IsIHJlc3VsdCkge1xcbiAgICAgICAgICAgIGlmIChyZXN1bHQgIT0gbnVsbCkge1xcbiAgICAgICAgICAgICAgICBob3N0LnB1c2gocmVzdWx0KTtcXG4gICAgICAgICAgICAgICAgcmV0dXJuICdicmVhayc7ICAgIC8v6I635Y+W5oiQ5Yqf5ZCO5Li75Yqo5Lit5pat6K+35rGC5YeP5bCR572R56uZ55qE5Y6L5YqbXFxuICAgICAgICAgICAgfVxcbiAgICAgICAgfVxcbiAgICB9KTtcXG5cXG4gICAgLypmb3IgKGxldCBpID0gMDsgaSA8IHVybHMubGVuZ3RoOyBpKyspIHtcXG4gICAgICAgIGxldCBDb2RlID0gSlNPTi5wYXJzZShmZXRjaCh1cmxzW2ldLCB7XFxuICAgICAgICAgICAgd2l0aFN0YXR1c0NvZGU6IHRydWUsXFxuICAgICAgICAgICAgdGltZW91dDogNTAwMFxcbiAgICAgICAgfSkpLnN0YXR1c0NvZGU7XFxuICAgICAgICBpZiAoQ29kZSA9PSAyMDApIHtcXG4gICAgICAgICAgICBob3N0LnB1c2godXJsc1tpXSlcXG4gICAgICAgICAgICBicmVhaztcXG4gICAgICAgIH07XFxuICAgIH07Ki9cXG4gICAgXFxuICAgIHB1dE15VmFyKFxcXCJob3N0XFxcIiwgaG9zdFswXSk7XFxufVwifV0iLCJpY29uIjoiaHR0cHM6Ly9hcGkueGluYWMubmV0L2ljb24vP3VybD1odHRwczovL21paGRyLnRvcC8iLCJwcm94eSI6IiJ9
Add Comment
Please, Sign In to add comment