|
@@ -1,13 +1,20 @@
|
|
|
class HTTP {
|
|
|
constructor() {
|
|
|
- let ENV = wx.getAccountInfoSync().miniProgram.envVersion;
|
|
|
- if (ENV === 'release') { // 正式版
|
|
|
- // this.baseUrl = "https://lsa.cnyunl.com";
|
|
|
+ this.ENV = wx.getAccountInfoSync().miniProgram.envVersion;
|
|
|
+ this.urls = [{
|
|
|
+ name: "云链E订单",
|
|
|
+ url: "https://www.cnyunl.com"
|
|
|
+ }, {
|
|
|
+ name: "楚楚",
|
|
|
+ url: "https://cucu.cnyunl.com:8079"
|
|
|
+ }, {
|
|
|
+ name: "开发环境",
|
|
|
+ url: "http://61.164.207.46:8200"
|
|
|
+ }]
|
|
|
+ if (this.ENV === 'release') { // 正式版
|
|
|
this.baseUrl = "https://www.cnyunl.com";
|
|
|
} else {
|
|
|
- // this.baseUrl = "https://www.cnyunl.com";
|
|
|
this.baseUrl = "http://61.164.207.46:8200";
|
|
|
- // this.baseUrl = "https://cucu.cnyunl.com:8079";
|
|
|
}
|
|
|
console.log("接口地址:", this.baseUrl)
|
|
|
}
|