mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 19:15:35 +08:00
update 对接lianlian平台
This commit is contained in:
@@ -2,6 +2,7 @@ package com.jsowell.thirdparty.lianlian.common;
|
||||
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.jsowell.common.enums.thirdparty.ThirdPartyReturnCodeEnum;
|
||||
import com.jsowell.thirdparty.lianlian.common.enums.ResultCode;
|
||||
|
||||
/**
|
||||
@@ -54,8 +55,8 @@ public class CommonResult<T> {
|
||||
* @param <T>
|
||||
* @return
|
||||
*/
|
||||
public static <T> CommonResult<T> failed(ResultCode resultCode) {
|
||||
return new CommonResult<T>(resultCode.getCode(), resultCode.getMsg(), null, null);
|
||||
public static <T> CommonResult<T> failed(ThirdPartyReturnCodeEnum resultCode) {
|
||||
return new CommonResult<T>(Long.parseLong(resultCode.getRet()), resultCode.getMsg(), null, null);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user