Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dk_oauth
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
刘剑华
dk_oauth
Commits
1f41e208
Commit
1f41e208
authored
Feb 11, 2018
by
刘剑华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update model
parent
cb852713
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
User.php
app/api/controller/v1/User.php
+3
-2
No files found.
app/api/controller/v1/User.php
View file @
1f41e208
...
...
@@ -15,13 +15,13 @@ use app\api\controller\UnauthorizedException;
* 在具体资源方法中,不需要再依赖注入,直接调用$this->request返回为请具体信息的一个对象
* date:2017-07-25
*/
class
User
extends
Api
class
User
extends
Controller
{
use
Send
;
/**
* 允许访问的方式列表,资源数组如果没有对应的方式列表,请不要把该方法写上,如user这个资源,客户端没有delete操作
*/
public
$restMethodList
=
'get|post|put|'
;
/**
* restful没有任何参数
*
...
...
@@ -40,6 +40,7 @@ class User extends Api
*/
public
function
save
()
{
// var_dump($_POST);die;
if
(
empty
(
$_POST
[
'json'
])){
$this
->
returnmsg
(
400
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment