Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Q
qk_backend
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
quanku
qk_backend
Commits
905ee60f
Commit
905ee60f
authored
Oct 11, 2024
by
shiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
测试账号不发送短信
parent
79e778d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/distribution/AuctionRecordServiceImpl.java
...wdz/ch/wx/impl/distribution/AuctionRecordServiceImpl.java
+10
-2
No files found.
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/distribution/AuctionRecordServiceImpl.java
View file @
905ee60f
...
@@ -45,6 +45,7 @@ import org.springframework.util.ObjectUtils;
...
@@ -45,6 +45,7 @@ import org.springframework.util.ObjectUtils;
import
java.time.Duration
;
import
java.time.Duration
;
import
java.time.Instant
;
import
java.time.Instant
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.Arrays
;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.List
;
import
java.util.concurrent.TimeUnit
;
import
java.util.concurrent.TimeUnit
;
...
@@ -55,6 +56,9 @@ public class AuctionRecordServiceImpl implements AuctionRecordService {
...
@@ -55,6 +56,9 @@ public class AuctionRecordServiceImpl implements AuctionRecordService {
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
AuctionRecordServiceImpl
.
class
);
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
AuctionRecordServiceImpl
.
class
);
private
static
final
List
<
Long
>
NOT_SEND_MSG_USERID
=
Arrays
.
asList
(
9357942L
,
42273900L
,
290775L
,
61091901L
,
299497L
,
61097938L
,
61113888L
,
60652774L
,
60684039L
,
42192256L
,
60652774L
);
@Value
(
"${dts.wx.auction-msg-url}"
)
@Value
(
"${dts.wx.auction-msg-url}"
)
private
String
AUCTION_MSG_URL
;
private
String
AUCTION_MSG_URL
;
...
@@ -166,13 +170,17 @@ public class AuctionRecordServiceImpl implements AuctionRecordService {
...
@@ -166,13 +170,17 @@ public class AuctionRecordServiceImpl implements AuctionRecordService {
String
url
=
wxAppletApi
.
getUrlLink
(
AUCTION_MSG_URL
,
"itemId="
+
itemId
+
"&shareRecordId="
);
String
url
=
wxAppletApi
.
getUrlLink
(
AUCTION_MSG_URL
,
"itemId="
+
itemId
+
"&shareRecordId="
);
String
msg
=
"您出价过的拍品"
+
supplierItem
.
getName
()
+
"的价格被其他人超越了, 当前价是"
+
PriceUtil
.
convertPriceFenToYuan
(
price
)
+
String
msg
=
"您出价过的拍品"
+
supplierItem
.
getName
()
+
"的价格被其他人超越了, 当前价是"
+
PriceUtil
.
convertPriceFenToYuan
(
price
)
+
"元,竞拍截止时间是"
+
DateUtils
.
toString
(
endTime
)
+
", 请前往"
+
url
+
"查看"
;
"元,竞拍截止时间是"
+
DateUtils
.
toString
(
endTime
)
+
", 请前往"
+
url
+
"查看"
;
aliSmsSender
.
sendSms
(
auctionRecord
.
getUserId
(),
msg
);
if
(!
NOT_SEND_MSG_USERID
.
contains
(
auctionRecord
.
getUserId
()))
{
aliSmsSender
.
sendSms
(
auctionRecord
.
getUserId
(),
msg
);
}
}
}
}
else
{
}
else
{
String
url
=
wxAppletApi
.
getUrlLink
(
AUCTION_MSG_URL
,
"itemId="
+
itemId
+
"&shareRecordId="
);
String
url
=
wxAppletApi
.
getUrlLink
(
AUCTION_MSG_URL
,
"itemId="
+
itemId
+
"&shareRecordId="
);
String
msg
=
"您出价过的拍品"
+
supplierItem
.
getName
()
+
"的价格被其他人超越了, 当前价是"
+
PriceUtil
.
convertPriceFenToYuan
(
price
)
+
String
msg
=
"您出价过的拍品"
+
supplierItem
.
getName
()
+
"的价格被其他人超越了, 当前价是"
+
PriceUtil
.
convertPriceFenToYuan
(
price
)
+
"元,竞拍截止时间是"
+
DateUtils
.
toString
(
endTime
)
+
", 请前往"
+
url
+
"查看"
;
"元,竞拍截止时间是"
+
DateUtils
.
toString
(
endTime
)
+
", 请前往"
+
url
+
"查看"
;
aliSmsSender
.
sendSms
(
auctionRecord
.
getUserId
(),
msg
);
if
(!
NOT_SEND_MSG_USERID
.
contains
(
auctionRecord
.
getUserId
()))
{
aliSmsSender
.
sendSms
(
auctionRecord
.
getUserId
(),
msg
);
}
}
}
}
}
//插入最新出价记录
//插入最新出价记录
...
...
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