Commit 4d9f2edd 刘韬

1

1 个父辈 d77ffcf1
...@@ -130,7 +130,7 @@ def post(seq): ...@@ -130,7 +130,7 @@ def post(seq):
ip_config['post'] = 'failed' ip_config['post'] = 'failed'
logging.warning("请求服务器失败:{}".format(e)) logging.warning("请求服务器失败:{}".format(e))
#single = "库位","颜色"
def process_open_post(single,channel,led_index): def process_open_post(single,channel,led_index):
global post_leds global post_leds
if channel == '1' or channel == '2': if channel == '1' or channel == '2':
...@@ -189,7 +189,7 @@ def process_closeall_post(): ...@@ -189,7 +189,7 @@ def process_closeall_post():
def resolve_data(datajson): def resolve_data(datajson):
global post_leds global post_leds
operation=datajson['data'] operation=datajson['data']
# operation = {'open':'1_1_1=red|1_1_2=blue|1_1_3=red|2_1_1=green'} # operation = {'open':'1_1_1=red@1000|1_1_2=blue|1_1_3=red|2_1_1=green'}
channels = [] channels = []
if operation: if operation:
if 'open' in operation.keys(): if 'open' in operation.keys():
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!