Browse Source

提交

炒锅机器人_一拖多
liup 2 months ago
parent
commit
4e47fdb6e5
1 changed files with 2 additions and 3 deletions
  1. +2
    -3
      app/src/main/java/com/bonait/bnframework/newui/http/UpdateAllDataService.java

+ 2
- 3
app/src/main/java/com/bonait/bnframework/newui/http/UpdateAllDataService.java View File

@@ -67,7 +67,6 @@ import okhttp3.RequestBody;
*/
public class UpdateAllDataService {
private static String path = UpdateDataService.path;
private static String key = UpdateDataService.key;

public static void startUpLoadAll(List<BPA_GOODS> goods,Context context){
if(goods==null) return;
@@ -105,7 +104,7 @@ public class UpdateAllDataService {
params.put("autokey",ConfigName.getInstance().DeviceAutoKey);
String body = new Gson().toJson(params);
HttpHeaders headers = new HttpHeaders();
headers.put("key", key);
headers.put("key", UpdateDataService.key);
OkGo.<ProcessModelBean>post(url)
.tag(context)
.upRequestBody( RequestBody.create(MediaType.parse("application/json; charset=utf-8"),body))
@@ -226,7 +225,7 @@ public class UpdateAllDataService {
}
private static void Post(String url, Context context, Object data, String typeInfo, IRunT<Response<UploadRes<UpResData>>> Success){
HttpHeaders headers = new HttpHeaders();
headers.put("key", key);
headers.put("key", UpdateDataService.key);
OkGo.<UploadRes<UpResData>>post(url)
.tag(context)
.upRequestBody(RequestBody.create(MediaType.parse("application/json; charset=utf-8"),new Gson().toJson(data)))


Loading…
Cancel
Save