Files
EasySoft-ZenTaoPMS/test/model/misc/gettableandstatus.php
2022-03-18 11:14:36 +08:00

13 lines
777 B
PHP
Executable File
Raw 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(dirname(dirname(__FILE__))) .'/lib/init.php';
include dirname(dirname(dirname(__FILE__))) .'/class/misc.class.php';
$misc = new Misc('admin');
r($misc->getTableAndStatus('check')) && p('zt_account') && e('ok'); //输入表名查看数据库表状态使用情况等正常输出ok
r($misc->getTableAndStatus('check')) && p('zt_zoutput') && e('ok'); //如被占用返回1 client is using or hasn't closed the table properly由于动态更新此处断言两张表正常状态
r($misc->getTableAndStatus('repair')) && p('zt_webhook') && e('ok'); //可以传入repair参数状态与上述一致
r($misc->getTableAndStatus('aaaaa')) && p('zt_account') && e('ok'); //这里测试传入不同参数||返回值相同
?>