Skip to content
This repository was archived by the owner on Aug 16, 2024. It is now read-only.

Commit 2077c78

Browse files
committed
适配 cpp-httplib 的更新.
1 parent 9fc9da4 commit 2077c78

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/mirai_bot.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,11 @@ namespace
5454
return result;
5555
}
5656

57-
json ParseOrThrowException(const shared_ptr<httplib::Response>& response)
57+
json ParseOrThrowException(const httplib::Result& result)
5858
{
5959
using namespace Cyan;
60-
if (!response) throw NetworkException();
61-
json re_json = json::parse(response->body);
60+
if (!result) throw NetworkException();
61+
json re_json = json::parse(result->body);
6262
if (re_json.contains("code"))
6363
{
6464
int code = re_json["code"].get<int>();

0 commit comments

Comments
 (0)