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
15f891d7
Commit
15f891d7
authored
Sep 25, 2018
by
wwccw0591
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master_dev' of git.shenbd.com:qm-develop/shenbd into ccw
parents
53af3f02
a7e22eeb
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
6 deletions
+10
-6
ImageConst.php
application/library/Our/ImageConst.php
+1
-1
GoodsClassService.php
application/models/Business/Goods/GoodsClassService.php
+6
-2
GoodsClassThird.php
application/models/DAO/GoodsClass/GoodsClassThird.php
+2
-2
GoodsClassThirdRedis.php
application/models/Redis/Db3/GoodsClassThirdRedis.php
+1
-1
No files found.
application/library/Our/ImageConst.php
View file @
15f891d7
...
...
@@ -42,7 +42,7 @@ class ImageConst{
//商品、商家头像等默认图片路径
const
defaultPath
=
'mall/common/'
;
const
storeClassAdvImagePrefix
=
'mall/store/goods/classify'
;
const
storeClassAdvImagePrefix
=
'mall/store/goods/classify
/
'
;
const
defaultMemberAvatarName
=
'default_member_avatar.jpg'
;
...
...
application/models/Business/Goods/GoodsClassService.php
View file @
15f891d7
...
...
@@ -315,12 +315,16 @@ class GoodsClassServiceModel extends \Business\AbstractModel{
$childrenClasses
=
array
();
if
(
isset
(
$treeGcIds
[
$secondGcId
][
\Our\ApiConst
::
zero
])
&&
$newPlatThirdGcList
){
foreach
(
$treeGcIds
[
$secondGcId
][
\Our\ApiConst
::
zero
]
as
$tempPaltThirdGcId
){
$childrenClasses
[]
=
$newPlatThirdGcList
[
$tempPaltThirdGcId
];
$tempPlatClass
=
$newPlatThirdGcList
[
$tempPaltThirdGcId
];
$tempPlatClass
[
'storeFlag'
]
=
\Our\ApiConst
::
zero
;
$childrenClasses
[]
=
$tempPlatClass
;
}
}
if
(
isset
(
$treeGcIds
[
$secondGcId
][
\Our\ApiConst
::
one
])
&&
$storeThirdGcList
){
foreach
(
$treeGcIds
[
$secondGcId
][
\Our\ApiConst
::
one
]
as
$tempStoreThirdGcId
){
$childrenClasses
[]
=
$storeThirdGcList
[
$tempStoreThirdGcId
];
$tempStoreClass
=
$storeThirdGcList
[
$tempStoreThirdGcId
]
;
$tempStoreClass
[
'storeFlag'
]
=
\Our\ApiConst
::
one
;
$childrenClasses
[]
=
$tempStoreClass
;
}
}
$returnTemp
[
'childClasses'
]
=
$childrenClasses
;
...
...
application/models/DAO/GoodsClass/GoodsClassThird.php
100755 → 100644
View file @
15f891d7
...
...
@@ -34,7 +34,7 @@ class GoodsClassThirdModel extends \DAO\AbstractModel{
public
function
getListByIdsFromCache
(
$ids
){
$field
=
$this
->
thirdStoreClassField
;
$returnList
=
\Our\RedisHelper
::
cachedFunction
(
\Redis\Db3\GoodsClassThird
Model
RedisModel
::
getInstance
(),
array
(
&
$this
,
'getListByIds'
),
array
(
$ids
,
$field
),
\Our\ApiConst
::
oneDaySecond
);
$returnList
=
\Our\RedisHelper
::
cachedFunction
(
\Redis\Db3\GoodsClassThirdRedisModel
::
getInstance
(),
array
(
&
$this
,
'getListByIds'
),
array
(
$ids
,
$field
),
\Our\ApiConst
::
oneDaySecond
);
return
$returnList
;
}
...
...
@@ -51,7 +51,7 @@ class GoodsClassThirdModel extends \DAO\AbstractModel{
$whereSql
=
$this
->
db
->
getSqlWhereByArray
(
$where
);
$this
->
db
->
select
(
$field
)
->
from
(
$this
->
_tableName
)
->
where
(
$whereSql
);
foreach
(
$order
as
$key
=>
$val
){
$this
->
db
->
order
(
$
val
,
$key
);
$this
->
db
->
order
(
$
key
,
$val
);
}
$list
=
$this
->
db
->
fetchAll
();
$returnList
=
array
();
...
...
application/models/Redis/Db3/GoodsClassThirdRedis.php
100755 → 100644
View file @
15f891d7
...
...
@@ -6,7 +6,7 @@ namespace Redis\Db3;
* Time: 17:54
* Description:
*/
class
GoodsClassThird
Model
RedisModel
extends
\Redis\Db3\AbstractModel
{
class
GoodsClassThirdRedisModel
extends
\Redis\Db3\AbstractModel
{
/**
* 表名
*
...
...
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