修改订单完结分佣
This commit is contained in:
@@ -47,7 +47,7 @@ class Commission extends HD_Controller
|
||||
throw new Exception('没有需要分佣的记录');
|
||||
}
|
||||
foreach ($rows as $key => $val) {
|
||||
$account = $this->account_model->get($val['account_id']);
|
||||
$account = $this->account_model->get(['id' => $val['account_id']]);
|
||||
/** @var MyResponse $result */
|
||||
$result = $this->clues_model->Commissions($val['target_id'], $account['biz_id'], $val['money_out']);
|
||||
if (!$result->isSuccess()) {
|
||||
@@ -56,9 +56,9 @@ class Commission extends HD_Controller
|
||||
$comm_status = $result->isSuccess() ? Biz_accountLog_model::COMM_STATUS_SUCCESS : Biz_accountLog_model::COMM_STATUS_FAIL;
|
||||
$ret = $this->bizAccountLog->update(['comm_status' => $comm_status], ['id' => $val['id']]);
|
||||
if ($ret && is_numeric($ret)) {
|
||||
debug_log('分佣成功,支付记录ID:' . $val['id'], $log_path, $this->dir);
|
||||
debug_log('更新状态成功,支付记录ID:' . $val['id'] . ',状态:' . $comm_status, $log_path, $this->dir);
|
||||
} else {
|
||||
debug_log('分佣失败,支付记录ID:' . $val['id'], $log_path, $this->dir);
|
||||
debug_log('更新状态成功失败,支付记录ID:' . $val['id'], $log_path, $this->dir);
|
||||
}
|
||||
}
|
||||
} catch (Exception $e) {
|
||||
|
||||
Reference in New Issue
Block a user