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
b4c0939c
Commit
b4c0939c
authored
Dec 26, 2018
by
testshenbd
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master_dev' of git.shenbd.com:qm-develop/shenbd into master_dev
parents
d383765e
56385e33
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
5 deletions
+12
-5
ApiConst.php
application/library/Our/ApiConst.php
+2
-0
PathConst.php
application/library/Our/PathConst.php
+1
-2
Pay.php
application/library/Payment/Pay.php
+3
-1
OrderService.php
application/models/Business/Order/OrderService.php
+1
-1
jpush.php
scripts/crontab/push/jpush.php
+5
-1
No files found.
application/library/Our/ApiConst.php
View file @
b4c0939c
...
@@ -96,6 +96,8 @@ class ApiConst
...
@@ -96,6 +96,8 @@ class ApiConst
const
memberMessageType
=
5
;
const
memberMessageType
=
5
;
const
diliveryMessageOrder
=
9
;
const
diliveryMessageOrder
=
9
;
const
messageReceiveOrderType
=
301
;
//配送员用户消息类型
//配送员用户消息类型
//快递消息
//快递消息
const
deliveryUserMessageType
=
8
;
const
deliveryUserMessageType
=
8
;
...
...
application/library/Our/PathConst.php
View file @
b4c0939c
...
@@ -53,8 +53,7 @@ class PathConst {
...
@@ -53,8 +53,7 @@ class PathConst {
const
storeStatTime
=
"/storeStat.conf"
;
const
storeStatTime
=
"/storeStat.conf"
;
const
orderCancelTime
=
"/orderCancelTime.conf"
;
const
orderCancelTime
=
"/orderCancelTime.conf"
;
const
ktestTime
=
"/ktestTime.conf"
;
//const favoritesStoreFavTimeConf="favoritesStoreFavTime.conf";
//const favoritesStoreFavTimeConf="favoritesStoreFavTime.conf";
...
...
application/library/Payment/Pay.php
View file @
b4c0939c
...
@@ -46,7 +46,9 @@ class Pay {
...
@@ -46,7 +46,9 @@ class Pay {
$wxLitePay
=
WxLitePay
::
getInstance
();
$wxLitePay
=
WxLitePay
::
getInstance
();
$return
=
$wxLitePay
->
doPay
(
$orderInfo
);
$return
=
$wxLitePay
->
doPay
(
$orderInfo
);
$prepayId
=
$wxLitePay
->
getPrepayId
();
$prepayId
=
$wxLitePay
->
getPrepayId
();
file_put_contents
(
$this
->
baseDir
.
\Our\PathConst
::
ktestTime
,
$prepayId
.
'|'
.
$orderInfo
[
'paySn'
]
);
if
(
$prepayId
)
{
if
(
$prepayId
)
{
$dbName
=
\Our\DbNameConst
::
masterDBConnectName
;
$dbName
=
\Our\DbNameConst
::
masterDBConnectName
;
\DAO\Order\OrderModel
::
getInstance
(
$dbName
)
->
update
(
array
(
'pay_sn'
=>
$orderInfo
[
'paySn'
]),
array
(
'prepay_id'
=>
$prepayId
));
\DAO\Order\OrderModel
::
getInstance
(
$dbName
)
->
update
(
array
(
'pay_sn'
=>
$orderInfo
[
'paySn'
]),
array
(
'prepay_id'
=>
$prepayId
));
}
}
...
@@ -92,7 +94,7 @@ class Pay {
...
@@ -92,7 +94,7 @@ class Pay {
$orderInfo
[
'orderAmount'
]
=
$this
->
orderAmount
;
$orderInfo
[
'orderAmount'
]
=
$this
->
orderAmount
;
if
(
$this
->
channel
==
\Our\NameConst
::
wxLiteChannel
){
if
(
$this
->
channel
==
\Our\NameConst
::
wxLiteChannel
){
$orderConfirmUtil
=
\Order\OrderConfirmUtil
::
getInstance
();
$orderConfirmUtil
=
\Order\OrderConfirmUtil
::
getInstance
();
$newPaySn
=
$orderConfirmUtil
->
makeNewPaySnForOrderWithOldPaySn
(
$this
->
paySn
,
$this
->
memberId
);
$newPaySn
=
$orderConfirmUtil
->
makeNewPaySnForOrderWithOldPaySn
(
$this
->
paySn
,
$this
->
memberId
);
$this
->
paySn
=
$newPaySn
;
$this
->
paySn
=
$newPaySn
;
}
}
$orderInfo
[
'paySn'
]
=
$this
->
paySn
;
$orderInfo
[
'paySn'
]
=
$this
->
paySn
;
...
...
application/models/Business/Order/OrderService.php
View file @
b4c0939c
...
@@ -333,7 +333,7 @@ class OrderServiceModel extends \Business\AbstractModel
...
@@ -333,7 +333,7 @@ class OrderServiceModel extends \Business\AbstractModel
$storeDao
=
\DAO\StoreModel
::
getInstance
();
$storeDao
=
\DAO\StoreModel
::
getInstance
();
//判断订单目前状态是否允许取消
//判断订单目前状态是否允许取消
$isAllowCancel
=
$orderDao
->
isAllowCancel
(
$order
);
$isAllowCancel
=
$orderDao
->
isAllowCancel
(
$order
);
$isAllowCance
=
true
;
//
$isAllowCance = true;
if
(
$isAllowCancel
)
{
if
(
$isAllowCancel
)
{
$res
=
$orderDao
->
updateStatusByOrderId
(
$orderId
,
ApiConst
::
orderStateCancel
,
false
,
ApiConst
::
cancelOrderBySelf
);
$res
=
$orderDao
->
updateStatusByOrderId
(
$orderId
,
ApiConst
::
orderStateCancel
,
false
,
ApiConst
::
cancelOrderBySelf
);
if
(
$res
)
{
if
(
$res
)
{
...
...
scripts/crontab/push/jpush.php
View file @
b4c0939c
...
@@ -60,7 +60,7 @@ class cliOrderClose extends basecli
...
@@ -60,7 +60,7 @@ class cliOrderClose extends basecli
// else{
// else{
// if(!empty($res['timeDiff'])){
// if(!empty($res['timeDiff'])){
// $timeArr=explode('-',$res['timeDiff']);
// $timeArr=explode('-',$res['timeDiff']);
// if(!empty($timeArr)){
v
// if(!empty($timeArr)){
// if(\Our\Common::isCurentTimeInSection($timeArr[0],$timeArr[1])){
// if(\Our\Common::isCurentTimeInSection($timeArr[0],$timeArr[1])){
// continue;
// continue;
// }
// }
...
@@ -75,6 +75,10 @@ class cliOrderClose extends basecli
...
@@ -75,6 +75,10 @@ class cliOrderClose extends basecli
protected
function
autoPushClient
(){
protected
function
autoPushClient
(){
$push
=
\Our\Push
::
getInstance
();
$push
=
\Our\Push
::
getInstance
();
while
(
$pushData
=
\Our\RedisHelper
::
lpop
(
'client_push'
)){
while
(
$pushData
=
\Our\RedisHelper
::
lpop
(
'client_push'
)){
if
(
$pushData
[
'type'
]
==
\Our\ApiConst
::
messageReceiveOrderType
){
$push
->
recievedOrder
(
$pushData
[
'storeId'
],
$pushData
[
'orderId'
]);
continue
;
}
$push
->
addOneToClient
(
$pushData
);
$push
->
addOneToClient
(
$pushData
);
}
}
$goodsCommonService
=
\Business\Goods\GoodsCommonServiceModel
::
getInstance
();
$goodsCommonService
=
\Business\Goods\GoodsCommonServiceModel
::
getInstance
();
...
...
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