Browse Source

修改

授权码生成工具
liup 2 months ago
parent
commit
87d3502d37
1 changed files with 2 additions and 3 deletions
  1. +2
    -3
      app/src/main/java/com/bonait/bnframework/ui/viewmodel/UpdateAllDataService.java

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

@@ -69,7 +69,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(ConfigName.getInstance().isFast2Click()){
@@ -113,7 +112,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))
@@ -235,7 +234,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