Commit e4f7c9fc authored by zw's avatar zw

推送bug

parent e16e4d6c
...@@ -74,6 +74,9 @@ class OrderLog extends Basic ...@@ -74,6 +74,9 @@ class OrderLog extends Basic
/** /**
* 收款 * 收款
* @return \think\Response * @return \think\Response
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/ */
public function collectingBill() public function collectingBill()
{ {
......
...@@ -37,7 +37,7 @@ class OrderLogService ...@@ -37,7 +37,7 @@ class OrderLogService
} }
/** /**
*批量插入收款记录 * 批量插入收款记录
* @param $agent_id * @param $agent_id
* @param $agent_name * @param $agent_name
* @param $report_id * @param $report_id
...@@ -48,12 +48,15 @@ class OrderLogService ...@@ -48,12 +48,15 @@ class OrderLogService
* @param $industry_type * @param $industry_type
* @param $remark * @param $remark
* @param $transfer_img * @param $transfer_img
* @return int * @return int|string
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/ */
public function addCollectingBill($agent_id, $agent_name, $report_id, $order_id, $order_no, $collecting_bill, $house_number, public function addCollectingBill($agent_id, $agent_name, $report_id, $order_id, $order_no, $collecting_bill, $house_number,
$industry_type, $remark, $transfer_img) $industry_type, $remark, $transfer_img)
{ {
$bill_arr = []; $bill_arr = $params = [];
$father_id = 0; $father_id = 0;
foreach ($collecting_bill as $collecting) { foreach ($collecting_bill as $collecting) {
if (isset($collecting["type"]) && isset($collecting["pay_type"]) && isset($collecting["money"])) { if (isset($collecting["type"]) && isset($collecting["pay_type"]) && isset($collecting["money"])) {
...@@ -69,9 +72,10 @@ class OrderLogService ...@@ -69,9 +72,10 @@ class OrderLogService
} }
//todo if bill_arr not null, save database table //todo if bill_arr not null, save database table
if (!empty($bill_arr)) { if (!empty($bill_arr)) {
$id = $this->payLogModel->addPayLog($bill_arr);
$pushMarchIn = new PushMessageService($params["report_id"], 2); $pushMarchIn = new PushMessageService($params["report_id"], 2);
$pushMarchIn->pushMarchInMessage($params["report_id"], 2); //推送 $pushMarchIn->pushMarchInMessage($params["report_id"], 2); //推送
return $this->payLogModel->addPayLog($bill_arr); return $id;
} }
return $father_id; return $father_id;
} }
......
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