12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- const globalData = {
- publicUrl: 'https://sqdx.windd.cn',
- publicUrl2: 'https://sqdx.windd.cn',
- publicUrl3: 'https://sqdx.windd.cn',
- publicSocketUrl: 'wss://sqdx.windd.cn'
- };
- // const app = getApp();
- // var filters = {
- // getSessionKey: function () {
- // var sessionKey = "";
- // var _this = this;
- // wx.checkSession({
- // success: () => {
- // sessionKey = wx.getStorageSync('sessionKey');
- // return sessionKey
- // },
- // fail() {
- // console.log("我没有缓存并去登录请求")
- // wx.login({
- // success(res) {
- // console.log(res);
- // var code = res.code
- // wx.request({
- // url: app.globalData.publicUrl2 + '/wx/user/wx7e7a46e129d6cd0f/login',
- // method: "get",
- // data: {
- // code
- // },
- // success: function (res) {
- // sessionKey = res.data.sessionKey;
- // wx.setStorageSync('sessionKey', res.data.sessionKey);
- // return sessionKey;
- // }
- // })
- // }
- // })
- // }
- // })
- // }
- // }
- module.exports = {
- globalData: globalData
- }
|