aslan充值
This commit is contained in:
parent
39f9e02a96
commit
dcbbaede4c
@ -1116,9 +1116,7 @@ var default_api = 'https://api.global-interaction.com/';
|
|||||||
channelCode: payload && payload.channel_code,
|
channelCode: payload && payload.channel_code,
|
||||||
returnUrl: payload && payload.return_url,
|
returnUrl: payload && payload.return_url,
|
||||||
commandId: payload && payload.command_id,
|
commandId: payload && payload.command_id,
|
||||||
type:
|
type: configuredCommodityType(payload),
|
||||||
(activeAppConfig && activeAppConfig.type) ||
|
|
||||||
'GOLD',
|
|
||||||
language: readLanguageQuery() || 'en',
|
language: readLanguageQuery() || 'en',
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1346,10 +1346,9 @@
|
|||||||
account.display_user_id ||
|
account.display_user_id ||
|
||||||
t('recharge.accountConfirmed', 'Confirmed account');
|
t('recharge.accountConfirmed', 'Confirmed account');
|
||||||
nodes.accountMeta.textContent = accountMetaText(account);
|
nodes.accountMeta.textContent = accountMetaText(account);
|
||||||
nodes.accountRole.textContent =
|
nodes.accountRole.textContent = isFreightAccount(account)
|
||||||
account.audience_type === 'coin_seller'
|
? t('recharge.coinSeller', 'Coin seller')
|
||||||
? t('recharge.coinSeller', 'Coin seller')
|
: t('recharge.ordinaryUser', 'User');
|
||||||
: t('recharge.ordinaryUser', 'User');
|
|
||||||
setStatus(
|
setStatus(
|
||||||
nodes.accountStatus,
|
nodes.accountStatus,
|
||||||
t('recharge.accountConfirmed', 'Account confirmed')
|
t('recharge.accountConfirmed', 'Account confirmed')
|
||||||
@ -1657,6 +1656,7 @@
|
|||||||
display_user_id: targetDisplayUserID(),
|
display_user_id: targetDisplayUserID(),
|
||||||
product_id: createOrderProductID(product),
|
product_id: createOrderProductID(product),
|
||||||
user_id: currentAccountUserID(),
|
user_id: currentAccountUserID(),
|
||||||
|
commodity_type: currentAccountCommodityType(),
|
||||||
pay_country_id:
|
pay_country_id:
|
||||||
method.payCountryID ||
|
method.payCountryID ||
|
||||||
state.selectedPayCountryID,
|
state.selectedPayCountryID,
|
||||||
@ -2168,16 +2168,40 @@
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function isTrueFlag(value) {
|
||||||
|
return (
|
||||||
|
value === true ||
|
||||||
|
value === 1 ||
|
||||||
|
String(value || '').toLowerCase() === 'true'
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
function isFreightAccount(account) {
|
||||||
|
account = account || {};
|
||||||
|
var audienceType = String(
|
||||||
|
account.audience_type || account.audienceType || ''
|
||||||
|
).toLowerCase();
|
||||||
|
return (
|
||||||
|
audienceType === 'coin_seller' ||
|
||||||
|
audienceType === 'super_freight_agent' ||
|
||||||
|
isTrueFlag(account.freight_agent) ||
|
||||||
|
isTrueFlag(account.freightAgent) ||
|
||||||
|
isTrueFlag(account.super_freight_agent) ||
|
||||||
|
isTrueFlag(account.superFreightAgent)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
function currentAccountCommodityType() {
|
function currentAccountCommodityType() {
|
||||||
if (!state.context) return '';
|
if (!state.context) return '';
|
||||||
return (
|
var account = state.context.account || {};
|
||||||
|
var explicitType =
|
||||||
state.context.commodity_type ||
|
state.context.commodity_type ||
|
||||||
state.context.commodityType ||
|
state.context.commodityType ||
|
||||||
(state.context.account &&
|
account.commodity_type ||
|
||||||
(state.context.account.commodity_type ||
|
account.commodityType ||
|
||||||
state.context.account.commodityType)) ||
|
'';
|
||||||
''
|
if (explicitType) return explicitType;
|
||||||
);
|
return isFreightAccount(account) ? 'FREIGHT_GOLD' : '';
|
||||||
}
|
}
|
||||||
|
|
||||||
function orderStatusUserID() {
|
function orderStatusUserID() {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user