Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
backend
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
亲子游项目
backend
Commits
756ac1fa
Commit
756ac1fa
authored
Sep 28, 2018
by
汪睦雄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
123
parent
54f5c8c1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
application/api/controller/Order.php
+3
-3
application/api/controller/Project.php
+2
-1
No files found.
application/api/controller/Order.php
View file @
756ac1fa
...
@@ -47,7 +47,7 @@ class Order extends Base
...
@@ -47,7 +47,7 @@ class Order extends Base
'sign_limits'
=>
'require'
'sign_limits'
=>
'require'
]);
]);
$res
=
$validate
->
check
(
input
(
'post.'
));
$res
=
$validate
->
check
(
input
(
'post.'
));
if
(
!
res
)
return
[
'code'
=>
1
,
'msg'
=>
$validate
->
getError
()];
if
(
!
$
res
)
return
[
'code'
=>
1
,
'msg'
=>
$validate
->
getError
()];
$project
=
ProjectModel
::
get
(
input
(
'post.pid'
));
$project
=
ProjectModel
::
get
(
input
(
'post.pid'
));
if
(
!
$project
)
{
if
(
!
$project
)
{
return
[
'code'
=>
1
,
'msg'
=>
'该活动不存在'
];
return
[
'code'
=>
1
,
'msg'
=>
'该活动不存在'
];
...
@@ -332,10 +332,10 @@ class Order extends Base
...
@@ -332,10 +332,10 @@ class Order extends Base
$status
=
input
(
'post.status/d'
,
1
);
$status
=
input
(
'post.status/d'
,
1
);
$order
=
OrderModel
::
where
(
'status'
,
$status
)
$order
=
OrderModel
::
where
(
'status'
,
$status
)
->
where
(
'uid'
,
$this
->
userinfo
[
0
])
->
where
(
'uid'
,
$this
->
userinfo
[
0
])
->
where
(
'type'
,
config
(
'order_type.project'
)
)
->
where
(
'type'
,
1
)
->
page
(
$p
,
$page
)
->
page
(
$p
,
$page
)
->
select
();
->
select
();
$order
=
$order
?
collection
(
$order
)
->
append
([
'status_info'
])
->
toArray
()
:
[];
$order
=
$order
?
collection
(
$order
)
->
toArray
()
:
[];
if
(
!
$order
)
return
[
'code'
=>
1
,
'msg'
=>
'没有更多'
];
if
(
!
$order
)
return
[
'code'
=>
1
,
'msg'
=>
'没有更多'
];
return
[
'code'
=>
0
,
'msg'
=>
'success'
,
'data'
=>
$order
];
return
[
'code'
=>
0
,
'msg'
=>
'success'
,
'data'
=>
$order
];
}
}
...
...
application/api/controller/Project.php
View file @
756ac1fa
...
@@ -353,6 +353,6 @@ class Project extends Base
...
@@ -353,6 +353,6 @@ class Project extends Base
'remark'
=>
input
(
'post.remark'
),
'remark'
=>
input
(
'post.remark'
),
'uid'
=>
$this
->
userinfo
[
0
]
'uid'
=>
$this
->
userinfo
[
0
]
]);
]);
return
[
'code'
=>
1
,
'msg'
=>
'success
'
];
return
[
'code'
=>
0
,
'msg'
=>
'预约成功
'
];
}
}
}
}
\ No newline at end of file
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