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
0b37ac90
Commit
0b37ac90
authored
Oct 31, 2018
by
zhz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
redis
parent
7f1fc3e2
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
4 deletions
+11
-4
MemberCenterService.php
application/models/Business/User/MemberCenterService.php
+0
-1
Member.php
application/models/DAO/Member.php
+7
-1
Store.php
application/models/DAO/Store.php
+1
-1
MemberRedis.php
application/models/Redis/Db0/MemberRedis.php
+3
-1
No files found.
application/models/Business/User/MemberCenterService.php
View file @
0b37ac90
...
...
@@ -43,7 +43,6 @@ class MemberCenterServiceModel extends \Business\AbstractModel
'vibrate'
=>
ApiConst
::
openMessae
,
);
}
$memberInfo
[
'storeId'
]
?
$memberCenter
[
'is'
]
=
1
:
$memberCenter
[
'isSeller'
]
=
0
;
//是否销售员
$saleInstance
=
\DAO\SaleModel
::
getInstance
();
//$sale_act_id = \DAO\SaleModel::getInstance()->getOne(array('member_id'=>$memberId,'is_closing'=>0),'sale_act_id');
...
...
application/models/DAO/Member.php
View file @
0b37ac90
...
...
@@ -261,7 +261,13 @@ class MemberModel extends \DAO\AbstractModel
}
}
public
function
updateMemberCache
(
$memberId
,
$member
)
{
$memberDb0Redis
=
\Redis\Db0\MemberRedisModel
::
getInstance
();
if
(
$memberDb0Redis
->
tableExists
(
$memberId
))
{
return
$memberDb0Redis
->
tableHMSet
(
$memberId
,
$member
);
}
return
true
;
}
public
function
updateInfo
(
$data
,
$where
)
{
$this
->
setDb
(
\Our\DbNameConst
::
masterDBConnectName
);
...
...
application/models/DAO/Store.php
View file @
0b37ac90
...
...
@@ -269,7 +269,7 @@ class StoreModel extends \DAO\AbstractModel
public
function
get
(
$storeId
,
$label
=
true
)
{
$storeInfo
=
$this
->
getStoreInfoCache
(
$storeId
);
if
(
!
$storeInfo
||
$storeInfo
[
'open_flag'
]
==
0
||
$storeInfo
[
'store_state'
]
!=
1
){
if
(
!
$storeInfo
||
$storeInfo
[
'open_flag'
]
!=
1
||
$storeInfo
[
'store_state'
]
!=
1
){
\Error\ErrorModel
::
throwException
(
\Error\CodeConfigModel
::
storeNotExistOrClose
);
}
...
...
application/models/Redis/Db0/MemberRedis.php
100755 → 100644
View file @
0b37ac90
...
...
@@ -38,7 +38,9 @@ class MemberRedisModel extends \Redis\Db0\AbstractModel {
}
return
null
;
}
public
function
tableExists
(
$h
){
return
$this
->
exists
(
$this
->
calcKey
(
$h
));
}
/**
* 更新数据
*
...
...
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