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
98908cb0
Commit
98908cb0
authored
Nov 12, 2018
by
zhz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
store
parent
e8b75618
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
5 deletions
+9
-5
Goods.php
application/controllers/Goods.php
+1
-1
Group.php
application/controllers/Group.php
+1
-1
StoreService.php
application/models/Business/Store/StoreService.php
+1
-1
Store.php
application/models/DAO/Store.php
+6
-2
No files found.
application/controllers/Goods.php
View file @
98908cb0
...
...
@@ -15,7 +15,7 @@ class GoodsController extends \Our\Controller_AbstractIndex {
public
function
getAction
(){
$address
=
\Business\User\AddressServiceModel
::
getInstance
()
->
getMyAddress
(
$this
->
req
[
\Our\NameConst
::
data
],
$this
->
memberId
,
false
);
$goodsInfo
=
$this
->
goodsService
->
getCommonDetail
(
$this
->
req
[
\Our\NameConst
::
data
],
$this
->
memberId
,
$address
);
$store
=
$this
->
goodsService
->
getStore
(
$goodsInfo
[
'storeId'
]);
$store
=
$this
->
goodsService
->
getStore
(
$goodsInfo
[
'storeId'
]
,
false
,
false
);
$goodsInfo
[
'freeShippingPrice'
]
=
$store
[
'freeShippingPrice'
];
$goodsInfo
[
'isQuality'
]
=
$store
[
'isQuality'
];
$evaluation
=
$this
->
goodsService
->
getEvaluation
(
$this
->
req
[
\Our\NameConst
::
data
]);
...
...
application/controllers/Group.php
View file @
98908cb0
...
...
@@ -23,7 +23,7 @@ class GroupController extends \Our\Controller_AbstractIndex {
$goods
=
$this
->
GroupSaleService
->
getGroupGoods
(
$this
->
req
[
\Our\NameConst
::
data
],
$address
);
// $data = $this->GroupSaleService->getOnePBundingCache($this->req[\Our\NameConst::data]['groupId']);
// $this->GroupSaleService->handleData($data);
$storeInfo
=
\Business\Goods\GoodsCommonServiceModel
::
getInstance
()
->
getStore
(
$goods
[
'store_id'
]);
$storeInfo
=
\Business\Goods\GoodsCommonServiceModel
::
getInstance
()
->
getStore
(
$goods
[
'store_id'
]
,
false
,
false
);
unset
(
$storeInfo
[
'freeShippingPrice'
]);
unset
(
$storeInfo
[
'isQuality'
]);
unset
(
$storeInfo
[
'shareDesc'
]);
$otherGroups
=
\Business\Goods\GroupSaleServiceModel
::
getInstance
()
->
getOtherGroup
(
$goods
[
'store_id'
],
$this
->
req
[
\Our\NameConst
::
data
][
'groupId'
]);
\Business\Goods\GroupSaleServiceModel
::
getInstance
()
->
addBrowseRecord
(
$this
->
req
[
\Our\NameConst
::
data
],
$this
->
memberId
);
...
...
application/models/Business/Store/StoreService.php
View file @
98908cb0
...
...
@@ -29,7 +29,7 @@ class StoreServiceModel extends \Business\AbstractModel{
\Error\ErrorModel
::
throwException
(
\Error\CodeConfigModel
::
emptyStoreId
);
}
list
(
$storeInfo
,
$storeLabel
)
=
\DAO\StoreModel
::
getInstance
()
->
get
(
$storeId
);
list
(
$storeInfo
,
$storeLabel
)
=
\DAO\StoreModel
::
getInstance
()
->
get
(
$storeId
,
true
,
false
);
if
((
int
)
$param
[
'isScan'
]
>
0
)
{
//扫码进入
if
(
$memberId
>
0
)
{
...
...
application/models/DAO/Store.php
View file @
98908cb0
...
...
@@ -266,14 +266,18 @@ class StoreModel extends \DAO\AbstractModel
return
$address
;
}
public
function
get
(
$storeId
,
$label
=
true
)
public
function
get
(
$storeId
,
$label
=
true
,
$reportError
=
true
)
{
$storeInfo
=
$this
->
getStoreInfoCache
(
$storeId
);
if
(
!
$storeInfo
)
{
\Error\ErrorModel
::
throwException
(
\Error\CodeConfigModel
::
storeNotExistOrClose
);
}
if
(
$storeInfo
[
'open_flag'
]
!=
1
||
$storeInfo
[
'store_state'
]
!=
1
){
if
(
$reportError
)
{
\Error\ErrorModel
::
throwException
(
\Error\CodeConfigModel
::
storeNotExistOrClose
);
}
else
{
$storeInfo
[
'isClose'
]
=
1
;
}
}
else
{
$storeInfo
[
'isClose'
]
=
0
;
}
...
...
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