移除一些日志打印
This commit is contained in:
parent
5a9020f6da
commit
44362f6ca3
@ -351,7 +351,6 @@ public:
|
||||
{
|
||||
CCLOGERROR("HttpClient::%s failed!", __FUNCTION__);
|
||||
}
|
||||
CCLOG("http response: %s", content);
|
||||
return content;
|
||||
}
|
||||
|
||||
|
@ -289,7 +289,6 @@ public class Cocos2dxHttpURLConnection
|
||||
}
|
||||
byte retbuffer[] = bytestream.toByteArray();
|
||||
bytestream.close();
|
||||
Log.i(TAG, "getResponseContent:" + new String(retbuffer));
|
||||
return retbuffer;
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
|
@ -1118,6 +1118,25 @@ static bool JSB_storeLocalPass(se::State& s)
|
||||
}
|
||||
SE_BIND_FUNC(JSB_storeLocalPass)
|
||||
|
||||
static bool JSB_hashSvrPass(se::State& s)
|
||||
{
|
||||
const auto& args = s.args();
|
||||
size_t argc = args.size();
|
||||
CC_UNUSED bool ok = true;
|
||||
if (argc > 0) {
|
||||
std::string pass;
|
||||
ok = seval_to_std_string(args[0], &pass);
|
||||
SE_PRECONDITION2(ok, false, "Error processing pass");
|
||||
std::string hashstr = hash_pass_svr(pass.c_str());
|
||||
s.rval().setString(hashstr);
|
||||
return true;
|
||||
}
|
||||
|
||||
SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 1);
|
||||
return false;
|
||||
}
|
||||
SE_BIND_FUNC(JSB_hashSvrPass)
|
||||
|
||||
static bool JSB_verifyLocalPass(se::State& s)
|
||||
{
|
||||
const auto& args = s.args();
|
||||
@ -1381,6 +1400,7 @@ bool jsb_register_global_variables(se::Object* global)
|
||||
__jsbObj->defineFunction("prepareWallet", _SE(JSB_prepareWallet));
|
||||
__jsbObj->defineFunction("storeLocalPass", _SE(JSB_storeLocalPass));
|
||||
__jsbObj->defineFunction("verifyLocalPass", _SE(JSB_verifyLocalPass));
|
||||
__jsbObj->defineFunction("hashSvrPass", _SE(JSB_hashSvrPass));
|
||||
__jsbObj->defineFunction("walletSign", _SE(JSB_walletSign));
|
||||
__jsbObj->defineFunction("walletSignTran", _SE(JSB_walletSignTran));
|
||||
__jsbObj->defineFunction("walletSecKey", _SE(JSB_walletSecKey));
|
||||
|
Loading…
x
Reference in New Issue
Block a user