Преглед на файлове

版本号和公司名称后端接口

zhengbingbing преди 8 години
родител
ревизия
61d7f2b7ff

+ 2 - 0
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/CallCenterApi.Interface.csproj

@@ -172,6 +172,7 @@
172 172
     <Compile Include="Controllers\customer\CustomerController.cs" />
173 173
     <Compile Include="Controllers\customer\RegionCategoryController.cs" />
174 174
     <Compile Include="Controllers\DepartmentController.cs" />
175
+    <Compile Include="Controllers\DeployController.cs" />
175 176
     <Compile Include="Controllers\DictionaryController.cs" />
176 177
     <Compile Include="Controllers\GroupClassController.cs" />
177 178
     <Compile Include="Controllers\GroupController.cs" />
@@ -312,6 +313,7 @@
312 313
     <Folder Include="Views\DaysTalkTime\" />
313 314
     <Folder Include="Views\Default\" />
314 315
     <Folder Include="Views\Department\" />
316
+    <Folder Include="Views\Deploy\" />
315 317
     <Folder Include="Views\Dictionary\" />
316 318
     <Folder Include="Views\DutyPhone\" />
317 319
     <Folder Include="Views\DXRecords\" />

+ 3 - 1
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Configs/system.config

@@ -4,7 +4,9 @@
4 4
   <!-- 联系我们 -->
5 5
   <add key="Contact" value="www.800100.net" />
6 6
   <!-- 软件名称 -->
7
-  <add key="SoftName" value="华谊呼叫中心" />
7
+  <add key="SoftName" value="呼叫中心管理系统" />
8
+  <!-- 公司名称 -->
9
+  <add key="CompanyName" value="河南华谊网络科技有限公司" />
8 10
   <!-- 软件版本 -->
9 11
   <add key="Version" value="5.1.0" />
10 12
   <!-- 软件授权码-->

+ 28 - 0
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/DeployController.cs

@@ -0,0 +1,28 @@
1
+using CallCenter.Utility;
2
+using CallCenterApi.Interface.Controllers.Base;
3
+using System;
4
+using System.Collections.Generic;
5
+using System.Linq;
6
+using System.Web;
7
+using System.Web.Mvc;
8
+
9
+namespace CallCenterApi.Interface.Controllers
10
+{
11
+    public class DeployController : BaseController
12
+    {
13
+        // 获取版本号和公司名称
14
+        public ActionResult GetVersion()
15
+        {
16
+            var Version=Configs.GetValue("Version");
17
+            var CompanyName = Configs.GetValue("CompanyName");
18
+            var SoftName = Configs.GetValue("SoftName");
19
+            var obj = new
20
+            {
21
+                Version = Version,
22
+                CompanyName = CompanyName,
23
+                SoftName = SoftName,
24
+            };
25
+            return Success("获取公司名称以及版本号成功", obj);
26
+        }
27
+    }
28
+}