Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

流量超限通知 #33

Open
gaoyifan opened this issue Jan 30, 2017 · 8 comments
Open

流量超限通知 #33

gaoyifan opened this issue Jan 30, 2017 · 8 comments

Comments

@gaoyifan
Copy link
Member

当用户流量到达上限时,发送提醒邮件

@zzh1996
Copy link
Member

zzh1996 commented Jan 31, 2017

由什么触发?

@gaoyifan
Copy link
Member Author

周期触发?

@weikengchen
Copy link
Member

为什么不设置一个到了限制随机送一点的福利呢~

@gaoyifan
Copy link
Member Author

gaoyifan commented Feb 1, 2017

@weikengchen 比如什么福利咧?

@weikengchen
Copy link
Member

广东移动有个,就是在你流量超过之后,给你送那么个851MB= =

@gaoyifan
Copy link
Member Author

gaoyifan commented Feb 1, 2017

@weikengchen @zzh1996
有种等效的方法:把流量上限设置成12.333GB。
当用户流量到达10GB时邮件提示用户“流量已用尽,本月再送你2333M流量”。
等流量真用完时再发一封邮件:“你的流量彻底用完了2333😂”

@weikengchen
Copy link
Member

流量用完的时候,light服务器会触发一个信息给前端吗?

@gaoyifan
Copy link
Member Author

gaoyifan commented Feb 1, 2017

@weikengchen 目前后端每隔一小时向RADIUS更新一次流量数据,由cron触发。
可以在cron中再执行一些额外的逻辑,用于触发邮件通知。

https://github.com/ustclug/light-server/blob/master/.docker/rootfs/etc/periodic/hourly/squid2radius

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants