const fs = require('fs'); const assert = require('assert'); const source = fs.readFileSync('server/application/common/library/PaymentService.php', 'utf8'); const quoteSection = source.slice(source.indexOf("// 与微信支付路径(confirmOrderPay scene=quote)口径保持一致:"), source.indexOf("} elseif ($scene === 'diff')", source.indexOf("// 与微信支付路径(confirmOrderPay scene=quote)口径保持一致:"))); assert(quoteSection.includes("self::sendNotify('master', $masterId, '师傅已被选定'"), '余额支付选定报价后应仅向师傅发送师傅视角通知'); assert(!quoteSection.includes('self::sendMasterAndUserMessage('), '师傅视角通知不应发给买家'); assert(quoteSection.includes("'order', $orderId"), '师傅通知应关联对应工单'); console.log('余额支付报价通知归属检查通过');