Bladeren bron

fix 同步更换登录手机号接口

zoujiajian 3 jaren geleden
bovenliggende
commit
50bbc8a273

+ 5 - 5
netflix-service/src/main/java/com/cyksj/service/market/task/impl/BindTaskServiceImpl.java

@@ -405,13 +405,13 @@ public class BindTaskServiceImpl implements BindTaskService {
 			User changeUser = userMapper.selectOne(Wrappers.lambdaQuery(User.class)
 					.eq(User::getLoginPhone, account).last("limit 1"));
 			if (changeUser != null) {
-				throw BusinessRuntimeException.getInstance("您更换的手机号已注册,无法更换");
+				throw BusinessRuntimeException.getInstance(I18nMessageUtil.getI18nMsg("bind_account_phone_change_has_registered"));
 			}
 			//是否已绑定
 			UserBindDetail changeUserBindDetail = userBindDetailMapper.selectOne(Wrappers.lambdaQuery(UserBindDetail.class)
 					.eq(UserBindDetail::getPhone, account).last("limit 1"));
 			if (changeUserBindDetail != null) {
-				throw BusinessRuntimeException.getInstance("您更换的手机号已被绑定,无法更换");
+				throw BusinessRuntimeException.getInstance(I18nMessageUtil.getI18nMsg("bind_account_phone_other_bind_error"));
 			}
 			//校验手机号
 			checkPhoneCode(account, code);
@@ -437,15 +437,15 @@ public class BindTaskServiceImpl implements BindTaskService {
 							.or().eq(UserBindDetail::getEmailUserId, userId))
 					.last("limit 1"));
 			if (userBindDetail == null) {
-				throw BusinessRuntimeException.getInstance("你未有绑定其他账号");
+				throw BusinessRuntimeException.getInstance(I18nMessageUtil.getI18nMsg("bind_account_detail_not_exist"));
 			}
 			if (StrUtil.isEmpty(userBindDetail.getPhone())) {
-				throw BusinessRuntimeException.getInstance("您未绑定手机号,无法更换");
+				throw BusinessRuntimeException.getInstance(I18nMessageUtil.getI18nMsg("bind_account_phone_not_exist"));
 			}
 			String phone = userBindDetail.getPhone();
 			phoneUser = userMapper.selectOne(Wrappers.lambdaQuery(User.class)
 					.eq(User::getLoginPhone, phone).last("limit 1"));
-			if (phoneUser == null) throw BusinessRuntimeException.getInstance("你绑定的手机号未注册");
+			if (phoneUser == null) throw BusinessRuntimeException.getInstance(I18nMessageUtil.getI18nMsg("bind_account_phone_not_register"));
 			phoneUserId = phoneUser.getId();
 			userBindDetail.setPhone(account);
 			userBindDetail.setPhoneUserId(phoneUserId);

+ 3 - 1
netflix-web/src/main/resources/i18n/yhlx.properties

@@ -112,4 +112,6 @@ work_order_already_submitted_error=您已提交过该车票工单
 picture_more_error=图片过多
 question_content_more_error=问题描述过多
 topic_more_error=标题过长
-required_info_error=请输入必填信息
+required_info_error=请输入必填信息
+bind_account_phone_change_has_registered=您更换的手机号已注册,无法更换
+bind_account_detail_not_exist=您未有绑定账号信息

+ 2 - 0
netflix-web/src/main/resources/i18n/yhlx_en_US.properties

@@ -113,3 +113,5 @@ picture_more_error=Too many pictures
 question_content_more_error=Excessive problem description content
 topic_more_error=The title is too long.
 required_info_error=Please enter the required information
+bind_account_phone_change_has_registered=The phone number for login is already registered
+bind_account_detail_not_exist=You have not bound your account information

+ 2 - 0
netflix-web/src/main/resources/i18n/yhlx_ja_JP.properties

@@ -113,3 +113,5 @@ picture_more_error=写真が多すぎる
 question_content_more_error=問題の説明が多すぎる
 topic_more_error=長すぎるタイトル
 required_info_error=必要な情報を入力してください
+bind_account_phone_change_has_registered=ログイン用の電話番号が既に登録されています
+bind_account_detail_not_exist=アカウント情報が関連付けられていない

+ 2 - 0
netflix-web/src/main/resources/i18n/yhlx_ko_KR.properties

@@ -113,3 +113,5 @@ picture_more_error=너무 많은 사진
 question_content_more_error=문제에 대한 설명이 너무 많음
 topic_more_error=제목이 너무 긴 경우
 required_info_error=필수 정보를 입력하세요.
+bind_account_phone_change_has_registered=로그인용 휴대폰 번호가 이미 등록되어 있습니다
+bind_account_detail_not_exist=계정 정보가 없습니다.

+ 3 - 1
netflix-web/src/main/resources/i18n/yhlx_zh_CN.properties

@@ -112,4 +112,6 @@ work_order_already_submitted_error=您已提交过该车票工单
 picture_more_error=图片过多
 question_content_more_error=问题描述过多
 topic_more_error=标题过长
-required_info_error=请输入必填信息
+required_info_error=请输入必填信息
+bind_account_phone_change_has_registered=您更换的手机号已注册,无法更换
+bind_account_detail_not_exist=您未有绑定账号信息

+ 3 - 1
netflix-web/src/main/resources/i18n/yhlx_zh_HK.properties

@@ -112,4 +112,6 @@ work_order_already_submitted_error=您已提交過該車票工單
 picture_more_error=圖片過多
 question_content_more_error=問題描述過多
 topic_more_error=標題過長
-required_info_error=請輸入必填信息
+required_info_error=請輸入必填信息
+bind_account_phone_change_has_registered=你更換的手機號已註冊,無法更換
+bind_account_detail_not_exist=您未有綁定賬號信息