znt/module/webhook/test/model/getdatalist.php

29 lines
940 B
PHP
Executable file
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/usr/bin/env php
<?php
include dirname(__FILE__, 5) . '/test/lib/init.php';
include dirname(__FILE__, 2) . '/lib/model.class.php';
su('admin');
zenData('notify')->gen(50);
/**
title=测试 webhookModel->getDataList();
timeout=0
cid=19695
- 不需传任何参数,取出其中一个ID=40的日志内容这里时间上取当前时间三小时以前的
- 第40条的id属性 @40
- 第40条的objectType属性 @webhook
- 第40条的objectID属性 @0
- 第40条的action属性 @0
- 第40条的status属性 @wait
- 统计数量 @8
*/
$webhook = new webhookModelTest();
r($webhook->getDataListTest()) && p('40:id,objectType,objectID,action,status') && e('40,webhook,0,0,wait'); // 不需传任何参数,取出其中一个ID=40的日志内容这里时间上取当前时间三小时以前的
r(count($webhook->getDataListTest())) && p() && e('8'); // 统计数量