xiaomianao666

小程序:期刊杂志demo

Oct 22nd, 2023
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 海阔视界规则分享,当前分享的是:小程序¥home_rule_v2¥base64://@期刊杂志demo@eyJmaXJzdEhlYWRlciI6ImNsYXNzIiwibGFzdF9jaGFwdGVyX3J1bGUiOiIiLCJ0aXRsZSI6Iuacn+WIiuadguW/l2RlbW8iLCJhdXRob3IiOiJKb2tlciIsInVybCI6Imhpa2VyOi8vZW1wdHkjI2Z5cGFnZSIsInZlcnNpb24iOjYsImNvbF90eXBlIjoibW92aWVfMyIsImNsYXNzX25hbWUiOiIiLCJ0eXBlIjoicmVhZCIsImNsYXNzX3VybCI6IiIsImFyZWFfbmFtZSI6IiIsImFyZWFfdXJsIjoiIiwic29ydF9uYW1lIjoiIiwieWVhcl9uYW1lIjoiIiwic29ydF91cmwiOiIiLCJ5ZWFyX3VybCI6IiIsImZpbmRfcnVsZSI6ImpzOlxubGV0IGQgPSBbXTtcbmxldCBub3cgPSBnZXRJdGVtKCdub3cnLCAn5o6o6I2Q5pyf5YiKJyk7XG5pZiAoTVlfUEFHRSA9PSAxKSB7XG4gICAgbGV0IGFyciA9IFsn5o6o6I2Q5pyf5YiKJywgJ+eDremXqOacn+WIiicsICfnm7Tmkq0nLCAn5pS26JePJ107XG4gICAgZm9yIChsZXQgaXQgb2YgYXJyKSB7XG4gICAgICAgIGQucHVzaCh7XG4gICAgICAgICAgICB0aXRsZTogbm93ID09IGl0ID8gJ+KAnOKAnOKAneKAnScgKyBpdC5mb250Y29sb3IoJ3JlZCcpIDogaXQsXG4gICAgICAgICAgICBjb2xfdHlwZTogJ3Njcm9sbF9idXR0b24nLFxuICAgICAgICAgICAgdXJsOiAkKCcjbm9Mb2FkaW5nIycpLmxhenlSdWxlKChpdCkgPT4ge1xuICAgICAgICAgICAgICAgIHNldEl0ZW0oXCJub3dcIiwgaXQpO1xuICAgICAgICAgICAgICAgIHJlZnJlc2hQYWdlKCk7XG4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2xvcigncmVkJykgOiBvYmoubGFiZWwsXG4gICAgICAgICAgICAgICAgdXJsOiAkKCcjbm9Mb2FkaW5nIycpLmxhenlSdWxlKChlKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgIHNldEl0ZW0oJ3NlbGVjdF96YicsIGUpO1xuICAgICAgICAgICAgICAgICAgICByZWZyZXNoUGFnZSgpO1xuICAgICAgICAgICAgICAgICAgICByZXR1cm4gJ2hpa2VyOi8vZW1wdHknXG4gICAgICAgICAgICAgICAgfSwgb2JqLnZhbHVlKSxcbiAgICAgICAgICAgICAgICBjb2xfdHlwZTogXCJzY3JvbGxfYnV0dG9uXCJcbiAgICAgICAgICAgIH0pO1xuICAgICAgICB9XG4gICAgICAgIGZvciAobGV0IGl0IG9mIHNvdXJjZV9saXN0W3NlbGVjdF96Yl0ubGlzdCkge1xuICAgICAgICAgICAgZC5wdXNoKHtcbiAgICAgICAgICAgICAgICB0aXRsZTogaXQudGl0bGUsXG4gICAgICAgICAgICAgICAgdXJsOiAkKCkubGF6eVJ1bGUoKHRhZykgPT4ge1xuICAgICAgICAgICAgICAgICAgICBldmFsKEpTT04ucGFyc2UoZmV0Y2goXCJoaWtlcjovL3BhZ2UvZ2V0SGVhZGVyc1wiKSkucnVsZSk7XG4gICAgICAgICAgICAgICAgICAgIGxldCBsaXN0ID0gSlNPTi5wYXJzZShyZXF1ZXN0KCdodHRwOi8vYXBpLmxpZnZlcy5jb20vdmlkZW8vZ2V0TGl2ZVNvdXJjZUxpbms/dGFnPScgKyB0YWcsIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBoZWFkZXJzOiBoZWFkZXJzXG4gICAgICAgICAgICAgICAgICAgICAgICB9KSkuZGF0YV9saXN0LFxuICAgICAgICAgICAgICAgICAgICAgICAgdXJscyA9IGxpc3QubWFwKHYgPT4gdi5ocmVmKTtcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIEpTT04uc3RyaW5naWZ5KHtcbiAgICAgICAgICAgICAgICAgIC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cbiAgICAgICAgICAgIGV4dHJhOiB7XG4gICAgICAgICAgICAgICAgaHJlZjogJ2h0dHBzOi8vYXBpLmxpZnZlcy5jb20vbWFnYXppbmUvYm9vaz9tYWdfaWQ9JyArIGl0Lm1hZ19pZCArICcmcWlzaHU9JyArIGl0LnFpc2h1LFxuICAgICAgICAgICAgfVxuICAgICAgICB9KTtcbiAgICB9XG59IGVsc2UgaWYgKG5vdyA9PSAn5pS26JePJykge1xuICAgIGlmIChNWV9QQUdFID09IDEpIHtcbiAgICAgICAgbGV0IGNvbGxlY3Rpb24gPSBKU09OLnBhcnNlKHJlYWRGaWxlKCdjb2xsZWN0aW9uJykgfHwgJ3t9Jyk7XG4gICAgICAgIGZvciAobGV0IGkgaW4gY29sbGVjdGlvbikge1xuICAgICAgICAgICAgbGV0IGl0ID0gY29sbGVjdGlvbltpXTtcbiAgICAgICAgICAgIGQucHVzaCh7XG4gICAgICAgICAgICAgICAgdGl0bGU6IGksXG4gICAgICAgICAgICAgICAgY29sX3R5cGU6ICdtb3ZpZV8zJyxcbiAgICAgICAgICAgICAgICBpbWc6IGl0LmltZyxcbiAgICAgICAgICAgICAgICB1cmw6ICdoaWtlcjovL3BhZ2UvaGlzdG9yeScsXG4gICAgICAgICAgICAgICAgZXh0cmE6IHtcbiAgICAgICAgICAgICAgICAgICAgaHJlZjogaXQudXJsLFxuICAgICAgICAgICAgICAgICAgICB0aXRsZTogaSxcbiAgICAgICAgICAgICAgICAgICAgaW1nOiBpdC5pbWdcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9KVxuICAgICAgICB9XG4gICAgfVxufVxuc2V0UmVzdWx0KGQpOyIsInNlYXJjaF91cmwiOiJoaWtlcjovL2VtcHR5IyMqKiIsImdyb3VwIjoi4pGg5o6o6I2QIiwic2VhcmNoRmluZCI6ImpzOlxubGV0IGQgPSBbXTtcbmV2YWwoSlNPTi5wYXJzZShmZXRjaChcImhpa2VyOi8vcGFnZS9nZXRIZWFkZXJzXCIpK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pdGxlLFxcbiAgICAgICAgICAgIGNvbF90eXBlOiAndGV4dF8xJyxcXG4gICAgICAgICAgICB1cmw6ICdoaWtlcjovL3BhZ2UvdGV4dCcgKyBmdWxsVGhlbWUgKyByZWFkVGhlbWUsXFxuICAgICAgICAgICAgZXh0cmE6IHtcXG4gICAgICAgICAgICAgICAgbGluZVZpc2libGU6IGZhbHNlLFxcbiAgICAgICAgICAgICAgICBocmVmOiBcXFwiaHR0cHM6Ly9hcGkubGlmdmVzLmNvbS9tYWdhemluZS9yZWFkP3JlYWRfaWQ9XFxcIiArIGUucmVhZF9pZCxcXG4gICAgICAgICAgICAgICAgaW5kZXg6IGluZGV4XFxuICAgICAgICAgICAgfVxcbiAgICAgICAgfSlcXG4gICAgfSlcXG59XFxuXFxuc2V0UmVzdWx0KGQpO1wifSx7XCJjb2xfdHlwZVwiOlwibW92aWVfM1wiLFwibmFtZVwiOlwi6I635Y+W6K+35rGC5aS0XCIsXCJwYXRoXCI6XCJnZXRIZWFkZXJzXCIsXCJydWxlXCI6XCIgZnVuY3Rpb24gcmFuZG9tX2NoYXIodCkge1xcbiAgICAgZm9yICh2YXIgbiA9IFsnMCcsICcxJywgJzInLCAnMycsICc0JywgJzUnLCAnNicsICc3JywgJzgnLCAnOScsICdhJywgJ2InLCAnYycsICdkJywgJ2UnLCAnZicsICdnJywgJ2gnLCAnaScsICdqJywgJ2snLCAnbCcsICdtJywgJ24nLCAnbycsICdwJywgJ3EnLCAncicsICdzJywgJ3QnLCAndScsICd2JywgJ3cnLCAneCcsICd5JywgJ3onXSwgaSA9ICcnLCBlID0gMDsgZSA8IHQ7IGUrKykge1xcbiAgICAgICAgIHZhciBvID0gTWF0aC5jZWlsKDM1ICogTWF0aC5yYW5kb20oKSlcXG4gICAgICAgICBpICs9IG5bb11cXG4gICAgIH1cXG4gICAgIHJldHVybiBpXFxuIH1cXG5cXG4gZnVuY3Rpb24gZ2V0U2VjcmV0ZGF0ZSgpIHtcXG4gICAgIHZhciB0ID0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