字符化对象以正确保存

This commit is contained in:
2026-04-30 14:22:01 +08:00
parent 6812eac16e
commit 098d2ff575
2 changed files with 2 additions and 1 deletions

View File

@@ -276,7 +276,7 @@ class HomeService extends Service {
const where = { sn_number: form.sn_number };
const SN = await ctx.model3.SNNumber.findOne({ where });
if (!SN) {
ctx.app.middleware.utils.log('../../../unknownSNLog', form);
ctx.app.middleware.utils.log('../../../unknownSNLog', JSON.stringify(form));
return false;
};
const model = {