feat(dashboard): 从专业财富观角度重构升级后台收益与分成统计仪表盘
这个提交包含在:
@@ -10,7 +10,13 @@ class PartnerConfig
|
||||
public static function get($key, $default = null)
|
||||
{
|
||||
$code = strpos($key, 'shop.commission.') === 0 ? $key : 'shop.commission.' . $key;
|
||||
$value = sheep_config($code);
|
||||
if (!function_exists('sheep_config')) {
|
||||
$helper = defined('ROOT_PATH') ? (ROOT_PATH . 'addons/shopro/helper/helper.php') : (__DIR__ . '/../../helper/helper.php');
|
||||
if (file_exists($helper)) {
|
||||
require_once $helper;
|
||||
}
|
||||
}
|
||||
$value = function_exists('sheep_config') ? sheep_config($code) : null;
|
||||
if ($value === null || $value === '') {
|
||||
return $default;
|
||||
}
|
||||
@@ -84,6 +90,8 @@ class PartnerConfig
|
||||
'madow_share' => '每日分红马豆',
|
||||
'voucher_grant' => '兑换券发放',
|
||||
'voucher_release' => '兑换券释放',
|
||||
'voucher_consume' => '兑换券消费抵扣',
|
||||
'voucher_consume_refund' => '兑换券退款退还',
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
在新工单中引用
屏蔽一个用户