Browse Source

20210408取消短信

master
zy_Java 4 years ago
parent
commit
2c3892eb6d
  1. 4
      bjyy-admin/src/main/java/com/wmeimob/bjyy/schedulce/SchedulingService.java

4
bjyy-admin/src/main/java/com/wmeimob/bjyy/schedulce/SchedulingService.java

@ -25,7 +25,7 @@ public class SchedulingService {
* <li>每天早上8:00执行该方法</li>
* <li>测评结果快过期进行每隔一天的短信提醒</li>
*/
@Scheduled(cron="0 0 8 * * ? ")
// @Scheduled(cron="0 0 8 * * ? ")
public void autoCancelOrder(){
log.info("The task of checking no payment order is starting ...");
try{
@ -34,7 +34,7 @@ public class SchedulingService {
if(newestList != null && newestList.size() > 0){
for(int i=0; i<newestList.size(); i++){
try{
SmsUtil.send(newestList.get(i).getMobile(), RandomUtils.generateStringNUM(4));
// SmsUtil.send(newestList.get(i).getMobile(), RandomUtils.generateStringNUM(4));
}catch(Exception e){
log.error("The new user["+newestList.get(i).getMobile()+"] have error, check it please.", e);
continue;

Loading…
Cancel
Save