Commit 210c2c53 authored by clone's avatar clone

1

parent 42ea8016
......@@ -2,6 +2,8 @@
namespace app\api_broker\service;
use app\model\AAgents;
use app\model\AStore;
use app\model\OBargainModel;
use app\model\OImg;
use app\model\OPayLogAdjustment;
......@@ -453,7 +455,7 @@ class PayLogService
try {
$m_pay = new OPayLogModel();
$m_bargain = new OBargainModel();
$pay_fields = 'id,report_id,order_id,order_no,agent_name,create_time,income_time,house_number,type,real_money,income_time,
$pay_fields = 'id,report_id,order_id,order_no,agent_name,reckon_in_store,create_time,income_time,house_number,type,real_money,income_time,
transfer_name,bargain_id,agent_id,transaction_fee,is_dividend,receipt_number,source,pay_type,last_transfer_time,
money,industry_type,received_money,type_ext,is_open,open_time,remark';
$pay_data = $m_pay->selectReceiptImgList($pay_fields, ['id' => $pay_id]);
......@@ -516,6 +518,14 @@ class PayLogService
$agent_data = $redis_service->getRedisCache(2, $pay_data['agent_id']);
$pay_data['site_id'] = $agent_data['site_id'];
}
$pay_data['reckon_in_store_name'] = "";
if ($pay_data['reckon_in_store'] > 0) {
$agentModel = new AAgents();
$agentWhere_["b.id"] = $pay_data['reckon_in_store'];
$storeInfo = $agentModel->getAgentsStoreById($agentWhere_, "b.store_name");
$pay_data['reckon_in_store_name'] = $storeInfo['store_name'];
}
$pay_data["img_path"] = CHAT_IMG_URL;
$pay_data["img_arr"] = $this->getOImg($pay_id, 2);
......
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