修改商家解锁扣除佣金金额
This commit is contained in:
@@ -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'];
|
||||
|
||||
Reference in New Issue
Block a user