Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gxpt_ht
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
pseer
gxpt_ht
Commits
f3f93af5
Commit
f3f93af5
authored
Feb 28, 2024
by
吕明尚
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
抖音优惠卷退款后删除原来的优惠卷
parent
5c27aca8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
RedisTask.java
share-quartz/src/main/java/share/quartz/task/RedisTask.java
+1
-1
SOrderServiceImpl.java
...ain/java/share/system/service/impl/SOrderServiceImpl.java
+5
-1
No files found.
share-quartz/src/main/java/share/quartz/task/RedisTask.java
View file @
f3f93af5
...
...
@@ -119,7 +119,7 @@ public class RedisTask {
expiredCoupons
.
add
(
coupon
.
getId
());
}
logger
.
info
(
"券码:{}->查询结束:{}"
,
coupon
.
getCouponCode
(),
getconsumed
);
}
else
if
(
StringUtils
.
isNoneEmpty
(
coupon
.
getTiktokSkuId
())
&&
coupon
.
getPlatformType
().
equals
(
PlatformTypeEnum
.
MEITUAN
.
getCode
()))
{
}
else
if
(
StringUtils
.
isNoneEmpty
(
coupon
.
getTiktokSkuId
())
&&
coupon
.
getPlatformType
().
equals
(
PlatformTypeEnum
.
TIKTOK
.
getCode
()))
{
//抖音复验券
JSONObject
object
=
tiktokService
.
certificateGet
(
coupon
.
getCouponCode
());
JSONObject
certificate
=
object
.
getJSONObject
(
"certificate"
);
...
...
share-system/src/main/java/share/system/service/impl/SOrderServiceImpl.java
View file @
f3f93af5
...
...
@@ -536,9 +536,13 @@ public class SOrderServiceImpl extends ServiceImpl<SOrderMapper, SOrder> impleme
JSONObject
object
=
tiktokService
.
certificateGet
(
byId
.
getCouponCode
());
JSONObject
certificate
=
object
.
getJSONObject
(
"certificate"
);
Integer
status
=
certificate
.
getInt
(
"status"
);
Boolean
isDelete
=
false
;
if
(
status
.
equals
(
TiktokCouponStatusEnum
.
AVAILABLE
.
getCode
()))
{
consumerCouponService
.
deleteSConsumerCouponById
(
byId
.
getId
());
throw
new
RuntimeException
(
"优惠券异常,请重新验劵"
);
isDelete
=
true
;
}
if
(
isDelete
)
{
throw
new
RuntimeException
(
"优惠券异常,请稍后再试"
);
}
if
(
status
.
equals
(
TiktokCouponStatusEnum
.
REFUND_SUCCESS
.
getCode
())
|
status
.
equals
(
TiktokCouponStatusEnum
.
REFUNDING
.
getCode
()))
{
throw
new
RuntimeException
(
"优惠券异常,请稍后再试"
);
...
...
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