Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 海阔视界规则分享,当前分享的是:二级页面详情¥page_detail¥♥管理-V2.3@@eyJkYXRhIjoie1wiYXNzb2NpYXRlZE1vZGVsc01hcEZvckpvaW5UYWJsZVwiOnt9LFwiYXNzb2NpYXRlZE1vZGVsc01hcFdpdGhGS1wiOnt9LFwiYXNzb2NpYXRlZE1vZGVsc01hcFdpdGhvdXRGS1wiOnt9LFwiZmllbGRzVG9TZXRUb0RlZmF1bHRcIjpbXSxcImdtdE1vZGlmaWVkXCI6MCxcImlkXCI6MCxcImxhc3RfY2hhcHRlcl9ydWxlXCI6XCJcIixcImxpc3RUb0NsZWFyQXNzb2NpYXRlZEZLXCI6W10sXCJsaXN0VG9DbGVhclNlbGZGS1wiOltdLFwicGFnZUxpc3RcIjpbe1wiY29sX3R5cGVcIjpcIm1vdmllXzNcIixcIm5hbWVcIjpcIumFjee9ruWPguaVsFwiLFwicGF0aFwiOlwiY29uZmlnXCIsXCJydWxlXCI6XCJqczpcXG4kLmV4cG9ydHMudmVyc2lvbiA9IDg7XCJ9LHtcImNvbF90eXBlXCI6XCJtb3ZpZV8zXCIsXCJuYW1lXCI6XCLkupHlj6Pku6Tlr7zlhaVcIixcInBhdGhcIjpcImltcG9ydFwiLFwicnVsZVwiOlwianM6XFxuZnVuY3Rpb24gY2xvdWRpbXBvcnQoKSB7XFxuICAgIGxldCBKWUNvZGUgPSBmZXRjaChcXFwiaGlrZXI6Ly9ob21lQOiBmuW9sVxcXCIpO1xcbiAgICBpZiAoSllDb2RlKSB7XFxuICAgICAgICB3cml0ZUZpbGUoXFxcImhpa2VyOi8vZmlsZXMvX2NhY2hlL2p1eWluZzIvY2xvdWRpbXBvcnQudHh0XFxcIiwgaW5wdXQpO1xcbiAgICAgICAgcmV0dXJuIFxcXCJoaWtlcjovL3BhZ2UvaW1wb3J0Q29uZmlybSNmdWxsVGhlbWUjI25vUmVjb3JkSGlzdG9yeSMjbm9IaXN0b3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lnLDkvp3otZblupMnXSwgXFxcIuaMh+WumuiBmuW9seS7o+eggeiOt+WPluaWueW8j1xcXCIpLnNlbGVjdCgoKSA9PiB7XFxuICAgICAgICAgICAgaWYoTVlfSU5ERVg9PTApe1xcbiAgICAgICAgICAgICAgICByZXR1cm4gXFxcInRvYXN0Oi8v5re75Yqg5a6M5pyJ5pWI55qEZ2l0aHVi5Yqg6YCf5Luj55CG5ZCO6L+U5Zue5Yi35pawXFxcIjtcXG4gICAgICAgICAgICB9ZWxzZSBpZihNWV9JTkRFWD09MCl7XFxuICAgICAgICAgICAgICAgIHJldHVybiAkKGdldEl0ZW0oJ+S+nei1licsICcnKSwgXFxcIuaMh+WumuiBmuW9seS7o+eggeS7k+WcsOWdgFxcXCIpLmlucHV0KCgpID0+IHtcXG4gICAgICAgICAgICAgICAgICAgIGlucHV0ID0gaW5wdXQucmVwbGFjZSgvXFxcXHMrL2csICcnKTtcXG4gICAgICAgICAgICAgICAgICAgIGlmKCFpbnB1dC5zdGFydHNXaXRoKCdodHRwJykpe1xcbiAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBcXFwidG9hc3Q6Ly/ovpPlhaXmnInor69cXFwiO1xcbiAgICAgICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICAgICAgc2V0SXRlbSgn5L6d6LWWJywgaW5wdXQpO1xcbiAgICAgICAgICAgICAgICAgICAgcmVmcmVzaFBhZ2UoKTtcXG4gICAgICAgICAgICAgICAgICAgIHJldHVybiBcXFwidG9hc3Q6Ly/lt7Lorr7nva5cXFwiO1xcbiAgICAgICAgICAgICAgICB9KVxcbiAgICAgICAgICAgIH1lbHNle1xcbiAgICAgICAgICAgICAgICB0b2FzdChcXFwi6L+b5YWl5LiL6L296ZO+5o6l77yM5a+85YWl5a6M5oiQ5ZCO6L+U5Zue5Yi35pawXFxcIik7XFxuICAgICAgICAgICAgICAgIHJldHVybiBcXFwiaHR0cHM6Ly9zcmM0ODU5Nzk2Mi5sYW56b3VvL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YzQ4NTk3OTYyL2hrL21hc3Rlci9KeVJlcXVpcmUuanMnLCB7XFxuICAgICAgICAgICAgICAgICAgICB0aW1lb3V0OiAzMDAwXFxuICAgICAgICAgICAgICAgIH0pO1xcbiAgICAgICAgICAgICAgICBpZiAocmVseWZpbGUpIHtcXG4gICAgICAgICAgICAgICAgICAgIHNyY0hvbWUgPSByZWx5ZmlsZS5pbmNsdWRlcygncmF3LmdpdGh1YicpID8gZ2hwcm94eVtpXSArIHJlbHlmaWxlIDogcmVseWZpbGU7XFxuICAgICAgICAgICAgICAgICAgICBzZXRJdGVtKCfkvp3otZYnLCBzcmNIb21lKTtcXG4gICAgICAgICAgICAgICAgICAgIGJyZWFrO1xcbiAgICAgICAgICAgICAgICB9XFxuICAgICAgICAgICAgfSBjYXRjaCAoZSkge1xcbiAgICAgICAgICAgICAgICAkLnJlcXVpcmUoJ2docHJveHknKS5zZXRwcm94eShnaHByb3h5W2ldLCAwKTtcXG4gICAgICAgICAgICAgICAgbG9nKGUubWVzc2FnZSk7XFxuICAgICAgICAgICAgfVxcbiAgICAgICAgfVxcbiAgICB9XFxuICAgIGxldCBsb2FjbGNvZGUgPSBcXFwiaGlrZXI6Ly9maWxlcy9kYXRhL1xcXCIrTVlfUlVMRS50aXRsZStcXFwiL2NvZGUvU3JjSnV5aW5nLmpzXFxcIjtcXG4gICAgaWYoZ2V0SXRlbSgn5pys5Zyw5L6d6LWW5bqTJyk9PVxcXCIxXFxcIiAmJiBmaWxlRXhpc3QobG9hY2xjb2RlKSl7XFxuICAgICAgICBzcmNIb21lID0gbG9hY2xjb2RlO1xcbiAgICB9XFxuICAgIGluaXRDb25maWcoe1xcbiAgICAgICAg5L6d6LWWOiBzcmNIb21lXFxuICAgIH0pO1xcbn1cXG4vL2J5LuW4heKImmDkurrmiY1cIixcInBhZ2VzXCI6XCJbe1xcXCJjb2xfdHlwZVxcXCI6XFxcIm1vdmllXzNcXFwiLFxcXCJuYW1lXFxcIjpcXFwi6YWN572u5Y+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E7XFxcXG4gICAgICAgIH0gZWxzZSBpZiAoenQgPT0gMikge1xcXFxuICAgICAgICAgICAgcHJveHlsaXN0ID0gcHJveHlsaXN0LmZpbHRlcih2ID0+IHYudXJsICE9IGlucHV0KTtcXFxcbiAgICAgICAgfVxcXFxuICAgICAgICBKdWNvbmZpZ1snZ2hwcm94eSddID0gcHJveHlsaXN0O1xcXFxuICAgICAgICB3cml0ZUZpbGUoY2ZnZmlsZSwgSlNPTi5zdHJpbmdpZnkoSnVjb25maWcpKTtcXFxcbiAgICB9XFxcXG59XFxcXG5cXFxcbmZ1bmN0aW9uIHByb3h5UGFnZSgpIHtcXFxcbiAgICBzZXRQYWdlVGl0bGUoJ+WQr+WKqOS7o+eQhueuoeeQhicpO1xcXFxuICAgIGxldCBkID0gW107XFxcXG4gICAgZC5wdXNoKHtcXFxcbiAgICAgICAgdGl0bGU6ICfpnIDopoFnaXRodWLku6PnkIbmnaXojrflj5bku6PnoIHvvIzkvovvvJpodHRwczovL2docHJveHkuY2MvJyxcXFxcbiAgICAgICAgZGVzYzogJ+acieS7o+eQhu+8micgKyBwcm94eWxpc3QubGVuZ3RoICsgJ++8jOacieaViOeahO+8micgKyBnZXRwcm94eSgpLmxlbmd0aCxcXFxcbiAgICAgICAgdXJsOiBnZXRwcm94eSgpLmxlbmd0aD09MD9cXFxcXFxcInRvYXN0Oi8v5YWI57u05oqkZ2l0aHVi5Yqg6YCf5Luj55CGXFxcXFxcXCI6JChbJ+aWueW8j+S4gO+8muiHquWKqOiOt+WPluS7o+eggeW6kycsJ+aWueW8j+S6jO+8muaJi+W3peaMh+WumuS7o+eggeW6kycsJ+aWueW8j+S4ie+8muS4i+i9veacrOWcsOS+nei1luW6kyddLCBcXFxcXFxcIuaMh+WumuiBmuW9seS7o+eggeiOt+WPluaWueW8j1xcXFxcXFwiKS5zZWxlY3QoKCkgPT4ge1xcXFxuICAgICAgICAgICAgaWYoTVlfSU5ERVg9PTApe1xcXFxuICAgICAgICAgICAgICAgIHJldHVybiBcXFxcXFxcInRvYXN0Oi8v5re75Yqg5a6M5pyJ5pWI55qEZ2l0aHVi5Yqg6YCf5Luj55CG5ZCO6L+U5Zue5Yi35pawXFxcXFxcXCI7XFxcXG4gICAgICAgICAgICB9ZWxzZSBpZihNWV9JTkRFWD09MCl7XFxcXG4gICAgICAgICAgICAgICAgcmV0dXJuICQoZ2V0SXRlbSgn5L6d6LWWJywgJycpLCBcXFxcXFxcIuaMh+WumuiBmuW9seS7o+eggeS7k+WcsOWdgFxcXFxcXFwiKS5pbnB1dCgoKSA9PiB7XFxcXG4gICAgICAgICAgICAgICAgICAgIGlucHV0ID0gaW5wdXQucmVwbGFjZSgvXFxcXFxcXFxzKy9nLCAnJyk7XFxcXG4gICAgICAgICAgICAgICAgICAgIGlmKCFpbnB1dC5zdGFydHNXaXRoKCdodHRwJykpe1xcXFxuICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIFxcXFxcXFwidG9hc3Q6Ly/ovpPlhaXmnInor69cXFxcXFxcIjtcXFxcbiAgICAgICAgICAgICAgICAgICAgfVxcXFxuICAgICAgICAgICAgICAgICAgICBzZXRJdGVtKCfkvp3otZYnLCBpbnB1dCk7XFxcXG4gICAgICAgICAgICAgICAgICAgIHJlZnJlc2hQYWdlKCk7XFxcXG4gICAgICAgICAgICAgICAgICAgIHJldHVybiBcXFxcXFxcInRvYXN0Oi8v5bey6K6+572uXFxcXFxcXCI7XFxcXG4gICAgICAgICAgICAgICAgfSlcXFxcbiAgICAgICAgICAgIH1lbHNle1xcXFxuICAgICAgICAgICAgICAgIHRvYXN0KFxcXFxcXFwi6L+b5YWl5LiL6L296ZO+5o6l77yM5a+85YWl5a6M5oiQ5ZCO6L+U5Zue5Yi35pawXFxcXFxcXCIpO1xcXFxuICAgICAgICAgICAgICAgIHJldHVybiBcXFxcXFxcImh0dHBzOi8vc3JjNDg1OTc5NjIubGFuem91by5jb20vaWFPMXAyYzZidXliXFxcXFxcXCI7XFxcXG4gICAgICAgICA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