pkuphysu / pkuphy Goto Github PK
View Code? Open in Web Editor NEW物院公众号后台维护用仓库,不含代码
物院公众号后台维护用仓库,不含代码
甲方: 常代会
现有的功能是显示 3-9 天的预约情况并可交互预约。
常代会本着提高 B116 利用率的原则,希 wang 望 xiang 同学能够在看到没有人预约的情况下来这里自习。故需要显示 0-2 天的预约情况。
如何复用代码和逻辑?
新建预约按钮的上方加入导引文字:
预约限于三到七天,邀请2名同学并让他们确认,如有改动请三到七天取消,三到七天未确认视为失败……
然后如果未及时改名,首页还会提示改名会提示改名
如果已改好,提示不可二次更改,说联系管理员;未更改,说明只能改一次,联系管理员
在反馈问题时,最好附上
直接点击链接或复制邮箱地址发送邮件向系统管理员反馈:
会使用 Issue 的就不需要多说了。
不会使用的同学也不用担心,我们也建议进去看看,
如果问题已有反馈,就无需重复反馈
Nobody actually creates perfect code the first time around, except me. But there's only one of me.
― Tech Talk: Linus Torvalds on git, Google, 15 August 2007
mailto:[email protected]?subject=预约系统问题反馈&body=系统管理员,你好!
我在使用预约系统过程中遇到以下问题:
我使用的设备及浏览器为:
截图见附件。"
"Please log in to access this page.": "请先登录",
"Please modify your name": "请更改你的显示名以方便同学",
"User Not Found": "学号手抖打错了?",
"Mail not sent": "服务器遇到点问题呢,验证邮件没发出来",
"Cookie Expired": "令牌过期了,无法获取验证码,请重新登录一下",
"Room Out of Range": "你居然选中了幽灵房间?!",
"Invalid Time": "你居然选中了魔鬼时间?!",
Duplicate: "参与预约的同学不能重复哦!",
"Sponsor Exceed": "你已超过预约个数限度啦,请取消掉不要的预约",
"Invitee Exceed": "被邀请人超过预约个数限度啦,试着换个同学",
EXPIRED: "超出操作时间",
CANCELED: "已经被取消",
"Verification Code Error": "验证码不对或过期",
"NO BOOK_ID": "找不到这条预约",
"This field is required.": "请确认已填写完整",
"HAND TOO SLOW": "手太慢啦, 预约时间段已经被别人抢走啦!",
"Name cannot be a number": "设置姓名不能是一个数字哟!",
"Name length invalid": "姓名的长度非法"
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
p{
margin-left: 20px;
}
p.vercode{
font-size:3em;
font-weight: 800;
color:blueviolet;
}
</style>
</head>
<body>
<p style="margin-left:0px">同学你好!</p>
<p>你的验证码为:</p>
<p class="vercode">{{ vercode }}</p>
<p>若非本人操作,请忽略此邮件。</p>
<p style="text-align: right">物院学生会小助手</p>
</body>
<body>
<p style="margin-left:0px">常代会值班同学:</p>
{% if not data_tomorrow %}
<p>您好!明天({{ tomorrow }})主动学习实验室没有预约!辛苦了,好好轻松一下吧!</p>
{% else %}
<p>您好!明天({{ tomorrow }})的主动学习实验室预约情况如下:</p>
<ul>
{% for book_rec in data_tomorrow %}
<li style="margin-bottom:10px">
{{ book_rec.start_time.strftime('%H:%M') }} - {{ book_rec.end_time.strftime('%H:%M') }}
<ul>
<li>预约教室:{{ rooms[book_rec.room_id] }}</li>
<li>预约人姓名:
<ul>
{% for stu_id in book_rec.booking_stu() %}
<li>{{ translate(stu_id) }}</li>
{% endfor %}
</ul>
</li>
</ul>
</li>
{% endfor %}
</ul>
<p>请在预约时间前5-10分钟到达主动学习实验室,为预约同学提供开门服务,并在预约时段结束后到达主动学习实验室锁门。感谢您对物理学院同学们的服务!</p>
<br>
<p>注:</p>
<ul>
<li>有特殊情况无法开门或教室被占用,请直接联系预约者学号邮箱。</li>
<li>预约已经过后台算法筛选,若算法筛选后仍存在不合理预约请求,请联系网络运营中心负责人(<a href="mailto:[email protected]">[email protected]</a>)</li>
</ul>
{% endif %}
<br>
<p>附接下来一周内的预约情况:</p>
<ol>
{% for date, data_day in data_week.items() %}
{% for book_rec in data_day %}
<li style="margin-bottom:6px">
{{ date.month }}月{{ date.day }}日
{{ book_rec.start_time.strftime('%H:%M') }} - {{ book_rec.end_time.strftime('%H:%M') }}
预约教室:{{ rooms[book_rec.room_id] }}<br>
预约人姓名:
{% for stu_id in book_rec.booking_stu() %}
{{ translate(stu_id) }},
{% endfor %}
</li>
{% endfor %}
{% endfor %}
</ol>
<br>
<p style="text-align: right">
物院学生会小助手<br>
{{ today }}</p>
</body>
甲方: 创意分部
微信后台使用了消息接口后,公众号后台管理页面设置的菜单和自动回复都将失效。同时,用户没有被处理的 general 的问题无法被筛选出来, 可能会错过金主的橄榄枝
如果要长期或频繁使用消息接口,需要补全这几个功能。
自动回复需要抽象成数据库并方便增删查(改就算了)。未被处理的回复应当以邮件或其他形式通知创意分部管理人员。
自定义菜单可以只设成方便单次操作。
当前使用相对的天数来代表时间进行通讯。但是总是会有夜猫子在 24:00 到 0:00 附近预约,造成相对的天数错乱。
使用确切的日期进行前后端通讯。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.