Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
land_army
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sugar
land_army
Commits
9c6ba88c
Commit
9c6ba88c
authored
May 30, 2022
by
wuxiaoli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改时间
parent
ddfce311
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
9 additions
and
0 deletions
+9
-0
application/admin/controller/article/announcement/Announcement.php
...on/admin/controller/article/announcement/Announcement.php
+1
-0
application/admin/controller/article/courseresource/Courseresource.php
...dmin/controller/article/courseresource/Courseresource.php
+1
-0
application/admin/controller/article/dynamic/Dynamic.php
application/admin/controller/article/dynamic/Dynamic.php
+1
-0
application/admin/controller/article/interactiveplatform/Interactiveplatform.php
...oller/article/interactiveplatform/Interactiveplatform.php
+1
-0
application/admin/controller/article/scientificpayoffs/Scientificpayoffs.php
...ontroller/article/scientificpayoffs/Scientificpayoffs.php
+1
-0
application/admin/controller/article/specials/Specials.php
application/admin/controller/article/specials/Specials.php
+1
-0
application/admin/controller/article/sportsclub/Sportsclub.php
...cation/admin/controller/article/sportsclub/Sportsclub.php
+1
-0
application/admin/controller/article/teachingoperation/Teachingoperation.php
...ontroller/article/teachingoperation/Teachingoperation.php
+1
-0
application/admin/controller/article/teachingteam/Teachingteam.php
...on/admin/controller/article/teachingteam/Teachingteam.php
+1
-0
No files found.
application/admin/controller/article/announcement/Announcement.php
View file @
9c6ba88c
...
@@ -142,6 +142,7 @@ class Announcement extends Backend
...
@@ -142,6 +142,7 @@ class Announcement extends Backend
$validate
=
is_bool
(
$this
->
modelValidate
)
?
(
$this
->
modelSceneValidate
?
$name
.
'.edit'
:
$name
)
:
$this
->
modelValidate
;
$validate
=
is_bool
(
$this
->
modelValidate
)
?
(
$this
->
modelSceneValidate
?
$name
.
'.edit'
:
$name
)
:
$this
->
modelValidate
;
$row
->
validateFailException
(
true
)
->
validate
(
$validate
);
$row
->
validateFailException
(
true
)
->
validate
(
$validate
);
}
}
$params
[
'updatetime'
]
=
time
();
if
(
$params
[
'class_id'
]
==
2
){
if
(
$params
[
'class_id'
]
==
2
){
$this
->
error
(
__
(
'请选择子级分类'
,
''
));
$this
->
error
(
__
(
'请选择子级分类'
,
''
));
}
}
...
...
application/admin/controller/article/courseresource/Courseresource.php
View file @
9c6ba88c
...
@@ -142,6 +142,7 @@ class Courseresource extends Backend
...
@@ -142,6 +142,7 @@ class Courseresource extends Backend
$validate
=
is_bool
(
$this
->
modelValidate
)
?
(
$this
->
modelSceneValidate
?
$name
.
'.edit'
:
$name
)
:
$this
->
modelValidate
;
$validate
=
is_bool
(
$this
->
modelValidate
)
?
(
$this
->
modelSceneValidate
?
$name
.
'.edit'
:
$name
)
:
$this
->
modelValidate
;
$row
->
validateFailException
(
true
)
->
validate
(
$validate
);
$row
->
validateFailException
(
true
)
->
validate
(
$validate
);
}
}
$params
[
'updatetime'
]
=
time
();
if
(
$params
[
'class_id'
]
==
4
){
if
(
$params
[
'class_id'
]
==
4
){
$this
->
error
(
__
(
'请选择子级分类'
,
''
));
$this
->
error
(
__
(
'请选择子级分类'
,
''
));
}
}
...
...
application/admin/controller/article/dynamic/Dynamic.php
View file @
9c6ba88c
...
@@ -142,6 +142,7 @@ class Dynamic extends Backend
...
@@ -142,6 +142,7 @@ class Dynamic extends Backend
$validate
=
is_bool
(
$this
->
modelValidate
)
?
(
$this
->
modelSceneValidate
?
$name
.
'.edit'
:
$name
)
:
$this
->
modelValidate
;
$validate
=
is_bool
(
$this
->
modelValidate
)
?
(
$this
->
modelSceneValidate
?
$name
.
'.edit'
:
$name
)
:
$this
->
modelValidate
;
$row
->
validateFailException
(
true
)
->
validate
(
$validate
);
$row
->
validateFailException
(
true
)
->
validate
(
$validate
);
}
}
$params
[
'updatetime'
]
=
time
();
if
(
$params
[
'class_id'
]
==
1
){
if
(
$params
[
'class_id'
]
==
1
){
$this
->
error
(
__
(
'请选择子级分类'
,
''
));
$this
->
error
(
__
(
'请选择子级分类'
,
''
));
}
}
...
...
application/admin/controller/article/interactiveplatform/Interactiveplatform.php
View file @
9c6ba88c
...
@@ -142,6 +142,7 @@ class Interactiveplatform extends Backend
...
@@ -142,6 +142,7 @@ class Interactiveplatform extends Backend
$validate
=
is_bool
(
$this
->
modelValidate
)
?
(
$this
->
modelSceneValidate
?
$name
.
'.edit'
:
$name
)
:
$this
->
modelValidate
;
$validate
=
is_bool
(
$this
->
modelValidate
)
?
(
$this
->
modelSceneValidate
?
$name
.
'.edit'
:
$name
)
:
$this
->
modelValidate
;
$row
->
validateFailException
(
true
)
->
validate
(
$validate
);
$row
->
validateFailException
(
true
)
->
validate
(
$validate
);
}
}
$params
[
'updatetime'
]
=
time
();
if
(
$params
[
'class_id'
]
==
6
){
if
(
$params
[
'class_id'
]
==
6
){
$this
->
error
(
__
(
'请选择子级分类'
,
''
));
$this
->
error
(
__
(
'请选择子级分类'
,
''
));
}
}
...
...
application/admin/controller/article/scientificpayoffs/Scientificpayoffs.php
View file @
9c6ba88c
...
@@ -141,6 +141,7 @@ class Scientificpayoffs extends Backend
...
@@ -141,6 +141,7 @@ class Scientificpayoffs extends Backend
$validate
=
is_bool
(
$this
->
modelValidate
)
?
(
$this
->
modelSceneValidate
?
$name
.
'.edit'
:
$name
)
:
$this
->
modelValidate
;
$validate
=
is_bool
(
$this
->
modelValidate
)
?
(
$this
->
modelSceneValidate
?
$name
.
'.edit'
:
$name
)
:
$this
->
modelValidate
;
$row
->
validateFailException
(
true
)
->
validate
(
$validate
);
$row
->
validateFailException
(
true
)
->
validate
(
$validate
);
}
}
$params
[
'updatetime'
]
=
time
();
if
(
$params
[
'class_id'
]
==
5
){
if
(
$params
[
'class_id'
]
==
5
){
$this
->
error
(
__
(
'请选择子级分类'
,
''
));
$this
->
error
(
__
(
'请选择子级分类'
,
''
));
}
}
...
...
application/admin/controller/article/specials/Specials.php
View file @
9c6ba88c
...
@@ -141,6 +141,7 @@ class Specials extends Backend
...
@@ -141,6 +141,7 @@ class Specials extends Backend
$validate
=
is_bool
(
$this
->
modelValidate
)
?
(
$this
->
modelSceneValidate
?
$name
.
'.edit'
:
$name
)
:
$this
->
modelValidate
;
$validate
=
is_bool
(
$this
->
modelValidate
)
?
(
$this
->
modelSceneValidate
?
$name
.
'.edit'
:
$name
)
:
$this
->
modelValidate
;
$row
->
validateFailException
(
true
)
->
validate
(
$validate
);
$row
->
validateFailException
(
true
)
->
validate
(
$validate
);
}
}
$params
[
'updatetime'
]
=
time
();
if
(
$params
[
'class_id'
]
==
7
){
if
(
$params
[
'class_id'
]
==
7
){
$this
->
error
(
__
(
'请选择子级分类'
,
''
));
$this
->
error
(
__
(
'请选择子级分类'
,
''
));
}
}
...
...
application/admin/controller/article/sportsclub/Sportsclub.php
View file @
9c6ba88c
...
@@ -140,6 +140,7 @@ class Sportsclub extends Backend
...
@@ -140,6 +140,7 @@ class Sportsclub extends Backend
$validate
=
is_bool
(
$this
->
modelValidate
)
?
(
$this
->
modelSceneValidate
?
$name
.
'.edit'
:
$name
)
:
$this
->
modelValidate
;
$validate
=
is_bool
(
$this
->
modelValidate
)
?
(
$this
->
modelSceneValidate
?
$name
.
'.edit'
:
$name
)
:
$this
->
modelValidate
;
$row
->
validateFailException
(
true
)
->
validate
(
$validate
);
$row
->
validateFailException
(
true
)
->
validate
(
$validate
);
}
}
$params
[
'updatetime'
]
=
time
();
if
(
$params
[
'class_id'
]
==
8
){
if
(
$params
[
'class_id'
]
==
8
){
$this
->
error
(
__
(
'请选择子级分类'
,
''
));
$this
->
error
(
__
(
'请选择子级分类'
,
''
));
}
}
...
...
application/admin/controller/article/teachingoperation/Teachingoperation.php
View file @
9c6ba88c
...
@@ -140,6 +140,7 @@ class Teachingoperation extends Backend
...
@@ -140,6 +140,7 @@ class Teachingoperation extends Backend
$validate
=
is_bool
(
$this
->
modelValidate
)
?
(
$this
->
modelSceneValidate
?
$name
.
'.edit'
:
$name
)
:
$this
->
modelValidate
;
$validate
=
is_bool
(
$this
->
modelValidate
)
?
(
$this
->
modelSceneValidate
?
$name
.
'.edit'
:
$name
)
:
$this
->
modelValidate
;
$row
->
validateFailException
(
true
)
->
validate
(
$validate
);
$row
->
validateFailException
(
true
)
->
validate
(
$validate
);
}
}
$params
[
'updatetime'
]
=
time
();
if
(
$params
[
'class_id'
]
==
3
){
if
(
$params
[
'class_id'
]
==
3
){
$this
->
error
(
__
(
'请选择子级分类'
,
''
));
$this
->
error
(
__
(
'请选择子级分类'
,
''
));
}
}
...
...
application/admin/controller/article/teachingteam/Teachingteam.php
View file @
9c6ba88c
...
@@ -137,6 +137,7 @@ class Teachingteam extends Backend
...
@@ -137,6 +137,7 @@ class Teachingteam extends Backend
$validate
=
is_bool
(
$this
->
modelValidate
)
?
(
$this
->
modelSceneValidate
?
$name
.
'.edit'
:
$name
)
:
$this
->
modelValidate
;
$validate
=
is_bool
(
$this
->
modelValidate
)
?
(
$this
->
modelSceneValidate
?
$name
.
'.edit'
:
$name
)
:
$this
->
modelValidate
;
$row
->
validateFailException
(
true
)
->
validate
(
$validate
);
$row
->
validateFailException
(
true
)
->
validate
(
$validate
);
}
}
$params
[
'updatetime'
]
=
time
();
$result
=
$row
->
allowField
(
true
)
->
save
(
$params
);
$result
=
$row
->
allowField
(
true
)
->
save
(
$params
);
Db
::
commit
();
Db
::
commit
();
}
catch
(
ValidateException
$e
)
{
}
catch
(
ValidateException
$e
)
{
...
...
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