12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- using MySystem.MainModels;
- using Library;
- using MySystem.Service.Main;
- using System.Collections.Generic;
- namespace MySystem
- {
-
-
-
- public class MerchantDepositBackUtil
- {
- #region 商户激活—商户服务费退还
-
-
-
-
-
-
-
-
- public static string AddMerchantDepositBackDo(int MerchantId, int ReturnWay, string MobileCode, string ReturnNo)
- {
- var query = new MerchantAddInfoService().Query(MerchantId);
- MobileCodeCheck mobilecheck = RedisDbconn.Instance.Get<MobileCodeCheck>("MobileCodeCheck:" + query.ServicePhone);
- if (mobilecheck == null)
- {
- return "短信验证码不正确";
- }
- if (mobilecheck.CheckCode != MobileCode)
- {
- return "短信验证码不正确";
- }
- string checks = RedisDbconn.Instance.Get<string>("MerchantDepositBack:" + MerchantId);
- if (checks == "1")
- {
- return "已申请退押,请勿重复申请";
- }
- RedisDbconn.Instance.Clear("MobileCodeCheck:" + query.ServicePhone);
- Dictionary<string, object> Obj = new Dictionary<string, object>();
- RedisDbconn.Instance.Set("MerchantDepositBack:" + MerchantId, "1");
- RedisDbconn.Instance.SetExpire("MerchantDepositBack:" + MerchantId, 10);
- Dictionary<string, object> fields = new Dictionary<string, object>();
- fields.Add("MerchantId", MerchantId);
- fields.Add("ReturnWay", ReturnWay);
- new MerchantDepositBackService().Add(fields);
- return "success";
- }
- #endregion
- }
- }
|