'修复命名错误'

This commit is contained in:
sijinhui 2024-03-30 23:59:41 +08:00
parent 8debb785fb
commit cea656ec9a
2 changed files with 5 additions and 2 deletions

View File

@ -166,7 +166,7 @@ export async function requestLog(
path: url_path, path: url_path,
logEntry: JSON.stringify(jsonBody), logEntry: JSON.stringify(jsonBody),
model: url_path.startsWith("mj/") ? "midjourney" : jsonBody?.model, // 后面尝试请求是添加到参数 model: url_path.startsWith("mj/") ? "midjourney" : jsonBody?.model, // 后面尝试请求是添加到参数
name: h_userName, userName: h_userName,
}; };
await fetch(`${baseUrl}/api/logs/openai`, { await fetch(`${baseUrl}/api/logs/openai`, {

View File

@ -10,7 +10,10 @@ async function handle(
try { try {
const request_data = await req.json(); const request_data = await req.json();
if (request_data?.userName) { if (request_data?.userName) {
await insertUser({ name: request_data?.name, email: request_data?.name }); await insertUser({
name: request_data?.userName,
email: request_data?.userName,
});
} }
// console.log("===========4", request_data); // console.log("===========4", request_data);
try { try {