1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- <?php
- namespace app\index\controller;
- use think\Db;
- use think\Validate;
- class Index
- {
- public function index()
- {
- return 'index';
- }
- public function chatInfo() {
- }
- public function sendChatMsg() {
- $params = input();
- $rules = [
- 'userId' => 'require',
- 'otherUserId' => 'require',
- 'content' => 'require'
- ];
- new Validate($params);
- }
- public function chatList() {
- }
- public function hello($name = 'ThinkPHP5')
- {
- return 'hello,' . $name;
- }
- public function daka() {
- }
- }
|