| | |
| | | #if DEBUG |
| | | //let All_Url = "http://192.168.110.80:56666" //正式地址 |
| | | //let All_Url = "http://vbef9arg13uu.guyubao.com" |
| | | let All_Url = "http://221.182.45.100:1234" //正式地址 |
| | | let Game_Url = "http://221.182.45.100:1234" |
| | | //let All_Url = "http://221.182.45.100:1234" //正式地址 |
| | | //let Game_Url = "http://221.182.45.100:1234" |
| | | |
| | | |
| | | let All_Url = "https://y6cgd7wo3ooa.guyubao.com" //正式地址 |
| | | let Game_Url = "https://y6cgd7wo3ooa.guyubao.com" |
| | | |
| | | //let Socket_Url = "192.168.110.22" |
| | | #else |
| | | let All_Url = "http://8.137.22.229:56666" //正式地址 |
| | |
| | | return NetworkRequest.request(params: params, method: .post, progress: false) |
| | | } |
| | | |
| | | /// |
| | | class func vipPayment()->Observable<BaseResponse<VipDataModel>>{ |
| | | let params = ParamsAppender.build(url: All_Url) |
| | | .interface(url: "/account/api/appUser/vipPayment") |
| | | return NetworkRequest.request(params: params, method: .post, progress: true) |
| | | } |
| | | |
| | | |
| | | /// 充值列表 |
| | | class func voucherCenter()->Observable<BaseResponse<[CoinExchangeModel]>>{ |
| | |
| | | return NetworkRequest.request(params: params, method: .post, progress: false) |
| | | } |
| | | |
| | | class func enrollMember(paytype:PayType)->Observable<BaseResponse<PaymentModel>>{ |
| | | class func enrollMember(paytype:PayType,id:Int)->Observable<BaseResponse<PaymentModel>>{ |
| | | let params = ParamsAppender.build(url: All_Url) |
| | | .interface(url: "/account/api/appUser/addVipPayment") |
| | | .append(key: "payType", value: paytype.rawValue) |
| | | .append(key: "id", value: id) |
| | | return NetworkRequest.request(params: params, method: .post, progress: true) |
| | | } |
| | | |
| | |
| | | return NetworkRequest.request(params: params, method: .post, progress: true) |
| | | } |
| | | |
| | | class func startWorldCup(code:String,people:String,worldCupId:Int)->Observable<BaseResponse<SimpleModel>>{ |
| | | class func startWorldCup(code:String,people:String,worldCupId:Int)->Observable<BaseResponse<String>>{ |
| | | let params = ParamsAppender.build(url: All_Url) |
| | | .interface(url: "/communityWorldCup/api/worldCup/startWorldCup") |
| | | .append(key: "code", value: code) |