| | |
| | | package com.sandu.ximon.admin.controller; |
| | | |
| | | import cn.hutool.core.map.MapUtil; |
| | | import com.sandu.common.domain.ResponseVO; |
| | | import com.sandu.common.execption.BusinessException; |
| | | import com.sandu.common.object.BaseConditionVO; |
| | |
| | | if (param.getWxCode() == null || param.getPoleId() == null || param.getWxCode().isEmpty()) { |
| | | throw new BusinessException("参数不能为空"); |
| | | } |
| | | return ResponseUtil.success(wxPayService.getOpenId(param.getPoleId(), param.getWxCode())); |
| | | String openId = wxPayService.getOpenId(param.getPoleId(), param.getWxCode()); |
| | | return ResponseUtil.success(MapUtil.builder().put("openId", openId).build()); |
| | | } |
| | | |
| | | } |