上传照片bug

This commit is contained in:
caoqianming 2022-01-27 09:28:34 +08:00
parent cb2986ca91
commit d54ea2c2dc
1 changed files with 1 additions and 0 deletions

View File

@ -40,6 +40,7 @@ class HRMService:
return user, '' return user, ''
return None, '识别失败' return None, '识别失败'
@classmethod
def get_facedata_from_img(cls, img_path): def get_facedata_from_img(cls, img_path):
try: try:
photo_path = settings.BASE_DIR + img_path photo_path = settings.BASE_DIR + img_path