public ActionResult GetAppTreasureYE(Dictionary <string, string> queryvalues)
        {
            int UserID = queryvalues.ContainsKey("UserID") ? Convert.ToInt32(queryvalues["UserID"].ToString()) : 0;

            AppTreasure model = RechargeCheckBLL.GetModelByUserID(UserID.ToString());


            return(Content(model.Balance.ToString()));
        }
示例#2
0
        internal static int AddAppTreInfo(AppTreasure model)
        {
            using (var cn = new MySqlConnection(sqlconnectionString))
            {
                int i = cn.Execute(@"
insert into " + database1 + @".RechargeBanlance(
Appid,Balance,Openid,Openkey,Pay_token,Pf,
Pfkey,Session_id,Session_type,Userid,CreateTime
) values 
(
@Appid,@Balance,@Openid,@Openkey,@Pay_token,@Pf,
@Pfkey,@Session_id,@Session_type,@Userid,@CreateTime
);", model);
                cn.Close();
                return(i);
            }
        }
示例#3
0
 public static int AddAppTreInfo(AppTreasure model)
 {
     return(RechargeCheckDAL.AddAppTreInfo(model));
 }