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
503eab45
Commit
503eab45
authored
Dec 07, 2018
by
liuyuzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
到店自提
parent
c7b2e0df
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
7 deletions
+20
-7
Home.php
application/controllers/Home.php
+9
-0
PBundling.php
application/models/DAO/PBundling.php
+10
-6
Store.php
application/models/DAO/Store.php
+1
-1
No files found.
application/controllers/Home.php
View file @
503eab45
...
@@ -192,4 +192,13 @@ class HomeController extends \Our\Controller_AbstractIndex{
...
@@ -192,4 +192,13 @@ class HomeController extends \Our\Controller_AbstractIndex{
$otherGoods
=
$goodsCommonService
->
getIndexHotSalesGoods
(
$currentAddress
);
$otherGoods
=
$goodsCommonService
->
getIndexHotSalesGoods
(
$currentAddress
);
$this
->
success
(
$otherGoods
);
$this
->
success
(
$otherGoods
);
}
}
public
function
testMemberAction
(){
$memberList
=
\DAO\MemberModel
::
getInstance
()
->
getAll
();
foreach
(
$memberList
as
$member
){
}
}
}
}
\ No newline at end of file
application/models/DAO/PBundling.php
View file @
503eab45
...
@@ -173,13 +173,17 @@ class PBundlingModel extends \DAO\AbstractModel {
...
@@ -173,13 +173,17 @@ class PBundlingModel extends \DAO\AbstractModel {
$pBundlingDao
->
tableDelAll
(
$pBundlingDao
->
tableKeys
(
'*'
.
\Our\NameConst
::
blGoods
.
$goodsCommonId
));
$pBundlingDao
->
tableDelAll
(
$pBundlingDao
->
tableKeys
(
'*'
.
\Our\NameConst
::
blGoods
.
$goodsCommonId
));
}
}
public
function
delPBundlingListByStoreIdAndBlIds
(
$storeId
,
$blId
){
public
function
delPBundlingListByStoreIdAndBlIds
(
$storeId
=
false
,
$blId
=
false
){
if
(
$blId
){
\Our\RedisHelper
::
delCachedFunction
(
\Redis\Db4\PBundlingRedisModel
::
getInstance
(),
array
(
&
$this
,
'getList'
),
array
(),
array
(
'*'
.
$blId
.
'*'
));
\Our\RedisHelper
::
delCachedFunction
(
\Redis\Db4\PBundlingRedisModel
::
getInstance
(),
array
(
&
$this
,
'getList'
),
array
(),
array
(
'*'
.
$blId
.
'*'
));
}
if
(
$storeId
){
\Our\RedisHelper
::
delCachedFunction
(
\Redis\Db4\PBundlingRedisModel
::
getInstance
(),
array
(
&
$this
,
'getList'
),
array
(),
array
(
$storeId
));
\Our\RedisHelper
::
delCachedFunction
(
\Redis\Db4\PBundlingRedisModel
::
getInstance
(),
array
(
&
$this
,
'getList'
),
array
(),
array
(
$storeId
));
$cartRedis
=
\Redis\Db7\CartRedisModel
::
getInstance
();
$cartRedis
=
\Redis\Db7\CartRedisModel
::
getInstance
();
$memberCartKey
=
\Our\NameConst
::
memberStoreCartsPrefix
.
'*_'
.
$storeId
;
$memberCartKey
=
\Our\NameConst
::
memberStoreCartsPrefix
.
'*_'
.
$storeId
;
$cartRedis
->
tableDelAll
(
$cartRedis
->
tableKeys
(
$memberCartKey
));
$cartRedis
->
tableDelAll
(
$cartRedis
->
tableKeys
(
$memberCartKey
));
}
}
}
/**
/**
* 类实例
* 类实例
...
...
application/models/DAO/Store.php
View file @
503eab45
...
@@ -435,7 +435,7 @@ class StoreModel extends \DAO\AbstractModel
...
@@ -435,7 +435,7 @@ class StoreModel extends \DAO\AbstractModel
public
function
checkAddressInServiceArea
(
$address
,
$store
)
public
function
checkAddressInServiceArea
(
$address
,
$store
)
{
{
$inAreaFlag
=
\Our\ApiConst
::
zero
;
$inAreaFlag
=
\Our\ApiConst
::
zero
;
if
(
$store
[
'
express
_distribution'
])
{
//如果店铺开启了到店自提和快递配送,则认为存在可用配送方式
if
(
$store
[
'
buyer
_distribution'
])
{
//如果店铺开启了到店自提和快递配送,则认为存在可用配送方式
$inAreaFlag
=
\Our\ApiConst
::
one
;
$inAreaFlag
=
\Our\ApiConst
::
one
;
return
$inAreaFlag
;
return
$inAreaFlag
;
}
}
...
...
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