import{j as r}from"./index-WIJVsNja.js";function e(e){return r.get({url:"/api/order/query",params:e,showErrorMessage:!1,skipUnauthorizedHandler:!0})}function t(r,t){return a=this,n=null,o=function*(){const a=yield e({keyword:r,page:1,size:1,is_auto:0,captcha_key:t}),n=Array.isArray(null==a?void 0:a.records)?a.records:[];return n.find(e=>e.trade_no===r)||n[0]||null},new Promise((r,e)=>{var t=r=>{try{s(o.next(r))}catch(t){e(t)}},i=r=>{try{s(o.throw(r))}catch(t){e(t)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(t,i);s((o=o.apply(a,n)).next())});var a,n,o}function a(e){return r.post({url:"/api/order/receipt/code",data:e})}function n(e){return r.post({url:"/api/order/confirm_receipt",data:e})}export{e as a,n as c,t as q,a as s};
