Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 海阔视界规则分享,当前分享的是:二级页面详情¥page_detail¥TUOKU8·搜索@@eyJkYXRhIjoie1wiYXNzb2NpYXRlZE1vZGVsc01hcEZvckpvaW5UYWJsZVwiOnt9LFwiYXNzb2NpYXRlZE1vZGVsc01hcFdpdGhGS1wiOnt9LFwiYXNzb2NpYXRlZE1vZGVsc01hcFdpdGhvdXRGS1wiOnt9LFwiZmllbGRzVG9TZXRUb0RlZmF1bHRcIjpbXSxcImdtdE1vZGlmaWVkXCI6MCxcImlkXCI6MCxcImxhc3RfY2hhcHRlcl9ydWxlXCI6XCJcIixcImxpc3RUb0NsZWFyQXNzb2NpYXRlZEZLXCI6W10sXCJsaXN0VG9DbGVhclNlbGZGS1wiOltdLFwicGFnZUxpc3RcIjpbe1wiY29sX3R5cGVcIjpcIm1vdmllXzNcIixcIm5hbWVcIjpcIuaQnOe0olwiLFwicGF0aFwiOlwiU2VhcmNoXCIsXCJydWxlXCI6XCJsZXQgZCA9IFtdO1xcbnNldFBhZ2VUaXRsZSgnVFVPS1U4wrfmkJzntKInKTtcXG5wYWdlID0gTVlfUEFHRSAtIDE7XFxuaWYgKHBhZ2UgPT0gMCkge1xcbiAgICBkLnB1c2goe1xcbiAgICAgICAgdGl0bGU6IFxcXCLwn5SNXFxcIixcXG4gICAgICAgIGRlc2M6IFxcXCLmkJzntKLlhbPplK7or41cXFwiLFxcbiAgICAgICAgdXJsOiAkLnRvU3RyaW5nKCgpID0+IHtcXG4gICAgICAgICAgICBwdXRNeVZhcihcXFwi5pCc57Si5YWz6ZSu6K+NXFxcIiwgaW5wdXQpO1xcbiAgICAgICAgICAgIHJlZnJlc2hQYWdlKHRydWUpXFxuICAgICAgICB9KSxcXG4gICAgICAgIGNvbF90eXBlOiAnaW5wdXQnLFxcbiAgICAgICAgZXh0cmE6IHtcXG4gICAgICAgICAgICBkZWZhdWx0VmFsdWU6IGdldE15VmFyKFxcXCLmkJzntKL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c7XFxyXFxuICAgICAgICBicmVhaztcXHJcXG4gICAgY2FzZSAn5pyA54OtJzpcXHJcXG4gICAgICAgIHR5cGUgPSAnSE9UJztcXHJcXG4gICAgICAgIGJyZWFrO1xcclxcbiAgICBjYXNlICfmjqjojZAnOlxcclxcbiAgICAgICAgdHlwZSA9ICdNT1NUX1BMQVknO1xcclxcbiAgICAgICAgYnJlYWs7XFxufTtcIn0se1wiY29sX3R5cGVcIjpcIm1vdmllXzNcIixcIm5hbWVcIjpcIuWIl+ihqFwiLFwicGF0aFwiOlwiSHRtbFwiLFwicnVsZVwiOlwiaWYgKERhdGUuY29udGVudCAhPSAnJykge1xcbiAgICBEYXRlLmNvbnRlbnQuZm9yRWFjaChkYXRhID0+IHtcXG4gICAgICAgIGxldCBudW0gPSBwYXJzZUludCgoZGF0YS5wbGF5Q291bnQgLyAxMDAwMCkgKiAxMDAgLyAxMDApICsgJ+S4hyc7XFxuICAgICAgICBpZiAobnVtID09ICcw5LiHJykge1xcbiAgICAgICAgICAgIG51bSA9IGRhdGEucGxheUNvdW50XFxuICAgICAgICB9O1xcbiAgICAgICAgYmF0Y2ggPSBkYXRhLmJhdGNoO1xcbiAgICAgICAgaWQgPSBkYXRhLnVybDtcXG4gICAgICAgIGQucHVzaCh7XFxuICAgICAgICAgICAgdGl0bGU6IGRhdGEudGl0bGUsXFxuICAgICAgICAgICAgZGVzYzogbnVtICsgJ+ingueciycsXFxuICAgICAgICAgICAgcGljX3VybDogJ2h0dHBzOi8vc3RhdGljLicgKyBob3N0ICsgJy8nICsgYmF0Y2ggKyAnLycgKyBpZCArICcvdGh1bWJuYWlsLmpwZycsXFxuICAgICAgICAgICAgdXJsOiAkKCdodHRwczovL2FwaS4nICsgaG9zdCArICcvdi9nZXQ/YmF0Y2g9JyArIGJhdGNoICsgJyZ1cmw9JyArIGlkKS5sYXp5UnVsZSgoYmF0Y2gsIGlkLCBob3N0KSA9PiB7XFxuICAgICAgICAgICAgICAgIGV2YWwoZ2V0Q3J5cHRvSlMoKSk7XFxuICAgICAgICAgICAgICAgIGxldCByZXEgPSBKU09OLnBhcnNlKHJlcXVlc3QoaW5wdXQsIHtcXG4gICAgICAgICAgICAgICAgICAgIGhlYWRlcnM6IHtcXG4gICAgICAgICAgICAgICAgICAgICAgICAnb3JpZ2luJzogJ2h0dHBzOi8vd3d3LicgKyBob3N0XFxuICAgICAgICAgICAgICAgICAgICB9XFxuICAgICAgICAgICAgICAgIH0pKVxcbiAgICAgICAgICAgICAgICBsZXQgZjEgPSAnaHR0cHM6Ly9yZXNvdXJjZXMuJyArIGhvc3QgKyAnLycgKyBiYXRjaCArICcvJyArIGlkICsgJy9vdXRwdXRfaGQubTN1OD9tZDU9bWQ1YmFzZTY0JmV4cGlyZXM9JyArIHJlcS50O1xcbiAgICAgICAgICAgICAgICBsZXQgZjIgPSAnLycgKyBiYXRjaCArICcvJyArIGlkICsgJy9vdXRwdXRfaGQubTN1OCc7XFxuICAgICAgICAgICAgICAgIGlmICghcmVxLmhkKSB7XFxuICAgICAgICAgICAgICAgICAgICBmMSA9IGYxLnJlcGxhY2UoJ291dHB1dF9oZCcsICdvdXRwdXRfc2QnKTtcXG4gICAgICAgICAgICAgICAgICAgIGYyID0gZjIucmVwbGFjZSgnb3V0cHV0X2hkJywgJ291dHB1dF9zZCcpO1xcbiAgICAgICAgICAgICAgICB9XFxuICAgICAgICAgICAgICAgIHJldHVybiBmMS5yZXBsYWNlKCdtZDViYXNlNjQnLCBDcnlwdG9KUy5NRDUoJzRxSEswNCcgKyBmMiArIHJlcS50KS50b1N0cmluZyhDcnlwdG9KUy5lbmMuQmFzZTY0KS5yZXBsYWNlKC89L2csIFxcXCJcXFwiKS5yZXBsYWNlKC9cXFxcKy9nLCBcXFwiLVxcXCIpLnJlcGxhY2UoL1xcXFwvL2csIFxcXCJfXFxcIikpXFxuICAgICAgICAgICAgfSwgYmF0Y2gsIGlkLCBob3N0KSxcXG4gICAgICAgICAgICBjb2xfdHlwZTogJ21vdmllXzIn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dXJsPScgKyBpZCkubGF6eVJ1bGUoKGJhdGNoLCBpZCwgaG9zdCkgPT4ge1xcXFxuICAgICAgICAgICAgICAgIGV2YWwoZ2V0Q3J5cHRvSlMoKSk7XFxcXG4gICAgICAgICAgICAgICAgbGV0IHJlcSA9IEpTT04ucGFyc2UocmVxdWVzdChpbnB1dCwge1xcXFxuICAgICAgICAgICAgICAgICAgICBoZWFkZXJzOiB7XFxcXG4gICAgICAgICAgICAgICAgICAgICAgICAnb3JpZ2luJzogJ2h0dHBzOi8vd3d3LicgKyBob3N0XFxcXG4gICAgICAgICAgICAgICAgICAgIH1cXFxcbiAgICAgICAgICAgICAgICB9KSlcXFxcbiAgICAgICAgICAgICAgICBsZXQgZjEgPSAnaHR0cHM6Ly9yZXNvdXJjZXMuJyArIGhvc3QgKyAnLycgKyBiYXRjaCArICcvJyArIGlkICsgJy9vdXRwdXRfaGQubTN1OD9tZDU9bWQ1YmFzZTY0JmV4cGlyZXM9JyArIHJlcS50O1xcXFxuICAgICAgICAgICAgICAgIGxldCBmMiA9ICcvJyArIGJhdGNoICsgJy8nICsgaWQgKyAnL291dHB1dF9oZC5tM3U4JztcXFxcbiAgICAgICAgICAgICAgICBpZiAoIXJlcS5oZCkge1xcXFxuICAgICAgICAgICAgICAgICAgICBmMSA9IGYxLnJlcGxhY2UoJ291dHB1dF9oZCcsICdvdXRwdXRfc2QnKTtcXFxcbiAgICAgICAgICAgICAgICAgICAgZjIgPSBmMi5yZXBsYWNlKCdvdXRwdXRfaGQnLCAnb3V0cHV0X3NkJyk7XFxcXG4gICAgICAgICAgICAgICAgfVxcXFxuICAgICAgICAgICAgICAgIHJldHVybiBmMS5yZXBsYWNlKCdtZDViYXNlNjQnLCBDcnlwdG9KUy5NRDUoJzRxSEswNCcgKyBmMiArIHJlcS50KS50b1N0cmluZyhDcnlwdG9KUy5lbmMuQmFzZTY0KS5yZXBsYWNlKC89L2csIFxcXFxcXFwiXFxcXFxcXCIpLnJlcGxhY2UoL1xcXF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XJsO1xcXFxuICAgIGFqYXhfdXJsID0gYWpheF91cmwubWF0Y2goL1xcXFxcXFxcLiguKj8pXFxcXFxcXFwvLylbMV07XFxcXG4gICAgY29uZmlybSh7XFxcXG4gICAgICAgIHRpdGxlOiAn5pu05paw5o+Q56S6JyxcXFxcbiAgICAgICAgY29udGVudDogJ+ajgOa1i+WIsOS9oOeahOinhOWImeacieabtOaWsCzmmK/lkKbnq4vljbPmm7TmlrDvvJ8nLFxcXFxuICAgICAgICBjb25maXJtOiAkLnRvU3RyaW5nKChhamF4X3VybCkgPT4ge1xcXFxuICAgICAgICAgICAgTVlfUlVMRS51cmwgPSBcXFxcXFxcImhpa2VyOi8vZW1wdHkkJFxcXFxcXFwiICsgYWpheF91cmwgKyBcXFxcXFxcIiQkZnlwYWdlXFxcXFxcXCI7XFxcXG4gICAgICAgICAgICByZXR1cm4gXFxcXFxcXCJydWxlOi8vXFxcXFxcXCIgKyBiYXNlNjRFbmNvZGUoXFxcXFxcXCLmtbfpmJTop4bnlYzvv6Vob21lX3J1bGXvv6VcXFxcXFxcIiArIEpTT04uc3RyaW5naWZ5KE1ZX1JVTEUpKTtcXFxcbiAgICAgICAgfSwgYWpheF91cmwpLFxcXFxuICAgICAgICBjYW5jZWw6IFxcXFxcXFwiXFxcXFxcXCJcXFxcbiAgICB9KVxcXFxufVxcXFxuc2V0UmVzdWx0KGQpXFxcIn1dXCJ9IiwidGl0bGUiOiJUVU9LVTjCt+aQnOe0oiJ9
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement