forked from mrlan/EnglishPal
				
			Show the expiry notice if the account has expired.
							parent
							
								
									718b98ef02
								
							
						
					
					
						commit
						edb801b95e
					
				|  | @ -6,10 +6,10 @@ | |||
| </head> | ||||
| <body> | ||||
|     <p>您的账号{{ username }}过期。</p> | ||||
|     <p>为了提高服务质量,English Pal 收取会员费用, 每天0元。</p> | ||||
|     <p>为了提高服务质量,English Pal 收取会员费用, 每天1元。</p> | ||||
|     <p>请决定你要试用的时间长度,扫描下面支付宝二维码支付。 支付时请注明<i>English Pal Membership Fee</i>。 我们会于12小时内激活账号。</p> | ||||
|     <p><img src="static/donate-the-author-hidden.jpg" width="120px" alt="支付宝二维码" /></p> | ||||
|     <p>如果有问题,请加开发者微信 torontohui。</p> | ||||
|     <p>如果有问题,请联系开发者 dev@qq.com。</p> | ||||
|     <p><a href="/logout">登出</a></p> | ||||
| 
 | ||||
| </body> | ||||
|  | @ -93,8 +93,8 @@ def userpage(username): | |||
| 
 | ||||
|     # 用户过期 | ||||
|     user_expiry_date = session.get('expiry_date') | ||||
|     # if datetime.now().strftime('%Y%m%d') > user_expiry_date: | ||||
|     #     return render_template('out_time.html') | ||||
|     if datetime.now().strftime('%Y%m%d') > user_expiry_date: | ||||
|         return render_template('expiry.html') | ||||
| 
 | ||||
|     # 获取session里的用户名 | ||||
|     username = session.get('username') | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue