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.

25 lines
376 B
PHP

<?php
namespace app\admin\controller;
use think\Controller;
class Rule1 extends Controller
{
public function lst()
{
if (request()->isPost()){
$data = [
'PRIV_NAME'=>(input('PRIV_NAME')),
'PRIV_NO'=>(input('PRIV_NO')),
];
if(db('user_priv')->insert($data)){
return $this->success('ok','lst');
}
else {
return $this->error('false');
}
return ;
}
return $this->fetch();
}
}
?>