mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 19:15:35 +08:00
update 汇付会员
This commit is contained in:
@@ -5,6 +5,7 @@ import com.jsowell.adapay.service.AdapayMemberService;
|
||||
import com.jsowell.adapay.vo.AdapayMemberInfoVO;
|
||||
import com.jsowell.common.core.controller.BaseController;
|
||||
import com.jsowell.common.core.domain.AjaxResult;
|
||||
import com.jsowell.common.exception.BusinessException;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
@@ -24,12 +25,19 @@ public class AdapayMemberController extends BaseController {
|
||||
*/
|
||||
@PostMapping("/createAdapayMember")
|
||||
public AjaxResult createAdapayMember(@RequestBody AdapayMemberInfoDTO dto) {
|
||||
logger.info("创建汇付会员接口 param:{}", dto);
|
||||
AjaxResult result;
|
||||
try {
|
||||
adapayMemberService.createMember(dto);
|
||||
result = AjaxResult.success();
|
||||
} catch (BusinessException e) {
|
||||
logger.warn("创建汇付会员接口warn", e);
|
||||
result = AjaxResult.error(e.getMessage());
|
||||
} catch (Exception e) {
|
||||
throw new RuntimeException(e);
|
||||
logger.warn("创建汇付会员接口error", e);
|
||||
result = AjaxResult.error("创建汇付会员接口异常");
|
||||
}
|
||||
return AjaxResult.success();
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user