Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 海阔视界规则分享,当前分享的是:二级页面详情¥page_detail¥❤️接口多选测试@@eyJkYXRhIjoie1wiYXNzb2NpYXRlZE1vZGVsc01hcEZvckpvaW5UYWJsZVwiOnt9LFwiYXNzb2NpYXRlZE1vZGVsc01hcFdpdGhGS1wiOnt9LFwiYXNzb2NpYXRlZE1vZGVsc01hcFdpdGhvdXRGS1wiOnt9LFwiZmllbGRzVG9TZXRUb0RlZmF1bHRcIjpbXSxcImlkXCI6MCxcImxhc3RfY2hhcHRlcl9ydWxlXCI6XCJcIixcImxpc3RUb0NsZWFyQXNzb2NpYXRlZEZLXCI6W10sXCJsaXN0VG9DbGVhclNlbGZGS1wiOltdLFwicGFnZUxpc3RcIjpbXSxcInNhdmVkXCI6ZmFsc2UsXCJ0aXRsZVwiOlwi6IGa5b2x5aSW5oyCXCIsXCJ2ZXJzaW9uXCI6MCxcInVybFwiOlwiaGlrZXI6Ly9lbXB0eSNub1JlY29yZEhpc3RvcnkjO2dldDtVVEYtODt7VXNlci1BZ2VudEBNb3ppbGxhLzUuMCAoTGludXjvvJvvvJsgQW5kcm9pZCAxMe+8m++8myBNaSAxMCBQcm8pIEFwcGxlV2ViS2l0LzUzNy4zNiAoS0hUTUwsIGxpa2UgR2Vja28pIENocm9tZS84OC4wLjQzMjQuMTUyIE1vYmlsZSBTYWZhcmkvNTM3LjM2fVwiLFwiY29sX3R5cGVcIjpcIm1vdmllXzNfbWFycXVlZVwiLFwiZmluZF9ydWxlXCI6XCJqczooXFxuKGR4X3Rlc3QsIGprcGF0aCwgY29sb3IpID0+IHtcXG4gICAgc2V0UGFnZVRpdGxlKGR4X3Rlc3QpO1xcbiAgICBhZGRMaXN0ZW5lcihcXFwib25DbG9zZVxcXCIsICQudG9TdHJpbmcoKCkgPT4ge1xcbiAgICAgICAgcmVmcmVzaFBhZ2UoZmFsc2UpO1xcbiAgICB9XFxuICAgICkpO1xcbiAgICBsZXQgZ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dlMC5nZXRNeVZhcihcXFwianhfc2VsZWN0ZWRcXFwiKTtcXG4gICAgICAgICAgICBpZiAoQXJyYXkuaXNBcnJheShkYXRhKSkge1xcbiAgICAgICAgICAgICAgICBpZiAoZGF0YS5pbmNsdWRlcyhpdC51cmwpKSB7XFxuICAgICAgICAgICAgICAgICAgICBsb2coXFxcIlxcXFx1NTMwNVxcXFx1NTQyYjpcXFwiICsgaXQudXJsKTtcXG4gICAgICAgICAgICAgICAgICAgIGRhdGEuc3BsaWNlKGRhdGEuaW5kZXhPZihpdC51cmwpLCAxKTtcXG4gICAgICAgICAgICAgICAgfSBlbHNlIHtcXG4gICAgICAgICAgICAgICAgICAgIGRhdGEucHVzaChpdC51cmwpO1xcbiAgICAgICAgICAgICAgICB9XFxuICAgICAgICAgICAgICAgIHN0b3JhZ2UwLnB1dE15VmFyKFxcXCJqeF9zZWxlY3RlZFxcXCIsIGRhdGEpO1xcbiAgICAgICAgICAgIH0gZWxzZSB7XFxuICAgICAgICAgICAgICAgIHN0b3JhZ2UwLnB1dE15VmFyKFxcXCJqeF9zZWxlY3RlZFxcXCIsIFtpdC51cmxdKTtcXG4gICAgICAgICAgICB9XFxuICAgICAgICAgICAgaWYgKHN0b3JhZ2UwLmdldE15VmFyKFxcXCJqeF9zZWxlY3RlZFxcXCIpLmluY2x1ZGVzKGl0LnVybCkpIHtcXG4gICAgICAgICAgICAgICAgdXBkYXRlSXRlbShpdC51cmwsIHt0aXRsZTogY29sb3IoaXQubmFtZSwgXFxcIiMxMmI2NjhcXFwiKX0pO1xcbiAgICAgICAgICAgIH0gZWxzZSB7XFxuICAgICAgICAgICAgICAgIHVwZGF0ZUl0ZW0oaXQudXJsLCB7dGl0bGU6IGl0Lm5hbWV9KTtcXG4gICAgICAgICAgICB9XFxuICAgICAgICAgICAgcmV0dXJuIFxcXCJoaWtlcjovL2VtcHR5XFxcIjtcXG4gICAgICAgIH1cXG4gICAgICAgICwgaXQsIGNvbG9yKSwgY29sX3R5cGU6I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dXJuIHRydWU7XFxuICAgICAgICAgICAgICAgICAgICB9XFxuICAgICAgICAgICAgICAgICAgICBsZXQgc3BlY2lhbCA9IFtcXFwidHYuaGZ5czgudmlwL2FwaS5waHAvU250di92b2RcXFwiLCBcXFwiZHN4dHYudHYuY2kvYXBpLnBocC9kc3gvdm9kXFxcIl07XFxuICAgICAgICAgICAgICAgICAgICBmb3IgKGxldCB1cmwgb2Ygc3BlY2lhbCkge1xcbiAgICAgICAgICAgICAgICAgICAgICAgIGlmIChsaW5rLmluY2x1ZGVzKHVybCkpIHtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHRydWU7XFxuICAgICAgICAgICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIGZhbHNlO1xcbiAgICAgICAgICAgICAgICB9XFxuICAgICAgICAgICAgICAgIHZhciBjb3VudCA9IGFwaWprcy5sZW5ndGg7XFxuICAgICAgICAgICAgICAgIGxvZyhcXFwiXFxcXHU1ZjAwXFxcXHU1NDJmXFxcXHU1OTFhXFxcXHU0ZWZiXFxcXHU1MmExXFxcXHU2ZDRiXFxcXHU4YmQ1LFxcXFx1NGVmYlxcXFx1NTJhMVxcXFx1NjU3MFxcXFx1OTFjZjpcXFwiICsgY291bnQpO1xcbiAgICAgICAgICAgICAgICB2YXIgdGFzayA9IGZ1bmN0aW9uIChvYmopIHtcXG4gICAgICAgICAgICAgICAgICAgIGxldCBzdXJsID0gb2JqLnN1cmw7XFxuICAgICAgICAgICAgICAgICAgICBsZXQgdWEgPSBvYmoudWE7XFxuICAgICAgICAgICAgICAgICAgICBpZiAodWEgPT09IFxcXCJQQ19VQVxcXCIpIHtcXG4gICAgICAgICAgICAgICAgICAgICAgICB1YSA9IFBDX1VBO1xcbiAgICAgICAgICAgICAgICAgICAgfSBlbHNlIHtcXG4gICAgICAgICAgICAgICAgICAgICAgICBpZiAodWEgPT09IFxcXCJNT0JJTEVfVUFcXFwiKSB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHVhID0gTU9CSUxFX1VBO1xcbiAgICAgICAgICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICAgICAgICAgIHZhciBodG1sID0gZmV0Y2goc3VybCwge2hlYWRlcnM6IHtcXFwiVXNlci1BZ2VudFxcXCI6IHVhfSwgdGltZW91dDogTnVtYmVyKGdldE15VmFyKFxcXCJ0aW1lb3V0XFxcIiwgXFxcIjUwMDBcXFwiKSl9KSB8fCBcXFwiXFxcIjtcXG4gICAgICAgICAgICAgICAgICAgIHZhciBobSA9IGh0bWwuc2xpY2UoMCwgMjAwKTtcXG4gICAgICAgICAgICAgICAgICAgIHZhciByZXQgPSB7fTtcXG4gICAgICAgICAgICAgICAgICAgIHZhciBqc29uID0ge307XFxuICAgICAgICAgICAgICAgICAgICB0cnkge1xcbiAgICAgICAgICAgICAgICAgICAgICAgIHJldCA9IEpTT04ucGFyc2UoaHRtbCk7XFxuICAgICAgICAgICAgICAgICAgICAgICAgaWYgKG9iai52MSkge1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBqc29uID0gcmV0LmRhdGEubGlzdDtcXG4gICAgICAgICAgICAgICAgICAgICAgICB9IGVsc2Uge1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAob2JqLnYyIHx8IG9iai5pcHR2KSB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBqc29uID0gcmV0LmRhdGE7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0gZWxzZSB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBqc29uID0gcmV0Lmxpc3Q7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICAgICAgICAgICAgICB9XFxuICAgICAgICAgICAgICAgICAgICAgICAgaWYgKEFycmF5LmlzQXJyYXkoanNvbikpIHtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAganNvbiA9IGpzb25bMF07XFxuICAgICAgICAgICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICAgICAgICAgIHJldCA9IGpzb247XFxuICAgICAgICAgICAgICAgICAgICAgICAgaWYgKG9iai5uYW1lLmluY2x1ZGVzKFxcXCJcXFxcdTc2N2RcXFxcdTRlOTFcXFwiKSkge1xcbiAgICAgICAgICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICAgICAgICAgIGNhdGNoIChlKSB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgbG9nKG9iai5uYW1lICsgXFxcIlxcXFx1OTUxOVxcXFx1OGJlZjpcXFwiICsgZS5tZXNzYWdlKTtcXG4gICAgICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICAgICAgICAgIHJldHVybiB7cmV0OiByZXQsIHN1cmw6IHN1cmwsIGhtOiBobX07XFxuICAgICAgICAgICAgICAgIH07XFxuICAgICAgICAgICAgICAgIHZhciBwYXJzZVJldCA9IFtdO1xcbiAgICAgICAgICAgICAgICBsZXQgdGFza3MgPSBhcGlqa3MubWFwKChpdCwgaWRleCkgPT4ge1xcbiAgICAgICAgICAgICAgICAgICAgbGV0IHR5cGUgPSBpdC50eXBlO1xcbiAgICAgICAgICAgICAgICAgICAgbGV0IGxpbmsgPSBpdC51cmw7XFxuICAgICAgICAgICAgICAgICAgICBsZXQgc3VybCA9IGxpbmsgKyBcXFwiP3dkPVxcXCIgKyBza2V5ICsgXFxcIiZwZz0xJmFjPWxpc3RcXFwiO1xcbiAgICAgICAgICAgICAgICAgICAgaWYgKHR5cGUpIHtcXG4gICAgICAgICAgICAgICAgICAgICAgICB2MSA9IHR5cGUgPT09IFxcXCJ2MVxcXCI7XFxuICAgICAgICAgICAgICAgICAgICAgICAgdjIgPSB0eXBlID09PSBcXFwidjJcXFwiO1xcbiAgICAgICAgICAgICAgICAgICAgICAgIGFwcCA9IHR5cGUgPT09IFxcXCJhcHBcXFwiIHx8IHYyO1xcbiAgICAgICAgICAgICAgICAgICAgICAgIGlwdHYgPSB0eXBlID09PSBcXFwiaXB0dlxcXCI7XFxuICAgICAgICAgICAgICAgICAgICB9IGVsc2Uge1xcbiAgICAgICAgICAgICAgICAgICAgICAgIHYxID0gbGluay5pbmNsdWRlcyhcXFwiLnZvZFxcXCIpO1xcbiAgICAgICAgICAgICAgICAgICAgICAgIHYyID0gbGluay5pbmNsdWRlcyhcXFwiYXBwLnBocFxcXCIpO1xcbiAgICAgICAgICAgICAgICAgICAgICAgIGFwcCA9IGxpbmsuaW5jbHVkZXMoXFxcIi9hcHBcXFwiKSB8fCB2MjtcXG4gICAgICAgICAgICAgICAgICAgICAgICBpcHR2ID0gaXNJcHR2KGxpbmspO1xcbiAgICAgICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICAgICAgaWYgKHYxKSB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgc3VybCA9IHN1cmwucmVwbGFjZShcXFwicGc9XFxcIiwgXFxcImxpbWl0PTIwJnBhZ2U9XFxcIikgKyBcXFwiJmtleT1cXFwiICsgZ2V0S2V5KCk7XFxuICAgICAgICAgICAgICAgICAgICB9IGVsc2Uge1xcbiAgICAgICAgICAgICAgICAgICAgICAgIGlmIChhcHApIHtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgc3VybCA9IGxpbmsgKyBcXFwiL3NlYXJjaD9wZz0xJnRleHQ9XFxcIiArIHNrZXkgKyBcXFwiJnRva2VuPVxcXCI7XFxuICAgICAgICAgICAgICAgICAgICAgICAgfSBlbHNlIHtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgKGlwdHYpIHtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHN1cmwgPSBsaW5rICsgXFxcIi8/YWM9bGlzdCZwZz0xJndkPVxcXCIgKyBza2V5O1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XFxuICAgICAgICAgICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICAgICAgaXQuc3VybCA9IHN1cmw7XFxuICAgICAgICAgICAgICAgICAgICBpdC52MSA9IHYxO1xcbiAgICAgICAgICAgICAgICAgICAgaXQudjIgPSB2MjtcXG4gICAgICAgICAgICAgICAgICAgIGl0LmFwcCA9IGFwcDtcXG4gICAgICAgICAgICAgICAgICAgIGl0LmlwdHYgPSBpcHR2O1xcbiAgICAgICAgICAgICAgICAgICAgbG9nKGAke2l0Lm5hbWV9IOaQnOe0oumTvuaOpTogJHtzdXJsfSx1YToke2l0LnVhfSznsbvlnos6JHt0eXBlfWApO1xcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHtmdW5jOiB0YXNrLCBwYXJhbTogaXQsIGlkOiBcXFwidGFza1xcXCIgKyBpZGV4fTtcXG4gICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICApO1xcbiAgICAgICAgICAgICAgICBmdW5jdGlvbiBzb3J0QnlLZXkoYXJyYXksIGtleSwgb3JkZXIpIHtcXG4gICAgICAgICAgICAgICAgICAgIHJldHVybiBhcnJheS5zb3J0KGZ1bmN0aW9uIChhLCBiKSB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgdmFyIHggPSBwYXJzZUludChhW2tleV0ubWF0Y2goLyhcXFxcZCspLylbMV0pO1xcbiAgICAgICAgICAgICAgICAgICAgICAgIHZhciB5ID0gcGFyc2VJbnQoYltrZXldLm1hdGNoKC8oXFxcXGQrKS8pWzFdKTtcXG4gICAgICAgICAgICAgICAgICAgICAgICBpZiAob3JkZXIpIHtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuICgoeCA8IHkpID8gLTEgOiAoKHggPiB5KSA/IDEgOiAwKSk7XFxuICAgICAgICAgICAgICAgICAgICAgICAgfSBlbHNlIHtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuICgoeCA8IHkpID8gKCh4ID4geSkgPyAxIDogMCkgOiAtMSk7XFxuICAgICAgICAgICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICAgICAgfSk7XFxuICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICAgICAgYmUodGFza3MsIHtmdW5jOiBmdW5jdGlvbiAob2JqLCBpZCwgZXJyb3IsIHJldCkge1xcbiAgICAgICAgICAgICAgICAgICAgbGV0IGhtID0gcmV0LmhtLnRyaW0oKTtcXG4gICAgICAgICAgICAgICAgICAgIGxldCBobTEgPSBobS5zbGljZSgwLCAxMCk7XFxuICAgICAgICAgICAgICAgICAgICBlcnJvciA9IGVycm9yIHx8IFxcXCJcXFwiO1xcbiAgICAgICAgICAgICAgICAgICAgbGV0IGl0ID0gdGFza3MuZmlsdGVyKGl0ID0+IGl0LmlkID09PSBpZClbMF0ucGFyYW07XFxuICAgICAgICAgICAgICAgICAgICBsZXQgZGF0YSA9IHJldC5yZXQgfHwge307XFxuICAgICAgICAgICAgICAgICAgICBwYXJzZVJldC5wdXNoKHt0YXNrOiBpZCwgZGF0YTogZGF0YSwgc3VybDogcmV0LnN1cmwsIGVycm9yOiBlcnJvciwgaXQ6IGl0fSk7XFxuICAgICAgICAgICAgICAgICAgICBjb3VudCAtPSAxO1xcbiAgICAgICAgICAgICAgICAgICAgYWRkSXRlbUFmdGVyKFxcXCJyZXN1bHRcXFwiLCB7dGl0bGU6IGRhdGEudm9kX25hbWUgfHwgZGF0YS50aXRsZSArIFxcXCJcXFxcblxcXCIgKyBg4oCY4oCY4oCZ4oCZPHNtYWxsPjxmb250IGNvbG9yPSNmMTNiNjZhPiR7ZGF0YS52b2RfcmVtYXJrcyB8fCBkYXRhLnN0YXRlfTwvZm9udD48L3NtYWxsPmAsIHBpY191cmw6IGRhdGEudm9kX3BpYyB8fCBkYXRhLnBpYywgZGVzYzogYCR7aG0xfVxcXFxu4oCY4oCY4oCZ4oCZPGZvbnQgY29sb3I9I2YxM2I2N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WVrb3UuanNvblxcXCI7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbGV0IGprcyA9IEpTT04ucGFyc2UoZmV0Y2goamtwYXRoKSB8fCBcXFwiW11cXFwiKTtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBsZXQgYXBpamtzID0gamtzLmZpbHRlcihpdCA9PiAhKGl0LnVybCA9PT0gdXJsKSk7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgd3JpdGVGaWxlKGprcGF0aCwgSlNPTi5zdHJpbmdpZnkoYXBpamtzKSk7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbGV0IHNlbCA9IHN0b3JhZ2UwLmdldE15VmFyKFxcXCJqeF9zZWxlY3RlZFxcXCIsIFtdKTtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBsZXQgaWRleCA9IHNlbC5maW5kSW5kZXgoaXQgPT4gaXQgPT09IHVybCk7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgKGlkZXggPiAtMSkge1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzZWwuc3BsaWNlKGlkZXgsIDEpO1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzdG9yYWdlMC5wdXRNeVZhcihcXFwianhfc2VsZWN0ZWRcXFwiLCBzZWwpO1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gXFxcInRvYXN0Oi8vXFxcXHU1ZGYyXFxcXHU1MjIwXFxcXHU5NjY0OlxcXCIgKyBuYW1lO1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XFxuICAgICAgICAgICAgICAgICAgICAgICAgfVxcbiAgICAgICAgIC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