webmain/flow/input/mode_gongAction.php
(完整代码) 1KB<?php
/**
* 此文件是流程模块【gong.通知公告】对应接口文件。
* 可在页面上创建更多方法如:public funciton testactAjax(),用js.getajaxurl('testact','mode_gong|input','flow')调用到对应方法
*/
class mode_gongClassAction extends inputAction{
protected function savebefore($table, $arr, $id, $addbo){
//$uarr['receid'] = $this->flow->getreceids($arr['receid']);
$uarr = array();
if(!isset($arr['issms']))$uarr['issms']=0;
return array(
'rows' => $uarr
);
}
protected function saveafter($table, $arr, $id, $addbo){
}
//提交投票
public function submittoupiaoAjax()
{
$mid = (int)$this->get('mid');
$sid = c('check')->onlynumber($this->get('sid'));
$modenum = $this->get('modenum');
$this->flow = m('flow')->initflow($modenum);
$towheer = "`table`='infor' and `mid`='$mid' and `name`='投票' and `checkid`='$this->adminid'";
if($this->flow->flogmodel->rows($towheer)>0)return '你已投票了';
$this->flow->addlog(array(
'name' => '投票',
'mid' => $mid,
'explain' => '投票项ID('.$sid.')'
));
m('infors')->update('`touci`=`touci`+1','`mid`='.$mid.' and `id` in('.$sid.')');
echo 'ok';
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
