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
465e7327
Commit
465e7327
authored
Aug 16, 2018
by
zhz
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master_dev' of git.shenbd.com:qm-develop/shenbd into master_dev
parents
cfc13beb
e2f657e5
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
32 additions
and
1 deletion
+32
-1
AdvService.php
application/models/Business/Common/AdvService.php
+1
-0
ShareService.php
application/models/Business/User/ShareService.php
+5
-0
Adv.php
application/models/DAO/Adv/Adv.php
+5
-0
AdvMobile.php
application/models/DAO/Adv/AdvMobile.php
+6
-0
RefundReason.php
application/models/DAO/Order/RefundReason.php
+1
-0
Store.php
application/models/DAO/Store.php
+13
-0
list.phtml
application/views/qa/list.phtml
+1
-1
No files found.
application/models/Business/Common/AdvService.php
View file @
465e7327
...
...
@@ -168,6 +168,7 @@ class AdvServiceModel extends \Business\AbstractModel{
return
$advs
;
}
public
function
checkAdvWhere
(
$where
){
if
(
!
$where
[
'storeId'
]){
\Error\ErrorModel
::
throwException
(
\Error\CodeConfigModel
::
emptyAdvStore
);
...
...
application/models/Business/User/ShareService.php
View file @
465e7327
...
...
@@ -9,6 +9,7 @@ use Error\ErrorModel;
use
Our\ApiConst
;
use
Our\Common
;
use
Our\CommonExtension
;
use
Our\DbNameConst
;
use
Our\ImageConst
;
use
Our\ImageUtil
;
use
Our\NameConst
;
...
...
@@ -34,6 +35,10 @@ class ShareServiceModel extends \Business\AbstractModel
$driverType
=
\Our\Common
::
getDriverType
();
$data
[
'driverType'
]
=
$driverType
;
$data
[
'qrCode'
]
=
$this
->
growQrcode
(
$data
);
if
(
$data
[
'type'
]
==
ApiConst
::
shareStore
){
$storeDao
=
\DAO\StoreMemberModel
::
getInstance
(
DbNameConst
::
salveDBConnectName
);
$data
[
'address'
]
=
$storeDao
->
getAddress
(
$data
[
'id'
]);
}
// $data['qrCode']=\Our\RedisHelper::cachedFunction(\Redis\Db0\MemberRedisModel::getInstance(), array(&$this, 'growQrcode'), array($data));
return
$data
;
...
...
application/models/DAO/Adv/Adv.php
View file @
465e7327
...
...
@@ -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 @
465e7327
...
...
@@ -45,6 +45,12 @@ class AdvMobileModel extends \DAO\AbstractModel{
$result
=
$this
->
db
->
fetchAll
();
return
$result
;
}
public
function
delAdvMobile
(
$store
){
$advRedis
=
\Redis\Db9\AdvRedisModel
::
getInstance
();
$storeMiddleAdvsKey
=
\Our\NameConst
::
storeMiddleAdvsPrefix
.
$store
;
$advRedis
->
tableDel
(
$storeMiddleAdvsKey
);
}
/**
* 类实例
*/
...
...
application/models/DAO/Order/RefundReason.php
View file @
465e7327
...
...
@@ -82,6 +82,7 @@ class RefundReasonModel extends \DAO\AbstractModel
public
function
getAll
(
$fields
=
'*'
){
$this
->
setDb
(
$this
->
dbName
);
$list
=
$this
->
db
->
from
(
$this
->
_tableName
)
->
select
(
$fields
)
->
fetchAll
();
$list
=
$list
?
$list
:
array
();
return
$list
;
}
...
...
application/models/DAO/Store.php
View file @
465e7327
...
...
@@ -258,7 +258,20 @@ class StoreModel extends \DAO\AbstractModel
$returnStores
=
\Our\RedisHelper
::
cachedFunction
(
\Redis\Db6\StoreRedisModel
::
getInstance
(),
array
(
&
$this
,
'getOnlineStores'
),
array
(
$condition
,
$field
),
\Our\ApiConst
::
oneHour
,
array
(
$cityCode
));
return
$returnStores
;
}
public
function
getAddress
(
$storeId
){
$storeInfo
=
\Our\RedisHelper
::
cachedFunction
(
\Redis\Db6\StoreRedisModel
::
getInstance
(),
array
(
&
$this
,
'getInfoById'
),
array
(
$storeId
),
\Our\ApiConst
::
sevenDaySecond
,
array
(
$storeId
));
//地址
$address
=
''
;
if
(
$storeInfo
[
'area_info'
]){
$address
.=
$storeInfo
[
'area_info'
];
}
if
(
$storeInfo
[
'store_address'
]){
$address
.=
$storeInfo
[
'store_address'
];
}
return
$address
;
}
public
function
get
(
$storeId
,
$label
=
true
)
{
$storeInfo
=
\Our\RedisHelper
::
cachedFunction
(
\Redis\Db6\StoreRedisModel
::
getInstance
(),
array
(
&
$this
,
'getInfoById'
),
array
(
$storeId
),
\Our\ApiConst
::
sevenDaySecond
,
array
(
$storeId
));
...
...
application/views/qa/list.phtml
View file @
465e7327
...
...
@@ -17,7 +17,7 @@
<body>
<div
class=
"detail"
>
<ul>
<?php
phpinfo
();
<?php
$len
=
count
(
$problemList
);
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>
...
...
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