|
|
@ -2,6 +2,8 @@ import datetime
|
|
|
|
import http.client
|
|
|
|
import http.client
|
|
|
|
import json
|
|
|
|
import json
|
|
|
|
import pdb
|
|
|
|
import pdb
|
|
|
|
|
|
|
|
import os
|
|
|
|
|
|
|
|
import subprocess
|
|
|
|
#Глобальная переменная - все глобальные значения программы
|
|
|
|
#Глобальная переменная - все глобальные значения программы
|
|
|
|
global mGlobalDict
|
|
|
|
global mGlobalDict
|
|
|
|
#{
|
|
|
|
#{
|
|
|
@ -15,6 +17,10 @@ global mGlobalDict
|
|
|
|
# },
|
|
|
|
# },
|
|
|
|
# {
|
|
|
|
# {
|
|
|
|
# type: <ActivityLogScheduleListGet>
|
|
|
|
# type: <ActivityLogScheduleListGet>
|
|
|
|
|
|
|
|
# },
|
|
|
|
|
|
|
|
# {
|
|
|
|
|
|
|
|
# type: <ActivityCMDRun>,
|
|
|
|
|
|
|
|
# code: <str>
|
|
|
|
# }
|
|
|
|
# }
|
|
|
|
# ]
|
|
|
|
# ]
|
|
|
|
#
|
|
|
|
#
|
|
|
@ -45,5 +51,11 @@ def ProcessingRun(inConfigurationDict):
|
|
|
|
if lItem["type"]=="ActivityLogScheduleListGet":
|
|
|
|
if lItem["type"]=="ActivityLogScheduleListGet":
|
|
|
|
#pdb.set_trace()
|
|
|
|
#pdb.set_trace()
|
|
|
|
lResult["actionListResult"][-1] = {**lResult["actionListResult"][-1], **{"result":mGlobalDict["ActivityLogScheduleList"]}}
|
|
|
|
lResult["actionListResult"][-1] = {**lResult["actionListResult"][-1], **{"result":mGlobalDict["ActivityLogScheduleList"]}}
|
|
|
|
|
|
|
|
#Обработка команды ActivityCMDRun
|
|
|
|
|
|
|
|
if lItem["type"]=="ActivityCMDRun":
|
|
|
|
|
|
|
|
lCMDCode="cmd /c "+lItem["code"]
|
|
|
|
|
|
|
|
subprocess.Popen(lCMDCode)
|
|
|
|
|
|
|
|
lResultCMDRun=1#os.system(lCMDCode)
|
|
|
|
|
|
|
|
lResult["actionListResult"][-1] = {**lResult["actionListResult"][-1], **{"result":str(lResultCMDRun)}}
|
|
|
|
#Вернуть результат
|
|
|
|
#Вернуть результат
|
|
|
|
return lResult
|
|
|
|
return lResult
|
|
|
|