无故事王国
2023-11-02 cff96b5ae124efe4379cb4dc1695d668f3190a49
WanPai/Network/Services.swift
@@ -12,15 +12,18 @@
import JQTools
#if DEBUG
//let All_Url = "http://192.168.110.27:56666" //罗易胜
//let Socket_Url = "192.168.110.22"
let All_Url = "http://8.137.22.229:56666" //正式地址
let All_Url = "http://192.168.110.27:56666" //罗易胜
//let All_Url = "http://8.137.22.229:56666" //正式地址
let Game_Url = "https://try.daowepark.com"
   //let Socket_Url = "192.168.110.22"
#else
let All_Url = "http://8.137.22.229:56666" //正式地址
//let Socket_Url = "192.168.110.22"
//let Game_Url = "https://port.daowepark.com"//正式地址
let Game_Url = "https://try.daowepark.com" //测试地址
   //let Socket_Url = "192.168.110.22"
#endif
class Services: NSObject {
@@ -791,6 +794,14 @@
        return NetworkRequest.request(params: params, method: .post, progress: true)
    }
      /// 积分商城-商品详情
   static func UseBenefitDetailOne(goodsId:Int)->Observable<BaseResponse<ExchangeGoodsModel>>{
      let params = ParamsAppender.build(url: All_Url)
         .interface(url: "/account/api/useBenefit/goodsDetailsOne")
         .append(key: "goodId", value: goodsId)
      return NetworkRequest.request(params: params, method: .post, progress: true)
   }
        /// 兑换门店
    static func exchangeStoreIds(id:Int,type:ExchangeType)->Observable<BaseResponse<[StoreSimpleModel]>>{
        let params = ParamsAppender.build(url: All_Url)
@@ -932,7 +943,7 @@
         .append(key: "halfName", value: halfName)
         .append(key: "isHalf", value: isHalf)
         .append(key: "nextName", value: nextName)
        return NetworkRequest.request(params: params, method: .post, progress: true)
        return NetworkRequest.request(params: params, method: .post, progress: true,ignoreAlert: true)
    }
        /// 获取优惠券列表