|
|
@@ -15,7 +15,9 @@ import com.sheep.gamegroup.absBase.AbsObserver;
|
|
|
import com.sheep.gamegroup.absBase.BaseActivity;
|
|
|
import com.sheep.gamegroup.absBase.IHomePageSearch;
|
|
|
import com.sheep.gamegroup.absBase.IJumpWeb;
|
|
|
+import com.sheep.gamegroup.greendao.DDProviderHelper;
|
|
|
import com.sheep.gamegroup.greendao.download.DownLoadInfo;
|
|
|
+import com.sheep.gamegroup.greendao.download.SdkLoginUser;
|
|
|
import com.sheep.gamegroup.model.entity.Advertising;
|
|
|
import com.sheep.gamegroup.model.entity.Agreement;
|
|
|
import com.sheep.gamegroup.model.entity.Applications;
|
|
|
@@ -2965,7 +2967,7 @@ public class Jump2View {
|
|
|
* 小绵羊3.4.10新增 -- 游戏组游戏详情 界面
|
|
|
*/
|
|
|
public void goPlayGameDetailAndCheckWelfare(Context context, Intent intent, int appId) {
|
|
|
- if(!(context instanceof Activity)){
|
|
|
+ if (!(context instanceof Activity)) {
|
|
|
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
|
|
}
|
|
|
SheepApp.getInstance().getNetComponent().getApiService().getAppWelfareAndMoneyReward(1, DataUtil.PER_PAGE, appId)
|
|
|
@@ -3000,15 +3002,23 @@ public class Jump2View {
|
|
|
}
|
|
|
|
|
|
public void gotoGameVipRecharge(int discountId, String packageName, String token) {
|
|
|
- String url = Config.getUrlByPath(Config.PATH_DIRECTIONAL_RECHARGE + "/" + discountId, "packagename", packageName, "authorization", token, "ssnocache", "1");
|
|
|
- WebParams webParams = new WebParams(url, "抢购优惠").setShowTitle(false);
|
|
|
- Jump2View.getInstance().goWebSingle(SheepApp.getInstance(), webParams, true);
|
|
|
+ SdkLoginUser gameUser = DDProviderHelper.getInstance().getSdkLoginUser(token);
|
|
|
+ if (gameUser != null) {
|
|
|
+ token = gameUser.getToken();
|
|
|
+ String url = Config.getUrlByPath(Config.PATH_DIRECTIONAL_RECHARGE + "/" + discountId, "packagename", packageName, "authorization", token, "ssnocache", "1");
|
|
|
+ WebParams webParams = new WebParams(url, "抢购优惠").setShowTitle(false);
|
|
|
+ Jump2View.getInstance().goWebSingle(SheepApp.getInstance(), webParams, true);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
public void gotoGameGoldCoins(String token) {
|
|
|
- String url = Config.getUrlByPath(Config.PATH_DIRECTIONAL_MAKEGOLD, "authorization", token, "ssnocache", "1");
|
|
|
- WebParams webParams = new WebParams(url, "金丹传说").setShowTitle(false);
|
|
|
- Jump2View.getInstance().goWebSingle(SheepApp.getInstance(), webParams, true);
|
|
|
+ SdkLoginUser gameUser = DDProviderHelper.getInstance().getSdkLoginUser(token);
|
|
|
+ if (gameUser != null) {
|
|
|
+ token = gameUser.getToken();
|
|
|
+ String url = Config.getUrlByPath(Config.PATH_DIRECTIONAL_MAKEGOLD, "authorization", token, "ssnocache", "1");
|
|
|
+ WebParams webParams = new WebParams(url, "金丹传说").setShowTitle(false);
|
|
|
+ Jump2View.getInstance().goWebSingle(SheepApp.getInstance(), webParams, true);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
/**
|