xiaomianao666

小程序:肉铺

Oct 24th, 2024
852
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 海阔视界规则分享,当前分享的是:小程序¥home_rule_v2¥base64://@肉铺@eyJsYXN0X2NoYXB0ZXJfcnVsZSI6IiIsInRpdGxlIjoi6IKJ6ZO6IiwiYXV0aG9yIjoiUiIsInVybCI6Imhpa2VyOi8vZW1wdHkjI2h0dHBzOi8vcm91cHVhZS5idXp6LyMjZnlwYWdlIiwidmVyc2lvbiI6MjAyMzAyMjMsImNvbF90eXBlIjoibW92aWVfMyIsImNsYXNzX25hbWUiOiIiLCJ0eXBlIjoidmlkZW8iLCJjbGFzc191cmwiOiIiLCJhcmVhX25hbWUiOiIiLCJhcmVhX3VybCI6IiIsInNvcnRfbmFtZSI6IiIsInllYXJfbmFtZSI6IiIsInNvcnRfdXJsIjoiIiwieWVhcl91cmwiOiIiLCJmaW5kX3J1bGUiOiJqczpcbnZhciBkID0gW107XG5ldmFsKEpTT04ucGFyc2UoZmV0Y2goJ2hpa2VyOi8vcGFnZS9sYXp5Jywge30pKS5ydWxlKTtcblxuZXZhbChKU09OLnBhcnNlKHJlcXVlc3QoJ2hpa2VyOi8vcGFnZS/liIbnsbsnKSkucnVsZSlcblxudmFyIGhvc3QgPSBNWV9IT01FO1xuY29uc3QgcGFnZSA9IE1ZX1BBR0U7XG52YXIgZGF0YSA9IFsvKntcbiAgICAgICAgICAgIOagh+mimDogXCLpppbpobUmVG9wMSZUb3AyJlRvcDMmVG9wNCZUb3A1JlRvcDYmVG9wNyZUb3A4XCIsXG4gICAgICAgICAgICDpk77mjqU6IFwiLyYvdG9wMS5odG1sJi90b3AyLmh0bWwmL3RvcDMuaHRtbCYvdG9wNC5odG1sJi90b3A1Lmh0bWwmL3RvcDYuaHRtbCYvdG9wNy5odG1sJi90b3A4Lmh0bWxcIlxuICAgICAgICB9LCove1xuICAgICAgICAgICAg5aSn57G7OiBcIi5tYXJnaW4tdG9wLDImJmFbdGFyZ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jqUgPSBjX+agh+mimDtcXG4gICAgICAgICAgICAgIH0gZWxzZSBpZiAoZGF0YS7pk77mjqUgPT0gJ0BAQCcpIHtcXG4gICAgICAgICAgICAgICAgIHZhciBjX+mTvuaOpSA9IGRhdGEu5qCH6aKYLnJlcGxhY2UoL14uKj8mLywnJicpLnNwbGl0KCcmJyk7IFxcdFxcdFxcbiAgICAgICAgICAgICAgfWVsc2V7IFxcbiAgICAgICAgICAgICAgICAgIHZhciBjX+mTvuaOpSA9IGRhdGEu6ZO+5o6lLnNwbGl0KCcmJyk7IFxcbiAgICAgICAgICAgICAgICAgfVxcbiAgICB9ZWxzZSB7XFxuICAgICB2YXIg5aSn57G7ID0gcGRmYShoLCBkYXRhLuWkp+exuyk7XFxuICAgICAgICAgIGlmICgoJ+WinuWKoCcgaW4gZGF0YSkpIHtcXG4gICAgICAgICAgICBpZiAoZGF0YS7lop7liqAuY29uc3RydWN0b3IgPT0gU3RyaW5nKSB7XFxuICAgICAgICAgICAgICBkYXRhLuWinuWKoCA9IGV2YWwoZGF0YS7lop7liqApO1xcbiAgICAgICAgICAgIH1cXG4gICAgICAgICAgICDlpKfnsbsgPSBkYXRhLuWinuWKoC5jb25jYXQo5aSn57G7KTtcXG4gICAgICAgICAgfVxcbiAgICAgICAgICBpZiAoKCfooaXlhYUnIGluIGRhdGEpKSB7XFxuICAgICAgICAgICAgaWYgKGRhdGEu6KGl5YWFLmNvbnN0cnVjdG9yID09IFN0cmluZykge1xcbiAgICAgICAgICAgICAgZGF0YS7ooaXlhYUgPSBldmFsKGRhdGEu6KGl5YWFKTtcXG4gICAgICAgICAgICB9XFxuICAgICAgICAgICAg5aSn57G7ID0g5aSn57G7LmNvbmNhdChkYXRhLuihpeWFhSk7XFxuICAgICAgICAgIH1cXG4gICAgICAgICAgdmFyIGNf5qCH6aKYID0gIWRhdGEu5qCH6aKYP+Wkp+exuy5tYXAoaT0+cGRmaChpLFxcXCJhJiZUZXh0XFxcIikpOuWkp+exuy5tYXAoa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OKAmOKAmeKAmTxzdHJvbmc+PGZvbnQgY29sb3I9XFxcIicgKyDmoIfnrb7pu5jorqTpopzoibIgKyAnXFxcIj4nICsgdGl0bGUgKyAnPC9mb250Pjwvc3Ryb25nPic7XFxufVxcblxcdCAgICBpZighdil7XFxuICAgICBcXHRcXHR2PTA7XFxuICAgICBcXHQgICAgfVxcblxcdCAgICBpZighYyl7XFxuICAgICBcXHRcXHRjPSdjJztcXG4gICAgIFxcdCAgICB9XFxuICAgICAgICAgIHZhciBjX+agh+mimCA9IGRhdGEuY1/moIfpopg7XFxuICAgICAgICAgIHZhciBjX+mTvuaOpSA9IGRhdGEuY1/pk77mjqU7XFxuICAgICAgICAgICAgY1/moIfpopguZm9yRWFjaCgodGl0bGUsIGluZGV4X2MpID0+IHtcXG5pZihjX+mTvuaOpVtpbmRleF9jXS5pbmNsdWRlcygnIycpKXtcXG5jX+mTvuaOpVtpbmRleF9jXSA9IFxcXCJoaWtlcjovL2VtcHR5XFxcIjtcXG50aXRsZSA9IHRpdGxlICsnOic7XFxufVxcbiAgICAgICAgICAgICAgICBkLnB1c2goe1xcbiAgICAgICAgICAgICAgICAgICAgdGl0bGU6IGluZGV4X2MgPT0gZ2V0TXlWYXIoaG9zdCArYysgJ2luZGV4JyArIGluZGV4LCAobW9kZXx8aW5kZXggPT0gdiA/ICcwJyA6ICctMScpKSA/IHNlbGVjdGNvbG9yKHRpdGxlKSA6IGRlZmF1bHRjb2xvcih0aXRsZSksXFxuICAgICAgICAgICAgICAgICAgICBjb2xfdHlwZTogJ3Njcm9sbF9idXR0b24nLFxcbiAgICAgICAgICAgICAgICAgICAgdXJsOiBjX+mTvuaOpVtpbmRleF9jXT09XFxcImhpa2VyOi8vZW1wdHlcXFwiP2Nf6ZO+5o6lW2luZGV4X2NdOmNf6ZO+5o6lW2luZGV4X2NdKyQoJyNub0xvYWRpbmcjJykubGF6eVJ1bGUoKGluZGV4LCBpZCwgaW5kZXhfYywgaG9zdCxtb2RlLHRpdGxlLHYsYykgPT4ge1xcbiAgICAgICAgICAgICAgICAgICAgICAgIGlmKG1vZGUpe1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBwdXRNeVZhcihob3N0ICsgYyArIGluZGV4LCBpZCk7ICAgICAgICAgICAgICAgICAgICAgIFxcbiAgICAgICAgICAgICAgICAgICAgICAgIH1lbHNle1xcbiAgICAgICAgICAgICAgICAgICAgICAgIHB1dE15VmFyKGhvc3QgKyBjICwgaWQpO1xcbiAgICAgICAgICAgICAgICAgICAgICAgIGZvciAobGV0IG4gPSB2OyBuIDw9IDIwOyBuKyspIHtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgcHV0TXlWYXIoaG9zdCArYysgJ2luZGV4JyArIG4sICctMScpO1xcbiAgICAgICAgICAgICAgICAgICAgICAgIH19XFxuXFx0XFx0XFx0Y2xlYXJNeVZhcihob3N0ICsgJ3BhZ2UnKTtcXG4gICAgICAgICAgICAgICAgICAgICAgICBjbGVhck15VmFyKGhvc3QrJ3VybCcpO1xcbiAgICAgICAgICAgICAgICAgICAgICAgIHB1dE15VmFyKGhvc3QgK2MrICdpbmRleCcgKyBpbmRleCwgaW5kZXhfYyk7XFxuICAgICAgICAgICAgICAgICAgICAgICAgcmVmcmVzaFBhZ2UoKTtcXG4gICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gJ2hpa2VyOi8vZW1wdHknO1xcbiAgICAgICAgICAgICAgICAgICAgfSwgaW5kZXgsY1/pk77mjqVbaW5kZXhfY10sIGluZGV4X2MsIGhvc3QsbW9kZSx0aXRsZSx2LGMpLFxcbiAgICAgICAgICAgICAgICB9KTtcXG4gICAgICAgICAgICB9KTtcXG4gICAgICAgICAgICBkLnB1c2goe1xcbiAgICAgICAgICAgICAgICBjb2xfdHlwZTogJ2JsYW5rX2Jsb2NrJyxcXG4gICAgICAgICAgICB9KTsgICAgXFxuICAgICAgICAgICAgcmV0dXJuIGQ7XFxuICAgICAgICB9XFxuXFxuZnVuY3Rpb24g5YiG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gZGVzYyA6ICfmkJzkvaDmg7PopoHnmoQuLi4nLFxcbiAgICAgICAgICAgIGNvbF90eXBlOiAnaW5wdXQnLFxcbiAgICAgICAgICAgIGV4dHJhOiB7XFxuICAgICAgICAgICAgICAgIGRlZmF1bHRWYWx1ZTogZ2V0VmFyKCdrZXl3b3JkJywgJycpLFxcbiAgICAgICAgICAgIH1cXG4gICAgICAgIH0pO1xcbiAgICB9XFxuICAgIHJldHVybiBkO1xcbn1cIn1dIiwiaWNvbiI6Imh0dHBzOi8vcnJvdXB1My5idXp6L3N0YXRpYy90aGVtZS1zcC9idWxpYW5nc2hhb252L2Zhdmljb24uaWNvIiwicHJveHkiOiIifQ==
Add Comment
Please, Sign In to add comment