mirror of
https://github.com/aaPanel/aaPanel.git
synced 2026-08-17 21:25:47 +02:00
1. Added Mail Marketing Automation trigger tasks 2. Added Mail Marketing Groups Import, Export, Merge 3. Added Mail Marketing Subscribers to support paste import 4. Added Mail Marketing Template Import Export Duplicate 5. Added Mail server add timed automatic reply 6. Added HTTPS Protection function for Website (disables automatic HTTP to HTTPS redirection when enabled) 7. Optimize Website Interface Button Integration 8. Optimize the response speed of WP Toolkit interface
28 lines
755 B
Python
28 lines
755 B
Python
#coding: utf-8
|
|
import sys,os,time
|
|
os.chdir('/www/server/panel/')
|
|
sys.path.insert(0,"class/")
|
|
sys.path.insert(0,"/www/server/panel/")
|
|
import traceback
|
|
import public
|
|
import http_requests
|
|
http_requests.DEFAULT_TYPE = 'src'
|
|
os.environ['BT_TASK'] = '1'
|
|
|
|
try:
|
|
import panelPush
|
|
import threading
|
|
push = panelPush.panelPush()
|
|
push.start()
|
|
|
|
from mod.base.push_mod import PushSystem
|
|
PushSystem().run()
|
|
|
|
# os.system("echo yes,{} > /tmp/push.pl".format(time.time()))
|
|
except Exception as e:
|
|
pass
|
|
# print(traceback.format_exc())
|
|
# print("开启推送消息进程异常")
|
|
os.system("echo no,{},{} > /tmp/push.pl".format(time.time(),e))
|
|
# os.system("echo no,{},{} > /tmp/push.pl".format(time.time(),traceback.format_exc()))
|