吉安感知网项目-前端
张含笑
2026-01-08 487f3eb10230d9d44bafafa2c19241f8ab126108
uniapps/work-app/src/api/user/index.js
@@ -26,7 +26,7 @@
// 用户登录接口
export const loginByUsername = (tenantId, deptId, roleId, username, password, type, key, code) => {
  return request({
    url: '/blade-auth/oauth/token',
    url: '/auth/login',
    method: 'post',
    header: {
      'Tenant-Id': tenantId,
@@ -35,10 +35,12 @@
      'Captcha-Key': key,
      'Captcha-Code': code,
    },
    params: {
    data: {
      tenantId,
      username,
      password,
      checkCode:'',
      mobile: false,
      grant_type: 'password',
      scope: 'all',
      type,
@@ -70,6 +72,24 @@
  });
};
// 微信登录接口
export const loginByWechat = (code) => {
  return request({
    url: '/blade-auth/oauth/token',
    method: 'post',
    header: {
      'Tenant-Id': '000000',
    },
    params: {
      tenantId: '000000',
      code,
      grant_type: 'wechat',
      scope: 'all',
      type: 'wechat',
    },
  });
};
// 发送通话信息
export const sendVoiceCallApi = (data) => {
  return request({