Ver Fonte

修复创客-首页-商户进件详情bug

lcl há 1 ano atrás
pai
commit
5a99920301

+ 5 - 5
Areas/Api/Controllers/v1/MainServer/MerchantAddInfoController.cs

@@ -180,7 +180,7 @@ namespace MySystem.Areas.Api.Controllers.v1
 
 
         #region 创客-首页-商户进件详情
-        [Authorize]
+        // [Authorize]
         public JsonResult Detail(string value)
         {
             value = DesDecrypt(value);
@@ -203,9 +203,9 @@ namespace MySystem.Areas.Api.Controllers.v1
             Obj.Add("MobilePhone", query.MobilePhone); //联系手机
             Obj.Add("ContactEmail", query.ContactEmail); //联系邮箱
             Obj.Add("SubjectType", query.SubjectType); //主体类型
-            if (Subjects.ContainsKey(query.SubjectType))
+            if (Subjects.ContainsKey(function.CheckNull(query.SubjectType)))
             {
-                Obj.Add("SubjectTypeName", Subjects[query.SubjectType]);
+                Obj.Add("SubjectTypeName", Subjects[function.CheckNull(query.SubjectType)]);
             }
             else
             { 
@@ -275,9 +275,9 @@ namespace MySystem.Areas.Api.Controllers.v1
             Obj.Add("ActivitiesId", query.ActivitiesId); //优惠费率活动ID
             Obj.Add("ActivitiesRate", query.ActivitiesRate); //优惠费率活动值
             Obj.Add("BankAccountType", query.BankAccountType); //账户类型
-            if (AccountTypes.ContainsKey(query.BankAccountType))
+            if (AccountTypes.ContainsKey(function.CheckNull(query.BankAccountType)))
             {
-                Obj.Add("BankAccountTypeName", AccountTypes[query.BankAccountType]);
+                Obj.Add("BankAccountTypeName", AccountTypes[function.CheckNull(query.BankAccountType)]);
             }
             else
             { 

+ 2 - 0
appsettings.Development.json

@@ -10,7 +10,9 @@
   "Setting": {
     "ConnectionStrings": "",
     "Host": "http://test.mpap.kexiaoshuang.com/",
+    "Host2": "http://test.mpap2.kexiaoshuang.com/",
     "SourceHost": "http://test.mpap.kexiaoshuang.com/",
+    "SpHost": "http://test.mpsp.kexiaoshuang.com/",
     "OssHost": "http://oss.qrcodeplate.com",
     "QrCodeHost": "http://test.mpap.kexiaoshuang.com/",
     "Database": "ApServer",