billyyoyo лет назад: 5
Родитель
Сommit
7ab2f60715
1 измененных файлов с 7 добавлено и 1 удалено
  1. 7 1
      app/src/main/java/com/sheep/gamegroup/view/activity/ActMsg.java

+ 7 - 1
app/src/main/java/com/sheep/gamegroup/view/activity/ActMsg.java

@@ -11,6 +11,7 @@ import com.sheep.gamegroup.view.adapter.ViewPagerFragmentAdapter;
 import com.sheep.gamegroup.view.fragment.FgtMsgCenter;
 import com.sheep.gamegroup.view.fragment.FgtMsgCenter;
 import com.sheep.gamegroup.view.fragment.FgtMsgReply;
 import com.sheep.gamegroup.view.fragment.FgtMsgReply;
 import com.sheep.jiuyan.samllsheep.R;
 import com.sheep.jiuyan.samllsheep.R;
+import com.sheep.jiuyan.samllsheep.utils.SpUtils;
 import com.sheep.jiuyan.samllsheep.utils.TitleBarUtils;
 import com.sheep.jiuyan.samllsheep.utils.TitleBarUtils;
 
 
 import java.util.ArrayList;
 import java.util.ArrayList;
@@ -46,7 +47,12 @@ public class ActMsg extends BaseActivity {
 
 
     @Override
     @Override
     public void initView() {
     public void initView() {
-        String token = getIntent().hasExtra("token") ? getIntent().getStringExtra("token") : DataUtil.getInstance().getToken();
+        String token;
+        if(getIntent().hasExtra("token")){
+            token = SpUtils.exchangeToken(getIntent().getStringExtra("token"));
+        } else {
+            token = DataUtil.getInstance().getToken();
+        }
         TitleBarUtils.getInstance()
         TitleBarUtils.getInstance()
                 .setShowOrHide(this, true)
                 .setShowOrHide(this, true)
                 .setTitleFinish(this)
                 .setTitleFinish(this)