Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 海阔视界规则分享,当前分享的是:二级页面详情¥page_detail¥剧评详情@@eyJkYXRhIjoie1wiYXNzb2NpYXRlZE1vZGVsc01hcEZvckpvaW5UYWJsZVwiOnt9LFwiYXNzb2NpYXRlZE1vZGVsc01hcFdpdGhGS1wiOnt9LFwiYXNzb2NpYXRlZE1vZGVsc01hcFdpdGhvdXRGS1wiOnt9LFwiZmllbGRzVG9TZXRUb0RlZmF1bHRcIjpbXSxcImdtdE1vZGlmaWVkXCI6MCxcImlkXCI6MCxcImxhc3RfY2hhcHRlcl9ydWxlXCI6XCJqczpcXG5mdW5jdGlvbiBnZXREb3ViYW5SZXModXJsKSB7XFxuICAgIGlmICh1cmwuaW5kZXhPZignYXBpa2V5JykgPT09IC0xKSB7XFxuICAgICAgICB1cmwgKz0gKHVybC5pbmRleE9mKCc/JykgPT09IC0xID8gJz8nIDogJyYnKSArIFxcXCJhcGlrZXk9MGRhZDU1MWVjMGY4NGVkMDI5MDdmZjVjNDJlOGVjNzBcXFwiXFxuICAgIH1cXG4gICAgbGV0IHMgPSBmZXRjaCh1cmwsIHtcXG4gICAgICAgIGhlYWRlcnM6IHtcXG4gICAgICAgICAgICBcXFwiVXNlci1BZ2VudFxcXCI6IFxcXCJSZXh4YXItQ29yZS8wLjEuMyBhcGktY2xpZW50LzEgY29tLmRvdWJhbi5mcm9kby83LjkuMC5iZXRhMigyMTUpIEFuZHJvaWQvMjUgcHJvZHVjdC9UQVMtQUwwMCB2ZW5kb3IvSFVBV0VJIG1vZGVsL1RBUy1BTDAwICByb20vYW5kcm9pZCAgbmV0d29yay93aWZpICBwbGF0Zm9ybS9tb2JpbGUgY29tLmRvdWJhbi5mcm9kby83LjkuMC5iZXRhMigyMTUpIFJleHhhci8xLjIuMTUxICBwbGF0Zm9ybS9tb2JpbGUgMS4yLjE1MVxcXCJcXG4gICAgICAgIH0sXFxuICAgICAgICBtZXRob2Q6ICdQT1NUJyx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0dXJuIGQ7YCxcXG4gICAgICAgIH0sXFxuICAgICAgfSxcXG4gICAgICBhbmFseXNpc0NvbmZpZ3M6IHtcXG4gICAgICAgIHVzZTogJ+S4jeino+aekCcsXFxuICAgICAgICDkuI3op6PmnpA6IHtcXG4gICAgICAgICAgY29uZmlnOiAkLnRvU3RyaW5nKCgpID0+IHtcXG4gICAgICAgICAgICByZXR1cm4gaW5wdXQ7XFxuICAgICAgICAgIH0pLFxcbiAgICAgICAgICBzZXR0aW5nOiAkLnRvU3RyaW5nKCgpID0+IHtcXG4gICAgICAgICAgICByZXR1cm4gJ3RvYXN0Oi8v6K+l5o+S5Lu25peg6K6+572u6aG16Z2iJztcXG4gICAgICAgICAgfSksXFxuICAgICAgICB9LFxcbiAgICAgICAg5pat5o+SOiB7XFxuICAgICAgICAgIGNvbmZpZzogJC50b1N0cmluZygoKSA9PiB7XFxuICAgICAgICAgICAgbGV0IGZpbGUgPSAnaGlrZXI6Ly9maWxlcy9ydWxlcy9EdWFuTmlhbi9NeVBhcnNlLmpzb24nO1xcbiAgICAgICAgICAgIGxldCBvbGRmaWxlID0gJ2hpa2VyOi8vZmlsZXMvY2FjaGUvTXlQYXJzZVNldC5qc29uJztcXG4gICAgICAgICAgICBpZiAoZmlsZUV4aXN0KGZpbGUpKSB7XFxuICAgICAgICAgICAgICBldmFsKCdqc29uPScgKyBmZXRjaChmaWxlKSk7XFxuICAgICAgICAgICAgICBsZXQganNVcmwgPSBqc29uLnNldHRpbmdzLmNqO1xcbiAgICAgICAgICAgICAgZXZhbChmZXRjaChqc1VybCkpO1xcbiAgICAgICAgICAgICAgcmV0dXJuIGF5dG1QYXJzZShpbnB1dCk7XFxuICAgICAgICAgICAgfSBlbHNlIGlmIChmaWxlRXhpc3Qob2xkZmlsZSkpIHtcXG4gICAgICAgICAgICAgIGxldCBqc1VybCA9IEpTT04ucGFyc2UoZmV0Y2gob2xkZmlsZSkpLmNqO1xcbiAgICAgICAgICAgICAgZXZhbChmZXRjaChqc1VybCkpO1xcbiAgICAgICAgICAgICAgcmV0dXJuIGF5dG1QYXJzZShpbnB1dCk7XFxuICAgICAgICAgICAgfSBlbHNlIHtcXG4gICAgICAgICAgICAgIHJldHVybiAndG9hc3Q6Ly/msqHmib7liLDmlq3mj5LphY3nva7mlofku7YnO1xcbiAgICAgICAgICAgIH1cXG4gICAgICAgICAgfSksXFxuICAgICAgICAgIHNldHRpbmc6ICQudG9TdHJpbmcoKCkgPT4ge1xcbiAgICAgICAgICAgIGxldCBmaWxlID0gJ2hpa2VyOi8vZmlsZXMvcnVsZXMvRHVhbk5pYW4vTXlQYXJzZS5qc29uJztcXG4gICAgICAgICAgICBsZXQgb2xkZmlsZSA9ICdoaWtlcjovL2ZpbGVzL2NhY2hlL015UGFyc2VTZXQuanNvbic7XFxuICAgICAgICAgICAgaWYgKGZpbGVFeGlzdChmaWxlKSkge1xcbiAgICAgICAgICAgICAgZXZhbCgnanNvbj0nICsgZmV0Y2goZmlsZSkpO1xcbiAgICAgICAgICAgICAgbGV0IGpzVXJsID0ganNvbi5zZXR0aW5ncy5jajtcXG4gICAgICAgICAgICAgIGV2YWwoZmV0Y2goanNVcmwpKTtcXG4gICAgICAgICAgICAgIHJldHVybiBzZXRVcmw7XFxuICAgICAgICAgICAgfSBlbHNlIGlmIChmaWxlRXhpc3Qob2xkZmlsZSkpIHtcXG4gICAgICAgICAgICAgIGxldCBqc1VybCA9IEpTT04ucGFyc2UoZmV0Y2gob2xkZmlsZSkpLmNqO1xcbiAgICAgICAgICAgICAgZXZhbChmZXRjaChqc1VybCkpO1xcbiAgICAgICAgICAgICAgcmV0dXJuIHNldFVybDtcXG4gICAgICAgICAgICB9IGVsc2Uge1xcbiAgICAgICAgICAgICAgcmV0dXJuICdoaWtlcjovL3BhZ2UvUm91dGU/cnVsZT1NeUZpZWxk4bSw4oG/JnR5cGU96K6+572uJztcXG4gICAgICAgICAgICB9XFxuICAgICAgICAgIH0pLFxcbiAgICAgICAgfSxcXG4gICAgICB9LFxcbiAgICB9O1xcbiAgICAgICAgICAgIGxldCBpdGVtID0gJyc7XFxuICAgICAgICAgICAgc3dpdGNoIChzZWwpIHtcXG4gICAgICAgICAgICAgICAgY2FzZSAn6YeN572u5pif5pif6aKc6ImyJzpcXG4gICAgICAgICAgICAgICAgICAgIGl0ZW0gPSAnc3RhckNvbG9yJztcXG4gICAgICAgICAgICAgICAgICAgIGJyZWFrO1xcbiAgICAgICAgICAgICAgICBjYXNlICfph43nva7pgInkuK3moIfnrb7popzoibInOlxcbiAgICAgICAgICAgICAgICAgICAgaXRlbSA9ICdjaG9vc2VDb2xvcic7XFxuICAgICAgICAgICAgICAgICAgICBicmVhaztcXG4gICAgICAgICAgICAgICAgY2FzZSAn6YeN572u5b+r6YCf5pCc57SiJzpcXG4gICAgICAgICAgICAgICAgICAgIGl0ZW0gPSAncXVpY2tTZWFyY2hDb25maWdzJztcXG4gICAgICAgICAgICAgICAgICAgIGJyZWFrO1xcbiAgICAgICAgICAgICAgICBjYXNlICfph43nva7pppbpobUnOlxcbiAgICAgICAgICAgICAgICAgICAgaXRlbSA9ICdob21lUGFnZUNvbmZpZ3MnO1xcbiAgICAgICAgICAgICAgICAgICAgYnJlYWs7XFxuICAgICAgICAgICAgICAgIGNhc2UgJ+mHjee9ruivpuaDhemhtSc6XFxuICAgICAgICAgICAgICAgICAgICBpdGVtID0gJ2RldGFpbFZpZXdDb25maWdzJztcXG4gICAgICAgICAgICAgICAgICAgIGJyZWFrO1xcbiAgICAgICAgICAgICAgICBjYXNlICfph43nva7lhajpg6jorr7nva7pobknOlxcbiAgICAgICAgICAgICAgICAgICAgaXRlbSA9ICdhbGwnO1xcbiAgICAgICAgICAgICAgICAgICAgYnJlYWs7XFxuICAgICAgICAgICAgfVxcbiAgICAgICAgICAgIC8vIGV2YWwoZmV0Y2goZ2V0VmFyKCdxZGJfZmlsZScpKSk7XFxuICAgICAgICAgICAgaWYgKGl0ZW0gPT0gJ2FsbCcpIHtcXG4gICAgICAgICAgICA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yYXcvbWFzdGVyL3FkYi5qcyc7XFxcXG4gICAgbGV0IHRleHQgPSByZXF1ZXN0KGdpdGZpbGUpO1xcXFxuICAgIHdyaXRlRmlsZShmaWxlLCB0ZXh0KTtcXFxcbiAgICByZWZyZXNoUGFnZSgpO1xcXFxuICAgIHJldHVybiAndG9hc3Q6Ly/kvp3otZbmlofku7bmm7TmlrDmiJDlip8nO1xcXFxuICB9KSxcXFxcbn0pO1xcXFxuZC5wdXNoKHtcXFxcbiAgICB0aXRsZTogJ+eCueaIkeaBouWkjem7mOiupOiuvue9ricsXFxcXG4gICAgY29sX3R5cGU6ICd0ZXh0XzEnLFxcXFxuICAgIHVybDogJChbJ+mHjee9ruaYn+aYn+minOiJsicsICfph43nva7pgInkuK3moIfnrb7popzoibInLCAn6YeN572u5b+r6YCf5pCc57SiJywgJ+mHjee9rummlumhtScsICfph43nva7or6bmg4XpobUnICwgJ+mHjee9ruWFqOmDqOiuvue9rumhuSddLCAxKS5zZWxlY3QoKCkgPT4ge1xcXFxuICAgICAgICByZXR1cm4gJChcXFxcXFxcIuehruWumuimgVxcXFxcXFwiICsgaW5wdXQgKyBcXFxcXFxcIu+8n1xcXFxcXFwiKS5jb25maXJtKChzZWwpID0+IHtcXFxcbiAgICAgICAgICAgIGRlZmF1bHRDb25maWdzID0ge1xcXFxuICAgICAgc3RhckNvbG9yOiAnI2ZmYWMyZCcsXFxcXG4gICAgICBjaG9vc2VDb2xvcjogJyNGQTcyOTgnLFxcXFxuICAgICAgcXVpY2tTZWFyY2hDb25maWdzOiB7XFxcXG4gICAgICAgIG1vZGU6ICdzY3JvbGxfYnV0dG9uJyxcXFxcbiAgICAgICAgb3JkZXI6IFsn5rW36ZiU5pCc57SiJ10sXFxcXG4gICAgICAgIOa1t+mYlOaQnOe0ojoge1xcXFxuICAgICAgICAgIG5hbWU6ICcnLFxcXFxuICAgICAgICAgIHBpYzogJycsXFxcXG4gICAgICAgIH0sXFxcXG4gICAgICB9LFxcXFxuICAgICAgZ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An5LiN6Kej5p6QJyxcXFxcbiAgICAgICAg5LiN6Kej5p6QOiB7XFxcXG4gICAgICAgICAgY29uZmlnOiAkLnRvU3RyaW5nKCgpID0+IHtcXFxcbiAgICAgICAgICAgIHJldHVybiBpbnB1dDtcXFxcbiAgICAgICAgICB9KSxcXFxcbiAgICAgICAgICBzZXR0aW5nOiAkLnRvU3RyaW5nKCgpID0+IHtcXFxcbiAgICAgICAgICAgIHJldHVybiAndG9hc3Q6Ly/or6Xmj5Lku7bml6Dorr7nva7pobXpnaInO1xcXFxuICAgICAgICAgIH0pLFxcXFxuICAgICAgICB9LFxcXFxuICAgICAgICDmlq3mj5I6IHtcXFxcbiAgICAgICAgICBjb25maWc6ICQudG9TdHJpbmcoKCkgPT4ge1xcXFxuICAgICAgICAgICAgbGV0IGZpbGUgPSAnaGlrZXI6Ly9maWxlcy9ydWxlcy9EdWFuTmlhbi9NeVBhcnNlLmpzb24nO1xcXFxuICAgICAgICAgICAgbGV0IG9sZGZpbGUgPSAnaGlrZXI6Ly9maWxlcy9jYWNoZS9NeVBhcnNlU2V0Lmpzb24nO1xcXFxuICAgICAgICAgICAgaWYgKGZpbGVFeGlzdChmaWxlKSkge1xcXFxuICAgICAgICAgICAgICBldmFsKCdqc29uPScgKyBmZXRjaChmaWxlKSk7XFxcXG4gICAgICAgICAgICAgIGxldCBqc1VybCA9IGpzb24uc2V0dGluZ3MuY2o7XFxcXG4gICAgICAgICAgICAgIGV2YWwoZmV0Y2goanNVcmwpKTtcXFxcbiAgICAgICAgICAgICAgcmV0dXJuIGF5dG1QYXJzZShpbnB1dCk7XFxcXG4gICAgICAgICAgICB9IGVsc2UgaWYgKGZpbGVFeGlzdChvbGRmaWxlKSkge1xcXFxuICAgICAgICAgICAgICBsZXQganNVcmwgPSBKU09OLnBhcnNlKGZldGNoKG9sZGZpbGUpKS5jajtcXFxcbiAgICAgICAgICAgICAgZXZhbChmZXRjaChqc1VybCkpO1xcXFxuICAgICAgICAgICAgICByZXR1cm4gYXl0bVBhcnNlKGlucHV0KTtcXFxcbiAgICAgICAgICAgIH0gZWxzZSB7XFxcXG4gICAgICAgICAgICAgIHJldHVybiAndG9hc3Q6Ly/msqHmib7liLDmlq3mj5LphY3nva7mlofku7YnO1xcXFxuICAgICAgICAgICAgfVxcXFxuICAgICAgICAgIH0pLFxcXFxuICAgICAgICAgIHNldHRpbmc6ICQudG9TdHJpbmcoKCkgPT4ge1xcXFxuICAgICAgICAgICAgbGV0IGZpbGUgPSAnaGlrZXI6Ly9maWxlcy9ydWxlcy9EdWFuTmlhbi9NeVBhcnNlLmpzb24nO1xcXFxuICAgICAgICAgICAgbGV0IG9sZGZpbGUgPSAnaGlrZXI6Ly9maWxlcy9jYWNoZS9NeVBhcnNlU2V0Lmpzb24nO1xcXFxuICAgICAgICAgICAgaWYgKGZpbGVFeGlzdChmaWxlKSkge1xcXFxuICAgICAgICAgICAgICBldmFsKCdqc29uPScgKyBmZXRjaChmaWxlKSk7XFxcXG4gICAgICAgICAgICAgIGxldCBqc1VybCA9IGpzb24uc2V0dGluZ3MuY2o7XFxcXG4gICAgICAgICAgICAgIGV2YWwoZmV0Y2goanNVcmwpKTtcXFxcbiAgICAgICAgICAgICAgcmV0dXJuIHNldFVybDtcXFxcbiAgICAgICAgICAgIH0gZWxzZSBpZiAoZmlsZUV4aXN0KG9sZGZpbGUpKSB7XFxcXG4gICAgICAgICAgICAgIGxldCBqc1VybCA9IEpTT04ucGFyc2UoZmV0Y2gob2xkZmlsZSkpLmNqO1xcXFxuICAgICAgICAgICAgICBldmFsKGZldGNoKGpzVXJsKSk7XFxcXG4gICAgICAgICAgICAgIHJldHVybiBzZXRVcmw7XFxcXG4gICAgICAgICAgICB9IGVsc2Uge1xcXFxuICAgICAgICAgICAgICByZXR1cm4gJ2hpa2VyOi8vcGFnZS9Sb3V0ZT9ydWxlPU15RmllbGThtLDigb8mdHlwZT3orr7nva4nO1xcXFxuICAgICAgICAgICAgfVxcXFxuICAgICAgICAgIH0pLFxcXFxuICAgICAgICB9LFxcXFxuICAgICAgfSxcXFxcbiAgICB9O1xcXFxuICAgICAgICAgICAgbGV0IGl0ZW0gPSAnJztcXFxcbiAgICAgICAgICAgIHN3aXRjaCAoc2VsKSB7XFxcXG4gICAgICAgICAgICAgICAgY2FzZSAn6YeN572u5pif5pif6aKc6ImyJzpcXFxcbiAgICAgICAgICAgICAgICAgICAgaXRlbSA9ICdzdGFyQ29sb3InO1xcXFxuICAgICAgICAgICAgICAgICAgICBicmVhaztcXFxcbiAgICAgICAgICAgICAgICBjYXNlICfph43nva7pgInkuK3moIfnrb7popzoibInOlxcXFxuICAgICAgICAgICAgICAgICAgICBpdGVtID0gJ2Nob29zZUNvbG9yJztcXFxcbiAgICAgICAgICAgICAgICAgICAgYnJlYWs7XFxcXG4gICAgICAgICAgICAgICAgY2FzZSAn6YeN572u5b+r6YCf5pCc57SiJzpcXFxcbiAgICAgICAgICAgICAgICAgICAgaXRlbSA9ICdxdWlja1NlYXJjaENvbmZpZ3MnO1xcXFxuICAgICAgICAgICAgICAgICAgICBicmVhaztcXFxcbiAgICAgICAgICAgICAgICBjYXNlICfph43nva7pppbpobUnOlxcXFxuICAgICAgICAgICAgICAgICAgICBpdGVtID0gJ2hvbWVQYWdlQ29uZmlncyc7XFxcXG4gICAgICAgICAgICAgICAgICAgIGJyZWFrO1xcXFxuICAgICAgICAgICAgICAgIGNhc2UgJ+mHjee9ruivpuaDhemhtSc6XFxcXG4gICAgICAgICAgICAgICAgICAgIGl0ZW0gPSAnZGV0YWlsVmlld0NvbmZpZ3MnO1xcXFxuICAgICAgICAgICAgICAgICAgICBicmVhaztcXFxcbiAgICAgICAgICAgICAgICBjYXNlICfph43nva7lhajpg6jorr7nva7pobknOlxcXFxuICAgICAgICAgICAgICAgICAgICBpdGVtID0gJ2FsbCc7XFxcXG4gICAgICAgICAgICAgICAgICAgIGJyZWFrO1xcXFxuICAgICAgICAgICAgfVxcXFxuICAgICAgICAgICAgLy8gZXZhbChmZXRja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