|
@@ -47,6 +47,16 @@ namespace MySystem.Areas.Api.Controllers.v1
|
|
|
{
|
|
|
function.WriteLog(value, "创客-首页-新增商户");
|
|
|
JsonData data = JsonMapper.ToObject(value);
|
|
|
+ int UserId = int.Parse(function.CheckInt(data.getItem("UserId").ToString()));
|
|
|
+ string CertMerchantName = data.getItem("CertMerchantName").ToString(); //- 商户名称
|
|
|
+ string check = RedisDbconn.Instance.Get<string>("MerchantConfirmWait:" + UserId + "_" + function.MD5_16(CertMerchantName));
|
|
|
+ if (!string.IsNullOrEmpty(check))
|
|
|
+ {
|
|
|
+ return new AppResultJson() { Status = "-1", Info = "资料已提交,请等待系统处理" };
|
|
|
+ }
|
|
|
+ RedisDbconn.Instance.Set("MerchantConfirmWait:" + UserId + "_" + function.MD5_16(CertMerchantName), "1");
|
|
|
+ RedisDbconn.Instance.SetExpire("MerchantConfirmWait:" + UserId + "_" + function.MD5_16(CertMerchantName), 60);
|
|
|
+
|
|
|
string CybMakerCode = "";
|
|
|
if(value.Contains("CybMakerCode"))
|
|
|
{
|
|
@@ -58,7 +68,6 @@ namespace MySystem.Areas.Api.Controllers.v1
|
|
|
SettleFee = data.getItem("SettleFee").ToString();
|
|
|
}
|
|
|
string LicenseCopy = data.getItem("LicenseCopy").ToString(); //- 营业执照
|
|
|
- string CertMerchantName = data.getItem("CertMerchantName").ToString(); //- 商户名称
|
|
|
string LicenseNumber = data.getItem("LicenseNumber").ToString(); //- 商户信用代码
|
|
|
string SubjectType = data.getItem("SubjectType").ToString(); //- 主体类型
|
|
|
string MerchantShortname = data.getItem("MerchantShortname").ToString(); //- 用户名称简写
|
|
@@ -204,7 +213,6 @@ namespace MySystem.Areas.Api.Controllers.v1
|
|
|
|
|
|
|
|
|
int Finish = int.Parse(function.CheckInt(data.getItem("Finish").ToString()));
|
|
|
- int UserId = int.Parse(function.CheckInt(data.getItem("UserId").ToString()));
|
|
|
int MerchantAddInfoId = int.Parse(function.CheckInt(data.getItem("Id").ToString()));
|
|
|
string BankBranchId = "";
|
|
|
if (Finish == 1)
|