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
dd2e6911
Commit
dd2e6911
authored
Sep 15, 2018
by
liuyuzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
首页附近的店铺
parent
6b26185f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
GoodsClassService.php
application/models/Business/Goods/GoodsClassService.php
+3
-1
No files found.
application/models/Business/Goods/GoodsClassService.php
View file @
dd2e6911
...
@@ -96,7 +96,7 @@ class GoodsClassServiceModel extends \Business\AbstractModel{
...
@@ -96,7 +96,7 @@ class GoodsClassServiceModel extends \Business\AbstractModel{
$classIds
=
array_merge
(
$expressClassIds
,
$classIds
);
$classIds
=
array_merge
(
$expressClassIds
,
$classIds
);
}
}
$classIdKeys
=
array_flip
(
$classIds
);
$classIdKeys
=
array_flip
(
$classIds
);
\Our\Log
::
getInstance
()
->
write
(
json_encode
(
$classIdKeys
)
.
'$
parentClasse
s'
);
\Our\Log
::
getInstance
()
->
write
(
json_encode
(
$classIdKeys
)
.
'$
classIdKey
s'
);
$goodsClassDao
=
\DAO\GoodsClassModel
::
getInstance
();
$goodsClassDao
=
\DAO\GoodsClassModel
::
getInstance
();
$parentClasses
=
$goodsClassDao
->
getParentClasses
();
$parentClasses
=
$goodsClassDao
->
getParentClasses
();
$temp
=
array_diff_key
(
$parentClasses
,
$classIdKeys
);
$temp
=
array_diff_key
(
$parentClasses
,
$classIdKeys
);
...
@@ -200,7 +200,9 @@ class GoodsClassServiceModel extends \Business\AbstractModel{
...
@@ -200,7 +200,9 @@ class GoodsClassServiceModel extends \Business\AbstractModel{
$class_distance
=
\Our\CommonExtension
::
getDistance
(
$lat
,
$lng
,
$signClass
[
'latitude'
],
$signClass
[
'longitude'
],
1
);
$class_distance
=
\Our\CommonExtension
::
getDistance
(
$lat
,
$lng
,
$signClass
[
'latitude'
],
$signClass
[
'longitude'
],
1
);
//判断签约分类是否可以为当前用户提供服务,并且记录这些店铺对应的store_id
//判断签约分类是否可以为当前用户提供服务,并且记录这些店铺对应的store_id
if
(
$class_distance
<=
$signClass
[
'sign_rang'
]){
if
(
$class_distance
<=
$signClass
[
'sign_rang'
]){
$class
=
$signClass
;
$class
[
'class_distance'
]
=
$class_distance
;
$class
[
'class_distance'
]
=
$class_distance
;
$returnClass
[
$class_distance
]
=
$class
;
$returnClass
[
$class_distance
]
=
$class
;
if
(
!
(
$newStoreIds
&&
in_array
(
$signClass
[
'store_id'
],
$newStoreIds
))){
if
(
!
(
$newStoreIds
&&
in_array
(
$signClass
[
'store_id'
],
$newStoreIds
))){
$newStoreIds
[]
=
$signClass
[
'store_id'
];
$newStoreIds
[]
=
$signClass
[
'store_id'
];
...
...
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