|
@@ -8,6 +8,7 @@ import com.ym.mec.biz.service.TenantInfoService;
|
|
|
import com.ym.mec.common.controller.BaseController;
|
|
|
import com.ym.mec.common.entity.HttpResponseResult;
|
|
|
import com.ym.mec.common.exception.BizException;
|
|
|
+import com.ym.mec.common.tenant.TenantContextHolder;
|
|
|
import com.ym.mec.thirdparty.yqpay.Msg;
|
|
|
import com.ym.mec.util.validator.ValidationKit;
|
|
|
import io.swagger.annotations.*;
|
|
@@ -112,11 +113,8 @@ public class TenantInfoController extends BaseController {
|
|
|
public HttpResponseResult<Map<String, Object>> recharge(
|
|
|
@ApiParam(value = "充值金额", required = true) @PathVariable("amount") Double amount
|
|
|
) throws Exception {
|
|
|
- SysUser user = sysUserFeignService.queryUserInfo();
|
|
|
- if (user == null) {
|
|
|
- return failed("用户信息获取失败");
|
|
|
- }
|
|
|
- return succeed(tenantInfoService.recharge(user.getTenantId(), new BigDecimal(amount)));
|
|
|
+ Integer tenantId = TenantContextHolder.getTenantId();
|
|
|
+ return succeed(tenantInfoService.recharge(tenantId, new BigDecimal(amount)));
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "轮询查询订单状态")
|