只能+86登录注册
去掉退群通知
This commit is contained in:
@@ -47,8 +47,8 @@ android {
|
|||||||
applicationId = "com.dskj.rbchat"
|
applicationId = "com.dskj.rbchat"
|
||||||
minSdk = 24
|
minSdk = 24
|
||||||
targetSdk = 34
|
targetSdk = 34
|
||||||
versionCode = 196
|
versionCode = 198
|
||||||
versionName = "1.9.6"
|
versionName = "1.9.8"
|
||||||
multiDexEnabled = true
|
multiDexEnabled = true
|
||||||
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
||||||
manifestPlaceholders["IMAPPKEY"] = "c38c8bbebf7d12992d2a361bfceb6c6f" //正式
|
manifestPlaceholders["IMAPPKEY"] = "c38c8bbebf7d12992d2a361bfceb6c6f" //正式
|
||||||
@@ -126,8 +126,8 @@ android {
|
|||||||
"\"AIzaSyB7P1o1EIA02eWoNP_7QJ9XwWe3WkSZb9k\""
|
"\"AIzaSyB7P1o1EIA02eWoNP_7QJ9XwWe3WkSZb9k\""
|
||||||
)
|
)
|
||||||
//测试APPKEY
|
//测试APPKEY
|
||||||
manifestPlaceholders["IMAPPKEY"] = "4cb6b0998f9e7af9d7673963e429959a"
|
manifestPlaceholders["IMAPPKEY"] = "4cb6b0998f9e7af9d7673963e429959a"
|
||||||
// manifestPlaceholders["IMAPPKEY"] = "c38c8bbebf7d12992d2a361bfceb6c6f"
|
// manifestPlaceholders["IMAPPKEY"] = "c38c8bbebf7d12992d2a361bfceb6c6f"
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -96,21 +96,21 @@ public class PhoneLoginActivity extends BaseActivity {
|
|||||||
|
|
||||||
countryBean = DataUtils.getLocCountry(PhoneLoginActivity.this);
|
countryBean = DataUtils.getLocCountry(PhoneLoginActivity.this);
|
||||||
changeArea();
|
changeArea();
|
||||||
activityWelcomeBinding.areaTv.setOnClickListener(new View.OnClickListener() {
|
// activityWelcomeBinding.areaTv.setOnClickListener(new View.OnClickListener() {
|
||||||
@Override
|
// @Override
|
||||||
public void onClick(View v) {
|
// public void onClick(View v) {
|
||||||
SelectCountryDialog selectCountryDialog = new SelectCountryDialog(PhoneLoginActivity.this);
|
// SelectCountryDialog selectCountryDialog = new SelectCountryDialog(PhoneLoginActivity.this);
|
||||||
selectCountryDialog.setOnToVipListener(new SelectCountryDialog.OnToTypeListener() {
|
// selectCountryDialog.setOnToVipListener(new SelectCountryDialog.OnToTypeListener() {
|
||||||
@Override
|
// @Override
|
||||||
public void toType(CountryBean type) {
|
// public void toType(CountryBean type) {
|
||||||
countryBean = type;
|
// countryBean = type;
|
||||||
changeArea();
|
// changeArea();
|
||||||
DataUtils.set(PhoneLoginActivity.this, IMUIKitConfig.LOC_COUNTRY_CODE, type.getAreaCodeName());
|
// DataUtils.set(PhoneLoginActivity.this, IMUIKitConfig.LOC_COUNTRY_CODE, type.getAreaCodeName());
|
||||||
}
|
// }
|
||||||
});
|
// });
|
||||||
selectCountryDialog.show();
|
// selectCountryDialog.show();
|
||||||
}
|
// }
|
||||||
});
|
// });
|
||||||
activityWelcomeBinding.nextIv.setOnClickListener(new View.OnClickListener() {
|
activityWelcomeBinding.nextIv.setOnClickListener(new View.OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
|
|||||||
@@ -158,18 +158,18 @@ public class RegisterActivity extends BaseActivity {
|
|||||||
|
|
||||||
countryBean = DataUtils.getLocCountry(RegisterActivity.this);
|
countryBean = DataUtils.getLocCountry(RegisterActivity.this);
|
||||||
changeArea();
|
changeArea();
|
||||||
activityWelcomeBinding.areaTv.setOnClickListener(v -> {
|
// activityWelcomeBinding.areaTv.setOnClickListener(v -> {
|
||||||
SelectCountryDialog selectCountryDialog = new SelectCountryDialog(RegisterActivity.this);
|
// SelectCountryDialog selectCountryDialog = new SelectCountryDialog(RegisterActivity.this);
|
||||||
selectCountryDialog.setOnToVipListener(new SelectCountryDialog.OnToTypeListener() {
|
// selectCountryDialog.setOnToVipListener(new SelectCountryDialog.OnToTypeListener() {
|
||||||
@Override
|
// @Override
|
||||||
public void toType(CountryBean type) {
|
// public void toType(CountryBean type) {
|
||||||
countryBean = type;
|
// countryBean = type;
|
||||||
changeArea();
|
// changeArea();
|
||||||
DataUtils.set(RegisterActivity.this, IMUIKitConfig.LOC_COUNTRY_CODE, type.getAreaCodeName());
|
// DataUtils.set(RegisterActivity.this, IMUIKitConfig.LOC_COUNTRY_CODE, type.getAreaCodeName());
|
||||||
}
|
// }
|
||||||
});
|
// });
|
||||||
selectCountryDialog.show();
|
// selectCountryDialog.show();
|
||||||
});
|
// });
|
||||||
activityWelcomeBinding.nextIv.setOnClickListener(v -> {
|
activityWelcomeBinding.nextIv.setOnClickListener(v -> {
|
||||||
if(lastTime>0){
|
if(lastTime>0){
|
||||||
if(System.currentTimeMillis()-lastTime<2000){
|
if(System.currentTimeMillis()-lastTime<2000){
|
||||||
|
|||||||
@@ -203,15 +203,15 @@ public class ChangePhoneActivity extends BaseActivity {
|
|||||||
countryBean = DataUtils.getLocCountry(ChangePhoneActivity.this);
|
countryBean = DataUtils.getLocCountry(ChangePhoneActivity.this);
|
||||||
changeArea();
|
changeArea();
|
||||||
|
|
||||||
binding.areaTv.setOnClickListener(v -> {
|
// binding.areaTv.setOnClickListener(v -> {
|
||||||
SelectCountryDialog selectCountryDialog = new SelectCountryDialog(ChangePhoneActivity.this);
|
// SelectCountryDialog selectCountryDialog = new SelectCountryDialog(ChangePhoneActivity.this);
|
||||||
selectCountryDialog.setOnToVipListener(type -> {
|
// selectCountryDialog.setOnToVipListener(type -> {
|
||||||
countryBean = type;
|
// countryBean = type;
|
||||||
changeArea();
|
// changeArea();
|
||||||
DataUtils.set(ChangePhoneActivity.this, IMUIKitConfig.LOC_COUNTRY_CODE, type.getAreaCodeName());
|
// DataUtils.set(ChangePhoneActivity.this, IMUIKitConfig.LOC_COUNTRY_CODE, type.getAreaCodeName());
|
||||||
});
|
// });
|
||||||
selectCountryDialog.show();
|
// selectCountryDialog.show();
|
||||||
});
|
// });
|
||||||
myCountDownTimer = new MyCountDownTimer(60000, 1000);
|
myCountDownTimer = new MyCountDownTimer(60000, 1000);
|
||||||
myCountDownTimer1 = new MyCountDownTimer1(60000, 1000);
|
myCountDownTimer1 = new MyCountDownTimer1(60000, 1000);
|
||||||
|
|
||||||
|
|||||||
@@ -150,18 +150,18 @@ public class DataUtils {
|
|||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
public static CountryBean getLocCountry(Context context) {
|
public static CountryBean getLocCountry(Context context) {
|
||||||
String areaCode;
|
// String areaCode;
|
||||||
try {
|
// try {
|
||||||
areaCode = DataUtils.get(context, IMUIKitConfig.LOC_COUNTRY_CODE, "+86");
|
// areaCode = DataUtils.get(context, IMUIKitConfig.LOC_COUNTRY_CODE, "+86");
|
||||||
} catch (Exception e) {
|
// } catch (Exception e) {
|
||||||
areaCode = "+" + DataUtils.get(context, IMUIKitConfig.LOC_COUNTRY_CODE, 86); //兼容老版本
|
// areaCode = "+" + DataUtils.get(context, IMUIKitConfig.LOC_COUNTRY_CODE, 86); //兼容老版本
|
||||||
}
|
// }
|
||||||
List<CountryBean> countryBeans = getCountry(context);
|
// List<CountryBean> countryBeans = getCountry(context);
|
||||||
for (CountryBean country : countryBeans) {
|
// for (CountryBean country : countryBeans) {
|
||||||
if (country.getAreaCodeName().equals(areaCode)) {
|
// if (country.getAreaCodeName().equals(areaCode)) {
|
||||||
return country;
|
// return country;
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
return new CountryBean("+86", context.getString(R.string.zhongguo_txt));
|
return new CountryBean("+86", context.getString(R.string.zhongguo_txt));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -152,9 +152,8 @@
|
|||||||
android:id="@+id/area_tv"
|
android:id="@+id/area_tv"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="@dimen/dp_50"
|
android:layout_height="@dimen/dp_50"
|
||||||
android:drawableRight="@mipmap/select_county_img"
|
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:text="台湾 +886"
|
android:text="+86"
|
||||||
android:textColor="@color/color_333333"
|
android:textColor="@color/color_333333"
|
||||||
android:textSize="18sp" />
|
android:textSize="18sp" />
|
||||||
|
|
||||||
@@ -272,7 +271,6 @@
|
|||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="50dp"
|
android:layout_height="50dp"
|
||||||
android:layout_marginRight="@dimen/dp_10"
|
android:layout_marginRight="@dimen/dp_10"
|
||||||
android:drawableRight="@mipmap/select_county_img"
|
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:paddingLeft="15dp"
|
android:paddingLeft="15dp"
|
||||||
android:text="CHINA +86"
|
android:text="CHINA +86"
|
||||||
|
|||||||
@@ -57,7 +57,6 @@
|
|||||||
android:id="@+id/area_tv"
|
android:id="@+id/area_tv"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="@dimen/dp_50"
|
android:layout_height="@dimen/dp_50"
|
||||||
android:drawableRight="@mipmap/select_county_img"
|
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:text="+86"
|
android:text="+86"
|
||||||
android:textColor="@color/color_333333"
|
android:textColor="@color/color_333333"
|
||||||
|
|||||||
@@ -60,7 +60,6 @@
|
|||||||
android:id="@+id/area_tv"
|
android:id="@+id/area_tv"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="@dimen/dp_50"
|
android:layout_height="@dimen/dp_50"
|
||||||
android:drawableRight="@mipmap/select_county_img"
|
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:text="+86"
|
android:text="+86"
|
||||||
android:textColor="@color/color_333333"
|
android:textColor="@color/color_333333"
|
||||||
|
|||||||
@@ -53,11 +53,13 @@ public class TeamNotificationHelper {
|
|||||||
break;
|
break;
|
||||||
case KickMember:
|
case KickMember:
|
||||||
case SUPER_TEAM_KICK:
|
case SUPER_TEAM_KICK:
|
||||||
text = buildKickMemberNotification(tid, ((MemberChangeAttachment) attachment), fromUser);
|
// text = buildKickMemberNotification(tid, ((MemberChangeAttachment) attachment), fromUser);
|
||||||
|
text = "";
|
||||||
break;
|
break;
|
||||||
case LeaveTeam:
|
case LeaveTeam:
|
||||||
case SUPER_TEAM_LEAVE:
|
case SUPER_TEAM_LEAVE:
|
||||||
text = buildLeaveTeamNotification(tid, fromUser);
|
// text = buildLeaveTeamNotification(tid, fromUser);
|
||||||
|
text = "";
|
||||||
break;
|
break;
|
||||||
case DismissTeam:
|
case DismissTeam:
|
||||||
case SUPER_TEAM_DISMISS:
|
case SUPER_TEAM_DISMISS:
|
||||||
|
|||||||
@@ -49,12 +49,12 @@ public interface ApiService {
|
|||||||
/**
|
/**
|
||||||
* 正式环境
|
* 正式环境
|
||||||
*/
|
*/
|
||||||
String URL = "https://api.letschat2023.com/";
|
// String URL = "https://api.letschat2023.com/";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 测试环境
|
* 测试环境
|
||||||
*/
|
*/
|
||||||
// String URL = "https://api-test.letschat2023.com/";
|
String URL = "https://api-test.letschat2023.com/";
|
||||||
|
|
||||||
|
|
||||||
String SUBSTATIONID = "1703655363476242434";
|
String SUBSTATIONID = "1703655363476242434";
|
||||||
|
|||||||
Reference in New Issue
Block a user