diff --git a/sdk/Analytics.ts b/sdk/Analytics.ts index 7292573..8e2d812 100644 --- a/sdk/Analytics.ts +++ b/sdk/Analytics.ts @@ -77,10 +77,17 @@ export class Analytics { async levelEnd(stageid, stagename, pattern, event, times, perc?, valence = 0) { if (!stagename) stagename = `第${stageid}关` if (!pattern) pattern = '普通模式' - return WXSDK.stat.levelEnd(stageid, stagename, pattern, event, times, perc,valence) + return WXSDK.stat.levelEnd(stageid, stagename, pattern, event, times, perc, valence) } - + /** + * 视频信息 打点 + * @param adstatus 1.请求 3.展示 5.完成 6.中断 7.失败 + * @param times 视频关闭时间 (完成和中断)需要传 + */ + videoAdStat(adstatus: number, times?) { + WXSDK.stat.adStat('video', '9999', 2, adstatus, times) + } /** * 客户端日志 @@ -109,9 +116,9 @@ export class Analytics { * @param action_finish_date 用户完成时间 * @param status 上报的结果 0成功 其他失败 */ - AlipayGameCenter(action_code:string,action_finish_channel:string,action_finish_date:string,status:string) { - WXSDK.stat.AlipayGameCenter(action_code,action_finish_channel,action_finish_date,status); - + AlipayGameCenter(action_code: string, action_finish_channel: string, action_finish_date: string, status: string) { + WXSDK.stat.AlipayGameCenter(action_code, action_finish_channel, action_finish_date, status); + } /** diff --git a/wxsdk/http/SDKHttp.ts b/wxsdk/http/SDKHttp.ts index 5202060..f4b57d3 100644 --- a/wxsdk/http/SDKHttp.ts +++ b/wxsdk/http/SDKHttp.ts @@ -38,7 +38,7 @@ export default class SDKHttp { if (xhr.readyState == 4) { if (xhr.status >= 200 && xhr.status < 400) { let responseText: any = xhr.responseText; - cc.log("responseText"+ responseText) + // cc.log("responseText"+ responseText) try { responseText = JSON.parse(responseText); // cc.log("responseText22", responseText) diff --git a/wxsdk/platform/wx/WxStorage.ts.meta b/wxsdk/platform/wx/WxStorage.ts.meta index e76a04b..e2f3294 100644 --- a/wxsdk/platform/wx/WxStorage.ts.meta +++ b/wxsdk/platform/wx/WxStorage.ts.meta @@ -1,9 +1,9 @@ { - "ver": "1.0.8", + "ver": "4.0.23", + "importer": "typescript", + "imported": true, "uuid": "6013014c-7aa3-4eb4-b818-583d937a9f05", - "isPlugin": false, - "loadPluginInWeb": true, - "loadPluginInNative": true, - "loadPluginInEditor": false, - "subMetas": {} -} \ No newline at end of file + "files": [], + "subMetas": {}, + "userData": {} +} diff --git a/wxsdk/service/LogService.ts b/wxsdk/service/LogService.ts index 0458735..8789a1a 100644 --- a/wxsdk/service/LogService.ts +++ b/wxsdk/service/LogService.ts @@ -273,7 +273,6 @@ export default class LogService { banner:1,3,6,7 video:1,5,6,7 interstitial:1 - grid:1,3,6,7 custom:1,3,6,7 * @param sharekey * @param adid @@ -526,6 +525,9 @@ export default class LogService { */ AlipayGameCenter(action_code:string,action_finish_channel:string,action_finish_date:string,status:string) { let fun = () => SDKApi.zfb_game_center({ + APIVersion: '0.6.0', + env: DataService.I.EnvEnum === 1 ? 'pre' : 'prod', + openid: this.OpenId, uid: this.UserId, action_code,action_finish_channel,action_finish_date,status @@ -545,7 +547,7 @@ export default class LogService { */ orderLogReport(orderid: string, goodid: string, goodname: string, money: number, paytype: number, paystatus: number, ordertype: string) { let fun = () => SDKApi.orderLogReport({ - ...this.buildParams(), + channel : DataService.I.ChannelId, openid: this.OpenId, uid: this.UserId, token: this.Token, diff --git a/wxsdk/service/entity/SdkData.ts.meta b/wxsdk/service/entity/SdkData.ts.meta index 9e6fe1a..2f1044d 100644 --- a/wxsdk/service/entity/SdkData.ts.meta +++ b/wxsdk/service/entity/SdkData.ts.meta @@ -1,9 +1,9 @@ { - "ver": "1.0.8", + "ver": "4.0.23", + "importer": "typescript", + "imported": true, "uuid": "f09e38ff-4d68-417e-8904-949127e4d321", - "isPlugin": false, - "loadPluginInWeb": true, - "loadPluginInNative": true, - "loadPluginInEditor": false, - "subMetas": {} -} \ No newline at end of file + "files": [], + "subMetas": {}, + "userData": {} +} diff --git a/wxsdk/service/entity/ShareData.ts.meta b/wxsdk/service/entity/ShareData.ts.meta index f510aaa..50c2b54 100644 --- a/wxsdk/service/entity/ShareData.ts.meta +++ b/wxsdk/service/entity/ShareData.ts.meta @@ -1,9 +1,9 @@ { - "ver": "1.0.8", + "ver": "4.0.23", + "importer": "typescript", + "imported": true, "uuid": "d9db9b13-470b-456d-95ff-75354ec23ca0", - "isPlugin": false, - "loadPluginInWeb": true, - "loadPluginInNative": true, - "loadPluginInEditor": false, - "subMetas": {} -} \ No newline at end of file + "files": [], + "subMetas": {}, + "userData": {} +} -- libgit2 0.21.0