36 lines
1.1 KiB
Dart
36 lines
1.1 KiB
Dart
export 'modules/auth_api.dart';
|
|
export 'modules/file_api.dart';
|
|
export 'modules/basic_info_api.dart';
|
|
export 'modules/hidden_danger_api.dart';
|
|
export 'modules/special_work_api.dart';
|
|
|
|
class ApiService {
|
|
/// 是否正式环境
|
|
static final bool isProduct = false;
|
|
|
|
/// 登录及其他管理后台接口
|
|
static final String basePath =
|
|
isProduct
|
|
? "https://gbs-gateway.qhdsafety.com"
|
|
: "http://192.168.20.100:30140";
|
|
|
|
/// 图片文件服务
|
|
static final String baseImgPath =
|
|
isProduct
|
|
? "https://jpfz.qhdsafety.com/gbsFileTest/"
|
|
: "http://192.168.20.100:9787/mnt/"; //内网图片地址
|
|
|
|
static const publicKey =
|
|
'0402df2195296d4062ac85ad766994d73e871b887e18efb9a9a06b4cebc72372869b7da6c347c129dee2b46a0f279ff066b01c76208c2a052af75977c722a2ccee';
|
|
|
|
/// SM2 私钥
|
|
static const privateKey =
|
|
'1cfcaab309f614f10d2fed833331b65da75da7682963a6673a9a5d836b6f8c18';
|
|
|
|
/// 平台
|
|
static final clientId = isProduct ? 'XGFZD' : 'xgfzd';
|
|
|
|
/// appKey
|
|
static const appKey = '0bb989ecada5470c87635018ece9f327';
|
|
}
|