|
@@ -163,6 +163,13 @@ console.log('\n【5】result.cipa → 企业微信二维码块(<image-scope>
|
|
|
check('cipa=true → 追加 <image-scope> 块', /<image-scope>[\s\S]*?<\/image-scope>/.test(text), text.slice(-120));
|
|
check('cipa=true → 追加 <image-scope> 块', /<image-scope>[\s\S]*?<\/image-scope>/.test(text), text.slice(-120));
|
|
|
check('块里有非空的图片地址', /<image-scope>\s*\S[^\n]*\s*<\/image-scope>/.test(text));
|
|
check('块里有非空的图片地址', /<image-scope>\s*\S[^\n]*\s*<\/image-scope>/.test(text));
|
|
|
check('正文本身没被污染(正文仍在最前面)', text.trimStart().startsWith('这是回答正文。'), text.slice(0, 40));
|
|
check('正文本身没被污染(正文仍在最前面)', text.trimStart().startsWith('这是回答正文。'), text.slice(0, 40));
|
|
|
|
|
+ // 二维码上方的一句引导语(用户 2026-09-20 指定文案),必须在图片**之前**
|
|
|
|
|
+ const TIP = '如果您还有其他疑问,欢迎随时向我咨询,也可以联系CIPA海外服务平台获取支持。';
|
|
|
|
|
+ check('二维码上方有引导语', text.includes(TIP), text.slice(-160));
|
|
|
|
|
+ check('引导语排在图片之前', text.indexOf(TIP) > -1 && text.indexOf(TIP) < text.indexOf('<image-scope>'), {
|
|
|
|
|
+ tip: text.indexOf(TIP),
|
|
|
|
|
+ img: text.indexOf('<image-scope>'),
|
|
|
|
|
+ });
|
|
|
|
|
|
|
|
// 位置:正文 → 二维码 → 参考资料(用户 2026-09-20 指定「二维码放在参考资料之前」)
|
|
// 位置:正文 → 二维码 → 参考资料(用户 2026-09-20 指定「二维码放在参考资料之前」)
|
|
|
const withSources = await runTurn([
|
|
const withSources = await runTurn([
|