Commit 4f6047af1ebd906eda5d300a9356f29de7a0c69a
1 parent
8d5544ff
Exists in
zfb_waibu_linshi
x
Showing
6 changed files
with
38 additions
and
29 deletions
Show diff stats
sdk/Analytics.ts
| @@ -77,10 +77,17 @@ export class Analytics { | @@ -77,10 +77,17 @@ export class Analytics { | ||
| 77 | async levelEnd(stageid, stagename, pattern, event, times, perc?, valence = 0) { | 77 | async levelEnd(stageid, stagename, pattern, event, times, perc?, valence = 0) { |
| 78 | if (!stagename) stagename = `第${stageid}关` | 78 | if (!stagename) stagename = `第${stageid}关` |
| 79 | if (!pattern) pattern = '普通模式' | 79 | if (!pattern) pattern = '普通模式' |
| 80 | - return WXSDK.stat.levelEnd(stageid, stagename, pattern, event, times, perc,valence) | 80 | + return WXSDK.stat.levelEnd(stageid, stagename, pattern, event, times, perc, valence) |
| 81 | } | 81 | } |
| 82 | 82 | ||
| 83 | - | 83 | + /** |
| 84 | + * 视频信息 打点 | ||
| 85 | + * @param adstatus 1.请求 3.展示 5.完成 6.中断 7.失败 | ||
| 86 | + * @param times 视频关闭时间 (完成和中断)需要传 | ||
| 87 | + */ | ||
| 88 | + videoAdStat(adstatus: number, times?) { | ||
| 89 | + WXSDK.stat.adStat('video', '9999', 2, adstatus, times) | ||
| 90 | + } | ||
| 84 | 91 | ||
| 85 | /** | 92 | /** |
| 86 | * 客户端日志 | 93 | * 客户端日志 |
| @@ -109,9 +116,9 @@ export class Analytics { | @@ -109,9 +116,9 @@ export class Analytics { | ||
| 109 | * @param action_finish_date 用户完成时间 | 116 | * @param action_finish_date 用户完成时间 |
| 110 | * @param status 上报的结果 0成功 其他失败 | 117 | * @param status 上报的结果 0成功 其他失败 |
| 111 | */ | 118 | */ |
| 112 | - AlipayGameCenter(action_code:string,action_finish_channel:string,action_finish_date:string,status:string) { | ||
| 113 | - WXSDK.stat.AlipayGameCenter(action_code,action_finish_channel,action_finish_date,status); | ||
| 114 | - | 119 | + AlipayGameCenter(action_code: string, action_finish_channel: string, action_finish_date: string, status: string) { |
| 120 | + WXSDK.stat.AlipayGameCenter(action_code, action_finish_channel, action_finish_date, status); | ||
| 121 | + | ||
| 115 | } | 122 | } |
| 116 | 123 | ||
| 117 | /** | 124 | /** |
wxsdk/http/SDKHttp.ts
| @@ -38,7 +38,7 @@ export default class SDKHttp { | @@ -38,7 +38,7 @@ export default class SDKHttp { | ||
| 38 | if (xhr.readyState == 4) { | 38 | if (xhr.readyState == 4) { |
| 39 | if (xhr.status >= 200 && xhr.status < 400) { | 39 | if (xhr.status >= 200 && xhr.status < 400) { |
| 40 | let responseText: any = xhr.responseText; | 40 | let responseText: any = xhr.responseText; |
| 41 | - cc.log("responseText"+ responseText) | 41 | + // cc.log("responseText"+ responseText) |
| 42 | try { | 42 | try { |
| 43 | responseText = JSON.parse(responseText); | 43 | responseText = JSON.parse(responseText); |
| 44 | // cc.log("responseText22", responseText) | 44 | // cc.log("responseText22", responseText) |
wxsdk/platform/wx/WxStorage.ts.meta
| 1 | { | 1 | { |
| 2 | - "ver": "1.0.8", | 2 | + "ver": "4.0.23", |
| 3 | + "importer": "typescript", | ||
| 4 | + "imported": true, | ||
| 3 | "uuid": "6013014c-7aa3-4eb4-b818-583d937a9f05", | 5 | "uuid": "6013014c-7aa3-4eb4-b818-583d937a9f05", |
| 4 | - "isPlugin": false, | ||
| 5 | - "loadPluginInWeb": true, | ||
| 6 | - "loadPluginInNative": true, | ||
| 7 | - "loadPluginInEditor": false, | ||
| 8 | - "subMetas": {} | ||
| 9 | -} | ||
| 10 | \ No newline at end of file | 6 | \ No newline at end of file |
| 7 | + "files": [], | ||
| 8 | + "subMetas": {}, | ||
| 9 | + "userData": {} | ||
| 10 | +} |
wxsdk/service/LogService.ts
| @@ -273,7 +273,6 @@ export default class LogService { | @@ -273,7 +273,6 @@ export default class LogService { | ||
| 273 | banner:1,3,6,7 | 273 | banner:1,3,6,7 |
| 274 | video:1,5,6,7 | 274 | video:1,5,6,7 |
| 275 | interstitial:1 | 275 | interstitial:1 |
| 276 | - grid:1,3,6,7 | ||
| 277 | custom:1,3,6,7 | 276 | custom:1,3,6,7 |
| 278 | * @param sharekey | 277 | * @param sharekey |
| 279 | * @param adid | 278 | * @param adid |
| @@ -526,6 +525,9 @@ export default class LogService { | @@ -526,6 +525,9 @@ export default class LogService { | ||
| 526 | */ | 525 | */ |
| 527 | AlipayGameCenter(action_code:string,action_finish_channel:string,action_finish_date:string,status:string) { | 526 | AlipayGameCenter(action_code:string,action_finish_channel:string,action_finish_date:string,status:string) { |
| 528 | let fun = () => SDKApi.zfb_game_center({ | 527 | let fun = () => SDKApi.zfb_game_center({ |
| 528 | + APIVersion: '0.6.0', | ||
| 529 | + env: DataService.I.EnvEnum === 1 ? 'pre' : 'prod', | ||
| 530 | + | ||
| 529 | openid: this.OpenId, | 531 | openid: this.OpenId, |
| 530 | uid: this.UserId, | 532 | uid: this.UserId, |
| 531 | action_code,action_finish_channel,action_finish_date,status | 533 | action_code,action_finish_channel,action_finish_date,status |
| @@ -545,7 +547,7 @@ export default class LogService { | @@ -545,7 +547,7 @@ export default class LogService { | ||
| 545 | */ | 547 | */ |
| 546 | orderLogReport(orderid: string, goodid: string, goodname: string, money: number, paytype: number, paystatus: number, ordertype: string) { | 548 | orderLogReport(orderid: string, goodid: string, goodname: string, money: number, paytype: number, paystatus: number, ordertype: string) { |
| 547 | let fun = () => SDKApi.orderLogReport({ | 549 | let fun = () => SDKApi.orderLogReport({ |
| 548 | - ...this.buildParams(), | 550 | + channel : DataService.I.ChannelId, |
| 549 | openid: this.OpenId, | 551 | openid: this.OpenId, |
| 550 | uid: this.UserId, | 552 | uid: this.UserId, |
| 551 | token: this.Token, | 553 | token: this.Token, |
wxsdk/service/entity/SdkData.ts.meta
| 1 | { | 1 | { |
| 2 | - "ver": "1.0.8", | 2 | + "ver": "4.0.23", |
| 3 | + "importer": "typescript", | ||
| 4 | + "imported": true, | ||
| 3 | "uuid": "f09e38ff-4d68-417e-8904-949127e4d321", | 5 | "uuid": "f09e38ff-4d68-417e-8904-949127e4d321", |
| 4 | - "isPlugin": false, | ||
| 5 | - "loadPluginInWeb": true, | ||
| 6 | - "loadPluginInNative": true, | ||
| 7 | - "loadPluginInEditor": false, | ||
| 8 | - "subMetas": {} | ||
| 9 | -} | ||
| 10 | \ No newline at end of file | 6 | \ No newline at end of file |
| 7 | + "files": [], | ||
| 8 | + "subMetas": {}, | ||
| 9 | + "userData": {} | ||
| 10 | +} |
wxsdk/service/entity/ShareData.ts.meta
| 1 | { | 1 | { |
| 2 | - "ver": "1.0.8", | 2 | + "ver": "4.0.23", |
| 3 | + "importer": "typescript", | ||
| 4 | + "imported": true, | ||
| 3 | "uuid": "d9db9b13-470b-456d-95ff-75354ec23ca0", | 5 | "uuid": "d9db9b13-470b-456d-95ff-75354ec23ca0", |
| 4 | - "isPlugin": false, | ||
| 5 | - "loadPluginInWeb": true, | ||
| 6 | - "loadPluginInNative": true, | ||
| 7 | - "loadPluginInEditor": false, | ||
| 8 | - "subMetas": {} | ||
| 9 | -} | ||
| 10 | \ No newline at end of file | 6 | \ No newline at end of file |
| 7 | + "files": [], | ||
| 8 | + "subMetas": {}, | ||
| 9 | + "userData": {} | ||
| 10 | +} |