118 lines
4.5 KiB
Dart
118 lines
4.5 KiB
Dart
import '../beans/config_bean.dart';
|
|
import '../beans/sign_bean.dart';
|
|
import '../beans/user_info_bean.dart';
|
|
|
|
class NetworkConfig {
|
|
static String ServerDomain_Online = BASE_URLS[SELECT_INDEX];
|
|
|
|
/// 选择哪个域名做请求
|
|
static int SELECT_INDEX = 0;
|
|
|
|
static List BASE_URLS = [
|
|
"https://api.onelight.vip/",
|
|
// "http://192.168.1.23:81/",
|
|
];
|
|
|
|
// static List BASE_URLS_AI = [
|
|
// "http://192.168.1.23:81/",
|
|
// ];
|
|
|
|
static bool isTest = true;
|
|
|
|
static String token = ""; //请求头
|
|
static String userToken = ""; //用户登录验签
|
|
static String signKey = ""; //加密key
|
|
static bool isChecking = false; //是否是审核模式
|
|
static String deviceID = ""; //设备号
|
|
static String deviceName = ""; //设备名称
|
|
static String Channel = ""; //渠道号
|
|
static String Platform = ""; //设备平台名称
|
|
static String userId = "";
|
|
static String userName = "";
|
|
static String Version = "1.0.0"; //应用版本
|
|
static String Language = "zh"; //系统语言
|
|
static UserInfoBean? userInfoBean; //用户信息
|
|
static String orderId = ""; //订单号
|
|
static SignBean? signData; //签到
|
|
static ConfigBean? configBean; //app配置
|
|
static bool isGameSdk = false; //游戏SDK是否启动成功
|
|
static String gameId = ""; //游戏SDK是否启动成功
|
|
|
|
static const String getAppConfig = "api/App/GetAppConfig"; //应用配置
|
|
|
|
static const String getHomeInfo = "api/Home/GetHomeInfo"; //首页信息
|
|
|
|
static const String getGameRankingList = "api/Home/GetGameRankingList"; //首页排行榜
|
|
|
|
static const String gameSearch = "api/Game/GameSearch"; //游戏搜索
|
|
|
|
static const String getGameTypeList = "api/Game/GetGameTypeList"; //游戏列表分类
|
|
|
|
static const String getGameList = "api/Game/GetGameList"; //分类游戏列表
|
|
|
|
static const String getGameInfo = "api/Game/GetGameInfo"; //获取游戏详情
|
|
|
|
static const String gameRecommendations = "api/Game/GameRecommendations"; //游戏详情页游戏推荐
|
|
|
|
static const String gameCollect = "api/Game/GameCollect"; //收藏游戏
|
|
|
|
static const String getGameCollect = "api/Game/GetGameCollect"; //收藏列表
|
|
|
|
static const String sendPhoneNumber = "api/Account/SendPhoneNumber"; //验证码
|
|
|
|
static const String login = "api/Account/Login"; //登录
|
|
|
|
static const String getUserInfo = "api/Account/GetUserInfo"; //用户信息
|
|
|
|
static const String realAuthentication = "api/Account/RealAuthentication"; //实名认证
|
|
|
|
static const String getUserDiamondConsumeList = "api/Account/GetUserDiamondConsumeList"; //支出/收入
|
|
|
|
static const String updateUserNickName = "api/Account/UpdateUserNickName"; //修改昵称
|
|
|
|
static const String getGameHistory = "api/Game/GetGameHistory"; //游玩历史
|
|
|
|
static const String gamePlayTimeList = "api/Game/GamePlayTimeList"; //游戏详情页,游戏时长排行榜
|
|
|
|
static const String getDiamondMall = "api/Mall/GetDiamondMall"; //商城数据
|
|
|
|
static const String createOrder = "api/Payment/CreateOrder"; //创建订单
|
|
|
|
static const String getOrderRewardsInfo = "api/Payment/GetOrderRewardsInfo"; //获取订单状态
|
|
|
|
static const String useRedemptionCode = "api/Redemption/UseRedemptionCode"; //兑换码
|
|
|
|
static const String getSevenSignList = "api/SevenDay/GetSevenSignList"; //签到列表
|
|
|
|
static const String sevenSignToday = "api/SevenDay/SevenSignToday"; //领取签到
|
|
|
|
static const String sendFeedBack = "api/FeedBack/SendFeedBack"; //反馈
|
|
|
|
static const String gameHotSearch = "api/Game/GameHotSearch"; //热门搜索
|
|
|
|
static const String getUserMessageNotReadCount = "api/Messages/GetUserMessageNotReadCount"; //未读消息数
|
|
|
|
static const String getUserMessageList = "api/Messages/GetUserMessageList"; //消息列表
|
|
|
|
static const String getUserMessageInfo = "api/Messages/GetUserMessageInfo"; //消息详情
|
|
|
|
static const String getToken = "api/PlayGame/GetToken"; //获取游戏Token
|
|
|
|
static const String playGame = "api/PlayGame/PlayGame"; //启动游戏
|
|
|
|
static const String getMyScList = "api/PlayGame/GetMyScList"; //获取可重连的游戏
|
|
|
|
static const String reconPlayGame = "api/PlayGame/ReconPlayGame"; //重连游戏
|
|
|
|
static const String exitPlayGame = "api/PlayGame/ExitPlayGame"; //退出游戏
|
|
|
|
static const String playGameQueue = "api/PlayGame/PlayGameQueue"; //游戏排队
|
|
|
|
static const String cancelQueue = "api/PlayGame/CancelQueue"; //取消排队
|
|
|
|
static const String exitApp = "api/Account/ExitApp"; //应用退出
|
|
|
|
static const String accountLogOff = "api/Account/AccountLogOff"; //注销账号
|
|
|
|
}
|