Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 海阔视界规则分享,当前分享的是:二级页面详情¥page_detail¥八戒采集@@eyJkYXRhIjoie1wiYXNzb2NpYXRlZE1vZGVsc01hcEZvckpvaW5UYWJsZVwiOnt9LFwiYXNzb2NpYXRlZE1vZGVsc01hcFdpdGhGS1wiOnt9LFwiYXNzb2NpYXRlZE1vZGVsc01hcFdpdGhvdXRGS1wiOnt9LFwiZmllbGRzVG9TZXRUb0RlZmF1bHRcIjpbXSxcImdtdE1vZGlmaWVkXCI6MCxcImlkXCI6MCxcImxhc3RfY2hhcHRlcl9ydWxlXCI6XCJcIixcImxpc3RUb0NsZWFyQXNzb2NpYXRlZEZLXCI6W10sXCJsaXN0VG9DbGVhclNlbGZGS1wiOltdLFwicGFnZUxpc3RcIjpbe1wiY29sX3R5cGVcIjpcIm1vdmllXzNcIixcIm5hbWVcIjpcIumFjee9ruWPguaVsFwiLFwicGF0aFwiOlwiY29uZmlnXCIsXCJydWxlXCI6XCJqczpcXG4kLmV4cG9ydHMudmVyc2lvbiA9IDc7XCJ9LHtcImNvbF90eXBlXCI6XCJtb3ZpZV8zXCIsXCJuYW1lXCI6XCLkupHlj6Pku6Tlr7zlhaVcIixcInBhdGhcIjpcImltcG9ydFwiLFwicnVsZVwiOlwianM6XFxuZnVuY3Rpb24gY2xvdWRpbXBvcnQoKSB7XFxuICAgIGxldCBKWUNvZGUgPSBmZXRjaChcXFwiaGlrZXI6Ly9ob21lQOiBmuW9sVxcXCIpO1xcbiAgICBpZiAoSllDb2RlKSB7XFxuICAgICAgICB3cml0ZUZpbGUoXFxcImhpa2VyOi8vZmlsZXMvX2NhY2hlL2p1eWluZzIvY2xvdWRpbXBvcnQudHh0XFxcIiwgaW5wdXQpO1xcbiAgICAgICAgcmV0dXJuIFxcXCJoaWtlcjovL3BhZ2UvaW1wb3J0Q29uZmlybSNmdWxsVGhlbWUjI25vUmVjb3JkSGlzdG9yeSMjbm9IaXN0b3J5I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6IHRydWVcXG4gICAgICAgIH1cXG4gICAgfSk7XFxuICAgIGQucHVzaCh7XFxuICAgICAgICBjb2xfdHlwZTogXFxcImxpbmVcXFwiXFxuICAgIH0pO1xcbiAgICBwcm94eWxpc3QucmV2ZXJzZSgpO1xcbiAgICBwcm94eWxpc3QuZm9yRWFjaChpdCA9PiB7XFxuICAgICAgICBkLnB1c2goe1xcbiAgICAgICAgICAgIHRpdGxlOiBpdC5zdG9wID8gJ+KAmOKAmOKAmeKAmTxmb250IGNvbG9yPVxcXCIjZjIwYzAwXFxcIj4nICsgaXQudXJsICsgJzwvZm9udD4nIDogaXQudXJsLFxcbiAgICAgICAgICAgIHVybDogJChbaXQuc3RvcCA/IFxcXCLlkK/nlKhcXFwiIDogXFxcIuWBnOeUqFxcXCIsIFxcXCLliKDpmaRcXFwiLCBcXFwi5aSN5Yi2XFxcIl0sIDEsIFxcXCJcXFwiKS5zZWxlY3QoKHVybCkgPT4ge1xcbiAgICAgICAgICAgICAgICBpZiAoaW5wdXQgPT0gXFxcIuWQr+eUqFxcXCIpIHtcXG4gICAgICAgICAgICAgICAgICAgICQucmVxdWlyZSgnZ2hwcm94eScpLnNldHByb3h5KHVybCwgMSk7XFxuICAgICAgICAgICAgICAgIH0gZWxzZSBpZiAoaW5wdXQgPT0gXFxcIuWBnOeUqFxcXCIpIHtcXG4gICAgICAgICAgICAgICAgICAgICQucmVxdWlyZSgnZ2hwcm94eScpLnNldHByb3h5KHVybCwgMCk7XFxuICAgICAgICAgICAgICAgIH0gZWxzZSBpZiAoaW5wdXQgPT0gXFxcIuWIoOmZpFxcXCIpIHtcXG4gICAgICAgICAgICAgICAgICAgICQucmVxdWlyZSgnZ2hwcm94eScpLnNldHByb3h5KHVybCwgMik7XFxuICAgICAgICAgICAgICAgIH0gZWxzZSBpZiAoaW5wdXQgPT0gXFxcIuWkjeWItlxcXCIpIHtcXG4gICAgICAgICAgICAgICAgICAgIGNvcHkodXJsKTtcXG4gICAgICAgICAgICAgICAgIC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WWKSB7XFxuICAgIGxldCBzcmNIb21lID0gZ2V0SXRlbSgn5L6d6LWWJywgJycpO1xcbiAgICBpZiAoIXNyY0hvbWUpIHtcXG4gICAgICAgIC8v6L+c56iL5L6d6LWW57Si5byV5paH5Lu25Luj55CG5Zyw5Z2A5YiX6KGoXFxuICAgICAgICBsZXQgZ2hwcm94eSA9ICQucmVxdWlyZSgnZ2hwcm94eScpLmdldHByb3h5KCk7XFxuICAgICAgICBpZihnaHByb3h5Lmxlbmd0aD09MCl7XFxuICAgICAgICAgICAgZ2hwcm94eS5wdXNoKFxcXCJcXFwiKTtcXG4gICAgICAgIH1cXG4gICAgICAgIGZvciAobGV0IGkgPSAwOyBpIDwgZ2hwcm94eS5sZW5ndGg7IGkrKykge1xcbiAgICAgICAgICAgIHRyeSB7IC8v6L+c56iL5L6d6LWW57Si5byVXFxuICAgICAgICAgICAgICAgIHJlcXVpcmUoZ2hwcm94eVtpXSArICdodHRwczovL3Jhdy5naXRodWJ1c2VyY29udGVudC5jb20vc3JjNDg1OTc5NjIvaGsvbWFzdGVyL0p5UmVxdWlyZS5qcycsIHtcXG4gICAgICAgICAgICAgICAgICAgIHRpbWVvdXQ6IDMwMDBcXG4gICAgICAgICAgICAgICAgfSk7XFxuICAgICAgICAgICAgICAgIGlmIChyZWx5ZmlsZSkge1xcbiAgICAgICAgICAgICAgICAgICAgc3JjSG9tZSA9IHJlbHlmaWxlLmluY2x1ZGVzKCdyYXcuZ2l0aHViJykgPyBnaHByb3h5W2ldICsgcmVseWZpbGUgOiByZWx5ZmlsZTtcXG4gICAgICAgICAgICAgICAgICAgIHNldEl0ZW0oJ+S+nei1licsIHNyY0hvbWUpO1xcbiAgICAgICAgICAgICAgICAgICAgYnJlYWs7XFxuICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICB9IGNhdGNoIChlKSB7XFxuICAgICAgICAgICAgICAgICQucmVxdWlyZSgnZ2hwcm94eScpLnNldHByb3h5KGdocHJveHlbaV0sIDApO1xcb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