Release.php
635 字节
<?php
namespace app\index\controller;
use app\common\controller\Frontend;
use think\Request;
class Release extends Frontend
{
protected $noNeedLogin = '*';
protected $noNeedRight = '*';
protected $layout = '';
public function index(){
$param=Request::instance()->param();
if(Request::instance()->isAjax()){
$res=\app\admin\model\Release::create($param);
if($res){
return self::$model::js("提交成功",200);
}else{
return self::$model::js("提交失败",500);
}
}
return view("index/release");
}
}