Commit 3555a778 authored by mengcuiguang's avatar mengcuiguang

优化穿山甲

parent 811afb2a
...@@ -417,21 +417,5 @@ public class TTBannerManager { ...@@ -417,21 +417,5 @@ public class TTBannerManager {
ad.setDislikeDialog(dislikeDialog); ad.setDislikeDialog(dislikeDialog);
return; return;
} }
//使用默认模板中默认dislike弹出样式
ad.setDislikeCallback((Activity) context, new TTAdDislike.DislikeInteractionCallback() {
@Override
public void onSelected(int position, String value) {
// showToast("点击 " + value);
//用户选择不喜欢原因后,移除广告展示
if (frameLayout != null) {
frameLayout.removeAllViews();
}
}
@Override
public void onCancel() {
// showToast("点击取消 ");
}
});
} }
} }
...@@ -249,21 +249,5 @@ public class TTNativeExpressManager { ...@@ -249,21 +249,5 @@ public class TTNativeExpressManager {
ad.setDislikeDialog(dislikeDialog); ad.setDislikeDialog(dislikeDialog);
return; return;
} }
//使用默认模板中默认dislike弹出样式
ad.setDislikeCallback((Activity) context, new TTAdDislike.DislikeInteractionCallback() {
@Override
public void onSelected(int position, String value) {
// showToast("点击 " + value);
//用户选择不喜欢原因后,移除广告展示
if (frameLayout != null) {
frameLayout.removeAllViews();
}
}
@Override
public void onCancel() {
// showToast("点击取消 ");
}
});
} }
} }
...@@ -36,10 +36,6 @@ public class WxLoginPresenter extends BasePresenter<WxLoginView> { ...@@ -36,10 +36,6 @@ public class WxLoginPresenter extends BasePresenter<WxLoginView> {
view.showLoading("加载中..."); view.showLoading("加载中...");
HashMap<String, Object> vo = new HashMap<>(); HashMap<String, Object> vo = new HashMap<>();
// vo.put("mobile", mobile);
// vo.put("smsCode", smsCode);
// vo.put("code", imgCode);
// vo.put("codeId", codeId);
try { try {
vo.put("shumeiId", ShumeiManager.getInstance().getShumeiDeviceId()); vo.put("shumeiId", ShumeiManager.getInstance().getShumeiDeviceId());
} catch (Exception e) { } catch (Exception e) {
...@@ -80,14 +76,6 @@ public class WxLoginPresenter extends BasePresenter<WxLoginView> { ...@@ -80,14 +76,6 @@ public class WxLoginPresenter extends BasePresenter<WxLoginView> {
consumer = data.getConsumer(); consumer = data.getConsumer();
if (consumer != null) { if (consumer != null) {
// // 云端是否有游戏信息 有则用云端覆盖
// String gameInfo = consumer.getGameInfo();
// if (!TextUtils.isEmpty(gameInfo)) {
// spUtil.putString(Constant.LIEBAO_GAME_INFO, gameInfo);
//
// LiebaoManager.getInstance().clearCmGameAccount();
// LiebaoManager.getInstance().restoreCmGameAccount(gameInfo);
// }
saveTerminalInfo(context); saveTerminalInfo(context);
} }
view.loginSuc(); view.loginSuc();
......
...@@ -305,38 +305,6 @@ public class WxLoginActivity extends BaseActivity implements WxLoginView, OnLogi ...@@ -305,38 +305,6 @@ public class WxLoginActivity extends BaseActivity implements WxLoginView, OnLogi
} }
} }
// public static final MediaType JSON = MediaType.parse("application/json; charset=utf-8");
// private void getPhoneNum(String token) {
// new Thread(){
// @Override
// public void run() {
// super.run();
// try {
// OkHttpClient client = new OkHttpClient();
// JSONObject bodyJson = new JSONObject();
// bodyJson.put("token",token);
// String body = bodyJson.toString();
// RequestBody requestBody = RequestBody.create(JSON,body);
// Request request = new Request.Builder().url(Constants.verifyUrl).post(requestBody).build();
// Response response = client.newCall(request).execute();
// String responseData = response.body().string();
// Log.d(TAG,"response :"+responseData);
// JSONObject responseJson = new JSONObject(responseData);
// String phone = responseJson.optString("phone");
// Message message = handler.obtainMessage();
// message.what = 0;
// message.obj = phone;
// phoneNum = phone;
// handler.sendMessage(message);
// } catch (Throwable e) {
// Message message = handler.obtainMessage();
// message.what = 1;
// handler.sendMessage(message);
// }
// }
// }.start();
// }
@Override @Override
public void loginSuc() { public void loginSuc() {
// UserManager.getInstance().userLogout(); // UserManager.getInstance().userLogout();
......
...@@ -1041,34 +1041,34 @@ public class VersusFragment extends BaseFragment ...@@ -1041,34 +1041,34 @@ public class VersusFragment extends BaseFragment
viewVersusWeixin.setVisibility(View.GONE); viewVersusWeixin.setVisibility(View.GONE);
} }
// //绑定手机号 Complete 0-未完成 1-完成 2-领取 //绑定手机号 Complete 0-未完成 1-完成 2-领取
// int challengeMobileComplete = data.getChallenge_mobile_complete(); int challengeMobileComplete = data.getChallenge_mobile_complete();
// if (challengeMobileComplete == 0) { if (challengeMobileComplete == 0) {
// llVersusMobile.setVisibility(View.VISIBLE); llVersusMobile.setVisibility(View.VISIBLE);
// viewVersusMobile.setVisibility(View.VISIBLE); viewVersusMobile.setVisibility(View.VISIBLE);
// tvVersusMobileGold.setText("+" + data.getChallenge_mobile_coin()); tvVersusMobileGold.setText("+" + data.getChallenge_mobile_coin());
// if (!userManager.userIsLogin()) {
// tvVersusMobile.setText("去完成");
// tvVersusMobile.setBackground(getResources().getDrawable(R.drawable.shape_main_water));
// //
//// if (!userManager.userIsLogin()) { // } else {
//// tvVersusMobile.setText("去完成"); // tvVersusMobile.setText("立即领取");
//// tvVersusMobile.setBackground(getResources().getDrawable(R.drawable.shape_main_water)); // tvVersusMobile.setBackground(getResources().getDrawable(R.drawable.shape_tv_gold));
//// //
//// } else { // }
//// tvVersusMobile.setText("立即领取"); tvVersusMobile.setText("去完成");
//// tvVersusMobile.setBackground(getResources().getDrawable(R.drawable.shape_tv_gold)); tvVersusMobile.setBackground(getResources().getDrawable(R.drawable.shape_main_water));
//// } else if (challengeMobileComplete == 1) {
//// } llVersusMobile.setVisibility(View.VISIBLE);
// tvVersusMobile.setText("去完成"); viewVersusMobile.setVisibility(View.VISIBLE);
// tvVersusMobile.setBackground(getResources().getDrawable(R.drawable.shape_main_water)); tvVersusMobileGold.setText("+" + data.getChallenge_mobile_coin());
// } else if (challengeMobileComplete == 1) { tvVersusMobile.setText("立即领取");
// llVersusMobile.setVisibility(View.VISIBLE); tvVersusMobile.setBackground(getResources().getDrawable(R.drawable.shape_tv_gold));
// viewVersusMobile.setVisibility(View.VISIBLE); } else {
// tvVersusMobileGold.setText("+" + data.getChallenge_mobile_coin()); llVersusMobile.setVisibility(View.GONE);
// tvVersusMobile.setText("立即领取"); viewVersusMobile.setVisibility(View.GONE);
// tvVersusMobile.setBackground(getResources().getDrawable(R.drawable.shape_tv_gold)); }
// } else {
// llVersusMobile.setVisibility(View.GONE);
// viewVersusMobile.setVisibility(View.GONE);
// }
//首次提现 Complete 0-未完成 1-完成 2-领取 //首次提现 Complete 0-未完成 1-完成 2-领取
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment