autosos_flutter/lib/config/constant.dart

81 lines
3.0 KiB
Dart
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

class Constant{
//测试地址
static const String testHost = "http://api.test.jjsos.cn";
//线上地址
static const String host = "http://api.jjsos.cn";
//图片的host
static const String pictureHost = "http://pic.jjsos.cn";
//工单签字地址
static const String testWorkOrderUrl = "http://backend.test.jjsos.cn/old/elc-work-new-app?order_id=";
static const String workOrderUrl = "http://backend.jjsos.cn/old/elc-work-new-app?order_id=";
//是否在线
static bool isOrderStar = false;
//是否打开页面
static bool isOpen = false;
//网络是否正常(心跳检测)
static bool weberror=false;
//上一次心跳时间
static int heartbeatTime = 0;
static int onlineTime = 0;
//是否服务中
static bool isService = false;
static bool isMain = false;
//是否有消息
static bool hasMessage = false;
static bool hasMessageInform = false;
static const String WX_ID = "wx3bd407849a19c609";
static const String WX_Secret = "efb0ca67e9b2a58fb5b460b8b4153563";
//当前位置
static double lat = 0.00;
static double lng = 0.00;
static String address = "";
//退出登录
static const String OUT_LOGIN_TOKEN = "OUT_LOGIN_TOKEN";
//抛单空驶订单签字回调
static const String ORDER_EMPTY_SIGN_TOKEN = "ORDER_EMPTY_SIGN_TOKEN";
//新订单来了 推送token
static const String ORDER_NEW_TOKEN = "ORDER_NEW_TOKEN";
//取消推送
static const String ORDER_CANCEL_TOKEN = "ORDER_CANCEL_TOKEN";
//空时推送
static const String ORDER_EMPTY_TOKEN = "ORDER_EMPTY_TOKEN";
//订单刷新通知
static const String ORDER_REFRESH_TOKEN = "ORDER_REFRESH_TOKEN";
//订单支付完成
static const String ORDER_PAY_TOKEN = "ORDER_PAY_TOKEN";
//订单完成
static const String ORDER_COMPLETE_TOKEN = "ORDER_COMPLETE_TOKEN";
//音频token
//您有新的内部订单请注意查收
static const int NEW_ORDER_INSIDE = 1;
//您有新的啾啾救援订单请注意查收
static const int NEW_ORDER_JIUJIU = 2;
//订单已被后台关闭
static const int ORDER_BACKSTAGE_CLOSE = 3;
//订单已被修改,请刷新
static const int ORDER_BACKSTAGE_MODIFY = 4;
//关闭有费空时关闭
static const int ORDER_BACKSTAGE_CLOSE_CHARGE = 5;
//您是否真的到达救援现场
static const int WHETHER_ARRIVE_SCENE = 6;
//您已进入离线模式待网络正常后上传照片
static const int ENTERED_OFFLINE_MODE = 7;
//真的关闭订单吗
static const int ORDER_WHETHER_CLOSE = 8;
//完成后继续接单
static const int ORDER_COMPLETE = 9;
//app当前版本号-版本管理
static String newVersion="4.1.3.9";
//更新状态 0=未获取更新信息1=无需更新2=需要非强制更新3=强制更新 4=接口异常(可登录) 5=网络异常(重试)
static int NECUPDATE =0;
static bool isDriverMessage = false;
static bool isServiceTrailer = true;
static String arriveTipsStr = "";
static String uploadStartStr = "";
}