Commit 0611d057 authored by wildfirecode13's avatar wildfirecode13

u

parent cf8c5925
...@@ -22,6 +22,8 @@ ...@@ -22,6 +22,8 @@
"webpack-merge": "^4.1.2" "webpack-merge": "^4.1.2"
}, },
"dependencies": { "dependencies": {
"performance-sdk": "^0.0.5",
"@spark/monitor-sdk": "^1.1.3",
"@spark/share": "^2.0.90", "@spark/share": "^2.0.90",
"@spark/utils": "^2.0.46", "@spark/utils": "^2.0.46",
"duiba-utils": "^1.0.9", "duiba-utils": "^1.0.9",
......
...@@ -11,7 +11,20 @@ import { ShareScene } from "./scenes/ShareScene"; ...@@ -11,7 +11,20 @@ import { ShareScene } from "./scenes/ShareScene";
import { SkinJson } from "./SkinJson"; import { SkinJson } from "./SkinJson";
import updateShareFunc from "./share"; import updateShareFunc from "./share";
import { destroyWebNetData, sendWebNet, WebNetName } from "./WebNet"; import { destroyWebNetData, sendWebNet, WebNetName } from "./WebNet";
import './monitor';
// 引入包
import { init ,CustomPerformance} from 'performance-sdk';
window['__loading__'] = new CustomPerformance('__loading__');
// 执行初始化方法
init(window['CFG'].projectId, null,{
report:{
interval:[3],//单位分钟
times:[10]//单位秒
},debug:true
});
const isShare = () => { const isShare = () => {
const query = getQueryParams(); const query = getQueryParams();
......
...@@ -912,5 +912,5 @@ export const ResJson = { ...@@ -912,5 +912,5 @@ export const ResJson = {
"name": "svga" "name": "svga"
} }
], ],
"path": "https://yun.duiba.com.cn/db_games/activity/template/1628580956/resource/" "path": "https://yun.duiba.com.cn/db_games/activity/template/1628587071/resource/"
} }
\ No newline at end of file
import { SentryInit } from '@spark/monitor-sdk';
window['CFG'].MONITOR = true;
window['CFG'].projectName = '三湘体验金';
window['CFG'].SOURCEVERSION = 'sanxiang_money';
if (window['CFG'] && window['CFG'].MONITOR) {
SentryInit({
projectId: window['CFG'].projectId,
name: window['CFG'].projectName, // 线上正式项目的名称
sourcemapVersion: window['CFG'].SOURCEVERSION,
users: [
"15068753667"
]
// 前端开发者的钉钉手机号,字符串类型,可多个, 例如 ['176xxxx', '151xxxx']
});
}
\ No newline at end of file
...@@ -30,6 +30,8 @@ export class NewbieScene extends Scene { ...@@ -30,6 +30,8 @@ export class NewbieScene extends Scene {
async start(data) { async start(data) {
super.start(); super.start();
window['__loading__'].over();
const query = getQueryParams(); const query = getQueryParams();
if (query.autoprize == 1) { if (query.autoprize == 1) {
this.openPrize(); this.openPrize();
......
...@@ -25,8 +25,11 @@ export class ShareScene extends Scene { ...@@ -25,8 +25,11 @@ export class ShareScene extends Scene {
case '200303': case '200303':
showToast('助力机会已用完,明天再来吧~'); showToast('助力机会已用完,明天再来吧~');
break; break;
case '200305':
showToast('给当前用户的助力次数已用完~');
break;
default: default:
showToast('助力机会已用完,明天再来吧~'); showToast('网络异常~');
break; break;
} }
} }
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment