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
ee591f8b
Commit
ee591f8b
authored
Jan 11, 2019
by
liuyuzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
分类底图问题
parent
364482e5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
1 deletion
+6
-1
ImageConst.php
application/library/Our/ImageConst.php
+3
-0
GoodsClassService.php
application/models/Business/Goods/GoodsClassService.php
+1
-1
StoreService.php
application/models/Business/Store/StoreService.php
+2
-0
No files found.
application/library/Our/ImageConst.php
View file @
ee591f8b
...
@@ -20,6 +20,9 @@ class ImageConst{
...
@@ -20,6 +20,9 @@ class ImageConst{
//分类图标前缀
//分类图标前缀
const
categoryPicPrefix
=
'category-pic-'
;
const
categoryPicPrefix
=
'category-pic-'
;
const
categoryHeadPicPrefix
=
'category-headpic-'
;
const
topClassAdvImagePrefis
=
'category-hdpic-'
;
//一级分类对应广告图前缀
const
topClassAdvImagePrefis
=
'category-hdpic-'
;
//一级分类对应广告图前缀
//商家举报图片存放路径
//商家举报图片存放路径
...
...
application/models/Business/Goods/GoodsClassService.php
View file @
ee591f8b
...
@@ -55,6 +55,7 @@ class GoodsClassServiceModel extends \Business\AbstractModel{
...
@@ -55,6 +55,7 @@ class GoodsClassServiceModel extends \Business\AbstractModel{
return
array
(
'totalCount'
=>
\Our\ApiConst
::
zero
);
return
array
(
'totalCount'
=>
\Our\ApiConst
::
zero
);
}
}
}
}
/**
/**
* 获取平台全部一级分类
* 获取平台全部一级分类
* @param $where
* @param $where
...
@@ -65,7 +66,6 @@ class GoodsClassServiceModel extends \Business\AbstractModel{
...
@@ -65,7 +66,6 @@ class GoodsClassServiceModel extends \Business\AbstractModel{
//验证参数
//验证参数
$addressDao
=
\DAO\AddressModel
::
getInstance
();
$addressDao
=
\DAO\AddressModel
::
getInstance
();
$validFlag
=
$addressDao
->
getValidAddress
(
$where
);
$validFlag
=
$addressDao
->
getValidAddress
(
$where
);
if
(
!
$validFlag
){
if
(
!
$validFlag
){
...
...
application/models/Business/Store/StoreService.php
View file @
ee591f8b
...
@@ -830,6 +830,8 @@ class StoreServiceModel extends \Business\AbstractModel{
...
@@ -830,6 +830,8 @@ class StoreServiceModel extends \Business\AbstractModel{
foreach
(
$goodsClassList
as
$goodsClass
){
foreach
(
$goodsClassList
as
$goodsClass
){
$returnStores
=
array
();
$returnStores
=
array
();
$returnStores
[
'gcName'
]
=
htmlspecialchars_decode
(
$goodsClass
[
'gcName'
]);
$returnStores
[
'gcName'
]
=
htmlspecialchars_decode
(
$goodsClass
[
'gcName'
]);
//$returnStores['gcImg'] = \Our\Common::getStaticFile(\Our\ImageConst::categoryHeadPicPrefix.$goodsClass['gcId'].\Our\NameConst::jpgSuffix,\Our\ImageConst::defaultPath);
$returnStores
[
'gcImg'
]
=
\Our\Common
::
getStaticFile
(
'category-headpic-default.jpg'
,
\Our\ImageConst
::
defaultPath
);
$existStoreIds
=
null
;
$existStoreIds
=
null
;
$returnStores
[
'stores'
]
=
null
;
$returnStores
[
'stores'
]
=
null
;
$exitStore
=
array
();
$exitStore
=
array
();
...
...
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