|
|
@@ -22,6 +22,7 @@ import com.sheep.gamegroup.util.Jump2View;
|
|
|
import com.sheep.gamegroup.util.ViewUtil;
|
|
|
import com.sheep.gamegroup.view.activity.SplashAct;
|
|
|
import com.sheep.jiuyan.samllsheep.SheepApp;
|
|
|
+import com.sheep.jiuyan.samllsheep.utils.G;
|
|
|
import com.sheep.jiuyan.samllsheep.utils.SpUtils;
|
|
|
|
|
|
import java.io.File;
|
|
|
@@ -45,16 +46,21 @@ public class AdHelper {
|
|
|
}
|
|
|
if (advertising.getJump_type() == 1) {
|
|
|
if (advertising.getJump_form() == 1) {
|
|
|
- Jump2View.getInstance().goWeb(activity, advertising.getJump_url());
|
|
|
- } else {
|
|
|
Jump2View.getInstance().goWeb(activity, advertising.getJump_url(), advertising.getName());
|
|
|
+ } else {
|
|
|
+ Jump2View.getInstance().goWeb(activity, advertising.getJump_url());
|
|
|
}
|
|
|
AdHelper.stat(advertising.getAd_id(), 2);
|
|
|
return;
|
|
|
} else if (advertising.getJump_type() == 2) {
|
|
|
- String fileName = FileUtil.getLastSplitEnd(advertising.getJump_url(), '/');
|
|
|
- String filePath = new File(DIR, fileName).getAbsolutePath();
|
|
|
- Jump2View.getInstance().startDownloadService(advertising.getJump_url(), filePath);
|
|
|
+ if(advertising.getJump_form() == 1) {
|
|
|
+ String fileName = FileUtil.getLastSplitEnd(advertising.getJump_url(), '/');
|
|
|
+ String filePath = new File(DIR, fileName).getAbsolutePath();
|
|
|
+ Jump2View.getInstance().startDownloadService(advertising.getJump_url(), filePath);
|
|
|
+ G.showToast("开始下载...");
|
|
|
+ } else {
|
|
|
+ Jump2View.getInstance().goWeb(activity, advertising.getJump_url());
|
|
|
+ }
|
|
|
AdHelper.stat(advertising.getAd_id(), 3);
|
|
|
return;
|
|
|
}
|