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
9ecdaafa
Commit
9ecdaafa
authored
Apr 15, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
转为报备看铺时间转为时间戳
parent
9131321d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
+8
-6
ReportService.php
application/api_broker/service/ReportService.php
+3
-3
WatchShop.php
application/index/controller/WatchShop.php
+5
-3
No files found.
application/api_broker/service/ReportService.php
View file @
9ecdaafa
...
...
@@ -86,8 +86,8 @@ class ReportService
array_push
(
$order_arr
,
$this
->
orderBin
(
$order_no
,
$id
,
$v
));
$push
->
pushReportMessage
(
$v
);
//推送报备信息
}
//todo 保存order表
return
$this
->
orderModel
->
insertOrderByAll
(
$order_arr
)
;
//todo 保存order表
订单返回成功返回报备id
return
(
$this
->
orderModel
->
insertOrderByAll
(
$order_arr
)
>
0
)
?
$id
:
0
;
}
}
...
...
@@ -188,7 +188,7 @@ class ReportService
* @param $user_name
* @param $vehicle
* @param $intro
* @param $predict_see_time
* @param $predict_see_time
int 时间戳
* @return int|string
*/
public
function
reportBin
(
$report_agent_id
,
$agent_phone
,
$report_agent_name
,
$report_store_id
,
$user_id
,
$user_phone
,
$user_name
,
...
...
application/index/controller/WatchShop.php
View file @
9ecdaafa
...
...
@@ -107,17 +107,19 @@ class WatchShop extends Basic
$agent_id
=
$this
->
params
[
"agents_id"
];
$agent_phone
=
$agent_data
[
"phone"
];
$store_id
=
$agent_data
[
"store_id"
];
$house_id
=
$appoint_data
[
"house_id"
];
$user_id
=
$appoint_data
[
"user_id"
];
$vehicle
=
10
;
$intro
=
$appoint_data
[
"other_require"
];
$predict_see_time
=
$appoint_data
[
"expect_time"
]
;
$predict_see_time
=
strtotime
(
$appoint_data
[
"expect_time"
])
;
$service_
=
new
ReportService
();
//todo 验证用户id是否正常
$userArr
=
$service_
->
verifyUser
(
$user_id
);
$is_ok
=
$service_
->
reportBin
(
$agent_id
,
$agent_phone
,
$agent_data
[
'name'
],
$store_id
,
$user_id
,
$userArr
[
"user_phone"
],
$userArr
[
"user_name"
],
$vehicle
,
$intro
,
$predict_see_time
);
$is_ok
=
$service_
->
verifyReport
(
$agent_id
,
$agent_phone
,
$agent_data
[
'name'
],
$store_id
,
$user_id
,
$userArr
[
"user_phone"
],
$userArr
[
"user_name"
],
$house_id
,
$vehicle
,
$intro
,
$predict_see_time
);
if
(
$is_ok
>
0
)
{
...
...
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