MCPcopy
hub / github.com/gaotianliuyun/gao / init

Function init

cat/js/yunpan4k_open.js:32–40  ·  view source on GitHub ↗
(cfg)

Source from the content-addressed store, hash-verified

30
31// cfg = {skey: siteKey, ext: extend}
32async function init(cfg) {
33 try {
34 siteKey = _.isEmpty(cfg.skey) ? '' : cfg.skey;
35 siteType = _.isEmpty(cfg.stype) ? '' : cfg.stype;
36 await initAli(cfg.ext);
37 } catch (e) {
38 await log('init:' + e.message + ' line:' + e.lineNumber);
39 }
40}
41
42async function home(filter) {
43 return '{}';

Callers

nothing calls this directly

Calls 2

initAliFunction · 0.90
logFunction · 0.90

Tested by

no test coverage detected