Skip to content

Commit f93d7e1

Browse files
committed
fix: update e1 default urls
1 parent abcd934 commit f93d7e1

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/init.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,13 @@ function getDefaultServerURLs(appId, region) {
1616
switch (appId.slice(-9)) {
1717
case '-9Nh9j0Va':
1818
// TAB
19-
return fillServerURLs('https://e1-api.leancloud.cn');
19+
id = appId.slice(0, 8).toLowerCase();
20+
return {
21+
push: `https://${id}.push.lncldapi.com`,
22+
stats: `https://${id}.stats.lncldapi.com`,
23+
engine: `https://${id}.engine.lncldapi.com`,
24+
api: `https://${id}.api.lncldapi.com`,
25+
};
2026
case '-MdYXbMMI':
2127
// US
2228
return fillServerURLs('https://us-api.leancloud.cn');

0 commit comments

Comments
 (0)