webmain/flow/input/mode_dailyAction.php
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php
class mode_dailyClassAction extends inputAction{
public $months,$ztdt;
protected function savebefore($table, $arr, $id, $addbo){
$type = arrvalue($arr, 'type');
$uid = arrvalue($arr, 'uid');
$dt = arrvalue($arr, 'dt');
if(isempt($dt))return '';
$enddt = arrvalue($arr, 'enddt');
$where = "id<>$id and `uid`=$uid and `type`='$type' and `dt`='$dt'";
if(!isempt($enddt))$where.=' and `enddt`='.$enddt.'';
if($type==0 && $dt>$this->date)return '日期['.$dt.']还是个未来呢';
$to = $this->mdb->rows($where);
if($to>0)return '该类型日期['.$dt.']段已申请了';
}
protected function saveafter($table, $arr, $id, $addbo){
}
public function getdtstrAjax()
{
$type = (int)$this->post('type');
$dt = $this->post('dt');
$dta = explode('-', $dt);
$dtobj = c('date');
$startdt= $dt;
$enddt = '';
if($type==1){
$dtw = $dtobj->getweekarr($dt);
$startdt= $dtw[0];
$enddt = $dtw[6];
}
if($type==2){
$startdt= ''.$dta[0].'-'.$dta[1].'-01';
$enddt= $dtobj->getenddt($dt);
}
if($type==3){
$startdt= ''.$dta[0].'-01-01';
$enddt = ''.$dta[0].'-12-31';
}
$a = array($startdt, $enddt);
$this->returnjson($a);
}
public function anxyfxbeforershow($table)
{
$dt1 = $this->post('dt1', date('Y-m'));
$this->months = $dt1;
$key = $this->post('key');
$atype = $this->post('atype');
$isdaily= $this->post('isdaily','1');
$dbs = m('admin');
$s = $dbs->monthuwhere($dt1,'a.');
后面还有 115 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
