This commit is contained in:
18142669586
2022-08-09 17:18:31 +08:00
parent 2db6115534
commit 74b3ec08d9
15 changed files with 92 additions and 384 deletions

View File

@@ -118,6 +118,18 @@ public class InstructorOperationDialog extends AbsDialogFragment {
}
});
AdjustEvent adjustEvent2 = new AdjustEvent("ykpmj8");
Adjust.trackEvent(adjustEvent2);
CommonHttpUtil.setAdvertisingChannels("ykpmj8", new HttpCallback() {
@Override
public void onSuccess(int code, String msg, String[] info) {
if (code == 0) {
FirebaseAnalytics.getInstance(mContext).logEvent("FS_director_message_box", null);
AppEventsLogger.newLogger(mContext).logEvent("FB_director_message_box");
}
}
});
EventBus.getDefault().post(new InstructorOperationEvent());
dismiss();
}

View File

@@ -333,12 +333,14 @@ public class CommonHttpUtil {
.execute(callback);
}
public static void notifyGoogle(String purchaseToken, String orderNo, String tradeNo, String allData, HttpCallback callback) {
public static void notifyGoogle(String purchaseToken, String orderNo, String tradeNo, String allData,String gps_adid, HttpCallback callback) {
HttpClient.getInstance().get(CommonHttpConsts.NOTIFY_GOOGLE, CommonHttpConsts.NOTIFY_GOOGLE)
.params("purchaseToken", purchaseToken)
.params("orderno", orderNo)
.params("trade_no", tradeNo)
.params("allData", allData)
.params("gps_adid", gps_adid)
.execute(callback);
}

View File

@@ -52,17 +52,7 @@ public class PDMessageInterceptor implements MessageInterceptor {
IMLoginModel userBean = new Gson().fromJson(userInfo.getExtra(), IMLoginModel.class);
//新手指导员
if (!TextUtils.isEmpty(userBean.getIsAdmin()) && TextUtils.equals(userBean.getIsAdmin(), "1")) {
AdjustEvent adjustEvent1 = new AdjustEvent("82nzkz");
Adjust.trackEvent(adjustEvent1);
CommonHttpUtil.setAdvertisingChannels("82nzkz", new HttpCallback() {
@Override
public void onSuccess(int code, String msg, String[] info) {
if (code == 0) {
FirebaseAnalytics.getInstance(CommonAppContext.sInstance.getApplicationContext()).logEvent("FS_director_enter", null);
AppEventsLogger.newLogger(CommonAppContext.sInstance.getApplicationContext()).logEvent("FB_director_enter");
}
}
});
//wow
} else {//非指导员

View File

@@ -417,20 +417,20 @@ public class PayPresenter {
",OriginalJson=" +purchase.getOriginalJson()+
",PurchaseState=" +purchase.getPurchaseState()+
",Signature="+purchase.getSignature();
CommonHttpUtil.notifyGoogle("1",mOrderid,purchase.getOrderId(),allData, new HttpCallback() {
@Override
public void onSuccess(int code, String msg, String[] info) {
if(code==0){
try {
ToastUtil.show("购买成功!");
}catch (Exception e){
e.printStackTrace();
}
}else {
ToastUtil.show("购买失败,请联系客服");
}
}
});
// CommonHttpUtil.notifyGoogle("1",mOrderid,purchase.getOrderId(),allData, new HttpCallback() {
// @Override
// public void onSuccess(int code, String msg, String[] info) {
// if(code==0){
// try {
// ToastUtil.show("购买成功!");
// }catch (Exception e){
// e.printStackTrace();
// }
// }else {
// ToastUtil.show("购买失败,请联系客服");
// }
// }
// });
}else{

View File

@@ -18,7 +18,6 @@ public class RouteUtil {
public static final String PATH_LOGIN_INVALID = "/main/LoginInvalidActivity";
public static final String PATH_USER_HOME = "/main/UserHomeActivity";
public static final String PATH_COIN = "/main/MyWalletActivity";
public static final String PATH_GOOGLE = "/main/GooglePayActivity";
public static final String PATH_REWARD = "/main/RewardActivity";
public static final String PATH_EDITPROFILE = "/main/EditProfileActivity";
public static final String PATH_LIVEREPORT = "/live/LiveReportActivity";