Commit ff7d6631 authored by lee_mingzhu's avatar lee_mingzhu

添加跳转商城具体页面的逻辑

parent edf6d7f6
......@@ -10,4 +10,5 @@ import org.springframework.data.jpa.repository.JpaRepository;
public interface IWeChatUserRepository extends JpaRepository<WechatUserInfo, Long> {
WechatUserInfo findByOpenId(String openId);
WechatUserInfo findByPhoneNo(String phoneNo);
WechatUserInfo findByUserId(Long userId);
}
......@@ -15,4 +15,6 @@ public interface IWechatService {
WechatUserInfo findWechatUserInfoByPhoneNo(String phoneNo);
WechatUserInfo saveWechatUserInfo(WechatUserInfo userInfo);
WechatUserInfo queryOpenIdByUserId(Long userId);
}
......@@ -134,4 +134,9 @@ public class WechatServiceImpl implements IWechatService {
}
return httpService.get(String.format(refreshTokenUrl, refreshToken));
}
@Override
public WechatUserInfo queryOpenIdByUserId(Long userId) {
return weChatUserRepository.findByUserId(userId);
}
}
......@@ -15,7 +15,7 @@ xyqb.filter.allowedHeaders=Origin, No-Cache, x-auth-token, X-Requested-With, If-
xyqb.data.redis.defaultExpiration=3600
# redis
xyqb.redis.master.host=192.168.4.103
xyqb.redis.master.host=192.168.4.13
xyqb.redis.master.port=6379
xyqb.redis.master.name=
xyqb.redis.sentinel1.host=
......@@ -67,6 +67,6 @@ xyqb.auth.url=http://192.168.192.206:9001
usersys.url=http://localhost:9001
xyqb-user.ui=http://192.168.12.40:8080
xyqb-user.ui=http://192.168.100.36:7043
wechat.appid=wxcdf6077af8127559
wechat.secret=16eaec16084d0d9c52d4114f359cc72c
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment