Commit 7ca31ae5 authored by jianglx's avatar jianglx

解开启动页绑定关系

parent 12e6ecae
...@@ -36,13 +36,12 @@ public class WakeUpActivity extends AppCompatActivity { ...@@ -36,13 +36,12 @@ public class WakeUpActivity extends AppCompatActivity {
private AppGetInfoListener listener = info -> { private AppGetInfoListener listener = info -> {
LogUtil.d("ShareInstall", "info = " + info); LogUtil.d("ShareInstall", "info = " + info);
Intent intent = new Intent(getApplicationContext(), MainActivity.class); Intent intent = new Intent(getApplicationContext(), MainActivity.class);
if (info.contains("code"))
try { try {
JSONObject object = new JSONObject(info); JSONObject object = new JSONObject(info);
// String inviteCode = object.optString("code"); String inviteCode = object.optString("code");
// if (!TextUtils.isEmpty(inviteCode)) { if (!TextUtils.isEmpty(inviteCode)) {
// AppCookie.save("code", inviteCode); AppCookie.save("code", inviteCode);
// } }
String url = object.optString("url"); String url = object.optString("url");
LogUtil.d("唤醒传过来的url=" + url); LogUtil.d("唤醒传过来的url=" + url);
String title = URLDecoder.decode(object.optString("title"), "UTF-8"); String title = URLDecoder.decode(object.optString("title"), "UTF-8");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment