修复日计划工单接口和http

This commit is contained in:
jinling.yang
2024-02-22 18:52:36 +08:00
parent a3f6946823
commit 5916b4a740
3 changed files with 5 additions and 6 deletions

View File

@@ -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')