|
@@ -36,6 +36,14 @@ import java.util.List;
|
|
|
@RestController
|
|
|
public class ScanController {
|
|
|
|
|
|
+ // 获取code
|
|
|
+ private static final String oauth2 = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=";
|
|
|
+ private static final String moreUrl = "&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect";
|
|
|
+ @Value("${yvan.wechat.appID}")
|
|
|
+ private String appId;
|
|
|
+ @Value("${yvan.wechat.domain}")
|
|
|
+ private String domain;
|
|
|
+
|
|
|
@Autowired
|
|
|
private HomeService homeService;
|
|
|
@Autowired
|
|
@@ -177,14 +185,6 @@ public class ScanController {
|
|
|
return "";
|
|
|
}
|
|
|
|
|
|
- private static final String oauth2 = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=";
|
|
|
- private static final String moreUrl = "&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect";
|
|
|
-
|
|
|
- @Value("${yvan.wechat.appID}")
|
|
|
- private String appId;
|
|
|
- @Value("${yvan.wechat.domain}")
|
|
|
- private String domain;
|
|
|
-
|
|
|
/**
|
|
|
* 生成进出门二维码
|
|
|
* @param doorId 小区大门ID
|