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
76a755cb
Commit
76a755cb
authored
Aug 17, 2018
by
liuyuzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
清楚phpinfo
parent
ea1c924f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
1 deletion
+13
-1
AdvService.php
application/models/Business/Common/AdvService.php
+1
-0
Adv.php
application/models/DAO/Adv/Adv.php
+5
-0
AdvMobile.php
application/models/DAO/Adv/AdvMobile.php
+6
-0
list.phtml
application/views/qa/list.phtml
+1
-1
No files found.
application/models/Business/Common/AdvService.php
View file @
76a755cb
...
@@ -168,6 +168,7 @@ class AdvServiceModel extends \Business\AbstractModel{
...
@@ -168,6 +168,7 @@ class AdvServiceModel extends \Business\AbstractModel{
return
$advs
;
return
$advs
;
}
}
public
function
checkAdvWhere
(
$where
){
public
function
checkAdvWhere
(
$where
){
if
(
!
$where
[
'storeId'
]){
if
(
!
$where
[
'storeId'
]){
\Error\ErrorModel
::
throwException
(
\Error\CodeConfigModel
::
emptyAdvStore
);
\Error\ErrorModel
::
throwException
(
\Error\CodeConfigModel
::
emptyAdvStore
);
...
...
application/models/DAO/Adv/Adv.php
View file @
76a755cb
...
@@ -50,6 +50,11 @@ class AdvModel extends \DAO\AbstractModel{
...
@@ -50,6 +50,11 @@ class AdvModel extends \DAO\AbstractModel{
}
}
public
function
delAdvCache
(
$positionId
){
\Our\Log
::
getInstance
()
->
write
(
'调用广告位'
.
$positionId
);
\Our\RedisHelper
::
delCachedFunction
(
\Redis\Db9\AdvRedisModel
::
getInstance
(),
array
(
&
$this
,
'getPostionAdv'
),
array
(),
array
(
$positionId
));
}
/**
/**
* 类实例
* 类实例
*/
*/
...
...
application/models/DAO/Adv/AdvMobile.php
View file @
76a755cb
...
@@ -45,6 +45,12 @@ class AdvMobileModel extends \DAO\AbstractModel{
...
@@ -45,6 +45,12 @@ class AdvMobileModel extends \DAO\AbstractModel{
$result
=
$this
->
db
->
fetchAll
();
$result
=
$this
->
db
->
fetchAll
();
return
$result
;
return
$result
;
}
}
public
function
delAdvMobile
(
$store
){
$advRedis
=
\Redis\Db9\AdvRedisModel
::
getInstance
();
$storeMiddleAdvsKey
=
\Our\NameConst
::
storeMiddleAdvsPrefix
.
$store
;
$advRedis
->
tableDel
(
$storeMiddleAdvsKey
);
}
/**
/**
* 类实例
* 类实例
*/
*/
...
...
application/views/qa/list.phtml
View file @
76a755cb
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
<body>
<body>
<div
class=
"detail"
>
<div
class=
"detail"
>
<ul>
<ul>
<?php
phpinfo
();
<?php
$len
=
count
(
$problemList
);
$len
=
count
(
$problemList
);
foreach
(
$problemList
as
$key
=>
$problem
){
?>
foreach
(
$problemList
as
$key
=>
$problem
){
?>
<li
<?php
if
(
$key
==
(
$len
-
1
)){
?>
class=
"li-last"
<?php
}
?>
onclick=
"goToDetail('
<?php
echo
$problem
[
'problemId'
];
?>
')"
>
<?php
echo
$problem
[
'problemTitle'
]
?>
</li>
<li
<?php
if
(
$key
==
(
$len
-
1
)){
?>
class=
"li-last"
<?php
}
?>
onclick=
"goToDetail('
<?php
echo
$problem
[
'problemId'
];
?>
')"
>
<?php
echo
$problem
[
'problemTitle'
]
?>
</li>
...
...
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