修改单元测试
This commit is contained in:
@@ -21,7 +21,7 @@ class WorkorderExceptionConroller(http.Controller):
|
||||
try:
|
||||
res = {'Succeed': True, 'ErrorCode': 0, 'Error': ''}
|
||||
datas = request.httprequest.data
|
||||
ret = json.loads(datas)['Datas']
|
||||
ret = json.loads(datas)
|
||||
if not ret.get('RfidCode') or not ret.get('ErrorType'):
|
||||
res = {'Succeed': False, 'ErrorCode': 400, 'Error': '参数错误'}
|
||||
return json.JSONEncoder().encode(res)
|
||||
|
||||
Reference in New Issue
Block a user