修复运行到支付宝小程序报错和websokcet连接问题

This commit is contained in:
2025-05-19 18:45:37 +08:00
parent 11ceead115
commit 447c8d1147
5 changed files with 528 additions and 99 deletions

View File

@@ -4,6 +4,7 @@ export default (params) => {
let data = params.data || {};
let type = params.type || 1;
let toast = params.toast || true;
let userInfo=uni.cache.get('userInfo')||{id:''}
let header = {
version: uni.conf.version,
type: uni.getSystemInfoSync().platform,
@@ -20,9 +21,9 @@ export default (params) => {
platformType: 'ALI',
// #endif
token: uni.cache.get('token') || '',
id: uni.cache.get('userInfo').id || '',
id: userInfo.id ,
shopId: uni.cache.get('shopId') || '',
userId: uni.cache.get('userInfo').id || '',
userId:userInfo.id
}
if (toast) {
uni.showLoading({