Browse Source

调整微信附件上传的返回值

zhengbingbing 7 years ago
parent
commit
ecbb9e80d5

+ 3 - 1
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/weixin/WxLoginController.cs

@@ -582,10 +582,12 @@ namespace CallCenterApi.Interface.Controllers.weixin
582 582
                 model_T_Sys_Accessories.F_Size = size;
583 583
                 model_T_Sys_Accessories.F_UserCode = stropenid;//上传人  
584 584
                 int fid = new BLL.T_Sys_Accessories().Add(model_T_Sys_Accessories);
585
+                
585 586
                 #endregion
586 587
                 if (fid > 0)
587 588
                 {//返回附件的ID
588
-                    return Success("文件日志都成功", fid);
589
+                    model_T_Sys_Accessories.F_FileId = fid;//修改为返回对象以便查看图片
590
+                    return Success("文件日志都成功", model_T_Sys_Accessories);
589 591
                 }
590 592
                 else
591 593
                     return Success("文件成功");

+ 2 - 1
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Web.config

@@ -21,7 +21,8 @@
21 21
   </connectionStrings>
22 22
   <system.web>
23 23
     <compilation debug="true" targetFramework="4.5"/>
24
-    <httpRuntime targetFramework="4.5"/>
24
+    <httpRuntime targetFramework="4.5" maxRequestLength="20971520" executionTimeout="3600"/>
25
+    
25 26
     <httpModules>
26 27
       <add name="ApplicationInsightsWebTracking" type="Microsoft.ApplicationInsights.Web.ApplicationInsightsHttpModule, Microsoft.AI.Web"/>
27 28
     </httpModules>