xl121 1 yıl önce
ebeveyn
işleme
d3b7aaa237

+ 3 - 0
TMessagesProj/src/main/java/org/telegram/onecric/mvp/presenter/CricketDetailPresenter.java

@@ -5,6 +5,7 @@ import android.text.TextUtils;
 import com.alibaba.fastjson.JSONObject;
 
 import org.telegram.cricdit.utils.GsonHel;
+import org.telegram.cricdit.utils.SPUtils;
 import org.telegram.onecric.base.BasePresenter;
 import org.telegram.onecric.mvp.bean.CricketMatchBean;
 import org.telegram.onecric.mvp.bean.UpdatesBean;
@@ -26,6 +27,8 @@ public class CricketDetailPresenter extends BasePresenter<CricketDetailView> {
         TimeZone timeZone = TimeZone.getDefault();
         jsonObject.put("timezone", timeZone.getID());
         jsonObject.put("match_id", matchId);
+        jsonObject.put("app", "cricdit");
+        jsonObject.put("registrationId", SPUtils.getInstance().get("registration_token", ""));
         addSubscription(apiStores.getCricketDetail(getRequestBody(jsonObject)), new ApiCallback() {
             @Override
             public void onSuccess(String data, String msg) {

+ 2 - 1
TMessagesProj/src/main/java/org/telegram/onecric/mvp/presenter/SubscribePresenter.java

@@ -20,7 +20,8 @@ public class SubscribePresenter extends BasePresenter {
         JSONObject jsonObject = new JSONObject();
         jsonObject.put("mid", mid);
         jsonObject.put("type", type);
-        jsonObject.put("registrationId", SPUtils.getInstance().get("registration_token",""));
+        jsonObject.put("app", "cricdit");
+        jsonObject.put("registrationId", SPUtils.getInstance().get("registration_token", ""));
 //        if (UserConfig.getInstance(UserConfig.selectedAccount).isClientActivated()) {
 //            jsonObject.put("user_id", UserConfig.getInstance(UserConfig.selectedAccount).getCurrentUser().id + "");
 //        }

BIN
TMessagesProj/src/main/res/mipmap-xhdpi/subscribe.png


BIN
TMessagesProj/src/main/res/mipmap-xhdpi/unsubscribe.png


BIN
TMessagesProj/src/main/res/mipmap-xxhdpi/subscribe.png


BIN
TMessagesProj/src/main/res/mipmap-xxhdpi/unsubscribe.png


BIN
TMessagesProj/src/main/res/mipmap-xxxhdpi/subscribe.png


BIN
TMessagesProj/src/main/res/mipmap-xxxhdpi/unsubscribe.png