修复运行到支付宝小程序报错和websokcet连接问题
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user