hch
昨天 9b0c5d57c355718c0c5d0a5c493b30426188573a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
package com.secondworld.sdk.command;
import com.secondworld.sdk.GTGameMain;
import com.secondworld.sdk.MySdkMgr;
import com.secondworld.sdk.utils.CodeU2A;
import com.ald.modules.adrevenue.adapter.OnAdRevenueListener;
import com.secondworld.sdk.utils.LogUtil;
 
import org.json.JSONObject;
 
//评论
public class CmdAD implements ICommand {
    @Override
    public int getCode() {
        return CodeU2A.AdView;
    }
 
    @Override
    public void process(JSONObject json) throws Exception {
 
        String adType = json.getString("adType");
        String stageValue = json.getString("stageValue");
        switch (adType) {
//            case "0":
//                MySdkMgr.mAdSplashView.load(GTGameMain.I.activity);
//                break;
//            case "1":
//                if (MySdkMgr.mAdSplashView.isReady()){
//                    //Log.d(TAG,"开屏广告准备好了");
//
//                    Intent intent=      new Intent(GTGameMain.I.activity, SplashAdShowActivity.class);
//                    startActivity(intent);
//                }
//                break;
 
            case "2":
                if (MySdkMgr.mAdRnterstitialView.isReady()){
                    MySdkMgr.mAdRnterstitialView.show(stageValue);
                }
                break;
 
            case "3":
                if (MySdkMgr.mAdRewardView.isReady()){
                    MySdkMgr.mAdRewardView.show(stageValue);
                }
                break;
            default:
 
                break;
        }
 
 
    }
}