فهرست منبع

fix 优惠券不可用提示

zoujiajian 3 سال پیش
والد
کامیت
4e55da253d

+ 7 - 1
netflix-service/src/main/java/com/cyksj/service/coupon/impl/CouponFontServiceImpl.java

@@ -155,7 +155,13 @@ public class CouponFontServiceImpl implements CouponFontService {
 //					} else if (data.getUseScope() == Coupon.UseScope.orders) {
 //						data.setReason(String.format("%s下单时可使用", data.getReason()));
 //					}
-					data.setReason(I18nMessageUtil.getI18nMsg("coupon_sku_not_available_error"));
+					if (data.getUseScope() == Coupon.UseScope.renew) {
+						data.setReason(I18nMessageUtil.getI18nMsg("coupon_sku_not_available_renew_error"));
+					} else if (data.getUseScope() == Coupon.UseScope.orders) {
+						data.setReason(I18nMessageUtil.getI18nMsg("coupon_sku_not_available_order_error"));
+					} else {
+						data.setReason(I18nMessageUtil.getI18nMsg("coupon_sku_not_available_error"));
+					}
 				}
 
 				if (goodsDonSkuView.getType() == 2 && data.getType() == Coupon.Type.reduce) {

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

@@ -114,4 +114,6 @@ question_content_more_error=问题描述过多
 topic_more_error=标题过长
 required_info_error=请输入必填信息
 bind_account_phone_change_has_registered=您更换的手机号已注册,无法更换
-bind_account_detail_not_exist=您未有绑定账号信息
+bind_account_detail_not_exist=您未有绑定账号信息
+coupon_sku_not_available_renew_error=不能用于该规格续费
+coupon_sku_not_available_order_error=不能用于该规格下单

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

@@ -115,3 +115,5 @@ 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
+coupon_sku_not_available_renew_error=Cannot be used for renewal of this specification
+coupon_sku_not_available_order_error=Cannot be used to place an order for this specification

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

@@ -115,3 +115,5 @@ topic_more_error=長すぎるタイトル
 required_info_error=必要な情報を入力してください
 bind_account_phone_change_has_registered=ログイン用の電話番号が既に登録されています
 bind_account_detail_not_exist=アカウント情報が関連付けられていない
+coupon_sku_not_available_renew_error=本仕様の更新には使用できません
+coupon_sku_not_available_order_error=この仕様の注文には使用できません

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

@@ -115,3 +115,5 @@ topic_more_error=제목이 너무 긴 경우
 required_info_error=필수 정보를 입력하세요.
 bind_account_phone_change_has_registered=로그인용 휴대폰 번호가 이미 등록되어 있습니다
 bind_account_detail_not_exist=계정 정보가 없습니다.
+coupon_sku_not_available_renew_error=이 사양의 갱신에는 사용할 수 없습니다
+coupon_sku_not_available_order_error=이 사양을 주문하는 데 사용할 수 없습니다

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

@@ -114,4 +114,6 @@ question_content_more_error=问题描述过多
 topic_more_error=标题过长
 required_info_error=请输入必填信息
 bind_account_phone_change_has_registered=您更换的手机号已注册,无法更换
-bind_account_detail_not_exist=您未有绑定账号信息
+bind_account_detail_not_exist=您未有绑定账号信息
+coupon_sku_not_available_renew_error=不能用于该规格续费
+coupon_sku_not_available_order_error=不能用于该规格下单

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

@@ -114,4 +114,6 @@ question_content_more_error=問題描述過多
 topic_more_error=標題過長
 required_info_error=請輸入必填信息
 bind_account_phone_change_has_registered=你更換的手機號已註冊,無法更換
-bind_account_detail_not_exist=您未有綁定賬號信息
+bind_account_detail_not_exist=您未有綁定賬號信息
+coupon_sku_not_available_renew_error=不能用于該規格續費
+coupon_sku_not_available_order_error=不能用于該規格下單