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
51d007ec
Commit
51d007ec
authored
Dec 08, 2018
by
christ
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master_dev' of git.shenbd.com:qm-develop/shenbd into master_dev
parents
048185df
b3fc2bad
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
31 additions
and
10 deletions
+31
-10
Home.php
application/controllers/Home.php
+9
-0
OrderConfirmUtil.php
application/library/Order/OrderConfirmUtil.php
+1
-1
GoodsCommonService.php
application/models/Business/Goods/GoodsCommonService.php
+2
-0
StoreService.php
application/models/Business/Store/StoreService.php
+1
-0
StoreOnlineGoodsClass.php
application/models/DAO/GoodsClass/StoreOnlineGoodsClass.php
+3
-1
Member.php
application/models/DAO/Member.php
+3
-0
PBundling.php
application/models/DAO/PBundling.php
+10
-6
Store.php
application/models/DAO/Store.php
+1
-1
bridge.php
scripts/crontab/push/bridge.php
+1
-1
No files found.
application/controllers/Home.php
View file @
51d007ec
...
@@ -192,4 +192,13 @@ class HomeController extends \Our\Controller_AbstractIndex{
...
@@ -192,4 +192,13 @@ class HomeController extends \Our\Controller_AbstractIndex{
$otherGoods
=
$goodsCommonService
->
getIndexHotSalesGoods
(
$currentAddress
);
$otherGoods
=
$goodsCommonService
->
getIndexHotSalesGoods
(
$currentAddress
);
$this
->
success
(
$otherGoods
);
$this
->
success
(
$otherGoods
);
}
}
public
function
testMemberAction
(){
$memberDao
=
\DAO\MemberModel
::
getInstance
();
$memberList
=
$memberDao
->
getAll
();
foreach
(
$memberList
as
$member
){
$memberDao
->
saveInfo
(
array
(
'member_name'
=>
$member
[
'member_name'
]),
$member
[
'member_id'
]);
}
}
}
}
\ No newline at end of file
application/library/Order/OrderConfirmUtil.php
View file @
51d007ec
...
@@ -568,7 +568,7 @@ class OrderConfirmUtil {
...
@@ -568,7 +568,7 @@ class OrderConfirmUtil {
$orderLog
[
'log_msg'
]
=
\Our\DescribeConst
::
addOrderLog
;
$orderLog
[
'log_msg'
]
=
\Our\DescribeConst
::
addOrderLog
;
$orderLog
[
'log_time'
]
=
TIMESTAMP
;
$orderLog
[
'log_time'
]
=
TIMESTAMP
;
$orderLog
[
'log_role'
]
=
\Our\DescribeConst
::
buyer
;
$orderLog
[
'log_role'
]
=
\Our\DescribeConst
::
buyer
;
$orderLog
[
'log_user'
]
=
$this
->
member
[
'memberName'
]
;
$orderLog
[
'log_user'
]
=
addslashes
(
$this
->
member
[
'memberName'
])
;
$orderLog
[
'log_msg'
]
=
$logMsg
;
$orderLog
[
'log_msg'
]
=
$logMsg
;
$orderLog
[
'log_orderstate'
]
=
$order
[
'order_state'
];
$orderLog
[
'log_orderstate'
]
=
$order
[
'order_state'
];
$orderLogList
[]
=
$orderLog
;
$orderLogList
[]
=
$orderLog
;
...
...
application/models/Business/Goods/GoodsCommonService.php
View file @
51d007ec
...
@@ -1363,6 +1363,7 @@ class GoodsCommonServiceModel extends \Business\AbstractModel
...
@@ -1363,6 +1363,7 @@ class GoodsCommonServiceModel extends \Business\AbstractModel
break
;
break
;
}
}
}
}
return
true
;
}
}
/**
/**
...
@@ -1390,6 +1391,7 @@ class GoodsCommonServiceModel extends \Business\AbstractModel
...
@@ -1390,6 +1391,7 @@ class GoodsCommonServiceModel extends \Business\AbstractModel
$where
[
'store_id'
]
=
$goodsClass
[
'store_id'
];
$where
[
'store_id'
]
=
$goodsClass
[
'store_id'
];
$where
[
'goods_state'
]
=
\Our\ApiConst
::
onlineGoodsState
;
$where
[
'goods_state'
]
=
\Our\ApiConst
::
onlineGoodsState
;
$where
[
'goods_verify'
]
=
\Our\ApiConst
::
onlineGoodsVerify
;
$where
[
'goods_verify'
]
=
\Our\ApiConst
::
onlineGoodsVerify
;
$where
[
'is_del'
]
=
\Our\ApiConst
::
zero
;
if
(
$gcFrom
==
\Our\ApiConst
::
one
){
if
(
$gcFrom
==
\Our\ApiConst
::
one
){
$where
[
'goods_class_t_id'
]
=
$goodsClass
[
'gc_id_3'
];
$where
[
'goods_class_t_id'
]
=
$goodsClass
[
'gc_id_3'
];
}
}
...
...
application/models/Business/Store/StoreService.php
View file @
51d007ec
...
@@ -1156,6 +1156,7 @@ class StoreServiceModel extends \Business\AbstractModel{
...
@@ -1156,6 +1156,7 @@ class StoreServiceModel extends \Business\AbstractModel{
$storeDao
=
\DAO\StoreModel
::
getInstance
();
$storeDao
=
\DAO\StoreModel
::
getInstance
();
$storeDao
->
delNearbyStoresCache
(
$cityCode
);
$storeDao
->
delNearbyStoresCache
(
$cityCode
);
$storeDao
->
delStoresCacheByCityCode
(
$cityCode
);
$storeDao
->
delStoresCacheByCityCode
(
$cityCode
);
return
true
;
}
}
public
function
editQmStoreClass
(){
public
function
editQmStoreClass
(){
...
...
application/models/DAO/GoodsClass/StoreOnlineGoodsClass.php
100755 → 100644
View file @
51d007ec
...
@@ -130,7 +130,9 @@ class StoreOnlineGoodsClassModel extends \DAO\AbstractModel{
...
@@ -130,7 +130,9 @@ class StoreOnlineGoodsClassModel extends \DAO\AbstractModel{
$goodsClass
[
'gc_id_3'
]
=
$goodsCommon
[
'gc_id_3'
];
$goodsClass
[
'gc_id_3'
]
=
$goodsCommon
[
'gc_id_3'
];
$goodsClass
[
'store_id'
]
=
$goodsCommon
[
'store_id'
];
$goodsClass
[
'store_id'
]
=
$goodsCommon
[
'store_id'
];
$goodsClass
[
'gc_from'
]
=
\Our\ApiConst
::
zero
;
$goodsClass
[
'gc_from'
]
=
\Our\ApiConst
::
zero
;
$this
->
addChangedGoodsClass
(
serialize
(
$goodsClass
),
$type
);
if
(
$goodsClass
[
'gc_id_3'
]){
$this
->
addChangedGoodsClass
(
serialize
(
$goodsClass
),
$type
);
}
if
(
$goodsCommon
[
'goods_class_t_id'
]){
if
(
$goodsCommon
[
'goods_class_t_id'
]){
$goodsClass
[
'gc_id_3'
]
=
$goodsCommon
[
'goods_class_t_id'
];
$goodsClass
[
'gc_id_3'
]
=
$goodsCommon
[
'goods_class_t_id'
];
$goodsClass
[
'gc_from'
]
=
\Our\ApiConst
::
one
;
$goodsClass
[
'gc_from'
]
=
\Our\ApiConst
::
one
;
...
...
application/models/DAO/Member.php
View file @
51d007ec
...
@@ -116,6 +116,9 @@ class MemberModel extends \DAO\AbstractModel
...
@@ -116,6 +116,9 @@ class MemberModel extends \DAO\AbstractModel
public
function
saveInfo
(
$data
,
$memberId
)
public
function
saveInfo
(
$data
,
$memberId
)
{
{
$this
->
setDb
(
\Our\DbNameConst
::
masterDBConnectName
);
$this
->
setDb
(
\Our\DbNameConst
::
masterDBConnectName
);
if
(
$data
[
'member_name'
]){
$data
[
'member_name'
]
=
base64_encode
(
$data
[
'member_name'
]);
}
$result
=
$this
->
db
->
update
(
$this
->
_tableName
)
->
rows
(
$data
)
->
where
(
array
(
'member_id'
=>
$memberId
))
->
execute
();
$result
=
$this
->
db
->
update
(
$this
->
_tableName
)
->
rows
(
$data
)
->
where
(
array
(
'member_id'
=>
$memberId
))
->
execute
();
if
(
$result
!==
false
)
{
if
(
$result
!==
false
)
{
$memberDb0Redis
=
\Redis\Db0\MemberRedisModel
::
getInstance
();
$memberDb0Redis
=
\Redis\Db0\MemberRedisModel
::
getInstance
();
...
...
application/models/DAO/PBundling.php
View file @
51d007ec
...
@@ -173,12 +173,16 @@ class PBundlingModel extends \DAO\AbstractModel {
...
@@ -173,12 +173,16 @@ class PBundlingModel extends \DAO\AbstractModel {
$pBundlingDao
->
tableDelAll
(
$pBundlingDao
->
tableKeys
(
'*'
.
\Our\NameConst
::
blGoods
.
$goodsCommonId
));
$pBundlingDao
->
tableDelAll
(
$pBundlingDao
->
tableKeys
(
'*'
.
\Our\NameConst
::
blGoods
.
$goodsCommonId
));
}
}
public
function
delPBundlingListByStoreIdAndBlIds
(
$storeId
,
$blId
){
public
function
delPBundlingListByStoreIdAndBlIds
(
$storeId
=
false
,
$blId
=
false
){
\Our\RedisHelper
::
delCachedFunction
(
\Redis\Db4\PBundlingRedisModel
::
getInstance
(),
array
(
&
$this
,
'getList'
),
array
(),
array
(
'*'
.
$blId
.
'*'
));
if
(
$blId
){
\Our\RedisHelper
::
delCachedFunction
(
\Redis\Db4\PBundlingRedisModel
::
getInstance
(),
array
(
&
$this
,
'getList'
),
array
(),
array
(
$storeId
));
\Our\RedisHelper
::
delCachedFunction
(
\Redis\Db4\PBundlingRedisModel
::
getInstance
(),
array
(
&
$this
,
'getList'
),
array
(),
array
(
'*'
.
$blId
.
'*'
));
$cartRedis
=
\Redis\Db7\CartRedisModel
::
getInstance
();
}
$memberCartKey
=
\Our\NameConst
::
memberStoreCartsPrefix
.
'*_'
.
$storeId
;
if
(
$storeId
){
$cartRedis
->
tableDelAll
(
$cartRedis
->
tableKeys
(
$memberCartKey
));
\Our\RedisHelper
::
delCachedFunction
(
\Redis\Db4\PBundlingRedisModel
::
getInstance
(),
array
(
&
$this
,
'getList'
),
array
(),
array
(
$storeId
));
$cartRedis
=
\Redis\Db7\CartRedisModel
::
getInstance
();
$memberCartKey
=
\Our\NameConst
::
memberStoreCartsPrefix
.
'*_'
.
$storeId
;
$cartRedis
->
tableDelAll
(
$cartRedis
->
tableKeys
(
$memberCartKey
));
}
}
}
/**
/**
...
...
application/models/DAO/Store.php
View file @
51d007ec
...
@@ -435,7 +435,7 @@ class StoreModel extends \DAO\AbstractModel
...
@@ -435,7 +435,7 @@ class StoreModel extends \DAO\AbstractModel
public
function
checkAddressInServiceArea
(
$address
,
$store
)
public
function
checkAddressInServiceArea
(
$address
,
$store
)
{
{
$inAreaFlag
=
\Our\ApiConst
::
zero
;
$inAreaFlag
=
\Our\ApiConst
::
zero
;
if
(
$store
[
'
express
_distribution'
])
{
//如果店铺开启了到店自提和快递配送,则认为存在可用配送方式
if
(
$store
[
'
buyer
_distribution'
])
{
//如果店铺开启了到店自提和快递配送,则认为存在可用配送方式
$inAreaFlag
=
\Our\ApiConst
::
one
;
$inAreaFlag
=
\Our\ApiConst
::
one
;
return
$inAreaFlag
;
return
$inAreaFlag
;
}
}
...
...
scripts/crontab/push/bridge.php
View file @
51d007ec
...
@@ -21,7 +21,7 @@ $http->on('request', function ($request, $response) {
...
@@ -21,7 +21,7 @@ $http->on('request', function ($request, $response) {
$memberDao
=
$info
[
'className'
]
::
getInstance
(
\Our\DbNameConst
::
masterDBConnectName
);
$memberDao
=
$info
[
'className'
]
::
getInstance
(
\Our\DbNameConst
::
masterDBConnectName
);
echo
json_encode
(
$info
);
echo
json_encode
(
$info
);
if
(
empty
(
$info
[
'params'
])){
if
(
empty
(
$info
[
'params'
])){
$res
=
call_user_func_array
(
array
(
$memberDao
,
$info
[
'method'
]));
$res
=
call_user_func_array
(
array
(
$memberDao
,
$info
[
'method'
])
,
array
()
);
}
else
{
}
else
{
$res
=
call_user_func_array
(
array
(
$memberDao
,
$info
[
'method'
]),
$info
[
'params'
]);
$res
=
call_user_func_array
(
array
(
$memberDao
,
$info
[
'method'
]),
$info
[
'params'
]);
}
}
...
...
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