|
@@ -1,6 +1,7 @@
|
|
|
package org.dromara.system.controller;
|
|
package org.dromara.system.controller;
|
|
|
|
|
|
|
|
import cn.dev33.satoken.annotation.SaIgnore;
|
|
import cn.dev33.satoken.annotation.SaIgnore;
|
|
|
|
|
+import cn.hutool.extra.qrcode.QrCodeUtil;
|
|
|
import cn.hutool.json.JSONObject;
|
|
import cn.hutool.json.JSONObject;
|
|
|
import cn.hutool.json.JSONUtil;
|
|
import cn.hutool.json.JSONUtil;
|
|
|
import com.dtflys.forest.annotation.Body;
|
|
import com.dtflys.forest.annotation.Body;
|
|
@@ -27,7 +28,9 @@ import org.dromara.system.service.ITblDzbcOrderService;
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
|
|
|
|
+import java.io.IOException;
|
|
|
import java.util.Deque;
|
|
import java.util.Deque;
|
|
|
|
|
+
|
|
|
import java.util.Map;
|
|
import java.util.Map;
|
|
|
|
|
|
|
|
import org.dromara.system.domain.bo.TblDzbcCargoOrderBo;
|
|
import org.dromara.system.domain.bo.TblDzbcCargoOrderBo;
|
|
@@ -139,6 +142,21 @@ public class CommonDzbcOtherController extends BaseController {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 生成二维码
|
|
|
|
|
+ * @param content 内容
|
|
|
|
|
+ * @param width 宽度
|
|
|
|
|
+ * @param height 高度
|
|
|
|
|
+ */
|
|
|
|
|
+ @SaIgnore
|
|
|
|
|
+ @GetMapping("/qrcode")
|
|
|
|
|
+ public void qrcode(String content, HttpServletResponse response,
|
|
|
|
|
+ @RequestParam(defaultValue = "300") int width,
|
|
|
|
|
+ @RequestParam(defaultValue = "300") int height) throws IOException {
|
|
|
|
|
+ response.setContentType("image/png");
|
|
|
|
|
+ QrCodeUtil.generate(content, width, height, "png", response.getOutputStream());
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
|
|
|
@ResponseBody
|
|
@ResponseBody
|
|
|
@Log(title = "定制班车-订单微信退款回调", businessType = BusinessType.UPDATE)
|
|
@Log(title = "定制班车-订单微信退款回调", businessType = BusinessType.UPDATE)
|