mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-10-28 13:31:04 +00:00
fix(积分分析): 来源/消耗兼容新旧 type,并去掉抽奖插件相关扇区
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
6ca46b0e1d
commit
7293a7eb4d
@ -211,15 +211,21 @@ class StorePointRecordServices extends BaseService
|
||||
}
|
||||
|
||||
/**
|
||||
* 订单来源
|
||||
* 积分来源分析(不含抽奖插件;赠送类兼容新旧落库 type)
|
||||
* @param $where
|
||||
* @return array
|
||||
*/
|
||||
public function getChannel($where)
|
||||
{
|
||||
$bing_xdata = ['订单赠送', '商品赠送', '后台赠送', '签到获得', '九宫格抽奖'];
|
||||
$color = ['#64a1f4', '#3edeb5', '#70869f', '#ffc653', '#fc7d6a'];
|
||||
$data = ['gain', 'product_gain', 'system_add', 'sign', 'lottery_add'];
|
||||
// billIntegralIncome 落库为 order_give_integral / pay_give_integral;旧 income 链路为 gain / product_gain
|
||||
$bing_xdata = ['订单赠送', '商品赠送', '后台赠送', '签到获得'];
|
||||
$color = ['#64a1f4', '#3edeb5', '#70869f', '#ffc653'];
|
||||
$data = [
|
||||
['gain', 'order_give_integral'],
|
||||
['product_gain', 'pay_give_integral'],
|
||||
['system_add'],
|
||||
['sign'],
|
||||
];
|
||||
$bing_data = [];
|
||||
foreach ($data as $key => $item) {
|
||||
$bing_data[] = [
|
||||
@ -242,15 +248,20 @@ class StorePointRecordServices extends BaseService
|
||||
}
|
||||
|
||||
/**
|
||||
* 订单类型
|
||||
* 积分消耗分析(不含抽奖插件;退款收回兼容新旧落库 type)
|
||||
* @param $where
|
||||
* @return array
|
||||
*/
|
||||
public function getType($where)
|
||||
{
|
||||
$bing_xdata = ['订单抵扣', '九宫格抽奖', '后台减少', '退款退回', '兑换商品'];
|
||||
$color = ['#64a1f4', '#3edeb5', '#70869f', '#ffc653', '#fc7d6a'];
|
||||
$data = ['deduction', 'lottery_use', 'system_sub', 'order_deduction', 'storeIntegral_use'];
|
||||
$bing_xdata = ['订单抵扣', '后台减少', '退款退回', '兑换商品'];
|
||||
$color = ['#64a1f4', '#70869f', '#ffc653', '#fc7d6a'];
|
||||
$data = [
|
||||
['deduction', 'product_deduction'],
|
||||
['system_sub'],
|
||||
['order_deduction', 'order_gain_refund', 'product_gain_refund'],
|
||||
['storeIntegral_use'],
|
||||
];
|
||||
$bing_data = [];
|
||||
foreach ($data as $key => $item) {
|
||||
$bing_data[] = [
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user