mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 19:15:35 +08:00
updateupdate 创建企业用户
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user