|
|
@@ -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(); |
|
|
|