Exemplo n.º 1
0
 /// <summary>
 /// me_更新金币并记录消费记录
 /// </summary>
 public void UpdateiGold(int ID, string UsName, long iGold, string AcText, int BbTag)
 {
     //更新用户虚拟币
     dal.Update_jinbi(ID, iGold);
     //更新消费记录
     BCW.farm.Model.NC_Goldlog model = new BCW.farm.Model.NC_Goldlog();
     model.BbTag     = BbTag;
     model.Types     = 30;                 //农场type30
     model.PUrl      = Utils.getPageUrl(); //操作的文件名
     model.UsId      = ID;
     model.UsName    = UsName;
     model.AcGold    = iGold;
     model.AfterGold = GetGold(ID);//更新后的币数
     model.AcText    = AcText;
     model.AddTime   = DateTime.Now;
     new BCW.farm.BLL.NC_Goldlog().Add(model);
 }
Exemplo n.º 2
0
 /// <summary>
 /// 更新一条数据
 /// </summary>
 public void Update(BCW.farm.Model.NC_Goldlog model)
 {
     dal.Update(model);
 }
Exemplo n.º 3
0
 /// <summary>
 /// 增加一条数据
 /// </summary>
 public int Add(BCW.farm.Model.NC_Goldlog model)
 {
     return(dal.Add(model));
 }