Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cof_vip
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
houdong
cof_vip
Commits
7039b93d
Commit
7039b93d
authored
Nov 24, 2022
by
houdong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更多大赛
parent
672162bd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
NiuModel.class.php
app/Lib/Model/NiuModel.class.php
+4
-3
No files found.
app/Lib/Model/NiuModel.class.php
View file @
7039b93d
...
...
@@ -45,13 +45,14 @@ class NiuModel extends Model{
$g
[
'introduction'
]
=
msubstr
(
$g
[
'introduction'
],
0
,
$len
,
'utf-8'
)
.
'...'
;
}
$endTime
=
$g
[
"endTime"
];
$g
[
"startTime"
]
=
date
(
'Y-m-d'
,
$g
[
"startTime"
]);
$g
[
"endTime"
]
=
$endTime
?
date
(
'Y-m-d'
,
$g
[
"endTime"
])
:
'长期'
;
$startTime
=
$g
[
"startTime"
];
$g
[
"startTime"
]
=
date
(
'Y-m-d'
,
$startTime
);
$g
[
"endTime"
]
=
$endTime
?
date
(
'Y-m-d'
,
$endTime
)
:
'长期'
;
$g
[
"cover"
]
=
str_replace
(
'http://image.cofool.com/'
,
IMAGE_URL
,
$g
[
"cover"
]);
//进入交易需要的参数
$gStatus
=
is_end
(
$
g
[
'endTime'
])
?
3
:
(
$g
[
'startTime'
]
>
time
()
?
1
:
2
);
$gStatus
=
is_end
(
$
endTime
)
?
3
:
(
$startTime
>
time
()
?
1
:
2
);
$gotoTrade
=
[
'group_id'
=>
$gid
,
'web_id'
=>
$g
[
'web_id'
],
'name'
=>
$g
[
'name'
],
'groupStatus'
=>
$gStatus
,
'viewPage'
=>
2
,
'statusInt'
=>
$gStatus
,
'userID'
=>
$userId
,
'zhuangtai'
=>
$STATUS_TXT
[
$gStatus
]];
$g
[
"gotoTrade"
]
=
json_encode
(
$gotoTrade
);
...
...
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