Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 海阔视界规则分享,当前分享的是:二级页面详情¥page_detail¥机器之心@@eyJkYXRhIjoie1wiYXNzb2NpYXRlZE1vZGVsc01hcEZvckpvaW5UYWJsZVwiOnt9LFwiYXNzb2NpYXRlZE1vZGVsc01hcFdpdGhGS1wiOnt9LFwiYXNzb2NpYXRlZE1vZGVsc01hcFdpdGhvdXRGS1wiOnt9LFwiZmllbGRzVG9TZXRUb0RlZmF1bHRcIjpbXSxcImdtdE1vZGlmaWVkXCI6MCxcImlkXCI6MCxcImxhc3RfY2hhcHRlcl9ydWxlXCI6XCJcIixcImxpc3RUb0NsZWFyQXNzb2NpYXRlZEZLXCI6W10sXCJsaXN0VG9DbGVhclNlbGZGS1wiOltdLFwicGFnZUxpc3RcIjpbe1wiY29sX3R5cGVcIjpcIm1vdmllXzNcIixcIm5hbWVcIjpcIuaOpeWPo1wiLFwicGF0aFwiOlwiYXBpc1wiLFwicnVsZVwiOlwianM6XFxuY29uc3QgYmFzZVVybCA9ICdodHRwczovL2FwaS55aW5yc3MuY29tJztcXG5jb25zdCBmZXRjaEFwaSA9IGZ1bmN0aW9uIChwYXRoKSB7XFxuICBjb25zdCByZXMgPSBKU09OLnBhcnNlKGZldGNoKGJhc2VVcmwgKyBwYXRoKSk7XFxuICBpZiAocmVzLmVycm5vICE9PSAwKSB7XFxuXFx0dG9hc3QocmVzLmVycm9yKTtcXG4gIH1cXG4gIHJldHVybiByZXM7XFxufVxcblxcbmZ1bmN0aW9uIGdldFNvdXJjZSgpIHtcXG4gIHJldHVybiBmZXRjaEFwaSgnL3NvdXJjZScpO1xcbn1cXG5cXG5mdW5jdGlvbiBnZXRGZWVkKG1lZGlhLCBpZCkge1xcbiAgcmV0dXJuIGZldGNoQXBpKCcvZmVlZD9saW1pdD0yNSZpZD0nICsgaWQgKyAnJm1lZGlhPScgKyBtZWRpYSArICcma2V5d29yZD0nKTtcXG59XFxuXFxuZnVuY3Rpb24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OiBkLmlkLFxcXFxuICAgICAgfSxcXFxcbiAgICB9O1xcXFxuICB9KVxcXFxuKTtcXFxcbnNldFJlc3VsdChkYXRhKTtcXFxcblxcXCJ9XVwiLFwicHJveHlcIjpcIlwifSIsInBpY1VybCI6Imh0dHA6Ly9kaW5neXVlLndzLjEyNi5uZXQvTnRFZ2phMWZtczFud2RtWjd5WEdGVHk1NjFvcGxpWmtMVmhFeXpWeHVDMWZNMTQ4OTc0MzA3NTUzNi5wbmciLCJ0aXRsZSI6IuacuuWZqOS5i+W/gyJ9
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement