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
09245a5a
Commit
09245a5a
authored
Dec 06, 2022
by
houdong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
华西比赛
parent
c5eeff40
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
config.php
app/Conf/config.php
+1
-0
NiuModel.class.php
app/Lib/Model/NiuModel.class.php
+4
-3
No files found.
app/Conf/config.php
View file @
09245a5a
...
...
@@ -41,6 +41,7 @@ define('ZHONGJIN_GROUP',24299);
define
(
'NIU_STRONG_ID'
,
24323
);
define
(
'NIU_SAN_ID'
,
24326
);
define
(
'NIU_BAI_ID'
,
24327
);
define
(
'HUAXI_ID'
,
24328
);
return
array
(
...
...
app/Lib/Model/NiuModel.class.php
View file @
09245a5a
...
...
@@ -7,7 +7,7 @@ class NiuModel extends Model{
$ids
=
D
(
'Group'
)
->
getGroupCache
(
$userId
);
$MAP
=
[
ZHONGJIN_GROUP
=>
[
WWW_URL
.
'/Zjds'
,
1
],
PRIZE_GROUP_2021
=>
[
'/'
,
8
],
M2M_GROUP
=>
[
M_URL
.
'/M2m'
,
3
],
NIU_BAI_ID
=>
[
M_URL
.
'/Niubai'
,
4
],
NIU_SAN_ID
=>
[
M_URL
.
'/Niusan'
,
5
],
NIU_STRONG_ID
=>
[
M_URL
.
'/Strong'
,
6
]];
NIU_SAN_ID
=>
[
M_URL
.
'/Niusan'
,
5
],
NIU_STRONG_ID
=>
[
M_URL
.
'/Strong'
,
6
]
,
HUAXI_ID
=>
[
M_URL
.
'/Huaxi'
,
7
]
];
$where
=
[
'a.group_id'
=>
[
'in'
,
array_keys
(
$MAP
)]];
$gList
=
M
(
'Group a'
)
->
join
(
'left join cofool_group_info b on a.group_id=b.group_id'
)
...
...
@@ -32,8 +32,9 @@ class NiuModel extends Model{
$g
[
"startTime"
]
=
date
(
'Y-m-d'
,
$startTime
);
$g
[
"endTime"
]
=
$endTime
?
date
(
'Y-m-d'
,
$endTime
)
:
'长期'
;
$g
[
"cover"
]
=
str_replace
(
'https://cofool-image.oss-cn-beijing.aliyuncs.com/'
,
''
,
$g
[
"cover"
]);
$g
[
"cover"
]
=
IMAGE_URL
.
$g
[
"cover"
];
$imgDomain
=
'cofool-image.oss-cn-beijing.aliyuncs.com/'
;
$cover
=
str_replace
([
"http://image.cofool.com"
,
"http://
$imgDomain
"
,
"https://
$imgDomain
"
],
""
,
$g
[
"cover"
]);
$g
[
"cover"
]
=
IMAGE_URL
.
$cover
;
//进入交易需要的参数
$gStatus
=
is_end
(
$endTime
)
?
3
:
(
$startTime
>
time
()
?
1
:
2
);
...
...
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