update sth

This commit is contained in:
CounterFire2023 2023-08-17 16:56:53 +08:00
parent 23b2360610
commit 0d5329ee9e
5 changed files with 657 additions and 655 deletions

1
.gitignore vendored
View File

@ -4,3 +4,4 @@ Pods
.idea .idea
Data Data
Classes/Native Classes/Native
.vscode

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@ -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