mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-03 00:26:40 +08:00
注释一堆注释
This commit is contained in:
parent
578f0b883c
commit
4733de20b2
@ -20,7 +20,7 @@ async function handle(
|
|||||||
try {
|
try {
|
||||||
const skip = Number(searchParams.get("skip"));
|
const skip = Number(searchParams.get("skip"));
|
||||||
const take = Number(searchParams.get("take"));
|
const take = Number(searchParams.get("take"));
|
||||||
console.log("-----", skip, take);
|
// console.log("-----", skip, take);
|
||||||
const result = searchText
|
const result = searchText
|
||||||
? await prisma.user.findMany({
|
? await prisma.user.findMany({
|
||||||
orderBy: {
|
orderBy: {
|
||||||
|
@ -272,7 +272,7 @@ export async function saveLogs(logData: {
|
|||||||
data: logData,
|
data: logData,
|
||||||
});
|
});
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.log("-------[debug log2]", logData);
|
// console.log("-------[debug log2]", logData);
|
||||||
delete logData?.userID;
|
delete logData?.userID;
|
||||||
const result = await prisma.logEntry.create({
|
const result = await prisma.logEntry.create({
|
||||||
data: logData,
|
data: logData,
|
||||||
|
@ -76,7 +76,7 @@ export default function UserLoginCore() {
|
|||||||
redirect: false,
|
redirect: false,
|
||||||
email: values.email,
|
email: values.email,
|
||||||
}).then((result) => {
|
}).then((result) => {
|
||||||
console.log("33333333333", result);
|
// console.log("33333333333", result);
|
||||||
setCapLoading(false);
|
setCapLoading(false);
|
||||||
setTimeLeft(60);
|
setTimeLeft(60);
|
||||||
});
|
});
|
||||||
@ -110,7 +110,7 @@ export default function UserLoginCore() {
|
|||||||
fetch(
|
fetch(
|
||||||
`/api/auth/callback/email?token=${values.cap}&email=${values.email}`,
|
`/api/auth/callback/email?token=${values.cap}&email=${values.email}`,
|
||||||
).then((result) => {
|
).then((result) => {
|
||||||
console.log("------------", result);
|
// console.log("------------", result);
|
||||||
if (result.redirected) {
|
if (result.redirected) {
|
||||||
window.location.href = result.url;
|
window.location.href = result.url;
|
||||||
}
|
}
|
||||||
|
@ -366,7 +366,6 @@ function ChatAction(props: {
|
|||||||
if (props.text.includes("使用") || allModels.includes(props.text)) {
|
if (props.text.includes("使用") || allModels.includes(props.text)) {
|
||||||
customModelClassName = "chat-input-action-long-weight";
|
customModelClassName = "chat-input-action-long-weight";
|
||||||
}
|
}
|
||||||
console.log("123123123", props.text);
|
|
||||||
|
|
||||||
function updateWidth() {
|
function updateWidth() {
|
||||||
if (!iconRef.current || !textRef.current) return;
|
if (!iconRef.current || !textRef.current) return;
|
||||||
|
@ -227,7 +227,7 @@ export const useChatStore = createPersistStore(
|
|||||||
newSession(mask?: Mask, currentModel?: Mask["modelConfig"]["model"]) {
|
newSession(mask?: Mask, currentModel?: Mask["modelConfig"]["model"]) {
|
||||||
const session = createEmptySession();
|
const session = createEmptySession();
|
||||||
const config = useAppConfig.getState();
|
const config = useAppConfig.getState();
|
||||||
console.log("------", session, "2222", config);
|
// console.log("------", session, "2222", config);
|
||||||
// 继承当前会话的模型
|
// 继承当前会话的模型
|
||||||
if (currentModel) {
|
if (currentModel) {
|
||||||
session.mask.modelConfig.model = currentModel;
|
session.mask.modelConfig.model = currentModel;
|
||||||
|
Loading…
Reference in New Issue
Block a user