mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-21 03:25:12 +08:00
update 对接内蒙古平台
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package com.jsowell.common.exception;
|
||||
|
||||
import com.jsowell.common.enums.thirdparty.ThirdPartyReturnCodeEnum;
|
||||
import com.jsowell.common.enums.ykc.ReturnCodeEnum;
|
||||
import lombok.Data;
|
||||
|
||||
@@ -26,4 +27,9 @@ public class BusinessException extends RuntimeException{
|
||||
this.code = code;
|
||||
this.message = message;
|
||||
}
|
||||
|
||||
public BusinessException(ThirdPartyReturnCodeEnum thirdPartyReturnCodeEnum) {
|
||||
this.code = thirdPartyReturnCodeEnum.getRet();
|
||||
this.message = thirdPartyReturnCodeEnum.getMsg();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user