|
@@ -288,12 +288,6 @@ public class UserOrderController extends BaseController {
|
|
// 用户下单请求
|
|
// 用户下单请求
|
|
UserPaymentOrderWrapper.UserPaymentOrder order = JSON.parseObject(orderReq.jsonString(), UserPaymentOrderWrapper.UserPaymentOrder.class);
|
|
UserPaymentOrderWrapper.UserPaymentOrder order = JSON.parseObject(orderReq.jsonString(), UserPaymentOrderWrapper.UserPaymentOrder.class);
|
|
|
|
|
|
- TenantStaff tenantStaff = tenantStaffService.getByUserId(sysUser.getId());
|
|
|
|
- if (Objects.isNull(tenantStaff)) {
|
|
|
|
- throw com.microsvc.toolkit.common.webportal.exception.BizException.from("用户信息不存在");
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- order.setTenantId(tenantStaff.getTenantId());
|
|
|
|
// 新增数据
|
|
// 新增数据
|
|
UserPaymentOrderWrapper.PaymentConfig paymentConfig = userPaymentCoreService.executeOrderCreate(order);
|
|
UserPaymentOrderWrapper.PaymentConfig paymentConfig = userPaymentCoreService.executeOrderCreate(order);
|
|
if (Objects.isNull(paymentConfig)) {
|
|
if (Objects.isNull(paymentConfig)) {
|
|
@@ -352,7 +346,7 @@ public class UserOrderController extends BaseController {
|
|
|
|
|
|
@ApiOperation(value = "检测订单应该使用哪种支付方式")
|
|
@ApiOperation(value = "检测订单应该使用哪种支付方式")
|
|
@PostMapping("/orderPayType")
|
|
@PostMapping("/orderPayType")
|
|
- public HttpResponseResult<UserPaymentOrderWrapper.OrderPayTypeResp> orderPayType(@ApiIgnore @RequestBody UserPaymentOrderWrapper.OrderPayTypeReq payTypeReq) {
|
|
|
|
|
|
+ public HttpResponseResult<UserPaymentOrderWrapper.OrderPayTypeResp> orderPayType( @RequestBody UserPaymentOrderWrapper.OrderPayTypeReq payTypeReq) {
|
|
SysUser user = sysUserFeignService.queryUserInfo();
|
|
SysUser user = sysUserFeignService.queryUserInfo();
|
|
if (user == null || null == user.getId()) {
|
|
if (user == null || null == user.getId()) {
|
|
return failed(HttpStatus.FORBIDDEN, "请登录");
|
|
return failed(HttpStatus.FORBIDDEN, "请登录");
|