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
7c9e8f99
Commit
7c9e8f99
authored
May 11, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
转为报备客户名字
parent
26680f34
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
WatchShop.php
application/index/controller/WatchShop.php
+6
-6
No files found.
application/index/controller/WatchShop.php
View file @
7c9e8f99
...
@@ -93,7 +93,7 @@ class WatchShop extends Basic
...
@@ -93,7 +93,7 @@ class WatchShop extends Basic
$appoint_watch
=
new
AppointWatchShop
();
$appoint_watch
=
new
AppointWatchShop
();
$appoint_watch
->
startTrans
();
//开启事务
$appoint_watch
->
startTrans
();
//开启事务
$fields
=
'id,agents_id,house_title,house_id,expect_time,user_id,other_require'
;
$fields
=
'id,agents_id,house_title,house_id,expect_time,user_id,other_require
,appellation
'
;
$where
[
'id'
]
=
$this
->
params
[
'watch_id'
];
$where
[
'id'
]
=
$this
->
params
[
'watch_id'
];
$appoint_data
=
$appoint_watch
->
getAppointInfo
(
$fields
,
$where
);
$appoint_data
=
$appoint_watch
->
getAppointInfo
(
$fields
,
$where
);
...
@@ -117,9 +117,9 @@ class WatchShop extends Basic
...
@@ -117,9 +117,9 @@ class WatchShop extends Basic
//todo 验证用户id是否正常
//todo 验证用户id是否正常
$userArr
=
$service_
->
verifyUser
(
$user_id
);
$userArr
=
$service_
->
verifyUser
(
$user_id
);
$user_name
=
empty
(
$userArr
[
'user_name'
])
?
$appoint_data
[
'appellation'
]
:
$userArr
[
"user_name"
];
$is_ok
=
$service_
->
verifyReport
(
$agent_id
,
$agent_phone
,
$agent_data
[
'name'
],
$store_id
,
$user_id
,
$is_ok
=
$service_
->
verifyReport
(
$agent_id
,
$agent_phone
,
$agent_data
[
'name'
],
$store_id
,
$user_id
,
$userArr
[
"user_phone"
],
$user
Arr
[
"user_name"
]
,
$house_id
,
$vehicle
,
$intro
,
$predict_see_time
);
$userArr
[
"user_phone"
],
$user
_name
,
$house_id
,
$vehicle
,
$intro
,
$predict_see_time
);
if
(
$is_ok
>
0
)
{
if
(
$is_ok
>
0
)
{
...
@@ -127,11 +127,11 @@ class WatchShop extends Basic
...
@@ -127,11 +127,11 @@ class WatchShop extends Basic
'applies_id'
=>
$is_ok
,
'agents_id'
=>
$agent_id
'applies_id'
=>
$is_ok
,
'agents_id'
=>
$agent_id
],
$appoint_data
[
'id'
]);
],
$appoint_data
[
'id'
]);
$push
=
new
PushMessageService
();
$push
->
pushReportMessage
(
$appoint_data
[
"house_id"
],
$agent_id
);
$data
[
'msg'
]
=
'报备成功并通知经纪人'
;
$data
[
'msg'
]
=
'报备成功并通知经纪人'
;
$appoint_watch
->
commit
();
//提交事务
$appoint_watch
->
commit
();
//提交事务
$push
=
new
PushMessageService
();
$push
->
pushReportMessage
(
$appoint_data
[
"house_id"
],
$agent_id
);
return
$this
->
response
(
"200"
,
$data
[
'msg'
]);
return
$this
->
response
(
"200"
,
$data
[
'msg'
]);
}
else
{
}
else
{
$appoint_watch
->
rollback
();
//回滚事务
$appoint_watch
->
rollback
();
//回滚事务
...
...
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