多语言-修改VIP返回多语言特权
This commit is contained in:
@@ -11,7 +11,7 @@ public enum I18nAlertEnum {
|
||||
|
||||
//许愿之星
|
||||
PROMISE_STAR_SCREEN("恭喜被幸運神附體的 %s,在許願之星獲得了禮物【%s(%s鑽)】!"),
|
||||
PROMISE_STAR_WINNER_SECRETARY("恭喜你被幸運之神眷顧!在許願之星獲得[%s(%d鑽)],獎勵已發放至背包,快去使用吧!"),
|
||||
PROMISE_STAR_WINNER_SECRETARY("恭喜你被幸運之神眷顧!在許願之星獲得[%s(%s鑽)],獎勵已發放至背包,快去使用吧!"),
|
||||
PROMISE_STAR_OTHER_SECRETARY("你參与的[%s]的許願之星活動的本輪結果已產出,很遺憾幸運之神與你擦肩而過,下次請再接再厲哦~"),
|
||||
|
||||
//星级厨房
|
||||
|
@@ -10,6 +10,7 @@
|
||||
*/
|
||||
package com.accompany.business.model.vip;
|
||||
|
||||
import com.accompany.core.annotation.I18n;
|
||||
import com.accompany.core.annotation.I18nAdmin;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
@@ -38,6 +39,7 @@ public class VipAuthInfo {
|
||||
@ApiModelProperty(value = "特权类型:1. 铭牌 2. 头饰 3. 座驾 4. 礼物 5.资料卡 6. 财富值经验加成 7.表情 8.麦序光圈 9.麦位昵称颜色 10. 好友红名")
|
||||
private Byte authType;
|
||||
@I18nAdmin(className = "VipAuthInfo", fieldName = "authName")
|
||||
@I18n(className = "VipAuthInfo", fieldName = "authName")
|
||||
@TableField(value = "auth_name")
|
||||
@ApiModelProperty(value = "特权名称")
|
||||
private String authName;
|
||||
@@ -45,10 +47,12 @@ public class VipAuthInfo {
|
||||
@ApiModelProperty(value = "特权icon")
|
||||
private String authIcon;
|
||||
@I18nAdmin(className = "VipAuthInfo", fieldName = "authDesc")
|
||||
@I18n(className = "VipAuthInfo", fieldName = "authDesc")
|
||||
@TableField(value = "auth_desc")
|
||||
@ApiModelProperty(value = "特权短描述")
|
||||
private String authDesc;
|
||||
@I18nAdmin(className = "VipAuthInfo", fieldName = "authIntro")
|
||||
@I18n(className = "VipAuthInfo", fieldName = "authIntro")
|
||||
@TableField(value = "auth_intro")
|
||||
@ApiModelProperty(value = "特权长描述")
|
||||
private String authIntro;
|
||||
|
@@ -23,6 +23,7 @@ def baidu_translate(word):
|
||||
'q': word,
|
||||
'from': 'cht',
|
||||
'to': 'ara',
|
||||
# 'to': 'en',
|
||||
'appid': appid,
|
||||
'salt': salt,
|
||||
'sign': sign
|
||||
@@ -109,4 +110,29 @@ if __name__ == '__main__':
|
||||
except Exception as e:
|
||||
print(e)
|
||||
continue
|
||||
# for m in msgs:
|
||||
# try:
|
||||
# if len(m) == 0:
|
||||
# continue
|
||||
# arr = m.split('("')
|
||||
# str1: str = ''
|
||||
# if len(arr) > 0:
|
||||
# str1 = arr[0]
|
||||
# str2: str = ''
|
||||
# if len(arr) > 1:
|
||||
# str2 = arr[1]
|
||||
# if len(str2) == 0:
|
||||
# continue
|
||||
# else:
|
||||
# str2 = str2.split(')')[0]
|
||||
# str2 = str2.replace('"', '')
|
||||
# # content = str2
|
||||
# content = baidu_translate(str2)
|
||||
# if len(str1) > 0 and '(' in str1:
|
||||
# str1 = str1.split('(')[0]
|
||||
# print('BusiStatus.', str1, '="', content, '"')
|
||||
# time.sleep(1)
|
||||
# except Exception as e:
|
||||
# print(e)
|
||||
# continue
|
||||
|
||||
|
Reference in New Issue
Block a user