add logout method

This commit is contained in:
CounterFire2023 2023-11-30 17:01:14 +08:00
parent a4b613c299
commit ff00255ba4
2 changed files with 45 additions and 40 deletions

File diff suppressed because one or more lines are too long

View File

@ -36,6 +36,11 @@ function walletLogin(funId, channel, env, account) {
promiseCb(funId, jc.wallet.preLogin(channel, env, account));
}
function logout(funId, channel) {
channel = parseInt(channel || '0');
promiseCb(funId, jc.wallet.logout(channel));
}
function updateGameInfo(funId, info) {
jsb.updateGameInfo(funId, info);
promiseCb(funId, Promise.resolve(1));