Commit 4f6047af1ebd906eda5d300a9356f29de7a0c69a

Authored by 宋庆平
1 parent 8d5544ff
Exists in zfb_waibu_linshi

x

sdk/Analytics.ts
... ... @@ -77,10 +77,17 @@ export class Analytics {
77 77 async levelEnd(stageid, stagename, pattern, event, times, perc?, valence = 0) {
78 78 if (!stagename) stagename = `第${stageid}关`
79 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 116 * @param action_finish_date 用户完成时间
110 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 38 if (xhr.readyState == 4) {
39 39 if (xhr.status >= 200 && xhr.status < 400) {
40 40 let responseText: any = xhr.responseText;
41   - cc.log("responseText"+ responseText)
  41 + // cc.log("responseText"+ responseText)
42 42 try {
43 43 responseText = JSON.parse(responseText);
44 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 5 "uuid": "6013014c-7aa3-4eb4-b818-583d937a9f05",
4   - "isPlugin": false,
5   - "loadPluginInWeb": true,
6   - "loadPluginInNative": true,
7   - "loadPluginInEditor": false,
8   - "subMetas": {}
9   -}
10 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 273 banner:1,3,6,7
274 274 video:1,5,6,7
275 275 interstitial:1
276   - grid:1,3,6,7
277 276 custom:1,3,6,7
278 277 * @param sharekey
279 278 * @param adid
... ... @@ -526,6 +525,9 @@ export default class LogService {
526 525 */
527 526 AlipayGameCenter(action_code:string,action_finish_channel:string,action_finish_date:string,status:string) {
528 527 let fun = () => SDKApi.zfb_game_center({
  528 + APIVersion: '0.6.0',
  529 + env: DataService.I.EnvEnum === 1 ? 'pre' : 'prod',
  530 +
529 531 openid: this.OpenId,
530 532 uid: this.UserId,
531 533 action_code,action_finish_channel,action_finish_date,status
... ... @@ -545,7 +547,7 @@ export default class LogService {
545 547 */
546 548 orderLogReport(orderid: string, goodid: string, goodname: string, money: number, paytype: number, paystatus: number, ordertype: string) {
547 549 let fun = () => SDKApi.orderLogReport({
548   - ...this.buildParams(),
  550 + channel : DataService.I.ChannelId,
549 551 openid: this.OpenId,
550 552 uid: this.UserId,
551 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 5 "uuid": "f09e38ff-4d68-417e-8904-949127e4d321",
4   - "isPlugin": false,
5   - "loadPluginInWeb": true,
6   - "loadPluginInNative": true,
7   - "loadPluginInEditor": false,
8   - "subMetas": {}
9   -}
10 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 5 "uuid": "d9db9b13-470b-456d-95ff-75354ec23ca0",
4   - "isPlugin": false,
5   - "loadPluginInWeb": true,
6   - "loadPluginInNative": true,
7   - "loadPluginInEditor": false,
8   - "subMetas": {}
9   -}
10 6 \ No newline at end of file
  7 + "files": [],
  8 + "subMetas": {},
  9 + "userData": {}
  10 +}
... ...