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
2ecb113a
Commit
2ecb113a
authored
Oct 23, 2018
by
wwccw0591
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master_dev' of git.shenbd.com:qm-develop/shenbd into ccw
parents
b6de5403
a2651521
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
8 deletions
+11
-8
StoreService.php
application/models/Business/Store/StoreService.php
+11
-8
No files found.
application/models/Business/Store/StoreService.php
View file @
2ecb113a
...
...
@@ -63,15 +63,18 @@ class StoreServiceModel extends \Business\AbstractModel{
\Our\Log
::
getInstance
()
->
write
(
$param
[
'key'
]
.
'无会员'
,
'/data/log/special'
);
$sess
=
\Yaf\Session
::
getInstance
();
$scan_store_ids
=
$sess
->
get
(
'scan_store_ids'
);
is_array
(
$scan_store_ids
)
?
$scan_store_ids
=
$scan_store_ids
:
$scan_store_ids
=
array
();
$scan_store_ids
[]
=
$storeId
;
$tempStoreIds
=
array_unique
(
$scan_store_ids
);
\Our\Log
::
getInstance
()
->
write
(
json_encode
(
$tempStoreIds
,
true
),
'/data/log/special'
);
foreach
(
$tempStoreIds
as
$key
=>
$tempId
){
$tempIds
[
$key
]
=
$tempId
;
if
(
$scan_store_ids
){
if
(
is_array
(
$scan_store_ids
)){
//兼容历史数据,如果有历史数据
$scan_store_ids
=
implode
(
','
,
$scan_store_ids
);
}
if
(
strpos
(
','
.
$scan_store_ids
.
','
,
','
.
$storeId
.
','
)
===
false
){
$scan_store_ids
.=
','
.
$storeId
;
}
}
else
{
$scan_store_ids
=
$storeId
;
}
\Our\Log
::
getInstance
()
->
write
(
json_encode
(
$tempIds
,
true
)
,
'/data/log/special'
);
$sess
[
'scan_store_ids'
]
=
$
tempI
ds
;
\Our\Log
::
getInstance
()
->
write
(
$scan_store_ids
.
'无会员'
,
'/data/log/special'
);
$sess
[
'scan_store_ids'
]
=
$
scan_store_i
ds
;
if
(
$param
[
'sid'
])
{
$scan_sale_ids
=
$sess
->
get
(
'scan_sale_ids'
);
is_array
(
$scan_sale_ids
)
?
$scan_sale_ids
=
$scan_sale_ids
:
$scan_sale_ids
=
[];
...
...
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