Browse Source

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

zhengbingbing 7 years ago
parent
commit
ecbb9e80d5

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

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

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

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