You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
567 B
PHTML
27 lines
567 B
PHTML
3 years ago
|
<?php
|
||
|
|
||
|
namespace Admin\Controller;
|
||
|
use Think\Model;
|
||
|
|
||
|
/**
|
||
|
* 推广后台公告
|
||
|
*/
|
||
|
class PromoteNoticeController extends ThinkController
|
||
|
{
|
||
|
public function edit()
|
||
|
{
|
||
|
$data = M("promote_notice","tab_")->find();
|
||
|
$this->assign('data',$data);
|
||
|
$this->display();
|
||
|
}
|
||
|
|
||
|
public function doEdit()
|
||
|
{
|
||
|
$res = M("promote_notice","tab_")->save($_REQUEST);
|
||
|
if(!$res){
|
||
|
$this->ajaxReturn(["status"=>0,"msg"=>"保存失败"]);
|
||
|
}
|
||
|
$this->ajaxReturn(["status"=>1,"msg"=>"修改并保存成功"]);
|
||
|
}
|
||
|
}
|