20191121测试(1,2)https://gitlab.ghzs.com/pm/halo-app-issues/issues/682
This commit is contained in:
@ -12,6 +12,9 @@ import com.gh.gamecenter.entity.NewsEntity;
|
||||
import com.gh.gamecenter.entity.ToolBoxEntity;
|
||||
import com.halo.assistant.fragment.WebFragment;
|
||||
|
||||
import java.net.URLEncoder;
|
||||
import java.util.Locale;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
|
||||
/**
|
||||
@ -57,6 +60,7 @@ public class WebActivity extends NormalActivity {
|
||||
bundle.putString(EntranceUtils.KEY_URL, context.getString(R.string.privacy_policy_url));
|
||||
return getTargetIntent(context, WebActivity.class, WebFragment.class, bundle);
|
||||
}
|
||||
|
||||
@NonNull
|
||||
public static Intent getUploadPolicyIntent(Context context) {
|
||||
Bundle bundle = new Bundle();
|
||||
@ -83,7 +87,7 @@ public class WebActivity extends NormalActivity {
|
||||
bundle.putBoolean(WebFragment.KEY_ISCOLLECTIONTOOLS, isCollectionTools);
|
||||
return getTargetIntent(context, WebActivity.class, WebFragment.class, bundle);
|
||||
}
|
||||
|
||||
|
||||
@SuppressWarnings("ConstantConditions")
|
||||
public static Intent getBindWechatIntent(Context context) {
|
||||
String url;
|
||||
@ -92,16 +96,25 @@ public class WebActivity extends NormalActivity {
|
||||
} else {
|
||||
url = Constants.WECHAT_BIND_ADDRESS;
|
||||
}
|
||||
|
||||
|
||||
Bundle bundle = new Bundle();
|
||||
bundle.putString(EntranceUtils.KEY_URL, url);
|
||||
bundle.putBoolean(WebFragment.KEY_IS_BIND_WECHAT, true);
|
||||
return getTargetIntent(context, WebActivity.class, WebFragment.class, bundle);
|
||||
}
|
||||
|
||||
public static Intent getBadgeCenterIntent(Context context, String userId){
|
||||
@SuppressWarnings("ConstantConditions")
|
||||
public static Intent getBadgeCenterIntent(Context context, String userId, String name, String icon) {
|
||||
String url;
|
||||
if (("internal").equals(BuildConfig.FLAVOR)) {
|
||||
url = Constants.BADGE_ADDRESS_DEV;
|
||||
} else {
|
||||
url = Constants.BADGE_ADDRESS;
|
||||
}
|
||||
|
||||
url = String.format(Locale.CHINA, "%s?user_id=%s&name=%s&icon=%s", url, userId, name, URLEncoder.encode(icon));
|
||||
Bundle bundle = new Bundle();
|
||||
bundle.putString(EntranceUtils.KEY_URL, "https://www.baidu.com");
|
||||
bundle.putString(EntranceUtils.KEY_URL, url);
|
||||
|
||||
return getTargetIntent(context, WebActivity.class, WebFragment.class, bundle);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user