增加绑定帐号的方法露出
This commit is contained in:
parent
035ef84a24
commit
258d19f620
File diff suppressed because one or more lines are too long
@ -13,13 +13,15 @@ function promiseCb(funId, promiseFun, dataParser) {
|
|||||||
/**
|
/**
|
||||||
* oauth login before init internal wallet
|
* oauth login before init internal wallet
|
||||||
* @param {*} channel 0: google, 1: apple, 2: tiktok, 3: facebook, 4: twitter 5: tg, 6: email, 7: discord 10: client
|
* @param {*} channel 0: google, 1: apple, 2: tiktok, 3: facebook, 4: twitter 5: tg, 6: email, 7: discord 10: client
|
||||||
|
* @param env: dev release
|
||||||
|
* @param account guest account to bind
|
||||||
*/
|
*/
|
||||||
function walletLogin(funId, channel, env) {
|
function walletLogin(funId, channel, env, account) {
|
||||||
channel = parseInt(channel);
|
channel = parseInt(channel);
|
||||||
env = env || 'dev';
|
env = env || 'dev';
|
||||||
console.log('walletLogin: ' + channel);
|
console.log('walletLogin: ' + channel);
|
||||||
const wallet = !window.jc || !jc.wallet ? new jcwallet.default({ type: 0 }) : jc.wallet;
|
const wallet = !window.jc || !jc.wallet ? new jcwallet.default({ type: 0 }) : jc.wallet;
|
||||||
promiseCb(funId, wallet.preLogin(channel, env));
|
promiseCb(funId, wallet.preLogin(channel, env, account));
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* init internal wallet with password
|
* init internal wallet with password
|
||||||
|
Loading…
x
Reference in New Issue
Block a user