Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
fashion_group
Project
Project
Details
Activity
Releases
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
章建武
fashion_group
Commits
211149c2
Commit
211149c2
authored
Jun 04, 2020
by
章建武
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dep
parent
f725297a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
14 deletions
+0
-14
ManagerController.php
admin/application/admin/controller/ManagerController.php
+0
-14
No files found.
admin/application/admin/controller/ManagerController.php
View file @
211149c2
...
...
@@ -58,11 +58,6 @@ class ManagerController extends Controller
{
if
(
$request
->
isPost
())
{
$param
=
$request
->
param
();
if
(
$param
[
'language_type'
]
==
'英语'
){
$param
[
'language_type'
]
=
1
;
}
else
{
$param
[
'language_type'
]
=
0
;
}
$param
[
'url'
]
=
'http://'
.
$_SERVER
[
'SERVER_NAME'
];
$param
[
'created_at'
]
=
time
();
$validate_result
=
$validate
->
scene
(
'add'
)
->
check
(
$param
);
...
...
@@ -78,7 +73,6 @@ class ManagerController extends Controller
return
error
(
$attachment_avatar
->
getError
());
}
$result
=
$model
::
create
(
$param
);
$url
=
URL_BACK
;
...
...
@@ -93,22 +87,15 @@ class ManagerController extends Controller
'language_type'
=>
$model
->
language_type
]);
return
$this
->
fetch
();
}
//修改
public
function
edit
(
$id
,
Request
$request
,
ManagerList
$model
,
ManagerListValidate
$validate
)
{
$data
=
$model
::
get
(
$id
);
if
(
$request
->
isPost
())
{
$param
=
$request
->
param
();
if
(
$param
[
'language_type'
]
==
'英语'
){
$param
[
'language_type'
]
=
1
;
}
else
{
$param
[
'language_type'
]
=
0
;
}
$validate_result
=
$validate
->
scene
(
'edit'
)
->
check
(
$param
);
if
(
!
$validate_result
)
{
return
error
(
$validate
->
getError
());
...
...
@@ -122,7 +109,6 @@ class ManagerController extends Controller
}
}
$result
=
$data
->
save
(
$param
);
return
$result
?
success
()
:
error
();
}
...
...
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