|
@@ -26,8 +26,12 @@ public class WxController {
|
|
|
@Autowired
|
|
|
private WxApi wxApi;
|
|
|
@GetMapping("/wxLogin")
|
|
|
- public String wxLogin(@RequestParam String jsCode){
|
|
|
- return wxApi.wxLogin(topApiConfiger.getWxAppId(),topApiConfiger.getWxAppSecret(),jsCode);
|
|
|
+ public String wxLogin(@RequestParam String jsCode,@RequestParam Integer type){
|
|
|
+ if (1 == type){
|
|
|
+ return wxApi.wxLogin(topApiConfiger.getWxAppId(),topApiConfiger.getWxAppSecret(),jsCode);
|
|
|
+ }else {
|
|
|
+ return wxApi.wxLogin(WxApi.APP_ID,WxApi.SECRET,jsCode);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
/**
|