|
@@ -126,8 +126,9 @@ class Writeoff extends Api
|
|
|
$pay_fail = 0;
|
|
|
// 不四舍五入的保留小数点后两位
|
|
|
$dakuan_money = (floor(($code_info['ruchang_price'] * $bili) * 100) / 100);
|
|
|
- $log_id = $this->dakuan_log($method_info['user_id'], 1, $dakuan_money, ['code_id' => $code_info['id'], 'order_id' => $code_info['order_id']], $type, 'RCH' . $order_info['order_no']);
|
|
|
- $resqul = \app\common\service\OrderService::hexiao_withdraw_dakuan($dakuan_money, $user_sec, $type, "入场打款" . $order_info['order_no'], 'RCH' . $order_info['order_no']);
|
|
|
+ $log_no = 'RCH' . $order_info['order_no'] . $code_info['id'];
|
|
|
+ $log_id = $this->dakuan_log($method_info['user_id'], 1, $dakuan_money, ['code_id' => $code_info['id'], 'order_id' => $code_info['order_id']], $type, $log_no);
|
|
|
+ $resqul = \app\common\service\OrderService::hexiao_withdraw_dakuan($dakuan_money, $user_sec, $type, "入场打款" . $order_info['order_no'], $log_no);
|
|
|
|
|
|
if (is_bool($resqul) && $resqul) {
|
|
|
// 打款成功修改状态
|
|
@@ -247,8 +248,9 @@ class Writeoff extends Api
|
|
|
// $dakuan_money = (floor(($code_info['wucan_price'] * $bili) * 100) / 100);
|
|
|
$pay_fail = 0;
|
|
|
$dakuan_money = $code_info['wucan_price'];
|
|
|
- $log_id = $this->dakuan_log($method_info['user_id'], 2, $dakuan_money, ['code_id' => $code_info['id'], 'order_id' => $code_info['order_id']], $type, 'WCH' . $order_info['order_no']);
|
|
|
- $resqul = \app\common\service\OrderService::hexiao_withdraw_dakuan($dakuan_money, $user_sec, $type, "午餐打款" . $order_info['order_no'], 'WCH' . $order_info['order_no']);
|
|
|
+ $log_no = 'WCH' . $order_info['order_no'] . $code_info['id'];
|
|
|
+ $log_id = $this->dakuan_log($method_info['user_id'], 2, $dakuan_money, ['code_id' => $code_info['id'], 'order_id' => $code_info['order_id']], $type,$log_no );
|
|
|
+ $resqul = \app\common\service\OrderService::hexiao_withdraw_dakuan($dakuan_money, $user_sec, $type, "午餐打款" . $order_info['order_no'], $log_no);
|
|
|
if (is_bool($resqul) && $resqul) {
|
|
|
$dakuanlog_model->isUpdate('true', ['id' => $log_id])->save(['status' => 1]);
|
|
|
} else {
|