public ActionResult Addmission(FormCollection form) { //TODO 后台用户投稿需要变动 推荐到网站首页(推荐管理),+10爽币,取消推荐后,-10爽币(可能客服不小心推荐错了,又取消了推送,之前奖励的爽币,要减掉。) UserRaiders raiders = new UserRaiders() { UserId = GetCurrentUser().Id, Title = form["title"], GameName = form["gamename"], Key = form["keyword"], Msg = form["area"], InTime = DateTime.Now, State = "2", EditTitle = null, Reason = null, Rec = "0", Rec_Time = DateTime.Now, Rec_Hot = "0", Rec_Hot_Time = null, CheckName = null, Source = null, Memo = null, Editor = null }; if (UserRaidersBll.Add(raiders) != null) { return(Content("ok")); } else { return(Content("no")); } }
/// <summary> /// 充值 /// </summary> /// <param name="trade_no">订单号</param> /// <param name="fee">充值金额人民币(元)</param> /// <param name="memo">爽币条数</param> /// <param name="feetype">微信支付|支付宝支付</param> //public ActionResult Recharge(string userid, string trade_no, int fee, string memo, string feetype) //{ // int i = PersonalUserBll.Recharge(userid, trade_no, fee, memo, feetype); // if (i > 0) // { // return Content("ok"); // } // else // { // return Content("no"); // } //} #endregion #region 攻略删除 public ActionResult RaidersDel(int id) { UserRaiders raiders = new UserRaiders() { Id = id }; if (UserRaidersBll.Delete(raiders)) { return(Content("ok")); } else { return(Content("no")); } }