xuxiuxi
2017-04-20 d2f697fa887e28b86d38332e2fbde930c54fb43f
VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/service/RegisterMng.java
@@ -23,7 +23,9 @@
    }
    public void add(RequestParams params) {
        if (!BaseApplication.deviceAvailable) {
            return;
        }
        try {
            File path = BaseApplication.getInstance().getFilesDir();
            File f1 = new File(path, "1.txt");
@@ -43,8 +45,7 @@
            params.setUri(AppApi.BASE_URL +AppApi.REGISTER_ADD);
            params.addBodyParameter("file1", f1);
            params.addBodyParameter("file2", f2);
        }catch(Exception e) {
            e.printStackTrace();            x.http().post(params, new BaseCommonCallBack() {
            x.http().post(params, new BaseCommonCallBack() {
                @Override
                public void success() {
                    Toast.makeText(BaseApplication.getInstance(),"添加成功", Toast.LENGTH_SHORT).show();
@@ -52,6 +53,9 @@
                }
            });
        }catch(Exception e) {
            e.printStackTrace();
        }
    }