完善资料页自动填写linkedme邀请码
This commit is contained in:
@@ -481,6 +481,41 @@
|
||||
|
||||
<category android:name="android.intent.category.LAUNCHER" />
|
||||
</intent-filter>
|
||||
<!-- URI Scheme方式 在dashboard配置中,请保持与ios的URI Scheme相同 -->
|
||||
<!--
|
||||
如果程序已存在与此完全相同的data配置,即只包含scheme并且值完全相同,
|
||||
则需要考虑发起的intent会出现相同应用图标的选择对话框的情况
|
||||
参考集成文档:https://www.linkedme.cc/docs/page4.html#link1
|
||||
-->
|
||||
<intent-filter>
|
||||
|
||||
<!-- 此处scheme值需要替换为后台设置中的scheme值 -->
|
||||
<data
|
||||
android:host="linkedme"
|
||||
android:scheme="accompanyapp" />
|
||||
|
||||
<action android:name="android.intent.action.VIEW" />
|
||||
|
||||
<category android:name="android.intent.category.DEFAULT" />
|
||||
<category android:name="android.intent.category.BROWSABLE" />
|
||||
</intent-filter>
|
||||
|
||||
<!-- APP Links方式,Android 23版本及以后支持 -->
|
||||
<intent-filter android:autoVerify="true">
|
||||
<action android:name="android.intent.action.VIEW" />
|
||||
|
||||
<category android:name="android.intent.category.DEFAULT" />
|
||||
<category android:name="android.intent.category.BROWSABLE" />
|
||||
<!-- 以下pathPrefix值需要替换为后台设置中 App ID 的值 -->
|
||||
<data
|
||||
android:host="lkme.cc"
|
||||
android:pathPrefix="/7BE"
|
||||
android:scheme="https" />
|
||||
<data
|
||||
android:host="lkme.cc"
|
||||
android:pathPrefix="/7BE"
|
||||
android:scheme="http" />
|
||||
</intent-filter>
|
||||
</activity>
|
||||
<activity
|
||||
android:name=".ui.login.LoginActivity"
|
||||
@@ -539,42 +574,6 @@
|
||||
android:launchMode="singleTask"
|
||||
android:screenOrientation="portrait"
|
||||
android:windowSoftInputMode="adjustPan|stateAlwaysHidden">
|
||||
|
||||
<!-- URI Scheme方式 在dashboard配置中,请保持与ios的URI Scheme相同 -->
|
||||
<!--
|
||||
如果程序已存在与此完全相同的data配置,即只包含scheme并且值完全相同,
|
||||
则需要考虑发起的intent会出现相同应用图标的选择对话框的情况
|
||||
参考集成文档:https://www.linkedme.cc/docs/page4.html#link1
|
||||
-->
|
||||
<intent-filter>
|
||||
|
||||
<!-- 此处scheme值需要替换为后台设置中的scheme值 -->
|
||||
<data
|
||||
android:host="linkedme"
|
||||
android:scheme="accompanyapp" />
|
||||
|
||||
<action android:name="android.intent.action.VIEW" />
|
||||
|
||||
<category android:name="android.intent.category.DEFAULT" />
|
||||
<category android:name="android.intent.category.BROWSABLE" />
|
||||
</intent-filter>
|
||||
|
||||
<!-- APP Links方式,Android 23版本及以后支持 -->
|
||||
<intent-filter android:autoVerify="true">
|
||||
<action android:name="android.intent.action.VIEW" />
|
||||
|
||||
<category android:name="android.intent.category.DEFAULT" />
|
||||
<category android:name="android.intent.category.BROWSABLE" />
|
||||
<!-- 以下pathPrefix值需要替换为后台设置中 App ID 的值 -->
|
||||
<data
|
||||
android:host="lkme.cc"
|
||||
android:pathPrefix="/7BE"
|
||||
android:scheme="https" />
|
||||
<data
|
||||
android:host="lkme.cc"
|
||||
android:pathPrefix="/7BE"
|
||||
android:scheme="http" />
|
||||
</intent-filter>
|
||||
</activity>
|
||||
<activity
|
||||
android:name=".ui.keepalive.OnePiexlActivity"
|
||||
|
@@ -47,6 +47,7 @@ public class MiddleActivity extends BaseActivity {
|
||||
String url = hashMap.get("url");
|
||||
String worldId = hashMap.get("worldId");
|
||||
String dynamicId = hashMap.get("dynamicId");
|
||||
String inviteCode = hashMap.get("inviteCode");
|
||||
if (roomuid != null) {
|
||||
linkedInfo.setRoomUid(roomuid);
|
||||
}
|
||||
@@ -68,6 +69,8 @@ public class MiddleActivity extends BaseActivity {
|
||||
if (dynamicId != null) {
|
||||
linkedInfo.setDynamicId(dynamicId);
|
||||
}
|
||||
|
||||
linkedInfo.setInviteCode(inviteCode);
|
||||
//发送 log 到阿里
|
||||
StatisticManager.Instance().sendAliyunLog(LogFactory.create(
|
||||
LogProtocol.LogLevel.LEVEL_VERBOSE,
|
||||
|
@@ -95,6 +95,12 @@ public class AddUserInfoFragment extends BaseFragment
|
||||
}
|
||||
tvNick.setFilters(new InputFilter[]{new InputFilter.LengthFilter(8)});
|
||||
rgGender.setOnCheckedChangeListener((radioGroup, i) -> gender = i == rbMale.getId() ? UserInfo.GENDER_MALE : UserInfo.GENDER_FEMALE);
|
||||
|
||||
//如果有邀请码的话,自动填写
|
||||
LinkedInfo linkedInfo = LinkedModel.get().getLinkedInfo();
|
||||
if (linkedInfo != null && !TextUtils.isEmpty(linkedInfo.getInviteCode())) {
|
||||
tvCode.setText(linkedInfo.getInviteCode());
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@@ -20,5 +20,6 @@ public class LinkedInfo {
|
||||
private String url;
|
||||
private String worldId;// 话题ID
|
||||
private String dynamicId; //动态id
|
||||
private String inviteCode;
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user