|
@@ -14,6 +14,7 @@ import com.huijy.management.domain.Member;
|
|
|
import com.huijy.management.service.IMemberService;
|
|
|
import com.huijy.management.vo.WxLoginFrom;
|
|
|
import com.huijy.management.vo.WxUserInfo;
|
|
|
+import com.huijy.weixin.config.WxMaConfiguration;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import lombok.val;
|
|
@@ -40,8 +41,6 @@ public class ApiLoginController extends ApiAbstractController {
|
|
|
private JwtUtils jwtUtils;
|
|
|
|
|
|
|
|
|
- private WxMaService wxService;
|
|
|
-
|
|
|
@Autowired
|
|
|
private IMemberService memberService;
|
|
|
|
|
@@ -84,7 +83,7 @@ public class ApiLoginController extends ApiAbstractController {
|
|
|
WxUserInfo wxUserInfo = wxLoginFrom.getUserInfo();
|
|
|
String token, sessionKey, openId, unionId;
|
|
|
try {
|
|
|
- WxMaJscode2SessionResult result = this.wxService.getUserService().getSessionInfo(code);
|
|
|
+ WxMaJscode2SessionResult result = WxMaConfiguration.getMaService().getUserService().getSessionInfo(code);
|
|
|
unionId = result.getUnionid();
|
|
|
sessionKey = result.getSessionKey();
|
|
|
openId = result.getOpenid();
|