Commit 915c7e51 authored by hujun's avatar hujun

site_id

parent 1898a327
...@@ -3536,7 +3536,7 @@ class Finance extends Basic ...@@ -3536,7 +3536,7 @@ class Finance extends Basic
$pay_data = []; $pay_data = [];
try { try {
$m_pay = new OPayLogModel(); $m_pay = new OPayLogModel();
$pay_fields = 'id,order_id,agent_name,create_time,income_time,house_number,type,real_money,income_time,transfer_name,bargain_id,'; $pay_fields = 'id,order_id,agent_name,create_time,income_time,house_number,type,real_money,income_time,transfer_name,bargain_id,agent_id,';
$pay_fields .= 'transaction_fee,is_dividend,receipt_number,source,pay_type,last_transfer_time,money,industry_type,received_money,type_ext'; $pay_fields .= 'transaction_fee,is_dividend,receipt_number,source,pay_type,last_transfer_time,money,industry_type,received_money,type_ext';
$pay_data = $m_pay->selectReceiptImgList($pay_fields, ['id'=>$this->params['pay_id']]); $pay_data = $m_pay->selectReceiptImgList($pay_fields, ['id'=>$this->params['pay_id']]);
$pay_data = $pay_data[0]; $pay_data = $pay_data[0];
...@@ -3596,6 +3596,11 @@ class Finance extends Basic ...@@ -3596,6 +3596,11 @@ class Finance extends Basic
$pay_data['current_agent_name'] = empty($current_agent_name[0]['report_agent_name']) ? "" : $current_agent_name[0]['report_agent_name']; $pay_data['current_agent_name'] = empty($current_agent_name[0]['report_agent_name']) ? "" : $current_agent_name[0]['report_agent_name'];
} }
} }
if ($pay_data['agent_id']) {
$m_agent = new AAgents();
$pay_data['site_id'] = $m_agent->getPhoneById($pay_data['agent_id'], 'site_id');
}
} catch (\Exception $e) { } catch (\Exception $e) {
$msg = '内部错误:'.$e->getMessage(); $msg = '内部错误:'.$e->getMessage();
} }
......
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