|
@@ -3,11 +3,9 @@ import request from '@/utils/request'
|
|
|
// 获取不限制的小程序码
|
|
|
export function getUnlimitedQRCode(data = {}) {
|
|
|
// 从本地存储获取用户类型和用户ID
|
|
|
- const userType = uni.getStorageSync('userType') || 1;
|
|
|
+ const userType = 1;
|
|
|
const userId = uni.getStorageSync('userId') || '';
|
|
|
|
|
|
- // 打印日志,便于调试
|
|
|
- console.log('从本地存储获取用户信息:', { userType, userId });
|
|
|
|
|
|
return request({
|
|
|
url: '/core/InviteUser/getInviteQrCode',
|
|
@@ -21,7 +19,7 @@ export function getUnlimitedQRCode(data = {}) {
|
|
|
// auto_color: data.auto_color || false, // 自动配置线条颜色
|
|
|
// line_color: data.line_color || { r: 0, g: 0, b: 0 }, // 使用 rgb 设置颜色
|
|
|
// is_hyaline: data.is_hyaline || false, // 是否需要透明底色
|
|
|
- referrerType: userType, // 使用本地存储的 userType
|
|
|
+ referrerType: userType,
|
|
|
referrerId: userId, // 使用本地存储的 userId
|
|
|
page:'pages/login',
|
|
|
scene: data.scene || `${userType}:${userId}`, // 同样使用本地存储的值生成 scene
|