左晓为主开发手持机充值管理机
zuojincheng
2025-03-26 1bc1acff2127d61b359800096ad5b904370d9176
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
package com.dayu.baselibrary.utils;
 
/**
 * author: zuo
 * Date: 2024-09-27
 * Time: 10:18
 * 备注:机型相关公共方法
 */
public class ModelUtils {
 
    /**
     * 默认的调用方式(安卓原生)
     */
    public final static int defaultType = 0;
    /**
     * 华智融海的SDK
     */
    public final static int HuaZhiRongHaiType = 1;
 
    public final static int ShangMiType = 2;
 
    //判断是哪个机型
    public static int getModelType() {
        int type;
//        try {
//            Class.forName("com.pos.device.config.DevConfig");
//            type = ModelUtils.HuaZhiRongHaiType;
//            return type;
//        } catch (ClassNotFoundException e) {
            type = ModelUtils.ShangMiType;
            return type;
//        }
    }
}