Li před 3 roky
rodič
revize
fb650c4a5e
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      TEAMModelBI/Controllers/LoginController.cs

+ 1 - 1
TEAMModelBI/Controllers/LoginController.cs

@@ -407,6 +407,7 @@ namespace TEAMModelBI.Controllers
             {
                 string appKey = _configuration["DingDingAuth:appKey"];
                 string appSecret = _configuration["DingDingAuth:appSecret"];
+                string divide = _configuration["CustomParam:SiteScope"];
                 if (string.IsNullOrWhiteSpace(appKey) || string.IsNullOrWhiteSpace(appSecret))
                 {
                     return Ok(new { state = 0, message = "请检查配置钉钉的信息" });
@@ -495,7 +496,6 @@ namespace TEAMModelBI.Controllers
                 }
                 else
                 {
-                    string divide = appKey.Equals("dingrucgsnt8p13rfbgd") ? "continent" : "international";
                     DingDingUserInfo dingDingUserInfo = new DingDingUserInfo()
                     {
                         PartitionKey = divide,