|
@@ -103,10 +103,10 @@ async def get_home_page(request: Request, response: Response):
|
|
|
async def checkStatus():
|
|
|
errorList = []
|
|
|
try:
|
|
|
- conn = rpyc.classic.connect("192.168.1.105",18812)
|
|
|
+ conn = rpyc.classic.connect("192.168.1.111",18812)
|
|
|
conn.close()
|
|
|
except:
|
|
|
- errorList.append('105:18812 server')
|
|
|
+ errorList.append('111:18812 server')
|
|
|
|
|
|
try:
|
|
|
c = rpyc.connect("localhost", 8858)
|
|
@@ -881,7 +881,7 @@ def gen_video_long_queue(name_hash,name,text_content, image_urls,avatar,multiLan
|
|
|
if left_time is None:
|
|
|
left_time = 5*60
|
|
|
if left_time < vid_duration:
|
|
|
- msg = '您本月額度剩下'+str(left_time)+'秒,此部影片有'+str(vid_duration)+'秒, 若要繼續產生影片請至 192.168.1.106:8887/confirm_add_value?name_hash='+name_hash+' 加值'
|
|
|
+ msg = '您本月額度剩下'+str(left_time)+'秒,此部影片有'+str(vid_duration)+'秒, 若要繼續產生影片請至 192.168.1.107:8887/confirm_add_value?name_hash='+name_hash+' 加值'
|
|
|
print(msg)
|
|
|
msg =msg.encode(encoding='utf-8')
|
|
|
mailer.send_left_not_enough(msg, email)
|
|
@@ -948,7 +948,7 @@ def gen_video_queue(name_hash,name,text_content, image_urls,avatar,multiLang,vid
|
|
|
if left_time is None:
|
|
|
left_time = 5*60
|
|
|
if left_time < vid_duration:
|
|
|
- msg = '您本月額度剩下'+str(left_time)+'秒,此部影片有'+str(vid_duration)+'秒, 若要繼續產生影片請至 192.168.1.106:8887/confirm_add_value?name_hash='+name_hash+' 加值'
|
|
|
+ msg = '您本月額度剩下'+str(left_time)+'秒,此部影片有'+str(vid_duration)+'秒, 若要繼續產生影片請至 192.168.1.107:8887/confirm_add_value?name_hash='+name_hash+' 加值'
|
|
|
print(msg)
|
|
|
msg =msg.encode(encoding='utf-8')
|
|
|
mailer.send_left_not_enough(msg, email)
|