50 lines
1.4 KiB
PHP
Executable File
50 lines
1.4 KiB
PHP
Executable File
<?php
|
|
|
|
namespace App\Model\Customer;
|
|
|
|
use App\Enums\BillType;
|
|
use App\Enums\BoolEnum;
|
|
use App\Enums\OrderType;
|
|
use App\Enums\PayState;
|
|
use App\Exceptions\JingCaiException;
|
|
use App\Model\BaseModel;
|
|
use App\Model\Order;
|
|
use App\Model\Seller\Seller;
|
|
use App\Model\Trade;
|
|
use Illuminate\Support\Facades\DB;
|
|
use Illuminate\Support\Facades\Log;
|
|
|
|
class CustomerBill extends BaseModel
|
|
{
|
|
public static function getBillTitle($billType)
|
|
{
|
|
switch ($billType) {
|
|
case BillType::RECHARGE:
|
|
return '充值';
|
|
case BillType::BETTING:
|
|
return '代购支付';
|
|
case BillType::PRIZE:
|
|
return '返奖';
|
|
case BillType::WITHDRAW:
|
|
return '提现';
|
|
case BillType::REFUND:
|
|
return '代购退款';
|
|
case BillType::AGENT:
|
|
return '销售佣金';
|
|
case BillType::UNION_BROKERAGE:
|
|
return '合买佣金';
|
|
case BillType::FADAN_BROKERAGE:
|
|
return '发单佣金';
|
|
case BillType::SELLER_INCR:
|
|
return '异常业务加款';
|
|
case BillType::SELLER_REDUCE:
|
|
return '异常业务扣款';
|
|
case BillType::UNION_KEEP_BACK:
|
|
return '合买保底退款';
|
|
case BillType::GENDAN_BROKERAGE:
|
|
return '跟单佣金';
|
|
}
|
|
return '';
|
|
}
|
|
}
|