Browse Source

[修改]会员即将过期提醒时间+1

zeki 5 years ago
parent
commit
9e2f0af6cf

+ 3 - 0
app/src/developSheeptest/java/com/sheep/jiuyan/samllsheep/wxapi/WXEntryActivity.java

@@ -3,6 +3,7 @@ package com.sheep.jiuyan.samllsheep.wxapi;
 import android.content.Intent;
 import android.os.Bundle;
 
+import android.util.Log;
 import com.sheep.gamegroup.event.WXLoginAuthEvent;
 import com.sheep.gamegroup.model.entity.MiniPayResult;
 import com.sheep.gamegroup.util.*;
@@ -24,6 +25,7 @@ public class WXEntryActivity extends WXCallbackActivity {//implements IWXAPIEven
     @Override
     public void onCreate(Bundle bundle) {
         super.onCreate(bundle);
+        Log.d("######","···WXEntryActivity onCreate");
         IWXAPI wxapi = WXAPIFactory.createWXAPI(this, Config.WX_AUTH_APP_ID, true);
         wxapi.registerApp(Config.WX_AUTH_APP_ID);
         wxapi.handleIntent(getIntent(), this);
@@ -32,6 +34,7 @@ public class WXEntryActivity extends WXCallbackActivity {//implements IWXAPIEven
 
     @Override
     public void onNewIntent(Intent newIntent) {
+        Log.d("######","···WXEntryActivity onNewIntent");
         IWXAPI wxapi = WXAPIFactory.createWXAPI(this, Config.WX_AUTH_APP_ID, true);
         wxapi.registerApp(Config.WX_AUTH_APP_ID);
         wxapi.handleIntent(getIntent(), this);

+ 3 - 1
app/src/main/java/com/sheep/gamegroup/util/ProcessEventUtil.java

@@ -2,6 +2,7 @@ package com.sheep.gamegroup.util;
 
 import android.content.Context;
 import android.content.Intent;
+import android.util.Log;
 import org.greenrobot.eventbus.EventBus;
 
 /**
@@ -29,12 +30,13 @@ public class ProcessEventUtil {
     public static final String EVENT_PAY_RESP = "event_pay_resp";
 
     public static void sendProcessEvent(Context context, Object event, String processEventType) {
-        //EventBus.getDefault().post(event);
+        EventBus.getDefault().post(event);
         Intent intent = new Intent();
         intent.setAction(ProcessEventUtil.ACTION_BROADCAST_RECEIVER_PROCESS_EVENT);
         intent.putExtra(ProcessEventUtil.KEY_BROADCAST_TYPE, ProcessEventUtil.TYPE_BROADCAST_PROCESS_EVENT);
         intent.putExtra(ProcessEventUtil.KEY_PROCESS_EVENT_TYPE, processEventType);
         intent.putExtra(ProcessEventUtil.KEY_PROCESS_EVENT_JSON, GsonUtils.getGlobalGson().toJson(event));
+        Log.d("######","···发送微信登录广播");
         context.sendBroadcast(intent);
     }
 }