zhheo / Post-Abstract-AI

适用于博客的文章摘要生成器
Other
211 stars 20 forks source link

Fix(tianli_gpt.js): Fix logic error in content check #7

Closed zkeq closed 1 year ago

zkeq commented 1 year ago

如题, 修复了一个逻辑错误

  if (!content && content !== '') {
    console.log('TianliGPT本次提交的内容为:' + content);
  }

按照上下文, 此句应该是 如果有内容 才打印, 所以应该是一个逻辑错误, or 作者另有所用? 🤔

zhheo commented 1 year ago

感谢