浏览代码

接口调用修改

调味吧台
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();


正在加载...
取消
保存