Commit 84aff275 authored by zhz's avatar zhz

店铺关注

parent 8bad6034
...@@ -572,34 +572,34 @@ class StoreServiceModel extends \Business\AbstractModel{ ...@@ -572,34 +572,34 @@ class StoreServiceModel extends \Business\AbstractModel{
* @param $memberId * @param $memberId
*/ */
public function updateFavoritesStore($param,$memberId){ public function updateFavoritesStore($param,$memberId){
if(!(isset($param['storeId'])&&$param['storeId'])){ // if(!(isset($param['storeId'])&&$param['storeId'])){
\Error\ErrorModel::throwException(\Error\CodeConfigModel::emptyScanStoreId); // \Error\ErrorModel::throwException(\Error\CodeConfigModel::emptyScanStoreId);
} // }
$storeId = trim($param['storeId']); // $storeId = trim($param['storeId']);
$storeInfo = \DAO\StoreModel::getInstance()->get($storeId,false); // $storeInfo = \DAO\StoreModel::getInstance()->get($storeId,false);
if(!$storeInfo){ // if(!$storeInfo){
\Error\ErrorModel::throwException(\Error\CodeConfigModel::emptyScanStoreInfo); // \Error\ErrorModel::throwException(\Error\CodeConfigModel::emptyScanStoreInfo);
} // }
$storeMembers = array(); // $storeMembers = array();
$storeMember = array(); // $storeMember = array();
$storeMember['store_id'] = $storeId; // $storeMember['store_id'] = $storeId;
$storeMember['member_id'] = $memberId; // $storeMember['member_id'] = $memberId;
$storeMember['fav_from'] = \Our\ApiConst::scanFavor; // $storeMember['fav_from'] = \Our\ApiConst::scanFavor;
$storeMember['fav_type'] = \Our\ApiConst::one; // $storeMember['fav_type'] = \Our\ApiConst::one;
$storeMembers[] = $storeMember; // $storeMembers[] = $storeMember;
$favoritesStoreDao = \DAO\FavoritesStoreModel::getInstance(); // $favoritesStoreDao = \DAO\FavoritesStoreModel::getInstance();
//
$one = $favoritesStoreDao->getOne('store_id',array('store_id'=>$storeId,'member_id'=>$memberId,'fav_type'=>\Our\ApiConst::one,'fav_from'=>\Our\ApiConst::scanFavor),''); // $one = $favoritesStoreDao->getOne('store_id',array('store_id'=>$storeId,'member_id'=>$memberId,'fav_type'=>\Our\ApiConst::one),'');
if(!$one) { // if(!$one) {
$result = $favoritesStoreDao->insertAll($storeMembers); // $result = $favoritesStoreDao->insertAll($storeMembers);
if(!$result){ // if(!$result){
\Error\ErrorModel::throwException(\Error\CodeConfigModel::saveScanStoreInfoFailed); // \Error\ErrorModel::throwException(\Error\CodeConfigModel::saveScanStoreInfoFailed);
} // }
$favoritesStoreDao->updateStoreCollecitonsCache(array($storeId),$memberId,2); // $favoritesStoreDao->updateStoreCollecitonsCache(array($storeId),$memberId,2);
$favoritesDao = \DAO\FavoritesStoreModel::getInstance(); // $favoritesDao = \DAO\FavoritesStoreModel::getInstance();
\Our\RedisHelper::delCachedFunction(\Redis\Db6\FavoritesStoreRedisModel::getInstance(),array(&$favoritesDao, 'getOne'),array(),array($memberId)); // \Our\RedisHelper::delCachedFunction(\Redis\Db6\FavoritesStoreRedisModel::getInstance(),array(&$favoritesDao, 'getOne'),array(),array($memberId));
//
} // }
return true; return true;
......
This diff is collapsed.
...@@ -12,8 +12,7 @@ config.url.resourcesHost = "http://api.shenbd.com" ...@@ -12,8 +12,7 @@ config.url.resourcesHost = "http://api.shenbd.com"
config.url.userHost = "" config.url.userHost = ""
; ;
; ; oss 域名 ; ; oss 域名
config.url.ossHost = "https://img.shenbd.com" config.url.ossHost = "https://qmoss-01.oss-cn-hangzhou.aliyuncs.com"
;config.url.ossHost = "https://qmoss-01.oss-cn-hangzhou.aliyuncs.com"
; ;
; ;推送域名 ; ;推送域名
config.url.pushHost="172.16.142.15:9503"; config.url.pushHost="172.16.142.15:9503";
...@@ -37,8 +36,8 @@ config.url.resourcesHost = "http://api.shenbd.com" ...@@ -37,8 +36,8 @@ config.url.resourcesHost = "http://api.shenbd.com"
; 用户中心host ; 用户中心host
config.url.userHost = "" config.url.userHost = ""
config.url.ossHost = "https://img.shenbd.com" ; oss 域名
;config.url.ossHost = "https://qmoss-01.oss-cn-hangzhou.aliyuncs.com" config.url.ossHost = "https://qmoss-01.oss-cn-hangzhou.aliyuncs.com"
;推送域名 ;推送域名
config.url.pushHost="127.0.0.1:9503"; config.url.pushHost="127.0.0.1:9503";
...@@ -55,9 +54,9 @@ config.url.convert=/usr/local/bin/wkhtmltoimage ...@@ -55,9 +54,9 @@ config.url.convert=/usr/local/bin/wkhtmltoimage
config.url.resourcesHost = "http://apitest.shenbd.com" config.url.resourcesHost = "http://apitest.shenbd.com"
; 用户中心host ; 用户中心host
config.url.userHost = "" config.url.userHost = ""
config.url.ossHost = "https://imgpre.shenbd.com"
; oss 域名 ; oss 域名
;config.url.ossHost = "https://qmoss-01.oss-cn-hangzhou.aliyuncs.com" config.url.ossHost = "https://qmoss-01.oss-cn-hangzhou.aliyuncs.com"
;推送域名 ;推送域名
config.url.pushHost="127.0.0.1:9503"; config.url.pushHost="127.0.0.1:9503";
...@@ -75,9 +74,9 @@ config.url.source="/www/web/testadmin_shenbd_com/public_html/data/upload/" ...@@ -75,9 +74,9 @@ config.url.source="/www/web/testadmin_shenbd_com/public_html/data/upload/"
config.url.resourcesHost = "http://apitest.qm.com" config.url.resourcesHost = "http://apitest.qm.com"
; 用户中心host ; 用户中心host
config.url.userHost = "" config.url.userHost = ""
config.url.ossHost = "https://img.shenbd.com"
; oss 域名 ; oss 域名
;config.url.ossHost = "http://qmoss-01.oss-cn-hangzhou.aliyuncs.com" config.url.ossHost = "http://qmoss-01.oss-cn-hangzhou.aliyuncs.com"
;推送域名 ;推送域名
config.url.pushHost="127.0.0.1:9503"; config.url.pushHost="127.0.0.1:9503";
...@@ -91,16 +90,11 @@ config.url.resourcesHost = "http://test.qm.com" ...@@ -91,16 +90,11 @@ config.url.resourcesHost = "http://test.qm.com"
config.url.userHost = "" config.url.userHost = ""
; oss 域名 ; oss 域名
config.url.ossHost = "https://img.shenbd.com" config.url.ossHost = "http://qmoss-01.oss-cn-hangzhou.aliyuncs.com"
;推送域名 ;推送域名
config.url.pushHost="127.0.0.1:9503"; config.url.pushHost="127.0.0.1:9503";
config.url.indexUrl="/www/web/test_qm_com/application/library/React"
config.url.libary="/www/web/test_qm_com/application/library"
config.url.source="/www/web/test_qm_com/public_html/data/upload/"
;config.url.source="E:/WAMP/www/www.qm.com/data/upload/" ;config.url.source="E:/WAMP/www/www.qm.com/data/upload/"
; 文件目录 ; 文件目录
;店铺图片报错目录 ;店铺图片报错目录
...@@ -122,10 +116,10 @@ config.url.resourcesHost = "http://local.qm.com" ...@@ -122,10 +116,10 @@ config.url.resourcesHost = "http://local.qm.com"
config.url.userHost = "" config.url.userHost = ""
; oss 域名 ; oss 域名
config.url.ossHost = "https://imgpre.shenbd.com" config.url.ossHost = "http://qmoss-01.oss-cn-hangzhou.aliyuncs.com"
;推送域名 ;推送域名
config.url.pushHost="192.168.1.201:9503"; config.url.pushHost="127.0.0.1:9503";
config.url.convert="/usr/local/bin/wkhtmltoimage"; config.url.convert="/usr/local/bin/wkhtmltoimage";
......
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