diff --git a/api/request.js b/api/request.js index 1916203..baffe03 100644 --- a/api/request.js +++ b/api/request.js @@ -7,9 +7,9 @@ import { errInfo } from './err' import { updToken } from './updateToken' // 正式地址 -// const api = "https://api.xuanhuojk.com/api/" +const api = "https://api.xuanhuojk.com/api/" // 测试地址 -const api = "https://api.xhtest.douhuofalv.com/api/" +// const api = "https://api.xhtest.douhuofalv.com/api/" const header = { "Accept" : "application/json" } diff --git a/pages/mall/details/details.js b/pages/mall/details/details.js index 86b661e..2abd78f 100644 --- a/pages/mall/details/details.js +++ b/pages/mall/details/details.js @@ -88,8 +88,8 @@ Page({ mask : true }) wx.request({ - url : 'https://api.xhtest.douhuofalv.com/api/mall/goods/' + this.data.goodsId, - // url : 'https://api.xuanhuojk.com/api/mall/goods/' + this.data.goodsId, + // url : 'https://api.xhtest.douhuofalv.com/api/mall/goods/' + this.data.goodsId, + url : 'https://api.xuanhuojk.com/api/mall/goods/' + this.data.goodsId, header : { "Accept" : "application/json", "channel" : "client",