高章伟
2022-02-24 2aa8da8af66aa8ae00f25831aed6bb0364176e7b
1
angular.module("alSfdcService",[]).factory("sfdcService",["$log",function(a){function b(b,c,d,e,f,g){var h={apexType:"AL_MobileApp_Controller.CreateAttachmentRequest",id:b,photo:c.data.split(",")[1],fname:c.name,contentType:c.type,photoType:d,ms:e.getTime()};a.info(h.photo.length),Visualforce.remoting.Manager.invokeAction("AL_MobileApp_Controller.createAttachment",h,function(a,b){b.status?f(a):g(b)},{buffer:!1,escape:!1,timeout:12e4})}return{createAttachment:b}}]);