isdefault -> id

pull/1/head
张萌 3 years ago
parent 8266b76035
commit a829e7527d

@ -93,9 +93,10 @@ class _MyHousePageState extends State<MyHousePage> {
children: [ children: [
GestureDetector( GestureDetector(
onTap: () async { onTap: () async {
print(model.id);
var base = await NetUtil().get( var base = await NetUtil().get(
SAASAPI.profile.house.switchDefaultEstate, SAASAPI.profile.house.switchDefaultEstate,
params: {'estateId': model.isDefault}); params: {'estateId': model.id});
if (base.success) { if (base.success) {
await UserTool.userProvider.updateMyHouseInfo(); await UserTool.userProvider.updateMyHouseInfo();
_refreshController.callRefresh(); _refreshController.callRefresh();

Loading…
Cancel
Save