|
|
@@ -538,6 +538,54 @@ namespace MySystem.Areas.Api.Controllers.v1.Main2
|
|
|
}
|
|
|
#endregion
|
|
|
|
|
|
+ #region 节点操作-好哒同步审核结果
|
|
|
+ [Authorize]
|
|
|
+ public JsonResult SycnMerchantQueryStatus(string value)
|
|
|
+ {
|
|
|
+ value = PublicFunction.DesDecrypt(value);
|
|
|
+ JsonData data = JsonMapper.ToObject(value);
|
|
|
+ int id = int.Parse(function.CheckInt(data["id"].ToString()));
|
|
|
+ Dictionary<string, object> Obj = new Dictionary<string, object>();
|
|
|
+ MerchantAddInfo add = main2db.MerchantAddInfo.FirstOrDefault(m => m.Id == id);
|
|
|
+ if(add != null)
|
|
|
+ {
|
|
|
+ if(add.BrandId != 1)
|
|
|
+ {
|
|
|
+ return Json(new AppResultJson() { Status = "-1", Info = "不是好哒商户", Data = Obj });
|
|
|
+ }
|
|
|
+ if(!string.IsNullOrEmpty(add.OutMchtNo))
|
|
|
+ {
|
|
|
+ add.Status = 2;
|
|
|
+ add.QueryCount = 2;
|
|
|
+ add.HdStatus = 1;
|
|
|
+ add.HdPassDate = DateTime.Now;
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ add.Status = 0;
|
|
|
+ add.QueryCount = 0;
|
|
|
+ }
|
|
|
+ MerchantInfo mer = main2db.MerchantInfo.FirstOrDefault(m => m.Id == id);
|
|
|
+ if(mer != null)
|
|
|
+ {
|
|
|
+ if(!string.IsNullOrEmpty(add.OutMchtNo))
|
|
|
+ {
|
|
|
+ mer.Status = 2;
|
|
|
+ mer.QueryCount = 2;
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ mer.Status = 0;
|
|
|
+ mer.QueryCount = 0;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ main2db.SaveChanges();
|
|
|
+ return Json(new AppResultJson() { Status = "1", Info = "已同步", Data = Obj });
|
|
|
+ }
|
|
|
+ return Json(new AppResultJson() { Status = "-1", Info = "同步失败", Data = Obj });
|
|
|
+ }
|
|
|
+ #endregion
|
|
|
+
|
|
|
|
|
|
|
|
|
#region 进件管理-银联修改商户名称
|