Skip to content

Commit fdb0d52

Browse files
committed
feat: release mobile 5.5.1
1 parent e767aa3 commit fdb0d52

17 files changed

Lines changed: 712 additions & 274 deletions

‎android/app/build.gradle‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ android {
1313
applicationId "com.quantdinger.mobile"
1414
minSdkVersion rootProject.ext.minSdkVersion
1515
targetSdkVersion rootProject.ext.targetSdkVersion
16-
versionCode 207
17-
versionName "2.0.7"
16+
versionCode 551
17+
versionName "5.5.1"
1818
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
1919
aaptOptions {
2020
// Files and dirs to omit from the packaged assets dir, modified to accommodate modern web apps.

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "quantdinger-mobile",
33
"private": true,
4-
"version": "2.0.7",
4+
"version": "5.5.1",
55
"packageManager": "pnpm@11.19.0",
66
"license": "SEE LICENSE IN LICENSE",
77
"type": "module",

‎src/api/index.js‎

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,14 @@ const normalizeTrade = (raw = {}) => ({
268268
const localizedApiMessage = (message, fallbackKey = 'api_errors.request_failed') => {
269269
const value = String(message || '').trim()
270270
if (value) {
271+
const referralRewardErrors = {
272+
invalid_withdrawal_address: 'referral_rewards.invalidAddress',
273+
withdrawal_below_minimum: 'referral_rewards.invalidAmount',
274+
insufficient_reward_balance: 'referral_rewards.invalidAmount',
275+
unsupported_withdrawal_channel: 'referral_rewards.noCurrency',
276+
referral_program_disabled: 'referral_rewards.loadFailed'
277+
}
278+
if (referralRewardErrors[value]) return t(referralRewardErrors[value])
271279
if (/^(no data found[.!]?|No K-line data)$/i.test(value)) return t('api_errors.no_data')
272280
if (/^[a-zA-Z_]\w*(?:\.\w+)+$/.test(value)) {
273281
const translated = t(value)
@@ -1067,6 +1075,23 @@ export const globalMarketApi = {
10671075
}
10681076

10691077
export const billingApi = {
1078+
getReferralRewards: async (params = {}) => {
1079+
const res = await http.get('/api/billing/referral-rewards', { params })
1080+
return {
1081+
...res,
1082+
data: {
1083+
enabled: Boolean(res.data?.enabled),
1084+
account: res.data?.account || {},
1085+
ledger: ensureArray(res.data?.ledger),
1086+
ledger_total: Number(res.data?.ledger_total || 0),
1087+
withdrawals: ensureArray(res.data?.withdrawals),
1088+
channels: ensureArray(res.data?.channels),
1089+
minimum_withdrawal: Number(res.data?.minimum_withdrawal || 0),
1090+
rates: ensureArray(res.data?.rates).map(Number).filter(Number.isFinite)
1091+
}
1092+
}
1093+
},
1094+
createReferralWithdrawal: (payload) => http.post('/api/billing/referral-rewards/withdrawals', payload),
10701095
/**
10711096
* v3.0.6+ — list enabled USDT chains so the chain picker can render
10721097
* before the order is created. Chains without a configured receiving

‎src/locales/appearance.js‎

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎src/locales/index.js‎

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import strategyRuntime from './strategy-runtime'
1515
import liveDetail from './live-detail'
1616
import appearance from './appearance'
1717
import completeness from './completeness'
18+
import referralRewards from './referral-rewards'
1819
import {
1920
Locale as VantLocale
2021
} from 'vant'
@@ -71,11 +72,11 @@ const i18n = createI18n({
7172
locale: initialLocale,
7273
fallbackLocale: 'en-US',
7374
messages: {
74-
'zh-CN': { ...zhCN, professional_report: professionalReport['zh-CN'], v2: v2['zh-CN'], audit: audit['zh-CN'], account_ui: accountUi['zh-CN'], profile_detail: profileDetail['zh-CN'], live_detail: liveDetail['zh-CN'], appearance: appearance['zh-CN'], ...expandKeys(eventRadar['zh-CN']), ...expandKeys(strategyRuntime['zh-CN']), ai_chat: {...aiChat['en-US'],...aiChat['zh-CN']} },
75-
'zh-TW': { ...mergeLocale(zhTW, expandKeys(completeness['zh-TW'])), professional_report: professionalReport['zh-TW'], v2: v2['zh-TW'], audit: audit['zh-TW'], account_ui: accountUi['zh-TW'], profile_detail: profileDetail['zh-TW'], live_detail: liveDetail['zh-TW'], appearance: appearance['zh-TW'], ...expandKeys(eventRadar['zh-TW']), ...expandKeys(strategyRuntime['zh-TW']), ai_chat: {...aiChat['en-US'],...aiChat['zh-TW']} },
76-
'en-US': { ...enUS, professional_report: professionalReport['en-US'], v2: v2['en-US'], audit: audit['en-US'], account_ui: accountUi['en-US'], profile_detail: profileDetail['en-US'], live_detail: liveDetail['en-US'], appearance: appearance['en-US'], ...expandKeys(eventRadar['en-US']), ...expandKeys(strategyRuntime['en-US']), ai_chat: {...aiChat['en-US'],...aiChat['en-US']} },
77-
'ja-JP': { ...mergeLocale(jaJP, expandKeys(completeness['ja-JP'])), professional_report: professionalReport['ja-JP'], v2: v2['ja-JP'], audit: audit['ja-JP'], account_ui: accountUi['ja-JP'], profile_detail: profileDetail['ja-JP'], live_detail: liveDetail['ja-JP'], appearance: appearance['ja-JP'], ...expandKeys(eventRadar['ja-JP']), ...expandKeys(strategyRuntime['ja-JP']), ai_chat: {...aiChat['en-US'],...aiChat['ja-JP']} },
78-
'ko-KR': { ...mergeLocale(koKR, expandKeys(completeness['ko-KR'])), professional_report: professionalReport['ko-KR'], v2: v2['ko-KR'], audit: audit['ko-KR'], account_ui: accountUi['ko-KR'], profile_detail: profileDetail['ko-KR'], live_detail: liveDetail['ko-KR'], appearance: appearance['ko-KR'], ...expandKeys(eventRadar['ko-KR']), ...expandKeys(strategyRuntime['ko-KR']), ai_chat: {...aiChat['en-US'],...aiChat['ko-KR']} }
75+
'zh-CN': { ...zhCN, professional_report: professionalReport['zh-CN'], v2: v2['zh-CN'], audit: audit['zh-CN'], account_ui: accountUi['zh-CN'], profile_detail: profileDetail['zh-CN'], referral_rewards: referralRewards['zh-CN'], live_detail: liveDetail['zh-CN'], appearance: appearance['zh-CN'], ...expandKeys(eventRadar['zh-CN']), ...expandKeys(strategyRuntime['zh-CN']), ai_chat: {...aiChat['en-US'],...aiChat['zh-CN']} },
76+
'zh-TW': { ...mergeLocale(zhTW, expandKeys(completeness['zh-TW'])), professional_report: professionalReport['zh-TW'], v2: v2['zh-TW'], audit: audit['zh-TW'], account_ui: accountUi['zh-TW'], profile_detail: profileDetail['zh-TW'], referral_rewards: referralRewards['zh-TW'], live_detail: liveDetail['zh-TW'], appearance: appearance['zh-TW'], ...expandKeys(eventRadar['zh-TW']), ...expandKeys(strategyRuntime['zh-TW']), ai_chat: {...aiChat['en-US'],...aiChat['zh-TW']} },
77+
'en-US': { ...enUS, professional_report: professionalReport['en-US'], v2: v2['en-US'], audit: audit['en-US'], account_ui: accountUi['en-US'], profile_detail: profileDetail['en-US'], referral_rewards: referralRewards['en-US'], live_detail: liveDetail['en-US'], appearance: appearance['en-US'], ...expandKeys(eventRadar['en-US']), ...expandKeys(strategyRuntime['en-US']), ai_chat: {...aiChat['en-US'],...aiChat['en-US']} },
78+
'ja-JP': { ...mergeLocale(jaJP, expandKeys(completeness['ja-JP'])), professional_report: professionalReport['ja-JP'], v2: v2['ja-JP'], audit: audit['ja-JP'], account_ui: accountUi['ja-JP'], profile_detail: profileDetail['ja-JP'], referral_rewards: referralRewards['ja-JP'], live_detail: liveDetail['ja-JP'], appearance: appearance['ja-JP'], ...expandKeys(eventRadar['ja-JP']), ...expandKeys(strategyRuntime['ja-JP']), ai_chat: {...aiChat['en-US'],...aiChat['ja-JP']} },
79+
'ko-KR': { ...mergeLocale(koKR, expandKeys(completeness['ko-KR'])), professional_report: professionalReport['ko-KR'], v2: v2['ko-KR'], audit: audit['ko-KR'], account_ui: accountUi['ko-KR'], profile_detail: profileDetail['ko-KR'], referral_rewards: referralRewards['ko-KR'], live_detail: liveDetail['ko-KR'], appearance: appearance['ko-KR'], ...expandKeys(eventRadar['ko-KR']), ...expandKeys(strategyRuntime['ko-KR']), ai_chat: {...aiChat['en-US'],...aiChat['ko-KR']} }
7980
}
8081
})
8182

‎src/locales/profile-detail.js‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ const rows = {
7272
more: ['原始数据','原始資料','Raw data','元データ','원본 데이터'],
7373
moreReferrals: ['加载更多','載入更多','Load more','さらに読み込む','더 보기'],
7474
paid: ['{count} 积分','{count} 積分','{count} credits','{count} ポイント','{count} 포인트'],
75+
showEmail: ['显示邮箱','顯示信箱','Show email','メールを表示','이메일 표시'],
76+
hideEmail: ['隐藏邮箱','隱藏信箱','Hide email','メールを非表示','이메일 숨기기'],
7577
long: ['多仓','多倉','Long','買い','롱'],
7678
short: ['空仓','空倉','Short','売り','숏']
7779
}

0 commit comments

Comments
 (0)