打开定时退款任务

This commit is contained in:
yuyang 2021-12-28 09:55:28 +08:00
parent b0af3572eb
commit caab40a07f
2 changed files with 5 additions and 15 deletions

View File

@ -267,7 +267,9 @@ public class WxPaymentController {
String stringSignTemp = param + "&key=" + key;
//签名 不参与签名 默认MD5算法
String sign = StringUtils.md5(stringSignTemp);
if(sign.length() !=32){
sign="0"+sign;
}
String xmlString = "<xml>\n" +
" <appid>" + appid + "</appid>\n" +
" <attach>" + attach + "</attach>\n" +

View File

@ -39,6 +39,7 @@ import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.env.Environment;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.transaction.interceptor.TransactionAspectSupport;
import org.springframework.web.bind.annotation.*;
@ -618,7 +619,7 @@ public class XhpcRefundAuditController extends BaseController {
* 定时任务每5分钟扫描一次退款订单金额小于100自动审核通过
*
*/
//@Scheduled(cron = "0 */5 * * * ?")
@Scheduled(cron = "0 */5 * * * ?")
@GetMapping("/moneyPage")
public void moneyPage(){
logger.info("++++++++++++每5分钟扫描一次退款订单金额小于100自动审核通过++++++++++++++++");
@ -641,17 +642,4 @@ public class XhpcRefundAuditController extends BaseController {
}
}
@GetMapping("/text")
public void text(){
try{
//发送短信
HashMap<String, String> paramMap = new HashMap<>();
paramMap.put("phone", "18123374652");
paramMap.put("content", "【小华充电】退款-尊敬的用户,当前退款人数较多,申请退款失败,请您重新提交申请!");
smsService.sendNotice(paramMap);
}catch (Exception e){
System.out.println("发送失败");
}
}
}