| 12 |
- "use strict";const r=require("../common/vendor.js"),o=require("../utils/request.js"),c={accountLogin(e,i){const s=r.index.getStorageSync("deviceInfo"),t={...s,deviceId:`(${e.yhm})${s.model}`};r.index.setStorageSync("deviceInfo",t);const n=o.request.post(`/service?ssServ=ss.login&yhm=${e.yhm}&mm=${e.mm}&wdConfirmationCaptchaService=0&wechatCode=${e.wechatCode}`,e,{loading:!1,request:{timeout:15e3}});return i&&n.finally(()=>{i()}),n},autoLogin(e){return o.request.post(`/service?ssServ=ss.login&wdConfirmationCaptchaService=0&mdToken=${e.mdToken}`,e,{loading:!1})},wechatLogin(e,i){const s=o.request.post("/service?ssServ=ss.login&wdConfirmationCaptchaService=0",e,{loading:!1,request:{timeout:15e3}});return i&&s.finally(()=>{i()}),s}};exports.userApi=c;
- //# sourceMappingURL=../../.sourcemap/mp-weixin/api/user.js.map
|