|  |  |  | 
|---|
|  |  |  | import com.doumee.core.annotation.trace.Trace; | 
|---|
|  |  |  | import com.doumee.core.constants.Constants; | 
|---|
|  |  |  | import com.doumee.core.model.ApiResponse; | 
|---|
|  |  |  | import com.doumee.core.wx.WxMiniConfig; | 
|---|
|  |  |  | import com.doumee.core.wx.WxMiniUtilService; | 
|---|
|  |  |  | import com.doumee.dao.business.model.Locks; | 
|---|
|  |  |  | import com.doumee.dao.business.web.request.RegisterRequest; | 
|---|
|  |  |  | 
|---|
|  |  |  | import io.swagger.annotations.ApiImplicitParams; | 
|---|
|  |  |  | import io.swagger.annotations.ApiOperation; | 
|---|
|  |  |  | import lombok.extern.slf4j.Slf4j; | 
|---|
|  |  |  | import me.chanjar.weixin.common.error.WxErrorException; | 
|---|
|  |  |  | import org.springframework.beans.factory.annotation.Autowired; | 
|---|
|  |  |  | import org.springframework.web.bind.annotation.*; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiOperation(value = "测试生成二维码", notes = "小程序端") | 
|---|
|  |  |  | @GetMapping("/generateWXMiniCode") | 
|---|
|  |  |  | public ApiResponse<Locks> generateWXMiniCode() { | 
|---|
|  |  |  | public ApiResponse<Locks> generateWXMiniCode() throws WxErrorException { | 
|---|
|  |  |  | Locks locks = new Locks(); | 
|---|
|  |  |  | locks.setCode(12); | 
|---|
|  |  |  | locks.setSiteId("1005"); | 
|---|
|  |  |  | SystemDictData systemDictData = systemDictDataBiz.queryByCode(Constants.MINI_PROGRAMME,Constants.ACCESS_TOKEN); | 
|---|
|  |  |  | wxMiniUtilService.generateWXMiniCode(locks,systemDictData); | 
|---|
|  |  |  | wxMiniUtilService.generateWXMiniCode(locks, WxMiniConfig.wxMaService.getAccessToken(),"/usr/local/static_resources/bike/bike_file/",""); | 
|---|
|  |  |  | return  ApiResponse.success("操作成功",locks); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|