Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujun
tl_estate
Commits
94506ced
Commit
94506ced
authored
May 22, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
operation_id
parent
2b67d06d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
PayLogOpen.php
application/api_broker/controller/PayLogOpen.php
+1
-1
PayLogOpenService.php
application/api_broker/service/PayLogOpenService.php
+3
-2
PayLogOpen.php
application/index/controller/PayLogOpen.php
+1
-1
No files found.
application/api_broker/controller/PayLogOpen.php
View file @
94506ced
...
@@ -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
){
...
...
application/api_broker/service/PayLogOpenService.php
View file @
94506ced
...
@@ -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
;
...
...
application/index/controller/PayLogOpen.php
View file @
94506ced
...
@@ -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
){
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment