1
This commit is contained in:
parent
827e95aa8d
commit
71dd677d90
@ -70,11 +70,14 @@ behaviac::EBTStatus AndroidAgent::CoLogin()
|
||||
{
|
||||
auto url_params = a8::MutableXObject::CreateObject();
|
||||
url_params->SetVal("c", "Login");
|
||||
url_params->SetVal("a", "auth");
|
||||
url_params->SetVal("gameid", 2006);
|
||||
url_params->SetVal("channel", 6513);
|
||||
url_params->SetVal("openid", owner_->GetIdx());
|
||||
HttpProxy::Instance()->HttpGet
|
||||
url_params->SetVal("a", "auth2");
|
||||
//url_params->SetVal("gameid", 2006);
|
||||
//url_params->SetVal("channel", 6513);
|
||||
//url_params->SetVal("openid", owner_->GetIdx());
|
||||
auto post_body = a8::MutableXObject::CreateObject();
|
||||
post_body->SetVal("channel", 2);
|
||||
post_body->SetVal("data", owner_->GetIdx());
|
||||
HttpProxy::Instance()->HttpPost
|
||||
(
|
||||
[context] (bool ok, a8::XObject* rsp_obj, f8::HttpContext* ctx)
|
||||
{
|
||||
@ -118,7 +121,8 @@ behaviac::EBTStatus AndroidAgent::CoLogin()
|
||||
}
|
||||
},
|
||||
"https://login-test.kingsome.cn/webapp/index.php",
|
||||
url_params
|
||||
url_params,
|
||||
post_body->ToJsonStr()
|
||||
);
|
||||
}
|
||||
co->runing_cb =
|
||||
|
Loading…
x
Reference in New Issue
Block a user