1.返补充值佣金
This commit is contained in:
parent
f183cb4087
commit
bce68f2759
@ -17,6 +17,7 @@ use app\common\model\RechargeOrder;
|
||||
use app\common\model\shop\Shop;
|
||||
use think\Exception;
|
||||
use think\facade\Db;
|
||||
use app\common\logic\PayNotifyLogic;
|
||||
use app\common\enum\PayEnum;
|
||||
|
||||
class BillionsLogic extends Logic
|
||||
@ -559,6 +560,12 @@ class BillionsLogic extends Logic
|
||||
}
|
||||
$subsidy = round($subsidy_ufl + $ufl,8);
|
||||
}
|
||||
$paynot = new PayNotifyLogic();
|
||||
$type = "billions_rechange";
|
||||
$order['order_amount'] = $money;
|
||||
$order['order_sn'] = $order_sn;
|
||||
$order['id'] = $post['id'];
|
||||
$paynot->atcl($order,$store_subsidy,$type,$user,$first_leader,$other_leader);
|
||||
}
|
||||
// $first_msg = Db::name("user_billions")->where("user_id",$user['first_leader'])->where("state",0)->select()->toArray();
|
||||
$billions_msg = Db::name("user_billions")->where("state",0)->select()->toArray();
|
||||
|
||||
@ -1012,6 +1012,14 @@ class PayNotifyLogic
|
||||
$source_type1 = AccountLog::electrodeless_local_inc_earnings;
|
||||
$remark2 = "无极公司本地生活用户佣金";
|
||||
$source_type2 = AccountLog::company_electrodeless_local_inc_earnings;
|
||||
}
|
||||
if($type == "billions_rechange"){
|
||||
$remark = "返补充值佣金";
|
||||
$source_type = AccountLog::billions_rechange_inc_earnings;
|
||||
$remark1 = "无极返补充值佣金";
|
||||
$source_type1 = AccountLog::electrodeless_billions_rechange_inc_earnings;
|
||||
$remark2 = "无极公司返补充值佣金";
|
||||
$source_type2 = AccountLog::company_electrodeless_billions_rechange_inc_earnings;
|
||||
}
|
||||
if($user['first_leader']>0){
|
||||
$first_leader_percent = round($order['order_amount'] * $first_leader / 100, 8);
|
||||
|
||||
@ -63,6 +63,10 @@ class AccountLog extends Models
|
||||
const local_user_inc_earnings = 413;//本地生活推广用户支付佣金增加
|
||||
const electrodeless_local_inc_earnings = 414;//无极会员推广本地生活支付佣金增加
|
||||
const company_electrodeless_local_inc_earnings = 415;//无极公司推广本地生活支付佣金增加
|
||||
|
||||
const billions_rechange_inc_earnings = 416;//返补充值佣金
|
||||
const electrodeless_billions_rechange_inc_earnings = 417;//无极返补充值佣金
|
||||
const company_electrodeless_billions_rechange_inc_earnings = 418;//无极公司返补充值佣金
|
||||
const money_change = [ //余额变动类型
|
||||
self::admin_add_money,self::admin_reduce_money,self::recharge_money,self::balance_pay_order,self::cancel_order_refund,self::after_sale_refund
|
||||
, self::withdraw_to_balance,self::user_transfer_inc_balance, self::user_transfer_dec_balance, self::integral_order_dec_balance, self::integral_order_inc_balance
|
||||
@ -95,7 +99,10 @@ class AccountLog extends Models
|
||||
self::company_electrodeless_rechange_inc_earnings,//无极公司推广充值佣金增加
|
||||
self::local_user_inc_earnings,//本地生活推广用户支付佣金增加
|
||||
self::electrodeless_local_inc_earnings,//无极会员推广本地生活支付佣金增加
|
||||
self::company_electrodeless_local_inc_earnings //无极公司推广本地生活支付佣金增加
|
||||
self::company_electrodeless_local_inc_earnings, //无极公司推广本地生活支付佣金增加
|
||||
self::billions_rechange_inc_earnings, //返补充值佣金
|
||||
self::electrodeless_billions_rechange_inc_earnings, //无极返补充值佣金
|
||||
self::company_electrodeless_billions_rechange_inc_earnings, //无极公司返补充值佣金
|
||||
];
|
||||
|
||||
public static function getAcccountDesc($from = true){
|
||||
@ -128,6 +135,9 @@ class AccountLog extends Models
|
||||
self::electrodeless_local_inc_earnings => '无极本地生活用户佣金',
|
||||
self::company_electrodeless_local_inc_earnings => '无极公司本地生活用户佣金',
|
||||
self::recharge_billions_inc_earnings => '用户返充佣金',
|
||||
self::billions_rechange_inc_earnings => '返补充值佣金',
|
||||
self::electrodeless_billions_rechange_inc_earnings => '无极返补充值佣金',
|
||||
self::company_electrodeless_billions_rechange_inc_earnings => '无极公司返补充值佣金',
|
||||
self::withdraw_to_balance => '佣金提现',
|
||||
self::withdraw_dec_earnings => '提现扣减佣金',
|
||||
self::withdraw_back_earnings => '拒绝提现返还佣金',
|
||||
|
||||
Loading…
Reference in New Issue
Block a user