|
发表于 2024-2-29 16:27:23
|
显示全部楼层
本帖最后由 sun8911879 于 2024-3-9 00:26 编辑
sdk:1.0.14.5/1.0.14.4 MYT-OS: OS-12-XP-v23.5.1
共享IP
设置设备经纬度信息
GET /set_location/{ip}/{name}
这个接口返回成功 但是实际无法正常应用
只能用app自带的虚拟定位来实现 能帮忙看一下吗
偶尔报错偶尔返回成功 但是都无法设置成功
ERROR in app: Exception on /set_location/192.168.1.13/1-1-1 [GET]
Traceback (most recent call last):
File "flask_siwadoc\__init__.py", line 154, in wrapper
File "pydantic\main.py", line 331, in pydantic.main.BaseModel.__init__
pydantic.error_wrappers.ValidationError: 1 validation error for location
lng
value is not a valid float (type=type_error.float)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "flask\app.py", line 1455, in wsgi_app
File "flask\app.py", line 869, in full_dispatch_request
File "flask_cors\extension.py", line 176, in wrapped_function
File "flask\app.py", line 867, in full_dispatch_request
File "flask\app.py", line 852, in dispatch_request
File "flask_siwadoc\__init__.py", line 156, in wrapper
flask_siwadoc.error.ValidationError: 1 validation error for location
lng
value is not a valid float (type=type_error.float)
"GET /set_location/192.168.1.13/1-1-1?lat=27.57852&lng=115.25041" HTTP/1.1"
|
|