修改商家解锁扣除佣金金额

This commit is contained in:
lcc
2025-10-24 15:33:59 +08:00
parent 679d3ba8dc
commit cebac1d493
@@ -401,13 +401,15 @@ class Receiver_customers_model extends HD_Model
if (!$clues['out_id']) {
throw new Exception("报名来源不存在");
}
$bizMoney = 0; //商家扣除金额
$product = $this->auto_product_model->get(['id' => $clues['out_id']]);
$bizMoney = $product['cluesCommission'];
$bizMoney = $product['cluesCommission']; //商家扣除金额
if ($bizMoney <= 0) {
debug_log("扣除金额结束:扣除金额不能小于等于0{$bizMoney}", $log_path, $log_dir);
return new MyResponse(EXIT_SUCCESS, '保存成功');
}
if ($bizMoney == 10) {
$bizMoney = $bizMoney * 2;
}
$bizAccount = new BizAccount();
$account = $bizAccount->getAccountBizId($bizId, true);
$leftMoney = $account['money_left'];