Parcourir la source

测试微信二维码推送

wwl il y a 3 ans
Parent
commit
e36343cdb4

+ 6 - 7
twzd-admin/src/main/java/com/miaxis/system/controller/test/TestController.java

@@ -2,9 +2,9 @@ package com.miaxis.system.controller.test;
 
 import cn.hutool.core.io.FileUtil;
 import cn.hutool.extra.qrcode.QrCodeUtil;
-import cn.hutool.extra.qrcode.QrConfig;
 import com.alibaba.fastjson.JSONObject;
 import com.miaxis.common.annotation.Log;
+import com.miaxis.common.constant.Constants;
 import com.miaxis.common.core.domain.Response;
 import com.miaxis.common.enums.BusinessTypeEnum;
 import com.miaxis.feign.dto.WxTicket;
@@ -13,15 +13,14 @@ import com.miaxis.feign.service.IWxSendService;
 import com.miaxis.wx.service.IWxGzhService;
 import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiOperation;
-import io.swagger.annotations.ApiParam;
 import lombok.RequiredArgsConstructor;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.security.access.prepost.PreAuthorize;
-import org.springframework.web.bind.annotation.*;
-
-import java.net.URLEncoder;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PutMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
 
 /**
  * @author wwl
@@ -30,7 +29,7 @@ import java.net.URLEncoder;
  */
 @RestController
 @RequiredArgsConstructor
-@RequestMapping("/wxTest")
+@RequestMapping(Constants.OPEN_PREFIX + "/wxTest")
 @Api(tags={"测试"})
 public class TestController {