| 1234567891011121314151617181920212223242526272829 |
- //app.js
- App({
- onLaunch: function (options) {
- this.getSystemInfo();
- if (options && options.scene) {
- console.log("scene:" + options.scene);
- this.globalData.userSource = options.scene;
- }
- if (options && options.shareTicket) {
- this.globalData.shareTicket = options.shareTicket;
- }
- },
- getSystemInfo: function () {
- this.globalData.systemInfo = wx.getSystemInfoSync();
- },
- globalData: {
- version: "0.1.3",
- IsProduction: false,
- ProgramID: 105,
- StartSecond: 4,
- fileUrl: "https://kylx365-1253256735.file.myqcloud.com/",
- serverUrl: "https://www.kylx365.com/apiData/",
- serverUrlServer: "https://www.kylx365.com/apiData/",
- serverUrlLocalhost: "http://localhost:3020/apiData/",
- audioUrlBaidu: "https://tsn.baidu.com/text2audio?lan=zh&ctp=1&cuid=abcdxxx&tok=[token]&tex=[word]&vol=9&per=1&spd=8&pit=5",
- Key: "kylx365_chengjie",
- IV: "kylx365hongliren",
- }
- })
|