From 92df174c95563279d67413d2e4d84a4d350fad4a Mon Sep 17 00:00:00 2001 From: Wei guangjing Date: Mon, 13 Jun 2022 19:57:22 +0800 Subject: [PATCH] =?UTF-8?q?0.3,=20fix:=20-=20Remote{Execute,=20Call}=20?= =?UTF-8?q?=E6=BC=8F=E6=8E=89=E4=BA=86=E9=94=99=E8=AF=AF=E6=B6=88=E6=81=AF?= =?UTF-8?q?=20-=20Decode=E6=97=A5=E6=9C=9F=E6=97=B6=E9=97=B4=E5=BE=AE?= =?UTF-8?q?=E7=A7=92=E5=BA=94=E8=AF=A5=E9=99=A41000?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pyTSLPy/__init__.py | 8 ++++---- setup.py | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pyTSLPy/__init__.py b/pyTSLPy/__init__.py index f29e84b..7f62d1a 100644 --- a/pyTSLPy/__init__.py +++ b/pyTSLPy/__init__.py @@ -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__': diff --git a/setup.py b/setup.py index be3d1d9..dd195b3 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ from setuptools import setup setup( name="pyTSLPy", - version="0.2", + version="0.3", author="Wei guangjing", author_email="vcc@py3k.cn", description="用pyTSL模拟TSLPy",