add method for generate sharecode

This commit is contained in:
CounterFire2023 2024-05-15 16:51:19 +08:00
parent f6914db0a1
commit ccf9cbd1d3
2 changed files with 36 additions and 31 deletions

File diff suppressed because one or more lines are too long

View File

@ -851,3 +851,8 @@ function getLocalPassState(funId, key) {
promiseCb(funId, jc.wallet.nativeSvr.passStorageState(key));
}
function createShareCode(funId, type) {
type = parseInt(type || '1');
promiseCb(funId, jc.wallet.generateShareCode(type));
}