From 94bff04da6a07e91e04af114689ce533fa1545c6 Mon Sep 17 00:00:00 2001
From: chenyao <1219716595@qq.com>
Date: Thu, 08 Jan 2026 08:46:40 +0800
Subject: [PATCH] feat:更新小程序

---
 uniapps/work-wx/src/api/user/index.js |   18 ++++++++++++++++++
 1 files changed, 18 insertions(+), 0 deletions(-)

diff --git a/uniapps/work-wx/src/api/user/index.js b/uniapps/work-wx/src/api/user/index.js
index 7597dc1..bbd5f7c 100644
--- a/uniapps/work-wx/src/api/user/index.js
+++ b/uniapps/work-wx/src/api/user/index.js
@@ -70,6 +70,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({

--
Gitblit v1.9.3