Commit ee4c97dea1c3a31f3239cf89e69816cff109832b
1 parent
31cc7c7c52
Exists in
master
and in
6 other branches
二维码获取类型抽取
Showing 1 changed file with 5 additions and 1 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/ScanController.java
View file @
ee4c97d
... | ... | @@ -3,6 +3,7 @@ |
3 | 3 | import com.lyms.platform.common.base.BaseController; |
4 | 4 | import com.lyms.platform.permission.service.CouponService; |
5 | 5 | import org.springframework.beans.factory.annotation.Autowired; |
6 | +import org.springframework.beans.factory.annotation.Value; | |
6 | 7 | import org.springframework.stereotype.Controller; |
7 | 8 | import org.springframework.web.bind.annotation.RequestMapping; |
8 | 9 | |
... | ... | @@ -19,6 +20,9 @@ |
19 | 20 | @Autowired |
20 | 21 | private CouponService couponService; |
21 | 22 | |
23 | + @Value("${or.code.create.type}") | |
24 | + private Integer type; | |
25 | + | |
22 | 26 | /** |
23 | 27 | * @auther HuJiaqi |
24 | 28 | * @createTime 2017年01月10日 16时23分 |
... | ... | @@ -27,7 +31,7 @@ |
27 | 31 | @RequestMapping("/scan") |
28 | 32 | public void scan(HttpServletResponse httpServletResponse, String code) throws Exception { |
29 | 33 | // httpServletResponse.sendRedirect("http://m.healthbaby.com.cn/download/download.html"); |
30 | - httpServletResponse.sendRedirect(couponService.findUrl(code)); | |
34 | + httpServletResponse.sendRedirect(couponService.findUrl(code, type)); | |
31 | 35 | } |
32 | 36 | |
33 | 37 | } |