| | |
| | | import com.google.common.base.Joiner; |
| | | import com.ltkj.common.core.domain.AjaxResult; |
| | | import com.ltkj.common.exception.user.DataNotFoundException; |
| | | import com.ltkj.common.task.TaskService; |
| | | import com.ltkj.common.utils.IpUtil; |
| | | import com.ltkj.common.utils.JacksonUtil; |
| | | import com.ltkj.framework.config.UserHoder; |
| | |
| | | private WxPayService wxPayService; |
| | | @Resource |
| | | private ITbTransitionService transitionService; |
| | | |
| | | @Autowired |
| | | private TaskService taskService; |
| | | @Resource |
| | | private OrderDelayService delayService; |
| | | |
| | |
| | | /** |
| | | * 微信付款成功或失败回调接口 |
| | | * <p> |
| | | * TODO |
| | | * 注意,这里pay-notify是示例地址,建议开发者应该设立一个隐蔽的回调地址 |
| | | * |
| | | * @param request 请求内容 |
| | |
| | | return AjaxResult.error("订单退款失败"); |
| | | } |
| | | } |
| | | //TODO 发送邮件和短信通知,这里采用异步发送 |
| | | // 退款成功通知用户, 例如“您申请的订单退款 [ 单号:{1} ] 已成功,请耐心等待到账。” |
| | | // 注意订单号只发后6位 |
| | | /*notifyService.notifySmsTemplate(order.getMobile(), NotifyType.REFUND, |
| | | new String[]{order.getOrderSn().substring(8, 14)});*/ |
| | | orderService.updateById(order); |