forked from Hay1tsme/artemis
fix attend
This commit is contained in:
parent
3b852ea739
commit
48144b53f0
@ -39,7 +39,7 @@ class DivaBase:
|
|||||||
resp.atnd_prm1[i] = 0
|
resp.atnd_prm1[i] = 0
|
||||||
resp.atnd_prm1[8] = 100
|
resp.atnd_prm1[8] = 100
|
||||||
|
|
||||||
resp.atnd_prm2[:5] = [30, 10, 100, 4, 1, 50]
|
resp.atnd_prm2[:6] = [30, 10, 100, 4, 1, 50]
|
||||||
|
|
||||||
resp.atnd_prm3[0] = 100
|
resp.atnd_prm3[0] = 100
|
||||||
resp.atnd_prm3[1] = 0
|
resp.atnd_prm3[1] = 0
|
||||||
@ -47,7 +47,7 @@ class DivaBase:
|
|||||||
resp.atnd_prm3[16: 19] = [3, 4, 5]
|
resp.atnd_prm3[16: 19] = [3, 4, 5]
|
||||||
resp.atnd_prm3[22: 25] = [4, 5, 6]
|
resp.atnd_prm3[22: 25] = [4, 5, 6]
|
||||||
resp.atnd_prm3[80:] = [0] * 20
|
resp.atnd_prm3[80:] = [0] * 20
|
||||||
resp.atnd_prm3[28:78] = [5,6,7,4,4,4,9,10,14,5,10,10,25,20,50,30,90,5,
|
resp.atnd_prm3[28:79] = [5,6,7,4,4,4,9,10,14,5,10,10,25,20,50,30,90,5,
|
||||||
10,10,25,20,50,30,90,5,10,10,25,20,50,30,90,5,10,10,25,20,50,30,90,
|
10,10,25,20,50,30,90,5,10,10,25,20,50,30,90,5,10,10,25,20,50,30,90,
|
||||||
5,10,10,25,20,50,30,90,10,30]
|
5,10,10,25,20,50,30,90,10,30]
|
||||||
|
|
||||||
|
@ -119,6 +119,9 @@ class DivaServlet:
|
|||||||
response = handler(req_cls.raw)
|
response = handler(req_cls.raw)
|
||||||
if response is None or response == "":
|
if response is None or response == "":
|
||||||
response = BaseResponse(req_cls.cmd, req_cls.req_id).make()
|
response = BaseResponse(req_cls.cmd, req_cls.req_id).make()
|
||||||
|
|
||||||
|
if not response.startswith("cmd="):
|
||||||
|
response = f"cmd={req_cls.cmd}&req_id={req_cls.req_id}&stat=ok&" + response
|
||||||
|
|
||||||
self.logger.debug(f"Response: {response}")
|
self.logger.debug(f"Response: {response}")
|
||||||
return response.encode(errors="ignore")
|
return response.encode(errors="ignore")
|
||||||
|
Loading…
Reference in New Issue
Block a user