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
ccf08a08
Commit
ccf08a08
authored
Sep 06, 2018
by
zhz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
storebanner
parent
d321e892
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
Store.php
application/controllers/Store.php
+0
-2
ImageConst.php
application/library/Our/ImageConst.php
+1
-0
Store.php
application/models/DAO/Store.php
+2
-1
No files found.
application/controllers/Store.php
View file @
ccf08a08
...
...
@@ -15,8 +15,6 @@ class StoreController extends \Our\Controller_AbstractIndex {
public
function
getStoreInfoAction
(){
$address
=
\Business\User\AddressServiceModel
::
getInstance
()
->
getMyAddress
(
$this
->
req
[
\Our\NameConst
::
data
],
$this
->
memberId
);
$storeInfo
=
$this
->
storeService
->
getStoreInfo
(
$this
->
req
[
\Our\NameConst
::
data
],
$this
->
memberId
,
$address
);
//.
$storeInfo
[
'adv'
]
=
array
(
'href'
=>
''
,
'imageUrl'
=>
'http://qmoss-01.oss-cn-hangzhou.aliyuncs.com/data/upload/mall/adv/05715960161498410.jpg'
);
$storeInfo
[
'share'
]
=
\Business\Common\CommonServiceModel
::
getInstance
()
->
getShareInfo
(
\Our\ApiConst
::
shareStore
,
$this
->
req
[
\Our\NameConst
::
data
][
'storeId'
]);
$this
->
success
(
$storeInfo
);
}
...
...
application/library/Our/ImageConst.php
View file @
ccf08a08
...
...
@@ -48,6 +48,7 @@ class ImageConst{
const
defaultStoreLabelName
=
'default_store_avatar.jpg'
;
const
defaultStoreBannerName
=
'default_store_banner.jpg'
;
//图片指向的域名
const
imageDomain
=
"ossHost"
;
...
...
application/models/DAO/Store.php
View file @
ccf08a08
...
...
@@ -105,8 +105,9 @@ class StoreModel extends \DAO\AbstractModel
if
(
$img
)
{
$storeLabel
=
\Our\Common
::
getStaticFile
(
$img
,
\Our\ImageConst
::
storeLabel
,
'ossHost'
);
}
else
{
$storeLabel
=
\Our\Common
::
getStaticFile
(
ImageConst
::
defaultStore
Label
Name
,
ImageConst
::
defaultPath
);
$storeLabel
=
\Our\Common
::
getStaticFile
(
ImageConst
::
defaultStore
Banner
Name
,
ImageConst
::
defaultPath
);
}
$storeLabel
.=
"?x-oss-process=image/resize,m_fill,h_314,w_750"
;
return
$storeLabel
;
}
/**
...
...
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