Explorar o código

act msg handle external token

billyyoyo %!s(int64=5) %!d(string=hai) anos
pai
achega
7ab2f60715

+ 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.FgtMsgReply;
 import com.sheep.jiuyan.samllsheep.R;
+import com.sheep.jiuyan.samllsheep.utils.SpUtils;
 import com.sheep.jiuyan.samllsheep.utils.TitleBarUtils;
 
 import java.util.ArrayList;
@@ -46,7 +47,12 @@ public class ActMsg extends BaseActivity {
 
     @Override
     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()
                 .setShowOrHide(this, true)
                 .setTitleFinish(this)