#
Junjie
2024-03-27 4a7f884100b5583b1fe1fbe3d9e5f2c5ace7b624
zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/utils/HttpUtils.java
@@ -1,6 +1,7 @@
package com.zy.asrs.wcs.utils;
import com.alibaba.fastjson.JSON;
import com.zy.asrs.framework.common.R;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
@@ -15,7 +16,7 @@
        response.setContentType("application/json;charset=UTF-8");
        try {
            PrintWriter out = response.getWriter();
            out.write(JSON.toJSONString(new ApiResult<>(code, message, null, error)));
            out.write(JSON.toJSONString(R.parse(code + "-" + message)));
            out.flush();
        } catch (IOException e) {
            e.printStackTrace();