Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
my-yaf-project
Project
Project
Details
Activity
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
chenchuanwen
my-yaf-project
Commits
7cf64fa0
Commit
7cf64fa0
authored
Dec 20, 2018
by
liuyuzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
文档
parent
f52df17e
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
5 deletions
+11
-5
CommonProblemService.php
application/models/Business/Common/CommonProblemService.php
+0
-0
Article.php
application/models/DAO/Article/Article.php
+10
-4
detail.phtml
application/views/qa/detail.phtml
+1
-1
No files found.
application/models/Business/Common/CommonProblemService.php
100755 → 100644
View file @
7cf64fa0
File mode changed from 100755 to 100644
application/models/DAO/Article/Article.php
100755 → 100644
View file @
7cf64fa0
...
...
@@ -38,10 +38,6 @@ class ArticleModel extends \DAO\AbstractModel{
return
$data
;
}
public
function
findFromCache
(
$where
,
$field
=
\Our\NameConst
::
allField
){
}
public
function
getList
(
$where
,
$field
=
\Our\NameConst
::
allField
,
$order
=
null
){
$this
->
setDb
(
$this
->
dbName
);
if
(
is_array
(
$where
)){
...
...
@@ -57,6 +53,16 @@ class ArticleModel extends \DAO\AbstractModel{
return
$result
;
}
public
function
delArtcileCache
(
$articleClassId
,
$articleId
){
if
(
$articleClassId
){
\Our\RedisHelper
::
cachedFunction
(
\Redis\Db10\ArticleRedisModel
::
getInstance
(),
array
(
&
$this
,
'getList'
),
array
(),
array
(
$articleClassId
));
}
if
(
$articleId
){
\Our\RedisHelper
::
cachedFunction
(
\Redis\Db10\ArticleRedisModel
::
getInstance
(),
array
(
&
$this
,
'find'
),
array
(),
array
(
$articleId
));
}
}
/**
* 类实例
*/
...
...
application/views/qa/detail.phtml
100755 → 100644
View file @
7cf64fa0
...
...
@@ -19,7 +19,7 @@
<div
class=
"detail"
>
<p
class=
"title c1 s1"
>
<?php
echo
$problem
[
'problemTitle'
];
?>
</p>
<p
class=
"desc c3 s3"
>
<?php
echo
$problem
[
'problemContent'
]
;
?>
<?php
echo
htmlspecialchars_decode
(
$problem
[
'problemContent'
])
;
?>
</p>
</div>
</body>
...
...
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