|
|
|
@ -2,6 +2,8 @@ import datetime
|
|
|
|
|
import http.client
|
|
|
|
|
import json
|
|
|
|
|
import pdb
|
|
|
|
|
import os
|
|
|
|
|
import subprocess
|
|
|
|
|
#Глобальная переменная - все глобальные значения программы
|
|
|
|
|
global mGlobalDict
|
|
|
|
|
#{
|
|
|
|
@ -15,6 +17,10 @@ global mGlobalDict
|
|
|
|
|
# },
|
|
|
|
|
# {
|
|
|
|
|
# type: <ActivityLogScheduleListGet>
|
|
|
|
|
# },
|
|
|
|
|
# {
|
|
|
|
|
# type: <ActivityCMDRun>,
|
|
|
|
|
# code: <str>
|
|
|
|
|
# }
|
|
|
|
|
# ]
|
|
|
|
|
#
|
|
|
|
@ -45,5 +51,11 @@ def ProcessingRun(inConfigurationDict):
|
|
|
|
|
if lItem["type"]=="ActivityLogScheduleListGet":
|
|
|
|
|
#pdb.set_trace()
|
|
|
|
|
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
|
|
|
|
|