Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
鹿
鹿马108官网
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
xieyishang
鹿马108官网
Commits
b7d34cdd
Commit
b7d34cdd
authored
Mar 07, 2021
by
xieyishang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
addxx
parent
ab806788
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
62 additions
and
8 deletions
+62
-8
application/index/controller/Index.php
application/index/controller/Index.php
+15
-3
application/index/view/index/news.html
application/index/view/index/news.html
+2
-2
runtime/log/202103/07.log
runtime/log/202103/07.log
+42
-0
runtime/temp/14c38376baa1b64232d9271d27c63d32.php
runtime/temp/14c38376baa1b64232d9271d27c63d32.php
+3
-3
No files found.
application/index/controller/Index.php
View file @
b7d34cdd
...
...
@@ -78,10 +78,22 @@ class Index extends Frontend
//新闻中心
public
function
news
(){
$reuurl
=
request
()
->
url
();
$reuurl
=
substr
(
$reuurl
,
6
);
//var_dump($reuurl);die;
if
(
is_numeric
(
$reuurl
)){
//是数字
}
else
{
//不是数字
$reuurl
=
1
;
}
$page
=
$reuurl
;
$page
=
$page
-
1
;
$pagenum
=
$page
*
10
;
$pagenumtwo
=
10
;
//获取当前方法名
$need_field
=
[
'news_id'
,
'news_img'
,
'news_title'
,
'news_comtent'
,
'news_view'
,
'news_sort'
,
'FROM_UNIXTIME(news_createtime,"%Y-%m-%d") as news_createtime'
];
$newslist
=
Db
::
name
(
'news'
)
->
field
(
$need_field
)
->
select
();
$need_field
=
[
'news_id'
,
'news_img'
,
'news_title'
,
'news_comtent'
,
'news_view'
,
'news_sort'
,
'secondary_title'
,
'FROM_UNIXTIME(news_createtime,"%Y-%m-%d") as news_createtime'
];
$newslist
=
Db
::
name
(
'news'
)
->
field
(
$need_field
)
->
limit
(
$pagenum
,
$pagenumtwo
)
->
select
();
// var_dump($newslist);die;
$action
=
request
()
->
action
();
$this
->
assign
(
'action'
,
$action
);
...
...
application/index/view/index/news.html
View file @
b7d34cdd
...
...
@@ -33,9 +33,9 @@
<div
class=
"newsitems_left col-xl-3 col-lg-3 col-md-4 col-sm-5 col-12"
>
<img
src=
"__CDN__{$vo.news_img}"
alt=
""
>
</div>
<div
class=
"newsitems_right col-xl-9 col-lg-9 col-md-8 col-sm-7 col-12"
>
<div
data-id=
"{$vo.news_id}"
class=
"newsitems_right col-xl-9 col-lg-9 col-md-8 col-sm-7 col-12"
>
<h5>
{$vo.news_title}
</h5>
<p>
{$vo.
news
_title}
</p>
<p>
{$vo.
secondary
_title}
</p>
<span>
{$vo.news_createtime}
</span>
</div>
</div>
...
...
runtime/log/202103/07.log
0 → 100644
View file @
b7d34cdd
---------------------------------------------------------------
[ 2021-03-07T08:52:55+08:00 ] 127.0.0.1 GET www.fa.com/news.html
[ error ] [0]语法解析错误: syntax error, unexpected 'select' (T_STRING)
---------------------------------------------------------------
[ 2021-03-07T08:52:57+08:00 ] 127.0.0.1 GET www.fa.com/news.html
[ error ] [0]语法解析错误: syntax error, unexpected 'select' (T_STRING)
---------------------------------------------------------------
[ 2021-03-07T10:08:31+08:00 ] 127.0.0.1 GET www.fa.com/news.html
[ error ] [8]未定义数组索引: id
---------------------------------------------------------------
[ 2021-03-07T10:10:12+08:00 ] 127.0.0.1 GET www.fa.com/news.html
[ error ] [0]语法解析错误: syntax error, unexpected ','
---------------------------------------------------------------
[ 2021-03-07T10:10:21+08:00 ] 127.0.0.1 GET www.fa.com/news.html
[ error ] [0]语法解析错误: syntax error, unexpected ','
---------------------------------------------------------------
[ 2021-03-07T10:10:22+08:00 ] 127.0.0.1 GET www.fa.com/news.html
[ error ] [0]语法解析错误: syntax error, unexpected ','
---------------------------------------------------------------
[ 2021-03-07T10:28:10+08:00 ] 127.0.0.1 GET www.fa.com/news/111
[ error ] [8]未定义变量: request
---------------------------------------------------------------
[ 2021-03-07T10:28:12+08:00 ] 127.0.0.1 GET www.fa.com/news/111
[ error ] [8]未定义变量: request
---------------------------------------------------------------
[ 2021-03-07T10:28:25+08:00 ] 127.0.0.1 GET www.fa.com/news/111
[ error ] [8]未定义变量: request
---------------------------------------------------------------
[ 2021-03-07T10:28:35+08:00 ] 127.0.0.1 GET www.fa.com/news/111
[ error ] [0]语法解析错误: syntax error, unexpected '->' (T_OBJECT_OPERATOR), expecting ')'
---------------------------------------------------------------
[ 2021-03-07T10:28:36+08:00 ] 127.0.0.1 GET www.fa.com/news/111
[ error ] [0]语法解析错误: syntax error, unexpected '->' (T_OBJECT_OPERATOR), expecting ')'
---------------------------------------------------------------
[ 2021-03-07T10:30:48+08:00 ] 127.0.0.1 GET www.fa.com/news/111
[ error ] [0]方法不存在:think\Request->protected
---------------------------------------------------------------
[ 2021-03-07T10:30:56+08:00 ] 127.0.0.1 GET www.fa.com/news/111
[ error ] [0]语法解析错误: syntax error, unexpected ';', expecting ')'
---------------------------------------------------------------
[ 2021-03-07T10:44:34+08:00 ] 127.0.0.1 GET www.fa.com/news/111
[ error ] [8]未定义变量: reuurlr
runtime/temp/14c38376baa1b64232d9271d27c63d32.php
View file @
b7d34cdd
<?php
if
(
!
defined
(
'THINK_PATH'
))
exit
();
/*a:3:{s:79:"D:\phpstudy_pro\WWW\www.fa.com\public/../application/index\view\index\news.html";i:16150
2076
4;s:72:"D:\phpstudy_pro\WWW\www.fa.com\application\index\view\layout\topnav.html";i:1615017144;s:72:"D:\phpstudy_pro\WWW\www.fa.com\application\index\view\layout\footer.html";i:1615017258;}*/
?>
<?php
if
(
!
defined
(
'THINK_PATH'
))
exit
();
/*a:3:{s:79:"D:\phpstudy_pro\WWW\www.fa.com\public/../application/index\view\index\news.html";i:16150
8292
4;s:72:"D:\phpstudy_pro\WWW\www.fa.com\application\index\view\layout\topnav.html";i:1615017144;s:72:"D:\phpstudy_pro\WWW\www.fa.com\application\index\view\layout\footer.html";i:1615017258;}*/
?>
<!DOCTYPE html>
<html
lang=
"zh-cn"
>
<!-- 完美兼容所有屏幕 基于 bootstrap4.1 -->
...
...
@@ -91,9 +91,9 @@
<div
class=
"newsitems_left col-xl-3 col-lg-3 col-md-4 col-sm-5 col-12"
>
<img
src=
"
<?php
echo
$vo
[
'news_img'
];
?>
"
alt=
""
>
</div>
<div
class=
"newsitems_right col-xl-9 col-lg-9 col-md-8 col-sm-7 col-12"
>
<div
data-id=
"
<?php
echo
$vo
[
'news_id'
];
?>
"
class=
"newsitems_right col-xl-9 col-lg-9 col-md-8 col-sm-7 col-12"
>
<h5>
<?php
echo
$vo
[
'news_title'
];
?>
</h5>
<p>
<?php
echo
$vo
[
'
news
_title'
];
?>
</p>
<p>
<?php
echo
$vo
[
'
secondary
_title'
];
?>
</p>
<span>
<?php
echo
$vo
[
'news_createtime'
];
?>
</span>
</div>
</div>
...
...
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