Commit 35c6ad51 authored by wanli's avatar wanli

feat(手表后端接口): 按照需求返回相应参数

parent b8e0d843
'''
Author: your name
Date: 2021-07-12 11:14:48
LastEditTime: 2021-07-20 11:15:28
LastEditTime: 2021-07-20 11:56:53
LastEditors: Please set LastEditors
Description: In User Settings Edit
FilePath: \evm-store\tools\build_out\controllers\appi.py
......@@ -172,7 +172,7 @@ class AppReview(object):
return app, ResponseCode.HTTP_SUCCESS
def getLauncher(self, params, jwt={}):
device = DeviceModel.query.filter(DeviceModel.imei==params.get("imei"), AppModel.is_delete==False).one_or_none()
device = DeviceModel.query.filter(DeviceModel.imei==params.get("imei"), DeviceModel.is_delete==False).one_or_none()
if not device:
return None, ResponseCode.DEVICE_NOT_EXISTS
......
......@@ -48,6 +48,7 @@ class AppModel(PrimaryModel):
def to_dict(self):
return {
'uuid': self.uuid,
'app_name': self.app_name,
'app_icon': self.app_icon,
'app_version': self.app_version,
......@@ -83,6 +84,7 @@ class PostAppSchema(ma.SQLAlchemySchema):
app_screen_size = ma.auto_field()
app_arch = ma.auto_field()
app_review = ma.auto_field(required=False)
remarks = fields.String(required=False)
logo = fields.Raw(required=False)
fileList = fields.Raw(required=False)
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment