作者 anyv
1 个管道 的构建 通过 耗费 0 秒

产品

... ... @@ -84,16 +84,17 @@ class CoaController extends AdminBaseController{
$data = $this->request->param();
if($this->request->isPost()){
dump(1111);die;
$shuju1['title'] = $data['post']['post_title'];
$shuju1['content'] = $data['post']['post_content'];
$shuju1['fenlei'] = $data['post']['post_leibie'];
$shuju1['post_id'] = $data['post']['post_id'];
dump($shuju1);die;
$res = Db::name('docu_coa') -> where('id',$data['post']['id']) -> update($shuju1);
if($res){
$this -> success('添加成功',url('Coa/list',array('id'=>$shuju1['post_id'])));
$this -> success('修改成功',url('Coa/list',array('id'=>$shuju1['post_id'])));
}else{
$this -> error('添加失败');
$this -> error('修改失败');
}
}else{
... ...