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
40acfd02
Commit
40acfd02
authored
Sep 05, 2018
by
liuyuzhen
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master_dev' of git.shenbd.com:qm-develop/shenbd into lyz
parents
d4a711e7
351bbccd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
ImageConst.php
application/library/Our/ImageConst.php
+2
-0
GroupSaleService.php
application/models/Business/Goods/GroupSaleService.php
+5
-2
No files found.
application/library/Our/ImageConst.php
View file @
40acfd02
...
@@ -107,4 +107,6 @@ class ImageConst{
...
@@ -107,4 +107,6 @@ class ImageConst{
const
goodsStoreImg
=
100
;
//商品详情页的店铺头像
const
goodsStoreImg
=
100
;
//商品详情页的店铺头像
const
goodsGroupImg
=
182
;
//商品/组合详情页的其他搭配图片
const
goodsGroupImg
=
182
;
//商品/组合详情页的其他搭配图片
const
groupGoodsImg
=
160
;
//组合详情页的搭配商品
const
groupGoodsImg
=
160
;
//组合详情页的搭配商品
const
storeGroupImg
=
186
;
//店铺促销
const
storeGroupGoodsImg
=
130
;
}
}
application/models/Business/Goods/GroupSaleService.php
View file @
40acfd02
...
@@ -44,7 +44,9 @@ class GroupSaleServiceModel extends \Business\AbstractModel {
...
@@ -44,7 +44,9 @@ class GroupSaleServiceModel extends \Business\AbstractModel {
$data
[
'image'
]
=
[];
$data
[
'image'
]
=
[];
if
(
$blImg
=
unserialize
(
$data
[
'bl_image'
])){
if
(
$blImg
=
unserialize
(
$data
[
'bl_image'
])){
foreach
(
$blImg
as
$v
){
foreach
(
$blImg
as
$v
){
$data
[
'image'
][]
=
\Our\ImageUtil
::
getGoodsImgUrl
(
$v
,
\Our\ImageConst
::
goodsDetailImgSize
);
if
(
$v
)
{
$data
[
'image'
][]
=
\Our\ImageUtil
::
getGoodsImgUrl
(
$v
,
\Our\ImageConst
::
goodsDetailImgSize
);
}
}
}
}
}
$data
[
'goods'
]
=
[];
$data
[
'goods'
]
=
[];
...
@@ -347,7 +349,7 @@ class GroupSaleServiceModel extends \Business\AbstractModel {
...
@@ -347,7 +349,7 @@ class GroupSaleServiceModel extends \Business\AbstractModel {
foreach
(
$groupList
as
$k
=>
$v
){
foreach
(
$groupList
as
$k
=>
$v
){
if
(
$v
[
'bl_quota_starttime'
]
<
TIMESTAMP
&&
$v
[
'endTime'
]
>=
TIMESTAMP
){
if
(
$v
[
'bl_quota_starttime'
]
<
TIMESTAMP
&&
$v
[
'endTime'
]
>=
TIMESTAMP
){
$v
[
'groupId'
]
=
$v
[
'blId'
];
$v
[
'groupId'
]
=
$v
[
'blId'
];
$v
[
'image'
]
=
ImageUtil
::
getGoodsImgUrl
(
$v
[
'image'
]);
$v
[
'image'
]
=
ImageUtil
::
getGoodsImgUrl
(
$v
[
'image'
]
,
\Our\ImageConst
::
storeGroupImg
);
unset
(
$v
[
'bl_title'
]);
unset
(
$v
[
'bl_title'
]);
unset
(
$v
[
'store_id'
]);
unset
(
$v
[
'store_id'
]);
unset
(
$v
[
'store_name'
]);
unset
(
$v
[
'store_name'
]);
...
@@ -366,6 +368,7 @@ class GroupSaleServiceModel extends \Business\AbstractModel {
...
@@ -366,6 +368,7 @@ class GroupSaleServiceModel extends \Business\AbstractModel {
$goods
=
[];
$goods
=
[];
if
(
$v
[
'goodsList'
]){
if
(
$v
[
'goodsList'
]){
foreach
(
$v
[
'goodsList'
]
as
$v2
){
foreach
(
$v
[
'goodsList'
]
as
$v2
){
$v2
[
'goodsImage'
]
=
ImageUtil
::
getGoodsImgWithUrl
(
$v2
[
'goodsImage'
],
\our\ImageConst
::
storeGroupGoodsImg
);
unset
(
$v2
[
'goods_id'
]);
unset
(
$v2
[
'goods_id'
]);
unset
(
$v2
[
'goodsStorage'
]);
unset
(
$v2
[
'goodsStorage'
]);
unset
(
$v2
[
'bl_id'
]);
unset
(
$v2
[
'bl_id'
]);
...
...
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