| | |
| | | extension Services{ |
| | | |
| | | /// 本地离线游戏 |
| | | class func game_gameList(spaceId:String,sutuId:String)->Observable<BaseResponse<[GameListModel]>>{ |
| | | let params = ParamsAppender.build(url: Game_Url) |
| | | .interface(url: "/v7/user_api/general/gameList") |
| | | .append(key: "space_id", value: spaceId) |
| | | .append(key: "sutu_id", value: sutuId) |
| | | .append(key: "sign", value: "0DB011836143EEE2C2E072967C9F4E4B") |
| | | return NetworkRequest.request(params: params, method: .post, encoding: JSONEncoding.default, progress: false) |
| | | class func game_gameList(spaceId:Int,storeId:Int)->Observable<BaseResponse<[GameListModel]>>{ |
| | | let params = ParamsAppender.build(url: All_Url) |
| | | .interface(url: "/other/api/game/queryGameList") |
| | | .append(key: "siteId", value: spaceId) |
| | | .append(key: "storeId", value: storeId) |
| | | return NetworkRequest.request(params: params, method: .post, progress: false) |
| | | } |
| | | |
| | | //支付游戏 |
| | | class func payGame(configId:Int,gameId:Int,spaceId:Int,sutuId:Int,type:PayType)->Observable<BaseResponse<PaymentModel>>{ |
| | | let params = ParamsAppender.build(url: All_Url) |
| | | .interface(url: "/other/api/game/payGame") |
| | | .append(key: "configId", value: configId) |
| | | .append(key: "gameId", value: gameId) |
| | | .append(key: "spaceId", value: spaceId) |
| | | .append(key: "sutuId", value: sutuId) |
| | | .append(key: "type", value: type.rawValue) |
| | | return NetworkRequest.request(params: params, method: .post, progress: false) |
| | | } |
| | | |
| | | /// 启动本地游戏 |
| | | class func game_gameStart(gameId:Int,spaceId:String,sutuId:String,userID:Int)->Observable<BaseResponse<SimpleModel>>{ |
| | | class func game_gameStart(gameId:Int,spaceId:Int,sutuId:Int,userID:Int)->Observable<BaseResponse<SimpleModel>>{ |
| | | let params = ParamsAppender.build(url: Game_Url) |
| | | .interface(url: "/v7/user_api/general/gameStart") |
| | | .append(key: "space_id", value: spaceId) |
| | |
| | | return NetworkRequest.request(params: params, method: .post, progress: false) |
| | | } |
| | | |
| | | class func homeInfo2(storeId:Int)->Observable<BaseResponse<HomeStoreModel>>{ |
| | | class func homeStoreConfig2(storeId:Int)->Observable<BaseResponse<[HomeStoreConfigModel]>>{ |
| | | let params = ParamsAppender.build(url: All_Url) |
| | | .interface(url: "/other/base/store/queryIndexSet") |
| | | .append(key: "id", value: storeId) |