private void gavegift(string uuid, int code, int itemtype, int itemid, int num) { F2.giftCode gift = new F2.giftCode(); gift.code = code; gift.create_at = DateTime.Now; gift.uuid = uuid; gift.itemData = "{\"error\":0,\"GETBODY\":{\"itemGetArr\":[{\"childType\":\"" + itemid + "\",\"itemType\":\"" + itemtype + "\",\"itemNum\":" + num + ",\"num\":" + num + "}]}}"; DbContext.Get().Db.Insertable(gift).ExecuteCommand(); }
private void gavegifthyJiFen(string uuid, int code, int num) { F2.giftCode gift = new F2.giftCode(); gift.code = code; gift.create_at = DateTime.Now; gift.uuid = uuid; gift.itemData = "{\"error\":0,\"GETBODY\":{\"hyJiFen\":" + num + "}}"; DbContext.Get().Db.Insertable(gift).ExecuteCommand(); }