推广分佣功能开发
This commit is contained in:
@@ -13,7 +13,7 @@ class AccountLogService
|
||||
/** @var AccountLogs */
|
||||
public static $Model = AccountLogs::class;
|
||||
|
||||
//日志类型 1充值 2消费 3收益 4退款 5提现 6冻结 7解冻 9后台操作
|
||||
//日志类型 1充值 2消费 3收益 4退款 5提现 6冻结 7解冻 8推广佣金 9后台操作
|
||||
const TYPE_RECHARGE = 1;
|
||||
const TYPE_CONSUME = 2;
|
||||
const TYPE_PROFIT = 3;
|
||||
@@ -21,6 +21,7 @@ class AccountLogService
|
||||
const TYPE_WITHDRAW = 5;
|
||||
const TYPE_FREEZE = 6;
|
||||
const TYPE_UNFREEZE = 7;
|
||||
const TYPE_COMMISSION = 8;
|
||||
const TYPE_ADMIN_OPERATE = 9;
|
||||
|
||||
const TYPE_MAP = [
|
||||
@@ -31,6 +32,7 @@ class AccountLogService
|
||||
self::TYPE_WITHDRAW => '提现',
|
||||
self::TYPE_FREEZE => '冻结',
|
||||
self::TYPE_UNFREEZE => '解冻',
|
||||
self::TYPE_COMMISSION => '推广佣金',
|
||||
self::TYPE_ADMIN_OPERATE => '后台操作',
|
||||
];
|
||||
|
||||
@@ -66,7 +68,7 @@ class AccountLogService
|
||||
* @param $user_id
|
||||
* @param $amount
|
||||
* @param $log
|
||||
* @param $type int 日志类型:1充值 2消费 3收益 4退款 5提现 6冻结 7解冻 9后台操作
|
||||
* @param $type int 日志类型:1充值 2消费 3收益 4退款 5提现 6冻结 7解冻 8推广佣金 9后台操作
|
||||
* @param $credit_type int 信誉分日志类型:1=任务完成奖励,2=任务失败扣除,3=拒绝接单扣除,4=放弃签约扣除,5=系统退回,9=后台操作
|
||||
* @param $inc_or_exp 1=收入 2支出
|
||||
* @param int $refer_id
|
||||
@@ -75,7 +77,7 @@ class AccountLogService
|
||||
* @return mixed
|
||||
* @throws \Exception
|
||||
*/
|
||||
public static function addLog($account_type, $user_id, $amount, $log, int $type, int $credit_type, $inc_or_exp, int $refer_id = 0, int $total_amount = 0, $percent = 0)
|
||||
public static function addLog($account_type, $user_id, $amount, $log, int $type, int $credit_type, $inc_or_exp, int $refer_id = 0, $total_amount = 0, $percent = 0)
|
||||
{
|
||||
$data = [
|
||||
'account_type' => $account_type,
|
||||
|
||||
Reference in New Issue
Block a user