plugin.init({
appid: "dDRilp8aqw7KRGrQQ3ri4RAA1XJU0k",
openid: wx.getStorageSync('openId'), // 小程序的openid,必填项
autoRecommendGuideList: false,
robotHeader: 'https://yss-oss-test.oss-cn-shenzhen.aliyuncs.com/prod/solid _waste.png',
userHeader: 'https://yss-oss-test.oss-cn-shenzhen.aliyuncs.com/prod/personal.png',// 用户头像,不传会弹出登录框
userName: "xxname", // 用户昵称,不传会弹出登录框
anonymous: false, // 是否允许匿名用户登录,版本1.2.9后生效, 默认为false,设为true时,未传递userName、userHeader两个字段时将弹出登录框
guideList: ["配置1","配置2"],
welcome:["这是配置欢迎语"],
welcomeImage: 'https://yss-oss-test.oss-cn-shenzhen.aliyuncs.com/dev/1626140531123.png',
background: "rgba(247,251,252,1)",
history: false,
success: () => {},
fail: () => {},
});
新版插件没有这个问题了,https://mp.weixin.qq.com/wxopen/pluginbasicprofile?action=intro&appid=wx8c631f7e9f2465e1&token=&lang=zh_CN