Commit ceaeea44 authored by liuyuzhen's avatar liuyuzhen

身边的店推荐bug修改

parent 01d63881
......@@ -179,8 +179,6 @@ class ImageUtil {
return $file_name;
}
public static function saveWxImage($data)
{
$fileName = isset($data['image'])&&$data['image']?$data['image']:$data['memberAvatar'];
......@@ -195,8 +193,6 @@ class ImageUtil {
);
}
return false;
}
}
......@@ -8,7 +8,7 @@ namespace Business\Store;
*/
class ClassStoreServiceModel extends \Business\AbstractModel{
private $classStoreField = 'store_id as storeId,store_name as storeName,store_label as storeLabel,store_intro as storeIntro,store_longitude,store_latitude,gc_id as gcId,gc_name as gcName';
private $classStoreField = 'store_id as storeId,store_name as storeName,store_label as storeLabel,store_intro as storeIntro,store_longitude,store_latitude,gc_id as gcId,gc_name as gcName,sign_scope';
public function init() {
}
......@@ -49,8 +49,10 @@ class ClassStoreServiceModel extends \Business\AbstractModel{
$store_lat = $store['store_latitude'];
$store_lnt = $store['store_longitude'];
$gcName = htmlspecialchars_decode($store['gcName']);
$storeScope = $store['sign_scope'];
unset($store['store_latitude']);
unset($store['store_longitude']);
unset($store['sign_scope']);
unset($store['gcId']);
unset($store['gcName']);
$store['storeLabel'] =\Our\ImageUtil::getStoreLabel($store['storeLabel'], \Our\ImageConst::storeLabel,213);
......@@ -66,8 +68,8 @@ class ClassStoreServiceModel extends \Business\AbstractModel{
}
$inAreaFlag = false;
if(isset($store['sign_scope'])&&$store['sign_scope']){
$inAreaFlag = \Our\CommonExtension::locationInArea($lat,$lng,$store['sign_scope']);
if($storeScope){
$inAreaFlag = \Our\CommonExtension::locationInArea($lat,$lng,$storeScope);
}
if(!isset($newGcStoreList[$gcId])){
$newGcStoreList[$gcId]['gcName'] = $gcName;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment