xuxiuxi
2017-05-25 7e7f99a8c753e7a2a70fd854a79bf75b861bdc66
VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/service/DeviceMng.java
@@ -22,7 +22,7 @@
public class DeviceMng {
    public static DeviceMng instance = new DeviceMng();
    public static String authorationId = null;
    public static String authorationId = "101";
    public static DeviceMng getInstance() {
        return instance;
@@ -50,10 +50,16 @@
    public void load () {
        try {
            if (authorationId == null || authorationId.trim().length() <= 1) {
                getAuthorationId();
                return;
            }
//            if (authorationId == null || authorationId.trim().length() <= 1) {
//                getAuthorationId();
//                MainActivity.getInstance().runOnUiThread(new Runnable() {
//                    @Override
//                    public void run() {
//                        Toast.makeText(MainActivity.getInstance(), "请填写设备序列号", Toast.LENGTH_SHORT).show();
//                    }
//                });
//                return;
//            }
            RequestParams params = new RequestParams(AppApi.BASE_URL + AppApi.Query.DEVICE_QUERY);
            params.addBodyParameter(Device.FieldNames.authorizationId, authorationId);
            x.http().post(params, new BaseCommonCallBack() {