信呼OA版本v2.3.8
This commit is contained in:
25
webmain/task/api/yygongAction.php
Normal file
25
webmain/task/api/yygongAction.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
class yygongClassAction extends apiAction
|
||||
{
|
||||
public function saveAction()
|
||||
{
|
||||
$data['title'] = $this->post('title');
|
||||
$data['content'] = $this->post('content');
|
||||
$data['typename'] = $this->post('typename');
|
||||
$data['receid'] = $this->post('receid');
|
||||
$data['recename'] = $this->post('recename');
|
||||
$data['url'] = $this->post('url');
|
||||
$data['optdt'] = $this->now;
|
||||
$data['optid'] = $this->adminid;
|
||||
$data['optname'] = $this->adminname;
|
||||
|
||||
foreach($data as $k=>$v){
|
||||
if($k=='receid')break;
|
||||
if($this->isempt($v))$this->showreturn('', '['.$k.']不能为空', 201);
|
||||
}
|
||||
|
||||
$mid = m('infor')->insert($data);
|
||||
m('flow')->submit('gong', $mid, '发布');
|
||||
$this->showreturn('');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user