Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
soss
Overview
Overview
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
hooloo
ms
soss
Commits
9253ee23
Commit
9253ee23
authored
Mar 06, 2023
by
weijiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
恢复部分代码
parent
544492f3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
+4
-1
soss-framework/src/main/java/com/soss/framework/web/service/WeixinServiceImpl.java
+4
-1
No files found.
soss-framework/src/main/java/com/soss/framework/web/service/WeixinServiceImpl.java
View file @
9253ee23
...
...
@@ -61,6 +61,7 @@ import java.math.BigDecimal;
import
java.net.InetAddress
;
import
java.nio.charset.StandardCharsets
;
import
java.security.spec.AlgorithmParameterSpec
;
import
java.text.ParseException
;
import
java.util.*
;
import
java.util.concurrent.TimeUnit
;
import
java.util.concurrent.locks.ReentrantLock
;
...
...
@@ -632,7 +633,7 @@ public class WeixinServiceImpl {
return
WxPayNotifyResponse
.
fail
(
"回调有误!"
);
}
public
List
<
JSONObject
>
getArea
(
String
lng
,
String
lat
,
Boolean
testFlag
)
{
public
List
<
JSONObject
>
getArea
(
String
lng
,
String
lat
,
Boolean
testFlag
)
throws
ParseException
{
String
provinceString
=
"[value ='%s'][0].label"
;
String
cityString
=
"[value='%s'][0].children[value='%s'][0].label"
;
String
zoneString
=
"[value='%s'][0].children[value='%s'][0].children[value='%s'][0].label"
;
...
...
@@ -650,8 +651,10 @@ public class WeixinServiceImpl {
double
realDistance
=
DistanceUtil
.
getRealDistance
(
Double
.
parseDouble
(
lng
),
Double
.
parseDouble
(
lat
),
Double
.
parseDouble
(
shop1
.
getLng
()),
Double
.
parseDouble
(
shop1
.
getLat
()));
shop1
.
setRealDistance
(
realDistance
);
shop1
.
setDistance
(
DistanceUtil
.
getDistanceDesc
(
realDistance
));
appService
.
perfectOrderState
(
shop1
,
lng
,
lat
);
}
else
{
shop1
.
setDistance
(
"-1"
);
shop1
.
setOrderState
(
1
);
}
String
province
=
shop1
.
getProvince
();
if
(
proString
.
contains
(
province
)){
...
...
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