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
42df3850
Commit
42df3850
authored
Sep 04, 2018
by
liuyuzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
首页图片以及地址保存问题
parent
fa9b3284
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
1 deletion
+7
-1
ImageConst.php
application/library/Our/ImageConst.php
+1
-0
AddressService.php
application/models/Business/User/AddressService.php
+5
-0
StoreTopSaleGoods.php
application/models/DAO/Goods/StoreTopSaleGoods.php
+1
-1
No files found.
application/library/Our/ImageConst.php
View file @
42df3850
...
...
@@ -99,4 +99,5 @@ class ImageConst{
const
goodsDetailImgSize
=
750
;
const
goodsCollectionImgSize
=
336
;
const
footPrintGoodsImgSize
=
216
;
const
homeIndexHotGoodsImageSize
=
250
;
}
application/models/Business/User/AddressService.php
100755 → 100644
View file @
42df3850
...
...
@@ -35,6 +35,11 @@ class AddressServiceModel extends \Business\AbstractModel {
$where
[
'address_id'
]
=
$addressId
;
$result
=
$addressDao
->
update
(
$address
,
$where
);
\Our\RedisHelper
::
delCachedFunction
(
\Redis\Db8\AddressRedisModel
::
getInstance
(),
array
(
&
$addressDao
,
'findByWhereWithColumns'
),
array
(),
array
(
$addressId
));
if
(
$result
===
false
){
return
false
;
}
else
{
return
true
;
}
}
else
{
$result
=
$addressDao
->
insert
(
$address
);
$addressId
=
$result
;
...
...
application/models/DAO/Goods/StoreTopSaleGoods.php
100755 → 100644
View file @
42df3850
...
...
@@ -57,7 +57,7 @@ class StoreTopSaleGoodsModel extends \DAO\AbstractModel{
}
if
(
$orderGoods
)
{
foreach
(
$orderGoods
as
&
$goods
){
$goods
[
'goodsImage'
]
=
\Our\ImageUtil
::
getGoodsImgUrl
(
$goods
[
'goodsImage'
]);
$goods
[
'goodsImage'
]
=
\Our\ImageUtil
::
getGoodsImgUrl
(
$goods
[
'goodsImage'
]
,
\Our\ImageConst
::
homeIndexHotGoodsImageSize
);
}
return
$orderGoods
;
}
...
...
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