Sfoglia il codice sorgente

修复通话记录导出无法导出主叫号码和被叫号码

Dun.Jason 5 mesi fa
parent
commit
e7cf0531a9

+ 12 - 0
src/Hotline.Api/Controllers/IPPbxController.cs

@@ -699,6 +699,18 @@ namespace Hotline.Api.Controllers
 
             var dataDtos = _mapper.Map<ICollection<TrCallDto>>(data);
 
+            dto.ColumnInfos.ForEach(x =>
+            {
+                if (x.Prop=="cpn")
+                {
+                    x.Prop ="CPN";
+                }
+                if (x.Prop=="cdpn")
+                {
+                    x.Prop = "CDPN";
+                }
+            });
+
             dynamic? dynamicClass = DynamicClassHelper.CreateDynamicClass(dto.ColumnInfos);
 
             var dtos = dataDtos

+ 1 - 1
src/Hotline.Api/config/appsettings.Development.json

@@ -1,7 +1,7 @@
 {
   "AllowedHosts": "*",
   "AppConfiguration": {
-    "AppScope": "ZiGong",
+    "AppScope": "YiBin",
     "YiBin": {
       "AreaCode": "511500",
       "CallCenterType": "TianRun", //XunShi、WeiErXin、TianRun、XingTang