feat(dmepa): 全局统一规范DMEPA命名并优化游客与品酒师身份显示
这个提交包含在:
@@ -244,7 +244,7 @@ class Order extends Common
|
||||
if ($type === 'voucher_grant') {
|
||||
$amountText = number_format($baseAmount, 2, '.', '') . ' 个';
|
||||
} elseif ($madow > 0) {
|
||||
$amountText = \addons\shopro\service\partner\IdentityService::formatMadow($madow) . ' 马豆';
|
||||
$amountText = \addons\shopro\service\partner\IdentityService::formatMadow($madow) . ' dmepa';
|
||||
} elseif ($amount > 0) {
|
||||
$amountText = '¥' . number_format($amount, 2, '.', '');
|
||||
} else {
|
||||
@@ -379,7 +379,7 @@ class Order extends Common
|
||||
}
|
||||
$platform = $platRows[0];
|
||||
$amountText = $type === 'madow_share'
|
||||
? \addons\shopro\service\partner\IdentityService::formatMadow($platMadow) . ' 马豆'
|
||||
? \addons\shopro\service\partner\IdentityService::formatMadow($platMadow) . ' dmepa'
|
||||
: '¥' . number_format($platAmount, 2, '.', '');
|
||||
|
||||
$items[] = [
|
||||
@@ -402,7 +402,7 @@ class Order extends Common
|
||||
'settle_date' => $settleDate,
|
||||
'status' => 1,
|
||||
'status_text' => '已入账',
|
||||
'unit' => $type === 'madow_share' ? '马豆' : '元',
|
||||
'unit' => $type === 'madow_share' ? 'dmepa' : '元',
|
||||
'formula' => (string) ($platform->formula ?? ''),
|
||||
'skip_reason_text' => '',
|
||||
'tip' => '当日无人参与,奖池进平台',
|
||||
@@ -429,13 +429,13 @@ class Order extends Common
|
||||
'each_madow' => $eachMadow,
|
||||
'total_amount' => number_format($totalAmount, 2, '.', ''),
|
||||
'total_madow' => \addons\shopro\service\partner\IdentityService::formatMadow($totalMadow),
|
||||
'amount_text' => $type === 'madow_share' ? ($eachMadow . ' 马豆/人') : ('¥' . $eachAmount . '/人'),
|
||||
'amount_text' => $type === 'madow_share' ? ($eachMadow . ' dmepa/人') : ('¥' . $eachAmount . '/人'),
|
||||
'wallet_type' => $type === 'madow_share' ? 'madow' : \addons\shopro\service\partner\PartnerConfig::rewardWalletType(),
|
||||
'wallet_type_text' => $type === 'madow_share' ? '分红马豆' : (\addons\shopro\service\partner\PartnerConfig::rewardWalletType() === 'money' ? '商城余额' : '佣金钱包'),
|
||||
'wallet_type_text' => $type === 'madow_share' ? '分红dmepa' : (\addons\shopro\service\partner\PartnerConfig::rewardWalletType() === 'money' ? '商城余额' : '佣金钱包'),
|
||||
'settle_date' => $settleDate,
|
||||
'status' => 1,
|
||||
'status_text' => '已入账',
|
||||
'unit' => $type === 'madow_share' ? '马豆' : '元',
|
||||
'unit' => $type === 'madow_share' ? 'dmepa' : '元',
|
||||
'formula' => (string) ($first->formula ?? ''),
|
||||
'skip_reason_text' => '',
|
||||
'tip' => '日结均分(不列出参与用户名单)',
|
||||
|
||||
在新工单中引用
屏蔽一个用户