java110
2020-09-17 c1fa7111763c8c0557ed509e82b7bb1d00e9dddc
service-front/src/main/java/com/java110/front/controller/PaymentController.java
@@ -3,10 +3,7 @@
import com.java110.core.base.controller.BaseController;
import com.java110.core.context.IPageData;
import com.java110.core.context.PageData;
import com.java110.front.smo.payment.IRentingToPaySMO;
import com.java110.front.smo.payment.IToNotifySMO;
import com.java110.front.smo.payment.IToPaySMO;
import com.java110.front.smo.payment.IToPayTempCarInoutSMO;
import com.java110.front.smo.payment.*;
import com.java110.utils.constant.CommonConstant;
import com.java110.utils.util.StringUtil;
import org.slf4j.Logger;
@@ -39,6 +36,11 @@
    @Autowired
    private IToNotifySMO toNotifySMOImpl;
    @Autowired
    private IRentingToNotifySMO rentingToNotifySMOImpl;
    /**
     * <p>统一下单入口</p>
@@ -118,4 +120,20 @@
        return rentingToPaySMOImpl.toPay(newPd);
    }
    /**
     * <p>支付回调Api</p>
     *
     * @param request
     * @throws Exception
     */
    @RequestMapping(path = "/rentingNotify", method = RequestMethod.POST)
    public ResponseEntity<String> rentingNotify(@RequestBody String postInfo, HttpServletRequest request) {
        logger.debug("微信支付回调报文" + postInfo);
        return rentingToNotifySMOImpl.toNotify(postInfo, request);
    }
}