Compare commits
2
Commits
4bb11a026e
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
92df174c95 | ||
|
|
560885b44d |
@@ -123,7 +123,7 @@ def RemoteExecute(script, params):
|
||||
if defaultConnection:
|
||||
pp = parse_params(params)
|
||||
r = defaultConnection.exec(script, **pp)
|
||||
return r.error(), r.value()
|
||||
return r.error(), r.value(), r.message()
|
||||
return -1, '连接错误'
|
||||
|
||||
|
||||
@@ -132,7 +132,7 @@ def RemoteCallFunc(func, args, params):
|
||||
if defaultConnection:
|
||||
pp = parse_params(params)
|
||||
r = defaultConnection.call(func, *args, **pp)
|
||||
return r.error(), r.value()
|
||||
return r.error(), r.value(), r.message()
|
||||
return -1, '连接错误'
|
||||
|
||||
|
||||
@@ -155,12 +155,12 @@ def DecodeDate(dt):
|
||||
|
||||
def DecodeTime(dt):
|
||||
d = pyTSL.DoubleToDatetime(dt)
|
||||
return d.hour, d.minute, d.second, d.microsecond * 1000
|
||||
return d.hour, d.minute, d.second, d.microsecond / 1000
|
||||
|
||||
|
||||
def DecodeDateTime(dt):
|
||||
d = pyTSL.DoubleToDatetime(dt)
|
||||
return d.year, d.month, d.day, d.hour, d.minute, d.second, d.microsecond * 1000
|
||||
return d.year, d.month, d.day, d.hour, d.minute, d.second, d.microsecond / 1000
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
Reference in New Issue
Block a user