Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
browser-backend
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
Administrator
browser-backend
Commits
403e8582
Commit
403e8582
authored
Apr 08, 2020
by
renjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
支付宝支付
parent
4809e0dd
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
7 deletions
+26
-7
AccountController.java
.../browserbackend/account/controller/AccountController.java
+6
-6
Promotion.java
...va/com/edgec/browserbackend/account/domain/Promotion.java
+20
-0
IpResourceServiceImpl.java
...erbackend/browser/service/Impl/IpResourceServiceImpl.java
+0
-1
No files found.
src/main/java/com/edgec/browserbackend/account/controller/AccountController.java
View file @
403e8582
...
...
@@ -266,13 +266,13 @@ public class AccountController {
return
paymentService
.
wechatPayCallback
(
tradno
);
}
@RequestMapping
(
path
=
"/0xwxcheckorderstatus/{tradno}"
,
method
=
RequestMethod
.
GET
)
public
UserPaymentDto
wechatCheckOrderStatus
(
Principal
principal
,
@PathVariable
String
tradno
,
@
RequestParam
(
"chargeType"
)
int
chargeType
)
{
@RequestMapping
(
path
=
"/0xwxcheckorderstatus/{tradno}
/{chargeType}
"
,
method
=
RequestMethod
.
GET
)
public
UserPaymentDto
wechatCheckOrderStatus
(
Principal
principal
,
@PathVariable
String
tradno
,
@
PathVariable
int
chargeType
)
{
return
paymentService
.
wxCheckOrderStatus
(
tradno
,
chargeType
);
}
@RequestMapping
(
path
=
"/wxpay/checkstatus/{tradno}"
,
method
=
RequestMethod
.
GET
)
public
UserPaymentDto
wechatPayCheckStatus
(
@PathVariable
String
tradno
,
@
RequestParam
(
"chargeType"
)
int
chargeType
)
{
@RequestMapping
(
path
=
"/wxpay/checkstatus/{tradno}
/{chargeType}
"
,
method
=
RequestMethod
.
GET
)
public
UserPaymentDto
wechatPayCheckStatus
(
@PathVariable
String
tradno
,
@
PathVariable
int
chargeType
)
{
return
paymentService
.
wxCheckOrderStatus
(
tradno
,
chargeType
);
}
...
...
@@ -281,8 +281,8 @@ public class AccountController {
paymentService
.
alipaCallback
(
tradno
);
}
@RequestMapping
(
path
=
"/0xalicheckorderstatus/{tradno}"
,
method
=
RequestMethod
.
GET
)
public
UserPaymentDto
alipayCheckOrderStatus
(
Principal
principal
,
@PathVariable
(
required
=
false
)
String
tradno
,
@
RequestParam
(
"chargeType"
)
int
chargeType
)
{
@RequestMapping
(
path
=
"/0xalicheckorderstatus/{tradno}
/{chargeType}
"
,
method
=
RequestMethod
.
GET
)
public
UserPaymentDto
alipayCheckOrderStatus
(
Principal
principal
,
@PathVariable
(
required
=
false
)
String
tradno
,
@
PathVariable
int
chargeType
)
{
return
paymentService
.
aliCheckOrderStatus
(
tradno
,
chargeType
);
}
...
...
src/main/java/com/edgec/browserbackend/account/domain/Promotion.java
View file @
403e8582
...
...
@@ -11,9 +11,13 @@ import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
public
class
Promotion
{
private
String
code
;
private
int
invitedUsers
;
//好友当月消费
private
int
commission
;
//好友以前消费
private
int
commissionLeft
;
private
boolean
isSale
;
private
double
gift
;
private
double
giftLeft
;
public
int
getCommission
()
{
return
commission
;
...
...
@@ -54,4 +58,20 @@ public class Promotion {
public
void
setGift
(
double
gift
)
{
this
.
gift
=
gift
;
}
public
double
getGiftLeft
()
{
return
giftLeft
;
}
public
void
setCommissionLeft
(
int
commissionLeft
)
{
this
.
commissionLeft
=
commissionLeft
;
}
public
int
getCommissionLeft
()
{
return
commissionLeft
;
}
public
void
setGiftLeft
(
double
giftLeft
)
{
this
.
giftLeft
=
giftLeft
;
}
}
src/main/java/com/edgec/browserbackend/browser/service/Impl/IpResourceServiceImpl.java
View file @
403e8582
...
...
@@ -264,7 +264,6 @@ public class IpResourceServiceImpl implements IpResourceService {
totalprice
.
updateAndGet
(
v
->
new
Double
(
v
+
Double
.
valueOf
(
vendorprice
.
substring
(
vendorprice
.
lastIndexOf
(
"-"
)
+
1
))));
}
});
double
newprice
=
ipResourceRequestDto
.
getUnit
().
equals
(
"week"
)
?
(
int
)
(
totalprice
.
get
()/
3
)
:
totalprice
.
get
().
intValue
();
IpChargeResultDto
ipChargeResultDto
=
accountService
.
preChargeByMoney
(
username
,
newprice
);
if
(!
ipChargeResultDto
.
isSuccess
())
{
...
...
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