update sth
This commit is contained in:
parent
23b2360610
commit
0d5329ee9e
1
.gitignore
vendored
1
.gitignore
vendored
@ -4,3 +4,4 @@ Pods
|
|||||||
.idea
|
.idea
|
||||||
Data
|
Data
|
||||||
Classes/Native
|
Classes/Native
|
||||||
|
.vscode
|
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because one or more lines are too long
@ -12,13 +12,14 @@ 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
|
* @param {*} channel 0: google, 1: apple, 2: tiktok, 3: facebook, 4: twitter 5: tg, 6: email, 7: discord 10: client
|
||||||
*/
|
*/
|
||||||
function walletLogin(funId, channel) {
|
function walletLogin(funId, channel, env) {
|
||||||
channel = parseInt(channel);
|
channel = parseInt(channel);
|
||||||
|
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));
|
promiseCb(funId, wallet.preLogin(channel, env));
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* init internal wallet with password
|
* init internal wallet with password
|
||||||
|
Loading…
x
Reference in New Issue
Block a user