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
84aff275
Commit
84aff275
authored
Jan 07, 2019
by
zhz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
店铺关注
parent
8bad6034
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
107 additions
and
126 deletions
+107
-126
StoreService.php
application/models/Business/Store/StoreService.php
+28
-28
application.ini
conf/application.ini
+69
-82
url.ini
conf/url.ini
+10
-16
No files found.
application/models/Business/Store/StoreService.php
View file @
84aff275
...
...
@@ -572,34 +572,34 @@ class StoreServiceModel extends \Business\AbstractModel{
* @param $memberId
*/
public
function
updateFavoritesStore
(
$param
,
$memberId
){
if
(
!
(
isset
(
$param
[
'storeId'
])
&&
$param
[
'storeId'
])){
\Error\ErrorModel
::
throwException
(
\Error\CodeConfigModel
::
emptyScanStoreId
);
}
$storeId
=
trim
(
$param
[
'storeId'
]);
$storeInfo
=
\DAO\StoreModel
::
getInstance
()
->
get
(
$storeId
,
false
);
if
(
!
$storeInfo
){
\Error\ErrorModel
::
throwException
(
\Error\CodeConfigModel
::
emptyScanStoreInfo
);
}
$storeMembers
=
array
();
$storeMember
=
array
();
$storeMember
[
'store_id'
]
=
$storeId
;
$storeMember
[
'member_id'
]
=
$memberId
;
$storeMember
[
'fav_from'
]
=
\Our\ApiConst
::
scanFavor
;
$storeMember
[
'fav_type'
]
=
\Our\ApiConst
::
one
;
$storeMembers
[]
=
$storeMember
;
$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
),
''
);
if
(
!
$one
)
{
$result
=
$favoritesStoreDao
->
insertAll
(
$storeMembers
);
if
(
!
$result
){
\Error\ErrorModel
::
throwException
(
\Error\CodeConfigModel
::
saveScanStoreInfoFailed
);
}
$favoritesStoreDao
->
updateStoreCollecitonsCache
(
array
(
$storeId
),
$memberId
,
2
);
$favoritesDao
=
\DAO\FavoritesStoreModel
::
getInstance
();
\Our\RedisHelper
::
delCachedFunction
(
\Redis\Db6\FavoritesStoreRedisModel
::
getInstance
(),
array
(
&
$favoritesDao
,
'getOne'
),
array
(),
array
(
$memberId
));
}
//
if(!(isset($param['storeId'])&&$param['storeId'])){
//
\Error\ErrorModel::throwException(\Error\CodeConfigModel::emptyScanStoreId);
//
}
//
$storeId = trim($param['storeId']);
//
$storeInfo = \DAO\StoreModel::getInstance()->get($storeId,false);
//
if(!$storeInfo){
//
\Error\ErrorModel::throwException(\Error\CodeConfigModel::emptyScanStoreInfo);
//
}
//
$storeMembers = array();
//
$storeMember = array();
//
$storeMember['store_id'] = $storeId;
//
$storeMember['member_id'] = $memberId;
//
$storeMember['fav_from'] = \Our\ApiConst::scanFavor;
//
$storeMember['fav_type'] = \Our\ApiConst::one;
//
$storeMembers[] = $storeMember;
//
$favoritesStoreDao = \DAO\FavoritesStoreModel::getInstance();
//
// $one = $favoritesStoreDao->getOne('store_id',array('store_id'=>$storeId,'member_id'=>$memberId,'fav_type'=>\Our\ApiConst::one
),'');
//
if(!$one) {
//
$result = $favoritesStoreDao->insertAll($storeMembers);
//
if(!$result){
//
\Error\ErrorModel::throwException(\Error\CodeConfigModel::saveScanStoreInfoFailed);
//
}
//
$favoritesStoreDao->updateStoreCollecitonsCache(array($storeId),$memberId,2);
//
$favoritesDao = \DAO\FavoritesStoreModel::getInstance();
//
\Our\RedisHelper::delCachedFunction(\Redis\Db6\FavoritesStoreRedisModel::getInstance(),array(&$favoritesDao, 'getOne'),array(),array($memberId));
//
//
}
return
true
;
...
...
conf/application.ini
View file @
84aff275
This diff is collapsed.
Click to expand it.
conf/url.ini
View file @
84aff275
...
...
@@ -12,8 +12,7 @@ config.url.resourcesHost = "http://api.shenbd.com"
config.url.userHost
=
""
;
; ; 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"
;
...
...
@@ -37,8 +36,8 @@ config.url.resourcesHost = "http://api.shenbd.com"
; 用户中心host
config.url.userHost
=
""
config.url.ossHost
=
"https://img.shenbd.com"
;
config.url.ossHost = "https://qmoss-01.oss-cn-hangzhou.aliyuncs.com"
; oss 域名
config.url.ossHost
=
"https://qmoss-01.oss-cn-hangzhou.aliyuncs.com"
;推送域名
config.url.pushHost
=
"127.0.0.1:9503"
;
...
...
@@ -55,9 +54,9 @@ config.url.convert=/usr/local/bin/wkhtmltoimage
config.url.resourcesHost
=
"http://apitest.shenbd.com"
; 用户中心host
config.url.userHost
=
""
config.url.ossHost
=
"https://imgpre.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"
;
...
...
@@ -75,9 +74,9 @@ config.url.source="/www/web/testadmin_shenbd_com/public_html/data/upload/"
config.url.resourcesHost
=
"http://apitest.qm.com"
; 用户中心host
config.url.userHost
=
""
config.url.ossHost
=
"https://img.shenbd.com"
; 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"
;
...
...
@@ -91,16 +90,11 @@ config.url.resourcesHost = "http://test.qm.com"
config.url.userHost
=
""
; oss 域名
config.url.ossHost
=
"http
s://img.shenbd
.com"
config.url.ossHost
=
"http
://qmoss-01.oss-cn-hangzhou.aliyuncs
.com"
;推送域名
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/"
; 文件目录
;店铺图片报错目录
...
...
@@ -122,10 +116,10 @@ config.url.resourcesHost = "http://local.qm.com"
config.url.userHost
=
""
; oss 域名
config.url.ossHost
=
"http
s://imgpre.shenbd
.com"
config.url.ossHost
=
"http
://qmoss-01.oss-cn-hangzhou.aliyuncs
.com"
;推送域名
config.url.pushHost
=
"1
92.168.1.20
1:9503"
;
config.url.pushHost
=
"1
27.0.0.
1:9503"
;
config.url.convert
=
"/usr/local/bin/wkhtmltoimage"
;
...
...
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