| | |
| | | public static class SOCKET_METHOD { |
| | | public final static String OK = "OK"; |
| | | public final static String GRAB_ORDER = "GRAB_ORDER"; |
| | | public final static String ORDER_STATUS = "ORDER_STATUS"; |
| | | public final static String PUSH_ORDER = "PUSH_ORDER"; |
| | | public final static String ORDER_INFO = "ORDER_INFO"; |
| | | public final static String OFFLINE = "OFFLINE"; |
| | | |
| | |
| | | Const.SOCKET_METHOD.OK -> { |
| | | testReceiveNum++ |
| | | } |
| | | Const.SOCKET_METHOD.PUSH_ORDER -> { |
| | | Handler(Looper.getMainLooper()).postDelayed({ |
| | | getTTsManager().setVideoText("有新的订单进入大厅,可前往查看进行抢单") |
| | | }, 600) |
| | | } |
| | | Const.SOCKET_METHOD.OFFLINE -> { |
| | | CacheKey.putKeyStr("token", "") |
| | | CacheKey.putKeyStr("rongToken", "") |
| | |
| | | */ |
| | | |
| | | public class Api { |
| | | public static final boolean isTest = true; |
| | | public static final boolean isTest = false; |
| | | |
| | | //内网https://okyueche.com:443/driver/ |
| | | // public static final String BASE_URL = "http://192.168.110.80/driver-server/"; |