Junjie
2024-11-09 a2019ade7b884799e639150021c3cdeef27eea72
pages/api/common/common.js
@@ -5,14 +5,15 @@
if (network) {
   baseUrl = `http://${network[0].ip}:${network[0].port}/${network[0].address}`
}
console.log(network);
async function onLogin(user) {
   console.log(network);
   let _this = this,
      item = {};
   var login = await uni.request({
      url: `${baseUrl}/login.action`,
      data: {
         username: user.username,
         mobile: user.username,
         password: md5.hex_md5(user.password)
      },
   }).then((result) => {