|
@@ -30,9 +30,15 @@ export class StatisticsManager extends Component {
|
|
|
* @memberof StatisticsManager
|
|
|
*/
|
|
|
public static get_collect_data(category_id: number, level_id: number, coin_number: number, ad_res:any, actionType: number): statistics_collect_rewardVideo_data_item {
|
|
|
+ if(sys.platform != sys.Platform.BYTEDANCE_MINI_GAME) {
|
|
|
+ return null
|
|
|
+ }
|
|
|
+ if(gameManager.havNoAllAd) {
|
|
|
+ return null
|
|
|
+ }
|
|
|
if (actionType == config.STATISTICS_ACTION_TYPE.UNKNOWN) {
|
|
|
log('统计失败 - 未设置统计类型')
|
|
|
- return
|
|
|
+ return null
|
|
|
}
|
|
|
|
|
|
let collect_data = new statistics_collect_rewardVideo_data_item()
|
|
@@ -65,10 +71,10 @@ export class StatisticsManager extends Component {
|
|
|
*/
|
|
|
|
|
|
public static request_collect_rewardVideoData(data_item: statistics_collect_rewardVideo_data_item, call_back: any = null) {
|
|
|
- if(gameManager.havNoAllAd) {
|
|
|
+ if(sys.platform != sys.Platform.BYTEDANCE_MINI_GAME) {
|
|
|
return
|
|
|
}
|
|
|
- if(sys.platform != sys.Platform.BYTEDANCE_MINI_GAME) {
|
|
|
+ if(gameManager.havNoAllAd) {
|
|
|
return
|
|
|
}
|
|
|
if (data_item == null) {
|