| | |
| | | for (int i = 0; i < listDistributedMark.Count; i++)
|
| | | {
|
| | | string keys = listDistributedMark[i];
|
| | | var dataPra = new { DistributedMark = keys, HouseDistributedMark = Common.Config.Instance.Home.Id, IsOtherAccountControl = Common.Config.Instance.isAdministrator };
|
| | | var dataPra = new { DistributedMark = keys, HouseDistributedMark = Common.Config.Instance.Home.Id, IsOtherAccountControl = Common.Config.Instance.Home.IsOthreShare };
|
| | | var result = await UserCenterLogic.GetResponseDataByRequestHttps("ZigbeeDataShare/GetOneShareData", false, dataPra);
|
| | | if (result == null)
|
| | | {
|
| | |
| | | }
|
| | |
|
| | | //获取主人分享给成员的文件列表
|
| | | var infoPra = new { DistributedMark = Config.Instance.Guid, HouseDistributedMark = Common.Config.Instance.Home.Id, IsOtherAccountControl = Common.Config.Instance.isAdministrator };
|
| | | var infoPra = new { DistributedMark = Config.Instance.Guid, HouseDistributedMark = Common.Config.Instance.Home.Id, IsOtherAccountControl = Common.Config.Instance.Home.IsOthreShare };
|
| | | var listNotShow = new List<string>() { "NotSetAgain" };
|
| | | var result = await UserCenterLogic.GetResponseDataByRequestHttps("ZigbeeDataShare/GetShareDataBySubAccount", false, infoPra, listNotShow);
|
| | | if (string.IsNullOrEmpty(result) == true)
|
| | |
| | | {
|
| | | listShardFile = new HashSet<string>();
|
| | | //获取主人分享给成员的文件列表
|
| | | var infoPra = new { DistributedMark = Config.Instance.Guid, HouseDistributedMark = Common.Config.Instance.Home.Id, IsOtherAccountControl = Common.Config.Instance.isAdministrator };
|
| | | var infoPra = new { DistributedMark = Config.Instance.Guid, HouseDistributedMark = Common.Config.Instance.Home.Id, IsOtherAccountControl = Common.Config.Instance.Home.IsOthreShare };
|
| | | var listNotShow = new List<string>() { "NotSetAgain" };
|
| | | var result = await UserCenterLogic.GetResponseDataByRequestHttps("ZigbeeDataShare/GetShareDataBySubAccount", false, infoPra, listNotShow);
|
| | | if (string.IsNullOrEmpty(result) == true)
|
| | |
| | | {
|
| | | DistributedMark = memberShardInfo.SubAccountDistributedMark,
|
| | | HouseDistributedMark = Shared.Common.Config.Instance.HomeId,
|
| | | IsOtherAccountControl = Common.Config.Instance.isAdministrator
|
| | | IsOtherAccountControl = Common.Config.Instance.Home.IsOthreShare
|
| | | };
|
| | | var result = await UserCenterLogic.GetResponseDataByRequestHttps("ZigbeeDataShare/GetShareDataBySubAccount", false, infoPra);
|
| | | if (result == null)
|
| | |
| | | //克隆一个对象
|
| | | roomTemp = nowRoom.CloneRoomClass();
|
| | | memberShardInfo.TempRoom = roomTemp;
|
| | | //新分享的房间,如果图片是自定义的,则上传图片
|
| | | if (roomTemp.BackgroundImageType != 0)
|
| | | //新分享的房间,如果图片是自定义的,并且这个图片是存在的,则上传图片
|
| | | if (roomTemp.BackgroundImageType != 0 && Common.Global.IsExistsByHomeId(roomTemp.BackgroundImage) == true)
|
| | | {
|
| | | //自定义的图片,它存在于本地,但是它是全路径
|
| | | listFile.Add(roomTemp.BackgroundImage);
|
| | |
| | | //删除自定义图片
|
| | | listDelPic.Add(roomTemp.BackgroundImage);
|
| | | }
|
| | | if (nowRoom.BackgroundImageType != 0)
|
| | | if (nowRoom.BackgroundImageType != 0 && Common.Global.IsExistsByHomeId(nowRoom.BackgroundImage) == true)
|
| | | {
|
| | | //自定义的图片,它存在于本地,但是它是全路径
|
| | | listFile.Add(nowRoom.BackgroundImage);
|
| | |
| | | //场景
|
| | | foreach (var secene in listScene)
|
| | | {
|
| | | if (secene.IconPathType != 0)
|
| | | if (secene.IconPathType != 0 && Common.Global.IsExistsByHomeId(secene.IconPath) == true)
|
| | | {
|
| | | //自定义的图片,它存在于本地
|
| | | listFile.Add(secene.IconPath);
|