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

Function init

cat/js/zhaozy_open.js:32–46  ·  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 const ext = _.isEmpty(cfg.ext) ? '' : cfg.ext;
37 const configs = ext.split('$$$');
38 if (configs.length == 3) {
39 username = configs[1];
40 password = configs[2];
41 }
42 await initAli(configs[0]);
43 } catch (e) {
44 await log('init:' + e.message + ' line:' + e.lineNumber);
45 }
46}
47
48async function home(filter) {
49 return '{}';

Callers

nothing calls this directly

Calls 2

initAliFunction · 0.90
logFunction · 0.90

Tested by

no test coverage detected