drill.define(async e=>{let a=await e("common/data");return o=>new Promise(t=>{let n=new FileReader;n.onload=(async s=>{let r=await fetch(`/${a.sourceUpload}`,{method:"POST",headers:{"Content-Type":"b64json"},body:JSON.stringify({name:o.name,file:n.result})}),l=await r.json();if(1==l.stat){(await e("common/source")).pics.push({tag:"source-block",xvele:1,name:o.name.replace(/(.+)\..+/,"$1"),path:`/${a.sourceServerName}/${l.name}`,tagid:[]})}console.log("上传图片成功 =>",l),t(l)}),n.readAsDataURL(o)})});