Commit 94506ced authored by hujun's avatar hujun

operation_id

parent 2b67d06d
...@@ -64,7 +64,7 @@ class PayLogOpen extends Basic ...@@ -64,7 +64,7 @@ class PayLogOpen extends Basic
} }
$return_id = $this->service_->addApplyForOpen($pay_log_id, $report_id, $bargain_id, $agent_id, $house_id, $intro, $return_id = $this->service_->addApplyForOpen($pay_log_id, $report_id, $bargain_id, $agent_id, $house_id, $intro,
$house_address, $open_img, $order_id); $house_address, $open_img, $order_id, $this->agentId);
if ($return_id > 0) { if ($return_id > 0) {
return $this->response("200", "success", ["id" => $return_id]); return $this->response("200", "success", ["id" => $return_id]);
} elseif ($return_id == -1){ } elseif ($return_id == -1){
......
...@@ -38,10 +38,11 @@ class PayLogOpenService ...@@ -38,10 +38,11 @@ class PayLogOpenService
* @param $house_address * @param $house_address
* @param $open_img * @param $open_img
* @param $order_id * @param $order_id
* @param $operation_id
* @return int * @return int
* @throws \think\Exception * @throws \think\Exception
*/ */
public function addApplyForOpen($pay_log_id, $report_id, $bargain_id, $agent_id, $house_id, $intro, $house_address, $open_img, $order_id) public function addApplyForOpen($pay_log_id, $report_id, $bargain_id, $agent_id, $house_id, $intro, $house_address, $open_img, $order_id, $operation_id)
{ {
$params["pay_log_id"] = $pay_log_id; $params["pay_log_id"] = $pay_log_id;
$params["agent_id"] = $agent_id; $params["agent_id"] = $agent_id;
...@@ -61,7 +62,7 @@ class PayLogOpenService ...@@ -61,7 +62,7 @@ class PayLogOpenService
$leaderId = $verifyService->getLeaderIdByAgentId($agent_id); $leaderId = $verifyService->getLeaderIdByAgentId($agent_id);
if($leaderId > 0){ if($leaderId > 0){
$push_service = new PushMessageService(); $push_service = new PushMessageService();
$push_service->record(13, 0, [$leaderId], 0, ['message' => "有业务员提交了开业申请,请及时审核"]); $push_service->record(13, 0, [$leaderId], $operation_id, ['message' => "有业务员提交了开业申请,请及时审核"]);
} }
} }
return $return_id; return $return_id;
......
...@@ -355,7 +355,7 @@ class PayLogOpen extends Basic ...@@ -355,7 +355,7 @@ class PayLogOpen extends Basic
} }
$return_id = $service_->addApplyForOpen($pay_log_id, $report_id, $bargain_id, $agent_id, $house_id, $intro, $return_id = $service_->addApplyForOpen($pay_log_id, $report_id, $bargain_id, $agent_id, $house_id, $intro,
$house_address, $open_img, $order_id); $house_address, $open_img, $order_id, $this->userId);
if ($return_id > 0) { if ($return_id > 0) {
return $this->response("200", "success", ["id" => $return_id]); return $this->response("200", "success", ["id" => $return_id]);
} elseif ($return_id == -1){ } elseif ($return_id == -1){
......
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