提交 8ee40d97 编写于 作者: M mehaotian

chore(stat): update stat log

上级 f38cab46
...@@ -1167,7 +1167,7 @@ class Report { ...@@ -1167,7 +1167,7 @@ class Report {
sendRequest(optionsData) { sendRequest(optionsData) {
{ {
if (!uni.__stat_uniCloud_space) { if (!uni.__stat_uniCloud_space) {
console.error('当前尚未关联服务空间.'); console.error('应用未关联服务空间,统计上报失败,请在uniCloud目录右键关联服务空间.');
return return
} }
...@@ -1254,10 +1254,6 @@ class Stat extends Report { ...@@ -1254,10 +1254,6 @@ class Stat extends Report {
// '=== 当前绑定的统计服务空间spaceId:' + // '=== 当前绑定的统计服务空间spaceId:' +
// uni.__stat_uniCloud_space.config.spaceId // uni.__stat_uniCloud_space.config.spaceId
// ) // )
} else {
console.error(
'当前尚未关联统计服务空间,请先在manifest.json中配置服务空间!'
);
} }
} }
} }
...@@ -1474,7 +1470,7 @@ function main() { ...@@ -1474,7 +1470,7 @@ function main() {
if (is_debug) { if (is_debug) {
{ {
// #ifndef APP-NVUE // #ifndef APP-NVUE
console.log('=== uni统计开启,version:2.0'); console.log('=== uni统计开启,version:2.0 ===');
// #endif // #endif
} }
load_stat(); load_stat();
......
...@@ -1165,7 +1165,7 @@ class Report { ...@@ -1165,7 +1165,7 @@ class Report {
sendRequest(optionsData) { sendRequest(optionsData) {
{ {
if (!uni.__stat_uniCloud_space) { if (!uni.__stat_uniCloud_space) {
console.error('当前尚未关联服务空间.'); console.error('应用未关联服务空间,统计上报失败,请在uniCloud目录右键关联服务空间.');
return return
} }
...@@ -1252,10 +1252,6 @@ class Stat extends Report { ...@@ -1252,10 +1252,6 @@ class Stat extends Report {
// '=== 当前绑定的统计服务空间spaceId:' + // '=== 当前绑定的统计服务空间spaceId:' +
// uni.__stat_uniCloud_space.config.spaceId // uni.__stat_uniCloud_space.config.spaceId
// ) // )
} else {
console.error(
'当前尚未关联统计服务空间,请先在manifest.json中配置服务空间!'
);
} }
} }
} }
...@@ -1472,7 +1468,7 @@ function main() { ...@@ -1472,7 +1468,7 @@ function main() {
if (is_debug) { if (is_debug) {
{ {
// #ifndef APP-NVUE // #ifndef APP-NVUE
console.log('=== uni统计开启,version:2.0'); console.log('=== uni统计开启,version:2.0 ===');
// #endif // #endif
} }
load_stat(); load_stat();
......
...@@ -1440,7 +1440,7 @@ function main() { ...@@ -1440,7 +1440,7 @@ function main() {
if (is_debug) { if (is_debug) {
{ {
// #ifndef APP-NVUE // #ifndef APP-NVUE
console.log('=== uni统计开启,version:1.0'); console.log('=== uni统计开启,version:1.0 ===');
// #endif // #endif
} }
load_stat(); load_stat();
......
...@@ -1438,7 +1438,7 @@ function main() { ...@@ -1438,7 +1438,7 @@ function main() {
if (is_debug) { if (is_debug) {
{ {
// #ifndef APP-NVUE // #ifndef APP-NVUE
console.log('=== uni统计开启,version:1.0'); console.log('=== uni统计开启,version:1.0 ===');
// #endif // #endif
} }
load_stat(); load_stat();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册