void openLook(LongParamter dealId, LongParamter uid) { ByteBuffer buffer = ByteBuffer.Allocate(1024); buffer.skip(4); buffer.WriteString("UserLook"); buffer.WriteLong(dealId.Value); buffer.WriteLong(uid.Value); buffer.WriteLong(MainData.instance.user.id); NetUtil.getInstance.SendMessage(buffer); }
void openRevert(DealBody item, LongParamter target) { if (!MainData.instance.user.login()) { LoginEvent.tryToLogin(); LoginEvent.callback = new EventDelegate(this, "back_deal_detail"); LoginEvent.callback.parameters[0] = new EventDelegate.Parameter(); LoginEvent.callback.parameters[0].obj = item; return; } showSub("revert"); //CameraUtil.push(3,2); dealRevertEvent.okback = new EventDelegate(backAndShow); dealRevertEvent.show(item, target.Value); }