app.js 936 B

1234567891011121314151617181920212223242526272829
  1. //app.js
  2. App({
  3. onLaunch: function (options) {
  4. this.getSystemInfo();
  5. if (options && options.scene) {
  6. console.log("scene:" + options.scene);
  7. this.globalData.userSource = options.scene;
  8. }
  9. if (options && options.shareTicket) {
  10. this.globalData.shareTicket = options.shareTicket;
  11. }
  12. },
  13. getSystemInfo: function () {
  14. this.globalData.systemInfo = wx.getSystemInfoSync();
  15. },
  16. globalData: {
  17. version: "0.1.3",
  18. IsProduction: false,
  19. ProgramID: 105,
  20. StartSecond: 4,
  21. fileUrl: "https://kylx365-1253256735.file.myqcloud.com/",
  22. serverUrl: "https://www.kylx365.com/apiData/",
  23. serverUrlServer: "https://www.kylx365.com/apiData/",
  24. serverUrlLocalhost: "http://localhost:3020/apiData/",
  25. audioUrlBaidu: "https://tsn.baidu.com/text2audio?lan=zh&ctp=1&cuid=abcdxxx&tok=[token]&tex=[word]&vol=9&per=1&spd=8&pit=5",
  26. Key: "kylx365_chengjie",
  27. IV: "kylx365hongliren",
  28. }
  29. })