Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 海阔视界规则分享,当前分享的是:二级页面详情¥page_detail¥♥观影设置@@eyJkYXRhIjoie1wiYXNzb2NpYXRlZE1vZGVsc01hcEZvckpvaW5UYWJsZVwiOnt9LFwiYXNzb2NpYXRlZE1vZGVsc01hcFdpdGhGS1wiOnt9LFwiYXNzb2NpYXRlZE1vZGVsc01hcFdpdGhvdXRGS1wiOnt9LFwiZmllbGRzVG9TZXRUb0RlZmF1bHRcIjpbXSxcImlkXCI6MCxcImxhc3RfY2hhcHRlcl9ydWxlXCI6XCJcIixcImxpc3RUb0NsZWFyQXNzb2NpYXRlZEZLXCI6W10sXCJsaXN0VG9DbGVhclNlbGZGS1wiOltdLFwicGFnZUxpc3RcIjpbXSxcInNhdmVkXCI6ZmFsc2UsXCJ0aXRsZVwiOlwi6IGa5b2x4oiaXCIsXCJ2ZXJzaW9uXCI6MCxcInVybFwiOlwiaGlrZXI6Ly9lbXB0eSNub1JlY29yZEhpc3RvcnkjXCIsXCJjb2xfdHlwZVwiOlwibW92aWVfM1wiLFwiZmluZF9ydWxlXCI6XCJqczooXFxuKCkgPT4ge1xcbiAgICBmdW5jdGlvbiBnZXRpZGUoaXMpIHtcXG4gICAgICAgIGlmIChpcyA9PSAxKSB7XFxuICAgICAgICAgICAgcmV0dXJuIFxcXCJcXFxcdTIwMThcXFxcdTIwMThcXFxcdTIwMTlcXFxcdTIwMTk8c3Ryb25nPjxmb250IGNvbG9yPVxcXFxcXFwiI2YxM2I2NmFcXFxcXFxcIj5cXFxcdTI1YzkgPC9mcm9udD48L3N0cm9uZz5cXFwiO1xcbiAgICAgICAgfSBlbHNlIHtcXG4gICAgICAgICAgICByZXR1cm4gXFxcIlxcXFx1MjAxOFxcXFx1MjAxOFxcXFx1MjAxOVxcXFx1MjAxOTxzdHJvbmc+PGZvbnQgY29sb3I9XFxcXFxcXCIjRjU0MzQzXFxcXFxcXCI+XFxcXHUyNWM5IDwvZnJvbn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DEpIHtcXG4gICAgICAgICAgICAgICAgSlljb25maWdbXFxcInN1cGVyd2ViXFxcIl0gPSAxO1xcbiAgICAgICAgICAgIH0gZWxzZSB7XFxuICAgICAgICAgICAgICAgIEpZY29uZmlnW1xcXCJzdXBlcndlYlxcXCJdID0gMDtcXG4gICAgICAgICAgICB9XFxuICAgICAgICAgICAgd3JpdGVGaWxlKGNmZ2ZpbGUsIEpTT04uc3RyaW5naWZ5KEpZY29uZmlnKSk7XFxuICAgICAgICAgICAgcmVmcmVzaFBhZ2UoZmFsc2UpO1xcbiAgICAgICAgICAgIHJldHVybiBcXFwidG9hc3Q6Ly9cXFxcdTUyMDdcXFxcdTYzNjJcXFxcdTYyMTBcXFxcdTUyOWZcXFwiO1xcbiAgICAgICAgfVxcbiAgICAgICAgLCBKWWNvbmZpZywgY2ZnZmlsZSksIGNvbF90eXBlOiBcXFwidGV4dF9jZW50ZXJfMVxcXCJ9KTtcXG4gICAgfVxcbiAgICBzZXRIb21lUmVzdWx0KGQpO1xcbn1cXG4pKClcIixcImdyb3VwXCI6XCJB6L275ZCI6ZuGXCIsXCJ1YVwiOlwiYXV0b1wiLFwicHJlUnVsZVwiOlwiaW5pdENvbmZpZyh7XFxuICAgIOS+nei1ljogXFxcImh0dHBzOi8vZ2l0Y29kZS5uZXQvc3JjNDg1OTc5NjIvaGsvLS9yYXcvbWFzdGVyL1NyY0p1eWluZy5qc1xcXCJcXG59KTtcXG4vL2J5LuW4heKImmDkurrmiY0g6IGa5b2x5qih5p2/77yBXCIsXCJwYWdlc1wiOlwiW11cIn0iLCJwaWNVcmwiOiJodHRwczovL2xhbm1laWd1b2ppYW5nLmNvbS90dWJpYW8vbWVzc3kvMzcuc3ZnIiwidGl0bGUiOiLimaXop4LlvbHorr7nva4ifQ==
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement