| | |
| | | import com.stylefeng.guns.modular.system.model.Driver; |
| | | import com.stylefeng.guns.modular.system.model.TransactionDetails; |
| | | import com.stylefeng.guns.modular.system.service.IDriverService; |
| | | import com.stylefeng.guns.modular.system.service.IPayService; |
| | | import com.stylefeng.guns.modular.system.service.IReassignService; |
| | | import com.stylefeng.guns.modular.system.service.ITransactionDetailsService; |
| | | import com.stylefeng.guns.modular.system.util.PayMoneyUtil; |
| | | import com.stylefeng.guns.modular.system.util.ResultUtil; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | |
| | | /** |
| | | * 第三方支付回调控制器 |
| | | */ |
| | | @Slf4j |
| | | @RestController |
| | | @RequestMapping("/base") |
| | | public class CallbackController { |
| | |
| | | private ITransactionDetailsService transactionDetailsService; |
| | | @Autowired |
| | | private IDriverService driverService; |
| | | @Autowired |
| | | private IPayService payService; |
| | | |
| | | // 司机端充值余额 微信回调 |
| | | @ResponseBody |
| | |
| | | e.printStackTrace(); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 司机端充值余额 微信回调(app) |
| | | */ |
| | | @ResponseBody |
| | | @PostMapping("/wechat/notify") |
| | | public Map<String,Object> wechatNotify(HttpServletRequest request) { |
| | | try { |
| | | log.info("司机微信充值-收到回调请求"); |
| | | return payService.wechatNotify(request); |
| | | } catch (Exception e) { |
| | | log.error("司机微信充值-回调处理报错异常:", e); |
| | | } |
| | | return null; |
| | | } |
| | | } |