'm1', 'LinkID' => 'l1', 'UserID' => 'u1']; $keyA = QywxCustomerAcquisitionCustomerService::eventKey($message, 'message_from_customer', 'chat-1', $now); $keyB = QywxCustomerAcquisitionCustomerService::eventKey($message, 'message_from_customer', 'chat-1', $now); $assert($keyA === $keyB && strlen($keyA) === 64, '事件幂等键必须稳定且为 SHA-256'); $console = require dirname(__DIR__) . '/config/console.php'; $assert( ($console['commands']['qywx:retry-customer-acquisition-events'] ?? '') === 'app\\command\\QywxRetryCustomerAcquisitionEvents', '获客回调重试命令未注册' ); echo "QYWX_CUSTOMER_ACQUISITION_RETRY_POLICY_TEST_OK\n";