xcDecodeInfo method
解码信息
decodeStr 待解码字符 xcEncodeInfo接口返回的key
return code:0 data:json数据
回调码 5204
Implementation
Future<String> xcDecodeInfo({String encodeStr = ''}) async {
final result = await _api.xcDecodeInfo(encodeStr, ApiSeq.instance.getSeq());
XCloudResponse response = XCloudResponse.fromOriginResponse(result);
if (!response.success) {
return Future.error(XCloudAPIException(code: response.code,commandId: result.commandId));
}
return Future.value(result.data);
}