Files
biz_xfj_cloud/lib/common/values/constants.dart
T
2026-09-22 16:08:42 +08:00

49 lines
1.5 KiB
Dart

import 'package:logger/logger.dart';
/// 常量
class Constants {
// mini 客户端免验证码,且服务端不会解密登录密码。
static const oauth2AppClient = 'mini:mini';
/// 登录密码加密开关,必须与 OAuth2 客户端的密码加密配置保持一致。
static const loginPasswordEncryptionEnabled = false;
// oauth2 登录的url
static const oauth2AppApiUrl = 'auth/oauth2/token';
// 前端加密密钥
static const pwdEncKey = 'pigxpigxpigxpigx';
/// 服务 url 线上
// static const apiUrl = 'https://dzc-test-1.fy.takin.cc';
static const apiUrl = 'https://www.zianxin.com/api';
// static const apiUrl = 'https://dzc-test-1.fy.takin.cc';
/// 静态资源 url 497
static const ossUrl = apiUrl;
/// 生产模式写入文件的最低日志等级,达到该等级及以上的日志才会持久化。
static const productionFileLogLevel = Level.warning;
/// 人脸识别 插件方法管道
static const facePlugsMethodChannel = 'local/face_discern';
/// 人脸识别 插件回调管道
static const facePlugsEventChannel = 'local/face_discern_event';
/// 人脸库注册进度管道
static const facePlugsRegistrationEventChannel =
'local/face_discern_registration_event';
/// 在库照片批量质量检测进度事件通道。
static const facePlugsQualityAuditEventChannel =
'local/face_discern_quality_audit_event';
/// 数据库名字
static const databaseName = 'cash_register.db';
/// 设备唯一编码
static const deviceUniqueCode = 'EjFJx0WQ';
}