完善微信绑定
This commit is contained in:
@ -5,6 +5,7 @@ import android.content.Intent;
|
||||
import android.os.Bundle;
|
||||
import android.view.View;
|
||||
|
||||
import com.gh.common.constant.Constants;
|
||||
import com.gh.common.util.EntranceUtils;
|
||||
import com.gh.gamecenter.entity.ConcernEntity;
|
||||
import com.gh.gamecenter.entity.NewsEntity;
|
||||
@ -83,9 +84,17 @@ public class WebActivity extends NormalActivity {
|
||||
return getTargetIntent(context, WebActivity.class, WebFragment.class, bundle);
|
||||
}
|
||||
|
||||
@SuppressWarnings("ConstantConditions")
|
||||
public static Intent getBindWechatIntent(Context context) {
|
||||
String url;
|
||||
if (("internal").equals(BuildConfig.FLAVOR)) {
|
||||
url = Constants.WECHAT_BIND_ADDRESS_DEV;
|
||||
} else {
|
||||
url = Constants.WECHAT_BIND_ADDRESS;
|
||||
}
|
||||
|
||||
Bundle bundle = new Bundle();
|
||||
bundle.putString(EntranceUtils.KEY_URL, "http://192.168.4.63:8080/test.html");
|
||||
bundle.putString(EntranceUtils.KEY_URL, url);
|
||||
bundle.putBoolean(WebFragment.KEY_IS_BIND_WECHAT, true);
|
||||
return getTargetIntent(context, WebActivity.class, WebFragment.class, bundle);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user