修改 报修上传deviceId

master
wanghao 4 weeks ago
parent febb82da29
commit 220bce6f3e

@ -44,8 +44,8 @@ public class BaseActivity extends AppCompatActivity {
public static final int CAMERA_PHOTO = 1; public static final int CAMERA_PHOTO = 1;
// public static String url = "http://192.168.100.199:7018/dev-api";//测试 // public static String url = "http://192.168.100.199:7018/dev-api";//测试
// public static String url = "http://175.27.215.92:7018/prod-api"; public static String url = "http://175.27.215.92:7018/prod-api";
public static String url = "http://10.11.40.120:7018/dev-api"; // public static String url = "http://10.11.40.120:7018/dev-api";
public ProgressDialog dialog; public ProgressDialog dialog;
public Gson gson; public Gson gson;
public MediaType JSON = MediaType.parse("application/json; charset=utf-8"); public MediaType JSON = MediaType.parse("application/json; charset=utf-8");

@ -181,7 +181,7 @@ public class BxActivity extends BaseActivity implements DisposalFileAdapter.Item
OkGo.<MyResult>post(url + "/dms/mobile/insertFaultInstsanceActivity") OkGo.<MyResult>post(url + "/dms/mobile/insertFaultInstsanceActivity")
.headers("Authorization", SharedPreferencesUtils.getstring("access_token", "")) .headers("Authorization", SharedPreferencesUtils.getstring("access_token", ""))
.params("checkResultId", been.getDeviceld()) .params("deviceId", been.getDeviceld())
.params("faultType", been.getFaultType()) .params("faultType", been.getFaultType())
.params("faultDescription", been.getFaultDescription()) .params("faultDescription", been.getFaultDescription())
.params("designOperations", been.getDesignOperations()) .params("designOperations", been.getDesignOperations())

@ -75,7 +75,8 @@ public class DeviceRepairListActivity extends BaseActivity implements DeviceRepa
startActivity(intent); startActivity(intent);
return; return;
} }
Toast.makeText(DeviceRepairListActivity.this, body.getMsg(), Toast.LENGTH_SHORT).show(); String msg = body.getMsg();
Toast.makeText(context, msg==null?"服务器500":msg, Toast.LENGTH_SHORT).show();
} }
}); });
} }

@ -24,15 +24,16 @@
<include <include
layout="@layout/toolbar" layout="@layout/toolbar"
app:title='@{title??"设备保养项目"}' /> app:title='@{title??"设备保养项目"}' />
<androidx.recyclerview.widget.RecyclerView <androidx.recyclerview.widget.RecyclerView
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_weight="1" android:layout_weight="1"
android:padding="5dp"
android:background="@color/white"
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
android:adapter="@{adapter}" android:adapter="@{adapter}"
/> android:background="@color/white"
android:padding="5dp"
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" />
<Button <Button
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"

Loading…
Cancel
Save