webmain/main/kaoqinj/kaoqinjAction.php
(开头部分) 6KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php
class kaoqinjClassAction extends Action
{
public function kqjsndelAjax()
{
$id = (int)$this->post('id');
m('kqjsn')->delete("`id`='$id'");
showreturn();
}
public function kqjcmddelAjax()
{
$id = c('check')->onlynumber($this->post('id'));
m('kqjcmd')->delete("`id` in ($id)");
showreturn();
}
//设备搜索
public function kqjsnbefore($table)
{
$key = $this->post('key');
$where = '';
if(!isempt($key))$where = " and (`num`='$key' or `name` like '%$key%' or `company` like '%$key%')";
return $where;
}
//设备搜索命令
public function kqjcmdbefore($table)
{
$optdt= date('Y-m-d H:i:s', time()-10*60);
m($table)->update('status=5',"`status`=0 and `optdt`<'$optdt'");
$key = $this->post('key');
$snid = (int)$this->post('snid','0');
$where = '';
if(!isempt($key))$where = " and (`num`='$key' or `name` like '%$key%' or `company` like '%$key%')";
if($snid>0){
$where.=" and a.`snid`='$snid'";
}
return array(
'where' => $where,
'table' => '`[Q]kqjcmd` a left join `[Q]kqjsn` b on a.`snid`=b.`id`',
'fields'=> 'a.*,b.`name`,b.`num`,b.`company`'
);
}
public function kqjcmdafter($table,$rows)
{
$cmds = m('kqjcmd');
$time = time();
foreach($rows as $k=>$rs){
$zt = $rs['status'];
if($zt=='0')$zt = '<font color="blue">待发送</font>';
if($zt=='1')$zt = '<font color="green">处理成功</font>';
if($zt=='2')$zt = '<font color="#ff6600">已请求</font>';
if($zt=='3')$zt = '<font color="red">处理失败</font>';
if($zt=='5')$zt = '<font color="#888888">已过期</font>';
$rows[$k]['atype'] = $cmds->cmdtype($rs['atype']);
if($rs['status']=='5'){
后面还有 164 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
