处理网络

This commit is contained in:
2026-02-03 20:22:28 +08:00
parent 822a814f85
commit 61095a379f
4 changed files with 62 additions and 21 deletions

View File

@@ -119,12 +119,7 @@ autoShowBusinessError:NO
return;
}
NSString *encodedContent =
[content stringByAddingPercentEncodingWithAllowedCharacters:
[NSCharacterSet URLQueryAllowedCharacterSet]];
NSString *path = [NSString
stringWithFormat:@"%@?content=%@&companionId=%ld", API_AI_CHAT_MESSAGE,
encodedContent ?: @"", (long)companionId];
NSString *path = API_AI_CHAT_MESSAGE;
NSDictionary *params = @{
@"content" : content ?: @"",
@"companionId" : @(companionId)