Skip to content

Commit 90e470d

Browse files
authored
fix(LeancloudCounter): 修复 leancloud 配置特定 appId 值导致 custom_api_server 不生效问题 (#861)
1 parent 22fb3f1 commit 90e470d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

layout/_plugins/analytics/LCCounter.ejs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@
185185
},
186186
187187
refreshCounter() {
188-
var api_server = this.app_id.slice(-9) !== '-MdYXbMMI' ? this.custom_api_server : `https://${ this.app_id.slice(0, 8).toLowerCase() }.api.lncldglobal.com`;
188+
var api_server = this.custom_api_server || `https://${ this.app_id.slice(0, 8).toLowerCase() }.api.lncldglobal.com`;
189189
if (api_server) {
190190
this.fetchData(api_server);
191191
} else {

0 commit comments

Comments
 (0)