554325746@qq.com
2019-08-07 2539f53391765abb74b6fe63f46e5a2c701e950f
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
package com.basic.security.manager.impl.sqlite;
 
import android.text.TextUtils;
 
import com.couchbase.lite.Expression;
import com.basic.security.model.ModelAdapter;
 
public class SlBackTimeManager extends SlBaseManager {
 
    public static int getBackTimeSeconds(String name) {
        try {
            ModelAdapter backTime =  findOne("select * from back");
            String s = backTime.getString(name);
            if (!TextUtils.isEmpty(s)) {
                int i = Integer.parseInt(s);
                return i;
            }
        } catch (Exception e) {
            e.printStackTrace();
        }
        return 10;
 
    }
 
}