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
13dac54f
Commit
13dac54f
authored
Feb 26, 2024
by
吕明尚
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改提前抖音团购验卷操作
parent
38a1a2f4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
13 deletions
+13
-13
SStoreServiceImpl.java
...ain/java/share/system/service/impl/SStoreServiceImpl.java
+2
-2
TiktokServiceImpl.java
...ain/java/share/system/service/impl/TiktokServiceImpl.java
+11
-11
No files found.
share-system/src/main/java/share/system/service/impl/SStoreServiceImpl.java
View file @
13dac54f
...
@@ -209,10 +209,10 @@ public class SStoreServiceImpl extends ServiceImpl<SStoreMapper, SStore> impleme
...
@@ -209,10 +209,10 @@ public class SStoreServiceImpl extends ServiceImpl<SStoreMapper, SStore> impleme
}
}
SStore
byId
=
getById
(
sStore
.
getId
());
SStore
byId
=
getById
(
sStore
.
getId
());
int
i
=
baseMapper
.
updateSStore
(
sStore
);
int
i
=
baseMapper
.
updateSStore
(
sStore
);
if
(!
sStore
.
getOpenShopUuid
().
equals
(
byId
.
getOpenShopUuid
()))
{
if
(!
sStore
.
getOpenShopUuid
().
equals
(
byId
.
getOpenShopUuid
())
&&
StringUtils
.
isNotBlank
(
sStore
.
getOpenShopUuid
())
)
{
extracted
();
extracted
();
}
}
if
(!
sStore
.
getTiktokPoiId
().
equals
(
byId
.
getTiktokPoiId
()))
{
if
(!
sStore
.
getTiktokPoiId
().
equals
(
byId
.
getTiktokPoiId
())
&&
StringUtils
.
isNotBlank
(
sStore
.
getTiktokPoiId
())
)
{
updateTiktok
();
updateTiktok
();
}
}
return
i
;
return
i
;
...
...
share-system/src/main/java/share/system/service/impl/TiktokServiceImpl.java
View file @
13dac54f
...
@@ -320,6 +320,17 @@ public class TiktokServiceImpl implements TiktokService {
...
@@ -320,6 +320,17 @@ public class TiktokServiceImpl implements TiktokService {
if
(
ObjectUtils
.
isNotEmpty
(
unUsedCoupon
))
{
if
(
ObjectUtils
.
isNotEmpty
(
unUsedCoupon
))
{
throw
new
RuntimeException
(
"该券已被领取"
);
throw
new
RuntimeException
(
"该券已被领取"
);
}
}
TiktokCouponDto
couponDto
=
new
TiktokCouponDto
();
couponDto
.
setVerifyToken
(
prepare
.
getStr
(
"verify_token"
));
couponDto
.
setPoiId
(
sStore
.
getTiktokPoiId
());
List
<
String
>
codes
=
new
ArrayList
<>();
List
<
JSONObject
>
list
=
certificates
.
toList
(
JSONObject
.
class
);
//获取List中的encrypted_code
list
.
stream
().
forEach
(
e
->
{
codes
.
add
(
e
.
getStr
(
"encrypted_code"
));
});
couponDto
.
setEncryptedCodes
(
codes
);
verify
(
couponDto
);
SConsumerCoupon
sConsumerCoupon
=
new
SConsumerCoupon
();
SConsumerCoupon
sConsumerCoupon
=
new
SConsumerCoupon
();
sConsumerCoupon
.
setConsumerId
(
user
.
getId
());
sConsumerCoupon
.
setConsumerId
(
user
.
getId
());
sConsumerCoupon
.
setStoreId
(
sStore
.
getId
());
sConsumerCoupon
.
setStoreId
(
sStore
.
getId
());
...
@@ -372,17 +383,6 @@ public class TiktokServiceImpl implements TiktokService {
...
@@ -372,17 +383,6 @@ public class TiktokServiceImpl implements TiktokService {
sConsumerCoupon
.
setRemark
(
sCoupon
.
getRemark
());
sConsumerCoupon
.
setRemark
(
sCoupon
.
getRemark
());
}
}
isConsumerCouponService
.
insertSConsumerCoupon
(
sConsumerCoupon
);
isConsumerCouponService
.
insertSConsumerCoupon
(
sConsumerCoupon
);
TiktokCouponDto
couponDto
=
new
TiktokCouponDto
();
couponDto
.
setVerifyToken
(
prepare
.
getStr
(
"verify_token"
));
couponDto
.
setPoiId
(
sStore
.
getTiktokPoiId
());
List
<
String
>
codes
=
new
ArrayList
<>();
List
<
JSONObject
>
list
=
certificates
.
toList
(
JSONObject
.
class
);
//获取List中的encrypted_code
list
.
stream
().
forEach
(
e
->
{
codes
.
add
(
e
.
getStr
(
"encrypted_code"
));
});
couponDto
.
setEncryptedCodes
(
codes
);
verify
(
couponDto
);
}
catch
(
RuntimeException
e
)
{
}
catch
(
RuntimeException
e
)
{
throw
new
RuntimeException
(
e
);
throw
new
RuntimeException
(
e
);
}
}
...
...
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