FIX: fix third-party login
Change-Id: Ib4699ecec1a6c72a9bc4967751d07b75f6b52d3a Signed-off-by: Stone Li <stone.li@bambulab.com>
This commit is contained in:
parent
03e031fe5c
commit
9f71a8c5dd
|
@ -48,8 +48,8 @@ std::string http_headers::get_response()
|
||||||
std::string user_avatar;
|
std::string user_avatar;
|
||||||
try {
|
try {
|
||||||
json user_j = json::parse(http_body);
|
json user_j = json::parse(http_body);
|
||||||
if (user_j.contains("uid"))
|
if (user_j.contains("uidStr"))
|
||||||
user_id = std::to_string(user_j["uid"].get<int>());
|
user_id = user_j["uidStr"].get<std::string>();
|
||||||
if (user_j.contains("name"))
|
if (user_j.contains("name"))
|
||||||
user_name = user_j["name"].get<std::string>();
|
user_name = user_j["name"].get<std::string>();
|
||||||
if (user_j.contains("avatar"))
|
if (user_j.contains("avatar"))
|
||||||
|
|
Loading…
Reference in New Issue