예제 #1
0
    private void SendLove()
    {
        Dictionary <string, object> dc = new Dictionary <string, object>();

        dc["fuid"]     = otherInfo["uid"];
        like.touchable = false;
        NetHttp.inst.Send(NetBase.HTTP_FRIENDLIKE, dc, (VoHttp vo) =>
        {
//           Debug.Log(vo.data);
            if (!userModel.IsLove())
            {
                userModel.SetLove(true);
                if (GuideManager.inst.Check("101:1"))
                {
                    GuideManager.inst.Next(true);
                    //GuideManager.inst.Show(this);
                }
            }
            else
            {
                GuideManager.inst.Clear();
            }

            Dictionary <string, object> dy = (Dictionary <string, object>)vo.data;
            Dictionary <string, object> dd = (Dictionary <string, object>)dy["user"];
            Dictionary <string, object> dr = (Dictionary <string, object>)dd["records"];
            Dictionary <string, object> dl = (Dictionary <string, object>)dr["day_like"];
            like_bg.visible = true;
            AddLikeNum(dd, dl, dy);
            AddList();
        });
    }