feat: 接口调试

This commit is contained in:
zoujing
2025-07-21 18:08:45 +08:00
parent eef75457c8
commit 8a040896a7
7 changed files with 28 additions and 18 deletions

View File

@@ -4,13 +4,15 @@ import { getWeChatAuthCode } from "./AuthManager";
export async function loginAuth() {
try {
const openIdCode = '0f1XVM100D5JCU1BP6400WQQFD2XVM1T'// await getWeChatAuthCode();
const openIdCode = 'brother7'// await getWeChatAuthCode();
console.log('获取到的微信授权code:', openIdCode);
const response = await login({
openIdCode,
grant_type: 'wechat',
openIdCode: [openIdCode],
grant_type: 'password',
scope: 'server',
clientId: '1'
//clientId: '1',
username: 'admin',
password: 'YehdBPev'
});
if (response.success) {
return response.data;