diff --git a/.gitignore b/.gitignore index 33594aa..019cd6f 100755 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,5 @@ *.zip /hyhproject/common/conf/database.php *.DS_Store -/runtime/ \ No newline at end of file +/runtime/ +/static \ No newline at end of file diff --git a/hyhproject/app/controller/Note.php b/hyhproject/app/controller/Note.php new file mode 100644 index 0000000..ff9d518 --- /dev/null +++ b/hyhproject/app/controller/Note.php @@ -0,0 +1,57 @@ + 0){ + return WSTReturn("", 1, [ + "id"=>$id, + "create_time"=>"昨天", + "title"=>"标题", + "content"=>"内容", + ]); + } + return WSTReturn("异常请求",0); + } + + public function save(){ + $userId = (int)session('WST_USER.userId'); + $id = (int)input( 'post.id', 0); + $title = input("post.title"); + $content = input("post.content"); + if(empty($title)) return WSTReturn("请填写标题",0); + if(empty($content)) return WSTReturn("请填写内容",0); + if($id > 0){ + return WSTReturn("成功", 1); + }elseif($id == 0){ + return WSTReturn("成功", 1); + } + return WSTReturn("异常请求",0); + } + + public function creditIndex(){ + $userId = (int)session('WST_USER.userId'); + + } + + public function creditDetail(){ + + } + + public function creditCreate(){ + + } + + public function creditAdd(){ + + } +} \ No newline at end of file diff --git a/qlg.tar.gz b/qlg.tar.gz deleted file mode 100755 index 535b736..0000000 Binary files a/qlg.tar.gz and /dev/null differ