1
This commit is contained in:
parent
25dfbeb0ad
commit
44dd7d03b7
@ -97,17 +97,17 @@ behaviac::EBTStatus AndroidAgent::CoLogin()
|
||||
}
|
||||
HttpProxy::Instance()->HttpGet
|
||||
(
|
||||
[context, hum] (bool ok, a8::XObject* rsp_obj, f8::HttpContext* ctx)
|
||||
[context, hum, account_id, session_id]
|
||||
(bool ok, a8::XObject* rsp_obj, f8::HttpContext* ctx)
|
||||
{
|
||||
#if 0
|
||||
a8::XPrintf("data:%s\n", {rsp_obj->ToJsonStr()});
|
||||
#endif
|
||||
if (ok) {
|
||||
long long hero_uniid = rsp_obj->Get("hero_unid", "");
|
||||
auto info = rsp_obj->At("info");
|
||||
long long hero_uniid = info->Get("hero_uniid", "");
|
||||
hum->SetHeroUniId(hero_uniid);
|
||||
if (hum->GetHeroUniId() <= 0) {
|
||||
std::string account_id = rsp_obj->At("account_id")->AsXValue().GetString();
|
||||
std::string session_id = rsp_obj->At("session_id")->AsXValue().GetString();
|
||||
auto url_params = a8::MutableXObject::CreateObject();
|
||||
url_params->SetVal("c", "User");
|
||||
url_params->SetVal("a", "selectFreeItemS");
|
||||
@ -126,7 +126,7 @@ behaviac::EBTStatus AndroidAgent::CoLogin()
|
||||
++Perf::Instance()->enter_fail_times;
|
||||
}
|
||||
},
|
||||
"https://game2006sapi-test.kingsome.cn/webapp/index.php",
|
||||
"https://game2006sapi-test.kingsome.cn/sapi/webapp/index.php",
|
||||
url_params
|
||||
);
|
||||
} else {
|
||||
@ -230,7 +230,7 @@ behaviac::EBTStatus AndroidAgent::CoJoin()
|
||||
msg.set_account_id(owner_->GetAccountId());
|
||||
msg.set_session_id(owner_->GetSessionId());
|
||||
msg.set_proto_version(cs::ProtoVersion);
|
||||
std::string payload_data = "ihCQQdNzoYFC^6q4ohsao39br%Ui!C9u2d^qvzek5hOB$3q1:|";
|
||||
std::string payload_data = "ihCQQdNzoYFC^6q4ohsao39br%Ui!C9u2d^qvzek5hOB$3q1:normal_room|";
|
||||
{
|
||||
auto xobj = a8::MutableXObject::CreateObject();
|
||||
auto team_list = a8::MutableXObject::CreateArray();
|
||||
|
Loading…
x
Reference in New Issue
Block a user