国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

小型企業(yè)站系統(tǒng)設(shè)置模塊

Original 2019-06-16 10:09:12 303
abstract:<?phpnamespace app\admin\controller;use think\Controller;use app\admin\model\User;use app\admin\model\Sort;use app\admin\model\System;use think\facade\Session;use think\facade\Request;use app\admin

<?php

namespace app\admin\controller;

use think\Controller;

use app\admin\model\User;

use app\admin\model\Sort;

use app\admin\model\System;

use think\facade\Session;

use think\facade\Request;

use app\admin\controller\Commn;


class Systeml extends Commn

{

public function index()

{

$res = System::all();


$this->assign('res',$res);


return $this->fetch();

}

public function add()

{

return $this->fetch();

}

public function add_do()

{

$data = Request::param();


if ($res = System::insert($data)) {

return json(['code'=>1,'msg'=>'添加設(shè)置成功']);

}else{

return json(['code'=>2,'msg'=>'添加設(shè)置失敗']);

}

}

public function del()

{

$data = Request::param();


$id = $data['id'];


if ($res = System::where('id',$id)->delete()) {

return json(['code'=>0,'msg'=>'刪除設(shè)置成功']);

}else{

return json(['code'=>1,'msg'=>'刪除設(shè)置失敗']);

}

}

}


Correcting teacher:查無此人Correction time:2019-06-17 09:32:05
Teacher's summary:完成的不錯。一天做了很多作業(yè),對后臺管理應(yīng)該很熟悉了。繼續(xù)加油。

Release Notes

Popular Entries