|
|
@@ -39,7 +39,7 @@ public class AdvertisementUserServiceImpl extends ServiceImpl<AdvertisementUserM
|
|
|
private final WeChatService weChatService;
|
|
|
|
|
|
@Override
|
|
|
- public AdvertisementUser wxlogin(String code, String appId) {
|
|
|
+ public AdvertisementUser wxlogin(String code, String appId) throws Exception{
|
|
|
MiniProgramSession session = weChatService.code2Session(appId,code);
|
|
|
if(StringUtils.isBlank(session.getOpenid())){
|
|
|
throw BusinessRuntimeException.getInstance("获取用户信息异常.");
|