This commit is contained in:
@@ -415,7 +415,8 @@ export default {
|
|||||||
// 检查用户信息,若缓存中没有则调接口获取
|
// 检查用户信息,若缓存中没有则调接口获取
|
||||||
if (!this.userId) {
|
if (!this.userId) {
|
||||||
try {
|
try {
|
||||||
const infoRes = await gatewayGet('/api/v1/user/info', {});
|
const openId = uni.getStorageSync('openid') || '';
|
||||||
|
const infoRes = await gatewayGet('/api/v1/user/info', { open_id: openId });
|
||||||
const infoData = (infoRes.data || {}).data || {};
|
const infoData = (infoRes.data || {}).data || {};
|
||||||
if (infoData.user_id) {
|
if (infoData.user_id) {
|
||||||
const existing = getCachedUserInfo() || {};
|
const existing = getCachedUserInfo() || {};
|
||||||
|
|||||||
Reference in New Issue
Block a user