feat: 接口调试
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user