示例#1
0
 public static bool PushMemberCoinsMsg(string openId, string accessToken, string coinsOperationType, string storeName, string mobile, int icCardId, int coins, int balance, string form_id, string remark, out string errMsg)
 {
     errMsg = string.Empty;
     try
     {
         MemberCoinsDataModel dataModel = new MemberCoinsDataModel();
         dataModel.StoreName = storeName;
         dataModel.Date      = System.DateTime.Now.ToString("yyyy年MM月dd日");
         dataModel.Coins     = coins;
         dataModel.Type      = coinsOperationType;
         dataModel.Mobile    = mobile;
         dataModel.Balance   = balance;
         dataModel.Remark    = remark;
         return(SAppMessageMana.Push <MemberCoinsConfigModel, MemberCoinsDataModel>(openId, accessToken, form_id, dataModel, out errMsg));
     }
     catch (Exception e)
     {
         errMsg = e.Message;
         return(false);
     }
 }
示例#2
0
 public static bool PushMemberFoodSaleMsg(string openId, string accessToken, string buyType, string storeName, string mobile, string orderId, string foodName, int foodNum, int icCardId, decimal money, int coins, string form_id, out string errMsg)
 {
     errMsg = string.Empty;
     try
     {
         MemberFoodSaleDataModel dataModel = new MemberFoodSaleDataModel();
         dataModel.StoreName  = storeName;
         dataModel.BuyDate    = System.DateTime.Now.ToString("yyyy年MM月dd日");
         dataModel.OrderId    = orderId;
         dataModel.FoodName   = foodName;
         dataModel.FoodNum    = foodNum;
         dataModel.BuyMobile  = mobile;
         dataModel.BuyAmmount = money;
         dataModel.Remark     = buyType;
         return(SAppMessageMana.Push <MemberFoodSaleConfigModel, MemberFoodSaleDataModel>(openId, accessToken, form_id, dataModel, out errMsg));
     }
     catch (Exception e)
     {
         errMsg = e.Message;
         return(false);
     }
 }