Commit 4f097ce6 authored by mengcuiguang's avatar mengcuiguang

1.0.2发版

parent 22cbac9b
...@@ -30,7 +30,7 @@ public class InsertScreenAdManager { ...@@ -30,7 +30,7 @@ public class InsertScreenAdManager {
} }
public void showInsertScreenAd(String carrierType) { public void showInsertScreenAd(String carrierType) {
// initInsertScreenAd(carrierType); initInsertScreenAd(carrierType);
} }
public void ondestory() { public void ondestory() {
......
...@@ -110,6 +110,7 @@ public class GamePresenter extends BasePresenter<GameView> { ...@@ -110,6 +110,7 @@ public class GamePresenter extends BasePresenter<GameView> {
HashMap<String, Object> vo = new HashMap<>(); HashMap<String, Object> vo = new HashMap<>();
String uuid = new DeviceUuidFactory(loanApplication).getDeviceUuid().toString(); String uuid = new DeviceUuidFactory(loanApplication).getDeviceUuid().toString();
vo.put("device", uuid); vo.put("device", uuid);
vo.put("uid", UserManager.getInstance().getUserID());
// vo.put("seq", MD5.GetMD5Code(DevicesUtil.getPesudoUniqueID()+System.currentTimeMillis())); // vo.put("seq", MD5.GetMD5Code(DevicesUtil.getPesudoUniqueID()+System.currentTimeMillis()));
AppHttpManager.getInstance(loanApplication) AppHttpManager.getInstance(loanApplication)
.call(loanService.visitorlogin(vo), .call(loanService.visitorlogin(vo),
......
...@@ -460,7 +460,7 @@ public class LoanPresenter extends BasePresenter<LoanView> { ...@@ -460,7 +460,7 @@ public class LoanPresenter extends BasePresenter<LoanView> {
HashMap<String, Object> vo = new HashMap<>(); HashMap<String, Object> vo = new HashMap<>();
uuid = new DeviceUuidFactory(loanApplication).getDeviceUuid().toString(); uuid = new DeviceUuidFactory(loanApplication).getDeviceUuid().toString();
vo.put("device", uuid); vo.put("device", uuid);
// vo.put("seq", MD5.GetMD5Code(DevicesUtil.getPesudoUniqueID()+System.currentTimeMillis())); vo.put("uid", UserManager.getInstance().getUserID());
AppHttpManager.getInstance(loanApplication) AppHttpManager.getInstance(loanApplication)
.call(loanService.visitorlogin(vo), .call(loanService.visitorlogin(vo),
new BaseSubscriber<BaseResponse<UserBean>>() { new BaseSubscriber<BaseResponse<UserBean>>() {
......
...@@ -178,7 +178,7 @@ public class MyPresenter extends BasePresenter<MyView> { ...@@ -178,7 +178,7 @@ public class MyPresenter extends BasePresenter<MyView> {
HashMap<String, Object> vo = new HashMap<>(); HashMap<String, Object> vo = new HashMap<>();
String uuid = new DeviceUuidFactory(loanApplication).getDeviceUuid().toString(); String uuid = new DeviceUuidFactory(loanApplication).getDeviceUuid().toString();
vo.put("device", uuid); vo.put("device", uuid);
// vo.put("seq", MD5.GetMD5Code(DevicesUtil.getPesudoUniqueID() + System.currentTimeMillis())); vo.put("uid", UserManager.getInstance().getUserID());
AppHttpManager.getInstance(loanApplication) AppHttpManager.getInstance(loanApplication)
.call(loanService.visitorlogin(vo), .call(loanService.visitorlogin(vo),
new BaseSubscriber<BaseResponse<UserBean>>() { new BaseSubscriber<BaseResponse<UserBean>>() {
......
...@@ -378,7 +378,7 @@ public class VersusPresenter extends BasePresenter<VersusView> { ...@@ -378,7 +378,7 @@ public class VersusPresenter extends BasePresenter<VersusView> {
HashMap<String, Object> vo = new HashMap<>(); HashMap<String, Object> vo = new HashMap<>();
String uuid = new DeviceUuidFactory(loanApplication).getDeviceUuid().toString(); String uuid = new DeviceUuidFactory(loanApplication).getDeviceUuid().toString();
vo.put("device", uuid); vo.put("device", uuid);
// vo.put("seq", MD5.GetMD5Code(DevicesUtil.getPesudoUniqueID() + System.currentTimeMillis())); vo.put("uid", UserManager.getInstance().getUserID());
AppHttpManager.getInstance(loanApplication) AppHttpManager.getInstance(loanApplication)
.call(loanService.visitorlogin(vo), .call(loanService.visitorlogin(vo),
new BaseSubscriber<BaseResponse<UserBean>>() { new BaseSubscriber<BaseResponse<UserBean>>() {
......
...@@ -160,6 +160,7 @@ public class GsonConverterFactory extends Converter.Factory { ...@@ -160,6 +160,7 @@ public class GsonConverterFactory extends Converter.Factory {
HashMap<String, Object> vo = new HashMap<>(); HashMap<String, Object> vo = new HashMap<>();
String uuid = new DeviceUuidFactory(loanApplication).getDeviceUuid().toString(); String uuid = new DeviceUuidFactory(loanApplication).getDeviceUuid().toString();
vo.put("device", uuid); vo.put("device", uuid);
vo.put("uid", UserManager.getInstance().getUserID());
// vo.put("seq", MD5.GetMD5Code(DevicesUtil.getPesudoUniqueID()+System.currentTimeMillis())); // vo.put("seq", MD5.GetMD5Code(DevicesUtil.getPesudoUniqueID()+System.currentTimeMillis()));
loanApplication.getLoanService().visitorlogin(vo) loanApplication.getLoanService().visitorlogin(vo)
.observeOn(AndroidSchedulers.mainThread()) .observeOn(AndroidSchedulers.mainThread())
......
...@@ -476,32 +476,32 @@ public interface LoanService { ...@@ -476,32 +476,32 @@ public interface LoanService {
builder.interceptors().add(okHttpInterceptor); builder.interceptors().add(okHttpInterceptor);
Retrofit retrofit; Retrofit retrofit;
if (BuildConfig.DEBUG) { // if (BuildConfig.DEBUG) {
SPUtil spUtil = SPUtil.getInstance(context); // SPUtil spUtil = SPUtil.getInstance(context);
if (TextUtils.isEmpty(spUtil.getString(Constant.LOCAL_IP))) { // if (TextUtils.isEmpty(spUtil.getString(Constant.LOCAL_IP))) {
spUtil.putString(Constant.LOCAL_IP, "http://39.106.5.102:9082/api-p1/"); // spUtil.putString(Constant.LOCAL_IP, "http://39.106.5.102:9082/api-p1/");
} // }
retrofit = new Retrofit.Builder() // retrofit = new Retrofit.Builder()
.client(builder.build()) // .client(builder.build())
.baseUrl(spUtil.getString(Constant.LOCAL_IP)) // .baseUrl(spUtil.getString(Constant.LOCAL_IP))
.addConverterFactory(GsonConverterFactory.create()) // .addConverterFactory(GsonConverterFactory.create())
.addCallAdapterFactory(RxJavaCallAdapterFactory.create()) // .addCallAdapterFactory(RxJavaCallAdapterFactory.create())
.build(); // .build();
} else { // } else {
retrofit = new Retrofit.Builder() // retrofit = new Retrofit.Builder()
.client(builder.build()) // .client(builder.build())
.baseUrl(BuildConfig.MainIp) // .baseUrl(BuildConfig.MainIp)
.addConverterFactory(GsonConverterFactory.create()) // .addConverterFactory(GsonConverterFactory.create())
.addCallAdapterFactory(RxJavaCallAdapterFactory.create()) // .addCallAdapterFactory(RxJavaCallAdapterFactory.create())
.build(); // .build();
} // }
// retrofit = new Retrofit.Builder() retrofit = new Retrofit.Builder()
// .client(builder.build()) .client(builder.build())
// .baseUrl(BuildConfig.MainIp) .baseUrl(BuildConfig.MainIp)
// .addConverterFactory(GsonConverterFactory.create()) .addConverterFactory(GsonConverterFactory.create())
// .addCallAdapterFactory(RxJavaCallAdapterFactory.create()) .addCallAdapterFactory(RxJavaCallAdapterFactory.create())
// .build(); .build();
return retrofit.create(LoanService.class); return retrofit.create(LoanService.class);
......
...@@ -160,8 +160,12 @@ public class RedboxActivity extends BaseActivity implements RedboxView { ...@@ -160,8 +160,12 @@ public class RedboxActivity extends BaseActivity implements RedboxView {
protected void onResume() { protected void onResume() {
super.onResume(); super.onResume();
insertScreenAd.showInsertScreenAd(Constant.CARRIER_REDENVELOPE); if (tvRedboxOne != null) {
if (AntiShake.check(tvRedboxOne.getId())) return;
}
System.out.println("mcg __ redbox onresume");
insertScreenAd.showInsertScreenAd(Constant.CARRIER_REDENVELOPE);
redboxPresenter.getAllRedEnvelopeMsg(); redboxPresenter.getAllRedEnvelopeMsg();
} }
......
...@@ -407,10 +407,6 @@ public class MainFragment extends BaseFragment ...@@ -407,10 +407,6 @@ public class MainFragment extends BaseFragment
Bundle bundle; Bundle bundle;
switch (view.getId()) { switch (view.getId()) {
case R.id.tv_fragment_main_whatgold:// 如何赚金币 case R.id.tv_fragment_main_whatgold:// 如何赚金币
// System.out.println("mcg __ getPesudoUniqueID:"+ DevicesUtil.getPesudoUniqueID());
// System.out.println("mcg __ getUUID:"+ DevicesUtil.getUUID());
// System.out.println("mcg __ googld device UUID:"+ new DeviceUuidFactory(getContext()).getDeviceUuid().toString());
readyGo(WhatGoldActivity.class); readyGo(WhatGoldActivity.class);
break; break;
case R.id.iv_fragment_main_putcard:// 补卡 case R.id.iv_fragment_main_putcard:// 补卡
......
...@@ -145,13 +145,13 @@ public class MyFragment extends BaseFragment ...@@ -145,13 +145,13 @@ public class MyFragment extends BaseFragment
super.onResume(); super.onResume();
if (AppConfig.fragmentClickFlag == Constant.FRAGMENT_CLICK_MY) { if (AppConfig.fragmentClickFlag == Constant.FRAGMENT_CLICK_MY) {
//应用商店上线隐藏广告 //应用商店上线隐藏广告
// if (userManager.getAdShowFlag()) { if (userManager.getAdShowFlag()) {
// if (ttUtil != null && flMyTtbanner != null) { if (ttUtil != null && flMyTtbanner != null) {
// ttUtil.getBannerInit(getContext(), TTAdManagerHolder.TT_AD_BANNER_ID_MY, flMyTtbanner, 370, 80); ttUtil.getBannerInit(getContext(), TTAdManagerHolder.TT_AD_BANNER_ID_MY, flMyTtbanner, 370, 80);
// } }
// } else { } else {
// flMyTtbanner.setVisibility(View.GONE); flMyTtbanner.setVisibility(View.GONE);
// } }
if (!TextUtils.isEmpty(userManager.getUserID())) { if (!TextUtils.isEmpty(userManager.getUserID())) {
myPresenter.getUserTaskMsg(false); myPresenter.getUserTaskMsg(false);
......
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