#!/usr/bin/python
|
# -*- coding: GBK -*-
|
#
|
##@package
|
#
|
# @todo: ÇþµÀɾµµ²âÊԵijäÖµ·µÀû
|
#
|
# @author: Alee
|
# @date 2019-1-22 ÉÏÎç11:40:21
|
# @version 1.0
|
#
|
# @note:
|
#
|
#---------------------------------------------------------------------
|
#ÐèÒª°²×°µÚÈý·½¿â
|
#waitress-1.1.0.tar.gz
|
#requests-2.18.4.tar.gz
|
#---------------------------------------------------------------------
|
import webapp
|
from bottle import run
|
from lib import mylog
|
import time
|
import os
|
import datetime
|
|
Def_Debug = True
|
|
# ²âÊÔ²½Öè 1. Ë«»÷DoubleBillTool.py µ¼ÈëÊý¾ÝBill.txt, ¿ÉÅä²âÊÔÕ˺Å
|
# 2. PHPÔö¼ÓÆÕͨGMÃüÁî £¬GMT_AllDoubleBill,GMT_QDFLDoubleBill
|
# 2. µÇ¼ÓгäÖµµÄÕ˺ţ¬¼´¿É»ñµÃµÚÒ»Ìì·µÀû£¬
|
# 3. ºóÐøÌ죬ÔÚÏßÇл»µØÍ¼»òÕߵǼ¼´¿É»ñµÃ·µÀûÓʼþ
|
#
|
#
|
#
|
|
#center.secondworld.net.cn
|
def main():
|
time.sleep(1)
|
os.system("title DoubleBill-%s"%datetime.datetime.today())
|
mylog.InitLog(r".\ServerLog", "DoubleBill.txt", False, Def_Debug)
|
|
CenterPort = 53004 # ¶Ë¿ÚÔÍ·ÌõSDKʹÓÃÒÑ·ÏÆú
|
|
run(host='0.0.0.0', port=CenterPort, app=webapp.myapp, server='waitress')
|
return
|
|
if __name__ == '__main__':
|
main()
|