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
324c4246
Commit
324c4246
authored
Sep 20, 2019
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
罚款记录改已支付
parent
9c4fca43
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
5 deletions
+16
-5
ImageDepot.php
application/index/controller/ImageDepot.php
+3
-5
AmercementService.php
application/index/service/AmercementService.php
+13
-0
No files found.
application/index/controller/ImageDepot.php
View file @
324c4246
...
...
@@ -180,11 +180,9 @@ class ImageDepot extends Basic
public
function
ceshi
()
{
$position_service
=
new
PositionService
();
//121.168936,32.174486 121.187333,30.691674
$is_
=
$position_service
->
checkDistance
(
'32.174486'
,
'121.168936'
,
'30.691674'
,
'121.187333'
,
500
);
dump
(
$is_
);
$a
=
$position_service
->
getDistance
(
'32.174486'
,
'121.168936'
,
'30.691674'
,
'121.187333'
);
dump
(
$a
);
$predict_see_time
=
strtotime
(
"+2 hour"
,
strtotime
(
'2019-09-20 16:45:16'
));
dump
(
time
()
<
$predict_see_time
);
}
...
...
application/index/service/AmercementService.php
View file @
324c4246
...
...
@@ -689,6 +689,19 @@ class AmercementService
public
function
updatePayAmercement
(
$trade_no
,
$status
,
$remark
)
{
$amercementPayModel
=
new
OAmercementPayModel
();
//罚款记录改已支付
if
(
$status
==
1
){
$amercementPayModel
=
new
OAmercementPayModel
();
$payInfo
=
$amercementPayModel
->
getAmercementPayInfo
([
'trade_no'
=>
$trade_no
],
"amercement_id"
);
if
(
isset
(
$payInfo
[
'amercement_id'
])
&&
$payInfo
[
'amercement_id'
]
>
0
){
$data
=
[];
$data
[
'id'
]
=
$payInfo
[
'amercement_id'
];
$data
[
'status'
]
=
1
;
$data
[
'operation_id'
]
=
0
;
$data
[
'operation_time'
]
=
date
(
"Y-m-d H:i:s"
,
time
());
$this
->
m_amercement
->
updateAmercementData
(
$data
);
}
}
$update
[
"status"
]
=
$status
;
$update
[
"remark"
]
=
$remark
;
return
$amercementPayModel
->
updateAmercementPayData
(
$trade_no
,
$update
);
...
...
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