|
@@ -434,7 +434,8 @@ def gen_video_queue(name_hash,name,text_content, image_urls,avatar,user_id):
|
|
if left_time < vid_duration:
|
|
if left_time < vid_duration:
|
|
msg = '您本月額度剩下'+str(left_time)+'秒,此部影片有'+str(vid_duration)+'秒, 若要繼續產生影片請至 http://192.168.1.106:8007/confirm_add_value?name_hash='+name_hash+' 加值'
|
|
msg = '您本月額度剩下'+str(left_time)+'秒,此部影片有'+str(vid_duration)+'秒, 若要繼續產生影片請至 http://192.168.1.106:8007/confirm_add_value?name_hash='+name_hash+' 加值'
|
|
print(msg)
|
|
print(msg)
|
|
- mailer.send(msg.encode(encoding='utf-8'))
|
|
|
|
|
|
+ msg =msg.encode(encoding='utf-8')
|
|
|
|
+ mailer.send(msg)
|
|
else:
|
|
else:
|
|
left_time = left_time - vid_duration
|
|
left_time = left_time - vid_duration
|
|
db.query('UPDATE users SET left_time ='+str(left_time)+' WHERE id='+str(user_id)+';')
|
|
db.query('UPDATE users SET left_time ='+str(left_time)+' WHERE id='+str(user_id)+';')
|