uni.setStorageSync('cookies_key', res.header['cookie']);
uni.getStorage({
key: 'cookies_key',
success: function(res) {
let cookies = res.data; // 获取存储的 cookie 数据
makeRequest(cookies);
},
fail: function() {
let cookies = getApp().globalData.cookie;
makeRequest(cookies);
}
});
1 个回复
2***@qq.com (作者)
这两个是代码,麻烦看一下