切换导航条
此项目
正在载入...
登录
何书鹏
/
anttest
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
何书鹏
4 years ago
提交
1663c55b246cd257244c47c0ae36e3335c14f95d
1 个父辈
5b58376a
活动显示
隐藏空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
10 行增加
和
10 行删除
addons/shopro/library/traits/ActivityCache.php
addons/shopro/model/Goods.php
addons/shopro/library/traits/ActivityCache.php
查看文件 @
1663c55
...
...
@@ -130,7 +130,7 @@ trait ActivityCache
continue
;
}
}
else
if
(
$status
==
'nostart'
)
{
if
(
time
()
>
$starttime
||
$tomorrow_start
<
$
end
time
)
{
if
(
time
()
>
$starttime
||
$tomorrow_start
<
$
start
time
)
{
continue
;
}
}
else
if
(
$status
==
'ended'
)
{
...
...
@@ -138,7 +138,7 @@ trait ActivityCache
continue
;
}
}
else
if
(
$status
==
'tomorrow'
)
{
if
(
$tomorrow_start
>
$starttime
||
$tomorrow_end
<
$
end
time
)
{
if
(
$tomorrow_start
>
$starttime
||
$tomorrow_end
<
$
start
time
)
{
continue
;
}
}
...
...
addons/shopro/model/Goods.php
查看文件 @
1663c55
...
...
@@ -205,7 +205,7 @@ class Goods extends Model
];
}
else
{
//下一场
$where
[
'starttime'
]
=
[
'>'
,
time
()];
$where
[
'
end
time'
]
=
[
'<'
,
$tomorrow_start
];
$where
[
'
start
time'
]
=
[
'<'
,
$tomorrow_start
];
$activity
=
Activity
::
where
(
$where
)
->
order
(
'starttime'
)
->
find
();
if
(
$activity
){
$type
=
'nostart'
;
...
...
@@ -215,7 +215,7 @@ class Goods extends Model
];
}
else
{
//明日预告
$where
[
'starttime'
]
=
[
'>'
,
$tomorrow_start
];
$where
[
'
end
time'
]
=
[
'<'
,
$tomorrow_end
];
$where
[
'
start
time'
]
=
[
'<'
,
$tomorrow_end
];
$activity
=
Activity
::
where
(
$where
)
->
order
(
'starttime'
)
->
find
();
$type
=
'tomorrow'
;
}
...
...
@@ -257,7 +257,7 @@ class Goods extends Model
];
}
else
{
//下一场
$where
[
'starttime'
]
=
[
'>'
,
time
()];
$where
[
'
end
time'
]
=
[
'<'
,
$tomorrow_start
];
$where
[
'
start
time'
]
=
[
'<'
,
$tomorrow_start
];
$activity
=
Activity
::
where
(
$where
)
->
order
(
'starttime'
)
->
find
();
if
(
$activity
){
$type
=
'nostart'
;
...
...
@@ -267,7 +267,7 @@ class Goods extends Model
];
}
else
{
//明日预告
$where
[
'starttime'
]
=
[
'>'
,
$tomorrow_start
];
$where
[
'
end
time'
]
=
[
'<'
,
$tomorrow_end
];
$where
[
'
start
time'
]
=
[
'<'
,
$tomorrow_end
];
$activity
=
Activity
::
where
(
$where
)
->
order
(
'starttime'
)
->
find
();
$type
=
'tomorrow'
;
}
...
...
@@ -302,12 +302,12 @@ class Goods extends Model
$where
[
'endtime'
]
=
[
'>'
,
time
()];
}
else
if
(
$type
==
'nostart'
)
{
$where
[
'starttime'
]
=
[
'>'
,
time
()];
$where
[
'
end
time'
]
=
[
'<'
,
$tomorrow_start
];
$where
[
'
start
time'
]
=
[
'<'
,
$tomorrow_start
];
}
else
if
(
$type
==
'ended'
)
{
$where
[
'endtime'
]
=
[
'<'
,
time
()];
}
else
if
(
$type
==
'tomorrow'
)
{
$where
[
'starttime'
]
=
[
'>'
,
$tomorrow_start
];
$where
[
'
end
time'
]
=
[
'<'
,
$tomorrow_end
];
$where
[
'
start
time'
]
=
[
'<'
,
$tomorrow_end
];
}
$activityList
=
Activity
::
where
(
$where
)
->
select
();
...
...
@@ -348,12 +348,12 @@ class Goods extends Model
$where
[
'endtime'
]
=
[
'>'
,
time
()];
}
else
if
(
$type
==
'nostart'
)
{
$where
[
'starttime'
]
=
[
'>'
,
time
()];
$where
[
'
end
time'
]
=
[
'<'
,
$tomorrow_start
];
$where
[
'
start
time'
]
=
[
'<'
,
$tomorrow_start
];
}
else
if
(
$type
==
'ended'
)
{
$where
[
'endtime'
]
=
[
'<'
,
time
()];
}
else
if
(
$type
==
'tomorrow'
)
{
$where
[
'starttime'
]
=
[
'>'
,
$tomorrow_start
];
$where
[
'
end
time'
]
=
[
'<'
,
$tomorrow_end
];
$where
[
'
start
time'
]
=
[
'<'
,
$tomorrow_end
];
}
$activityList
=
Activity
::
where
(
$where
)
->
select
();
...
...
请
注册
或
登录
后发表评论