|
@@ -59,7 +59,9 @@ public class MiddleSchemeAct extends Activity {
|
|
|
case Intent.ACTION_VIEW:
|
|
case Intent.ACTION_VIEW:
|
|
|
Uri uri = intent.getData();
|
|
Uri uri = intent.getData();
|
|
|
if (uri != null) {
|
|
if (uri != null) {
|
|
|
- if (SheepApp.getInstance().mActivityCount == 0 && !"game_coupon".equals(uri.getQueryParameter("type"))) {
|
|
|
|
|
|
|
+ if (SheepApp.getInstance().mActivityCount == 0
|
|
|
|
|
+ && !"game_coupon".equals(uri.getQueryParameter("type"))
|
|
|
|
|
+ && !"discountrecharge".equals(uri.getQueryParameter("type"))) {
|
|
|
ActionUtil.getInstance().addNextAction("scheme", uri);
|
|
ActionUtil.getInstance().addNextAction("scheme", uri);
|
|
|
tryGoSplashAct(SheepApp.getInstance(), uri);
|
|
tryGoSplashAct(SheepApp.getInstance(), uri);
|
|
|
} else {
|
|
} else {
|
|
@@ -82,7 +84,8 @@ public class MiddleSchemeAct extends Activity {
|
|
|
}
|
|
}
|
|
|
//尝试解密数据
|
|
//尝试解密数据
|
|
|
String json = uri.getQueryParameter("data");
|
|
String json = uri.getQueryParameter("data");
|
|
|
- if (!type.equals("h5game")) {
|
|
|
|
|
|
|
+ if (!type.equals("h5game")
|
|
|
|
|
+ && !type.equals("discountrecharge")) {
|
|
|
json = BaseMessageConverter.decrypt(json);
|
|
json = BaseMessageConverter.decrypt(json);
|
|
|
}
|
|
}
|
|
|
switch (type) {
|
|
switch (type) {
|
|
@@ -109,6 +112,14 @@ public class MiddleSchemeAct extends Activity {
|
|
|
"代金券中心"),
|
|
"代金券中心"),
|
|
|
true);
|
|
true);
|
|
|
break;
|
|
break;
|
|
|
|
|
+ case "discountrecharge": {
|
|
|
|
|
+ String[] paras = json.split(",");
|
|
|
|
|
+ int discountId = Integer.parseInt(paras[0]);
|
|
|
|
|
+ String packageName = paras[1];
|
|
|
|
|
+ String token = paras[2];
|
|
|
|
|
+ Jump2View.getInstance().gotoGameVipRecharge(discountId, packageName, token);
|
|
|
|
|
+ break;
|
|
|
|
|
+ }
|
|
|
//sheep://small.kfzs.com/xmy?type=jhl&data={"Jump":"1"}
|
|
//sheep://small.kfzs.com/xmy?type=jhl&data={"Jump":"1"}
|
|
|
case "jump_home_list"://跳转homeList
|
|
case "jump_home_list"://跳转homeList
|
|
|
case "jhl":
|
|
case "jhl":
|
|
@@ -158,7 +169,7 @@ public class MiddleSchemeAct extends Activity {
|
|
|
//sheep://small.kfzs.com/xmy?type=run&className=com.sheep.gamegroup.view.activity.ActInvitation 邀请赚钱界面
|
|
//sheep://small.kfzs.com/xmy?type=run&className=com.sheep.gamegroup.view.activity.ActInvitation 邀请赚钱界面
|
|
|
//sheep://small.kfzs.com/xmy?type=run&className=com.sheep.gamegroup.view.activity.ActSignCardRecord 我的战绩界面
|
|
//sheep://small.kfzs.com/xmy?type=run&className=com.sheep.gamegroup.view.activity.ActSignCardRecord 我的战绩界面
|
|
|
case "run_app":
|
|
case "run_app":
|
|
|
- case "run":
|
|
|
|
|
|
|
+ case "run": {
|
|
|
String packageName = uri.getQueryParameter("packageName");
|
|
String packageName = uri.getQueryParameter("packageName");
|
|
|
String className = uri.getQueryParameter("className");
|
|
String className = uri.getQueryParameter("className");
|
|
|
boolean packageNameIsEmpty = TextUtils.isEmpty(packageName);
|
|
boolean packageNameIsEmpty = TextUtils.isEmpty(packageName);
|
|
@@ -173,6 +184,7 @@ public class MiddleSchemeAct extends Activity {
|
|
|
runApp(context, packageName, className);
|
|
runApp(context, packageName, className);
|
|
|
}
|
|
}
|
|
|
break;
|
|
break;
|
|
|
|
|
+ }
|
|
|
//sheep://small.kfzs.com/xmy?type=po&a=6506346179440152576&b=1
|
|
//sheep://small.kfzs.com/xmy?type=po&a=6506346179440152576&b=1
|
|
|
case "placing-orders":
|
|
case "placing-orders":
|
|
|
case "po":
|
|
case "po":
|