Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
middleLayer_for_debug
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
template admin
middleLayer_for_debug
Commits
5a124b05
Commit
5a124b05
authored
Mar 27, 2023
by
李维
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复数字判断错误
parent
4d31f8ad
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
middleLayerBase.ts
assets/middleLayer_for_debug/script/middleLayerBase.ts
+1
-4
No files found.
assets/middleLayer_for_debug/script/middleLayerBase.ts
View file @
5a124b05
...
@@ -335,16 +335,13 @@ export abstract class middleLayerBase extends cc.Component {
...
@@ -335,16 +335,13 @@ export abstract class middleLayerBase extends cc.Component {
if
(
data
.
rows
&&
data
.
rows
.
length
>
0
)
{
if
(
data
.
rows
&&
data
.
rows
.
length
>
0
)
{
this
.
courses
=
data
.
rows
;
this
.
courses
=
data
.
rows
;
if
(
coursewareId
)
{
if
(
coursewareId
)
{
console
.
log
(
"
coursewareId
"
,
coursewareId
);
this
.
courseIndex
=
data
.
rows
.
findIndex
(
item
=>
item
.
id
==
coursewareId
);
this
.
courseIndex
=
data
.
rows
.
findIndex
(
item
=>
item
.
id
==
coursewareId
);
}
else
if
(
courseIndex
!=
null
&&
!
isNaN
(
Number
(
courseIndex
))
&&
courseIndex
>=
0
)
{
}
else
if
(
typeof
courseIndex
===
'
number
'
&&
!
isNaN
(
courseIndex
)
&&
courseIndex
>=
0
)
{
console
.
log
(
"
courseIndex
"
,
courseIndex
);
if
(
courseIndex
==
0
)
{
if
(
courseIndex
==
0
)
{
courseIndex
=
1
;
courseIndex
=
1
;
}
}
this
.
courseIndex
=
courseIndex
;
this
.
courseIndex
=
courseIndex
;
}
else
{
}
else
{
console
.
log
(
courseId
,
linkFlag
,
coursewareId
,
courseIndex
)
this
.
courseIndex
=
data
.
index
||
0
;
this
.
courseIndex
=
data
.
index
||
0
;
}
}
this
.
courseItem
=
data
.
rows
[
this
.
courseIndex
];
this
.
courseItem
=
data
.
rows
[
this
.
courseIndex
];
...
...
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