Преглед на файлове

接口调用修改

调味吧台
pry преди 5 месеца
родител
ревизия
459a02b66a
променени са 1 файла, в които са добавени 4 реда и са изтрити 1 реда
  1. +4
    -1
      app/src/main/java/com/bonait/bnframework/HttpModel/APIService.java

+ 4
- 1
app/src/main/java/com/bonait/bnframework/HttpModel/APIService.java Целия файл

@@ -4,6 +4,8 @@ import com.alibaba.fastjson.TypeReference;
import com.bonait.bnframework.HBL.API.APIHelper;
import com.bonait.bnframework.HBL.API.APIResultT;
import com.bonait.bnframework.HBL.API.Utils;
import com.bonait.bnframework.business.ConfigData;
import com.bonait.bnframework.common.constant.ConfigName;
import com.bonait.bnframework.common.db.QueryDB;
import com.bonait.bnframework.common.db.mode.BPA_GOODPROPERTY;
import com.bonait.bnframework.common.db.mode.BPA_GOODS;
@@ -35,7 +37,8 @@ public class APIService {
}

private static void GetGoodsInfo(){
String url = "https://cfv.black-pa.com/kitchbase/api/goods/Getdevicegoods?deviceId=73a4aa15-72d8-4ed1-b220-6878cd7297d4";
String autoKey = ConfigName.getInstance().DeviceAutoKey;
String url = "https://cfv.black-pa.com/kitchbase/api/goods/Getdevicegoods?deviceId="+autoKey;
APIHelper.PostT(url,null,null,new TypeReference<APIResultT<List<DeviceGoodInfo>>>(){}).OnSource(s->{
deviceGoodInfo=s.Content;
UpdateLocalGoodsInfo();


Зареждане…
Отказ
Запис