Ejemplo n.º 1
0
        public void ShowGetGoods(long goodId, int amount)
        {
            GetGoodsOne getGoodsOne = new GetGoodsOne();

            getGoodsOne.GoodsId   = goodId;
            getGoodsOne.GetAmount = amount;
            List <GetGoodsOne> getGoodsOnes = new List <GetGoodsOne>()
            {
                getGoodsOne
            };

            ShowGetGoods(getGoodsOnes);
        }
Ejemplo n.º 2
0
        //改变用户物品
        public static async Task <User> GoodsChange(long userId, long goodId, int amount, int changeType, bool isShowHint = false)
        {
            GetGoodsOne getGoodsOne = ComponentFactory.Create <GetGoodsOne>();

            getGoodsOne.SetGoodsOne(goodId, amount);
            List <GetGoodsOne> getGoodsOnes = new List <GetGoodsOne>()
            {
                getGoodsOne
            };
            User user = await  GoodsChange(userId, getGoodsOnes, changeType, isShowHint);

            getGoodsOne.Dispose();
            return(user);
        }