updateupdate 创建企业用户

This commit is contained in:
2023-06-20 15:28:52 +08:00
parent 403cfe85b1
commit 780b4c5d5e
3 changed files with 8 additions and 4 deletions

View File

@@ -17,6 +17,7 @@ import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.io.IOException;
import java.util.Map;
@RestController
@@ -123,11 +124,12 @@ public class AdapayMemberController extends BaseController {
*/
@PostMapping("/createCorpMember")
public AjaxResult createCorpMember(@Validated @RequestBody CreateCorpMemberDTO dto) {
logger.info("创建企业用户 param:{}", JSON.toJSONString(dto));
AjaxResult result;
try {
adapayMemberService.createCorpMember(dto);
result = AjaxResult.success();
} catch (BaseAdaPayException e) {
} catch (BaseAdaPayException | IOException e) {
logger.error("查询汇付账户余额error", e);
result = AjaxResult.error();
}