添加清理

This commit is contained in:
aixiao 2022-09-22 16:05:17 +08:00
parent 445fe4e818
commit cc8cf1b53e
3 changed files with 9 additions and 0 deletions

Binary file not shown.

View File

@ -106,6 +106,7 @@ size_t faceMatch_callback(void *ptr, size_t size, size_t nmemb, void *stream)
int post_faceMatch(char *access_token, char *file)
{
char base64_file[sizeof(file) + 9];
char *getbase64(char *photoname);
int is_success;
char url[270] = { 0 };
@ -148,6 +149,14 @@ int post_faceMatch(char *access_token, char *file)
is_success = 1;
}
// 清理文件
bzero(base64_file, sizeof(file) + 9);
strcpy(base64_file, file);
strcat(base64_file, "_base64");
//printf("%s\n", base64_file);
remove(base64_file);
return is_success;
}

Binary file not shown.