#
whycq
2024-03-13 ee52ff98eebc3a6c29ca51d1b161d4bbab1e6103
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) => {