0.3, fix:
- Remote{Execute, Call} 漏掉了错误消息
- Decode日期时间微秒应该除1000
This commit is contained in:
parent
560885b44d
commit
92df174c95
|
|
@ -123,7 +123,7 @@ def RemoteExecute(script, params):
|
||||||
if defaultConnection:
|
if defaultConnection:
|
||||||
pp = parse_params(params)
|
pp = parse_params(params)
|
||||||
r = defaultConnection.exec(script, **pp)
|
r = defaultConnection.exec(script, **pp)
|
||||||
return r.error(), r.value()
|
return r.error(), r.value(), r.message()
|
||||||
return -1, '连接错误'
|
return -1, '连接错误'
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -132,7 +132,7 @@ def RemoteCallFunc(func, args, params):
|
||||||
if defaultConnection:
|
if defaultConnection:
|
||||||
pp = parse_params(params)
|
pp = parse_params(params)
|
||||||
r = defaultConnection.call(func, *args, **pp)
|
r = defaultConnection.call(func, *args, **pp)
|
||||||
return r.error(), r.value()
|
return r.error(), r.value(), r.message()
|
||||||
return -1, '连接错误'
|
return -1, '连接错误'
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -155,12 +155,12 @@ def DecodeDate(dt):
|
||||||
|
|
||||||
def DecodeTime(dt):
|
def DecodeTime(dt):
|
||||||
d = pyTSL.DoubleToDatetime(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):
|
def DecodeDateTime(dt):
|
||||||
d = pyTSL.DoubleToDatetime(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__':
|
if __name__ == '__main__':
|
||||||
|
|
|
||||||
2
setup.py
2
setup.py
|
|
@ -2,7 +2,7 @@ from setuptools import setup
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name="pyTSLPy",
|
name="pyTSLPy",
|
||||||
version="0.2",
|
version="0.3",
|
||||||
author="Wei guangjing",
|
author="Wei guangjing",
|
||||||
author_email="vcc@py3k.cn",
|
author_email="vcc@py3k.cn",
|
||||||
description="用pyTSL模拟TSLPy",
|
description="用pyTSL模拟TSLPy",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue