修复日计划工单接口和http
This commit is contained in:
@@ -46,7 +46,7 @@ class Http(models.AbstractModel):
|
||||
_logger.info('check_sf_str:%s' % check_sf_str)
|
||||
_logger.info('check_str:%s' % check_str)
|
||||
_logger.info('sf_secret_key:%s' % factory_secret.sf_secret_key)
|
||||
# if check_sf_str != datas['HTTP_CHECKSTR']:
|
||||
# raise AuthenticationError('数据校验不通过')
|
||||
if check_sf_str != datas['HTTP_CHECKSTR']:
|
||||
raise AuthenticationError('数据校验不通过')
|
||||
else:
|
||||
raise AuthenticationError('请求参数中无token')
|
||||
|
||||
Reference in New Issue
Block a user