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
4922308f
Commit
4922308f
authored
Aug 19, 2018
by
zhz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
share
parent
465e7327
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
Goods.php
application/controllers/Goods.php
+2
-2
Store.php
application/controllers/Store.php
+1
-1
No files found.
application/controllers/Goods.php
View file @
4922308f
...
...
@@ -22,10 +22,10 @@ class GoodsController extends \Our\Controller_AbstractIndex {
$groups
=
\Business\Goods\GroupSaleServiceModel
::
getInstance
()
->
getGroupByCommonId
(
$this
->
req
[
\Our\NameConst
::
data
][
'goodsCommonId'
],
$goodsInfo
[
'storeId'
]);
$couponService
=
\Business\Coupon\CouponServiceModel
::
getInstance
();
$coupons
=
$couponService
->
getGoodsCoupons
(
array
(
'storeId'
=>
$goodsInfo
[
'storeId'
]),
$this
->
memberId
);
//
$share = \Business\Common\CommonServiceModel::getInstance()->getShareInfo(\Our\ApiConst::shareGoods,$this->req[\Our\NameConst::data]['goodsCommonId']);
$share
=
\Business\Common\CommonServiceModel
::
getInstance
()
->
getShareInfo
(
\Our\ApiConst
::
shareGoods
,
$this
->
req
[
\Our\NameConst
::
data
][
'goodsCommonId'
]);
unset
(
$store
[
'freeShippingPrice'
]);
unset
(
$store
[
'isQuality'
]);
unset
(
$store
[
'shareDesc'
]);
$this
->
goodsService
->
addBrowseRecord
(
$this
->
req
[
\Our\NameConst
::
data
],
$this
->
memberId
);
$this
->
success
(
array_merge
(
$goodsInfo
,
array
(
'store'
=>
$store
,
'recomndGoods'
=>
$recomndGoods
,
'evaluation'
=>
$evaluation
,
'groups'
=>
$groups
),
$coupons
));
$this
->
success
(
array_merge
(
$goodsInfo
,
array
(
'store'
=>
$store
,
'recomndGoods'
=>
$recomndGoods
,
'evaluation'
=>
$evaluation
,
'groups'
=>
$groups
,
'share'
=>
$share
),
$coupons
));
}
/**
* 获取商品列表
...
...
application/controllers/Store.php
View file @
4922308f
...
...
@@ -16,7 +16,7 @@ class StoreController extends \Our\Controller_AbstractIndex {
$storeInfo
=
$this
->
storeService
->
getStoreInfo
(
$this
->
req
[
\Our\NameConst
::
data
],
$this
->
memberId
);
//.
$storeInfo
[
'adv'
]
=
array
(
'href'
=>
'http://qm.22ca.com/qm/tmpl/goods.html?goods_commonid=101654'
,
'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']);
$storeInfo
[
'share'
]
=
\Business\Common\CommonServiceModel
::
getInstance
()
->
getShareInfo
(
\Our\ApiConst
::
shareStore
,
$this
->
req
[
\Our\NameConst
::
data
][
'storeId'
]);
$this
->
success
(
$storeInfo
);
}
/**
...
...
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