This commit is contained in:
gyq
2025-09-25 11:16:36 +08:00
15 changed files with 486 additions and 44 deletions

View File

@@ -5,8 +5,9 @@ export default (params) => {
let type = params.type || 1;
let toast = params.toast || true;
let token=uni.cache.get('token') || '';
const shopId=uni.cache.get('shopId')*1;
// #ifdef H5
token="b152112b96e24feb8aa47062136c043b"
token="21f0a0b10e1d40ce9c6464037fedb792"
// #endif
let header = {
version: uni.conf.version,
@@ -25,7 +26,7 @@ export default (params) => {
// #endif
token,
id: uni.cache.get('userInfo').id || '',
shopId: uni.cache.get('shopId') || '',
shopId:shopId || '',
userId: uni.cache.get('userInfo').id || '',
}
if (toast) {