|
@@ -34,6 +34,13 @@ import java.util.Map;
|
|
|
@RequestMapping("/functions")
|
|
|
@Slf4j
|
|
|
public class WxController {
|
|
|
+
|
|
|
+ @Value("${wx.minprogram.appsecret}")
|
|
|
+ private String appsecret;
|
|
|
+
|
|
|
+ @Value("${wx.minprogram.appid}")
|
|
|
+ private String appid;
|
|
|
+
|
|
|
@Autowired
|
|
|
private WxService wxService;
|
|
|
|
|
@@ -43,11 +50,7 @@ public class WxController {
|
|
|
Long userId = (Long) request.getAttribute("LOGIN_USER_ID");//获取用户id
|
|
|
return wxService.getUserFunction(userId);
|
|
|
}
|
|
|
- @Value("${wx.minprogram.appsecret}")
|
|
|
- private String appsecret;
|
|
|
|
|
|
- @Value("${wx.minprogram.appid}")
|
|
|
- private String appid;
|
|
|
|
|
|
@ApiOperation(value = "小程序获取openid")
|
|
|
@GetMapping("/minprogram/openId")
|