|
@@ -5,6 +5,7 @@ import com.alibaba.fastjson.JSONObject;
|
|
|
import com.platform.api.request.XpPrintImageReqVo;
|
|
import com.platform.api.request.XpPrintImageReqVo;
|
|
|
import com.platform.api.request.XpPrintReceiptReqVo;
|
|
import com.platform.api.request.XpPrintReceiptReqVo;
|
|
|
import com.platform.config.XpCloudProperties;
|
|
import com.platform.config.XpCloudProperties;
|
|
|
|
|
+import com.platform.enums.ErrorCodeEnum;
|
|
|
import com.platform.exception.IotException;
|
|
import com.platform.exception.IotException;
|
|
|
import com.platform.external.client.PrintReceiptContentClient;
|
|
import com.platform.external.client.PrintReceiptContentClient;
|
|
|
import com.platform.external.request.PrintReceiptContent;
|
|
import com.platform.external.request.PrintReceiptContent;
|
|
@@ -689,7 +690,8 @@ public class XpCloudPrintService {
|
|
|
|
|
|
|
|
} catch (IotException e) {
|
|
} catch (IotException e) {
|
|
|
// 业务异常直接抛出,保持原始错误信息
|
|
// 业务异常直接抛出,保持原始错误信息
|
|
|
- throw e;
|
|
|
|
|
|
|
+ log.error("调用芯烨云小票打印业务异常, url={}", url, e);
|
|
|
|
|
+ throw new IotException(ErrorCodeEnum.INTERFACE_CALL_FAIL, e.getErrorMsg(), e);
|
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
|
// 捕获网络异常、JSON 解析异常等其他未预期异常
|
|
// 捕获网络异常、JSON 解析异常等其他未预期异常
|
|
|
log.error("芯烨云小票打印HTTP调用异常, url={}", url, e);
|
|
log.error("芯烨云小票打印HTTP调用异常, url={}", url, e);
|