Commit bc1c316a authored by clone's avatar clone

1

parent a030c347
...@@ -469,9 +469,15 @@ class PayLogService ...@@ -469,9 +469,15 @@ class PayLogService
$bargain_where['id'] = $pay_data['bargain_id']; $bargain_where['id'] = $pay_data['bargain_id'];
$price = $m_bargain->getFieldValue('price', $bargain_where); $price = $m_bargain->getFieldValue('price', $bargain_where);
$pay_data['price'] = empty($price) ? 0 : $price; $pay_data['price'] = empty($price) ? 0 : $price;
} }
if($pay_data['is_open'] == 0){
$openModel = new OPayLogOpen();
$data = $openModel->getFind('id,pay_log_id', 0, ["is_del"=>0,"pay_log_id"=> $pay_data['id']]);
if($data){
$pay_data['is_open'] = 2;
}
}
$m_order = new OrderModel(); $m_order = new OrderModel();
$house_data = $m_order->selectOrderByOrderId('b.id,b.internal_address,a.f_id', ['order_id' => $pay_data['order_id']]); $house_data = $m_order->selectOrderByOrderId('b.id,b.internal_address,a.f_id', ['order_id' => $pay_data['order_id']]);
...@@ -529,6 +535,7 @@ class PayLogService ...@@ -529,6 +535,7 @@ class PayLogService
if ($open_id['id'] > 0) { if ($open_id['id'] > 0) {
$pay_data['is_check'] = 0; $pay_data['is_check'] = 0;
} }
} catch (\Exception $e) { } catch (\Exception $e) {
return null; return null;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment