6
0
Fork 0
release
QQ 2021-12-31 14:55:26 +08:00
parent 08c3e04b6b
commit a2c5db5500
3 changed files with 3 additions and 1 deletions

View File

@ -11,6 +11,7 @@ class BalanceLog extends Model
use Filterable;
use HasDateTimeFormatter;
public const ACTION_MIGRATE_OLD = 0; // 老数据迁移
public const ACTION_ORDER_PAID = 1;
public const ACTION_ORDER_CANCELLED = 2;
public const ACTION_ORDER_AFTER_SALE = 3;

View File

@ -11,6 +11,7 @@ class WalletLog extends Model
use Filterable;
use HasDateTimeFormatter;
public const ACTION_MIGRATE_OLD = 0; // 老数据迁移
public const ACTION_ORDER_PAID = 1;
public const ACTION_ORDER_CANCELLED = 2;
public const ACTION_ORDER_AFTER_SALE = 3;

View File

@ -282,7 +282,7 @@ class DistributionPreIncomeJobService
$preIncome = $user->inviterInfo->distributionPreIncomes()->create([
'order_id' => $order->id,
'type' => DistributionPreIncome::TYPE_PRICE_DIFF,
'agent_level' => $user->agent_level,
'agent_level' => $user->inviterInfo->agent_level,
'total_amount' => $totalDiffPrice,
'total_sales_value' => $totalSalesValue,
'total_revenue' => round($totalRevenue, 2),