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
57b821d9
Commit
57b821d9
authored
Dec 06, 2018
by
liuyuzhen
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master_dev' of git.shenbd.com:qm-develop/shenbd into lyz
parents
b55e35fd
19ec1b80
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
21 additions
and
14 deletions
+21
-14
ApiConst.php
application/library/Our/ApiConst.php
+1
-1
RefundService.php
application/models/Business/Order/RefundService.php
+4
-1
StoreService.php
application/models/Business/Store/StoreService.php
+0
-1
Goods.php
application/models/DAO/Goods.php
+7
-2
User.php
application/modules/Client/controllers/User.php
+1
-1
jpush.php
scripts/crontab/push/jpush.php
+7
-7
stat.php
scripts/crontab/store/stat.php
+1
-1
No files found.
application/library/Our/ApiConst.php
View file @
57b821d9
...
@@ -24,7 +24,7 @@ class ApiConst
...
@@ -24,7 +24,7 @@ class ApiConst
const
halfHour
=
1800
;
const
halfHour
=
1800
;
//预警时间
//预警时间
const
storageAlarmHour
=
6
0
;
const
storageAlarmHour
=
3
0
;
const
twoMinSecond
=
120
;
const
twoMinSecond
=
120
;
...
...
application/models/Business/Order/RefundService.php
View file @
57b821d9
...
@@ -966,6 +966,7 @@ class RefundServiceModel extends \Business\AbstractModel
...
@@ -966,6 +966,7 @@ class RefundServiceModel extends \Business\AbstractModel
$shippingFee
==
ApiConst
::
zero
;
$shippingFee
==
ApiConst
::
zero
;
}
}
$orderGoodsConvert
=
$orderGoodsDao
->
getRefundOrderGoods
(
$orderGoods
);
$orderGoodsConvert
=
$orderGoodsDao
->
getRefundOrderGoods
(
$orderGoods
);
$returnData
=
array
(
$returnData
=
array
(
'orderId'
=>
(
int
)
$orderId
,
'orderId'
=>
(
int
)
$orderId
,
'orderSn'
=>
$orderInfo
[
'orderSn'
],
'orderSn'
=>
$orderInfo
[
'orderSn'
],
...
@@ -983,7 +984,9 @@ class RefundServiceModel extends \Business\AbstractModel
...
@@ -983,7 +984,9 @@ class RefundServiceModel extends \Business\AbstractModel
);
);
$refundCondition
=
$orderInfo
[
'refundCondition'
]
?
unserialize
(
$orderInfo
[
'refundCondition'
])
:
array
();
$refundCondition
=
$orderInfo
[
'refundCondition'
]
?
unserialize
(
$orderInfo
[
'refundCondition'
])
:
array
();
$returnData
[
'needShippingFee'
]
=
$orderInfo
[
'needShippingFee'
];
$returnData
[
'needShippingFee'
]
=
$orderInfo
[
'needShippingFee'
];
if
(
$orderInfo
[
'shippingType'
]
==
ApiConst
::
bySelf
){
$returnData
[
'needShippingFee'
]
=
ApiConst
::
zero
;
}
if
(
$orderInfo
[
'paymentTime'
])
{
if
(
$orderInfo
[
'paymentTime'
])
{
$orderConfirmUtil
=
\Order\OrderConfirmUtil
::
getInstance
();
$orderConfirmUtil
=
\Order\OrderConfirmUtil
::
getInstance
();
...
...
application/models/Business/Store/StoreService.php
View file @
57b821d9
...
@@ -28,7 +28,6 @@ class StoreServiceModel extends \Business\AbstractModel{
...
@@ -28,7 +28,6 @@ class StoreServiceModel extends \Business\AbstractModel{
$beginTime
=
file_get_contents
(
$this
->
baseDir
.
\Our\PathConst
::
storeStatTime
,
TIMESTAMP
);
$beginTime
=
file_get_contents
(
$this
->
baseDir
.
\Our\PathConst
::
storeStatTime
,
TIMESTAMP
);
$beginTime
=
$beginTime
?
$beginTime
:
ApiConst
::
zero
;
$beginTime
=
$beginTime
?
$beginTime
:
ApiConst
::
zero
;
$endTime
=
TIMESTAMP
;
$endTime
=
TIMESTAMP
;
$result
=
true
;
$result
=
true
;
$storeDao
=
\DAO\StoreModel
::
getInstance
();
$storeDao
=
\DAO\StoreModel
::
getInstance
();
$statDao
=
\DAO\StatStoreModel
::
getInstance
(
DbNameConst
::
masterDBConnectName
);
$statDao
=
\DAO\StatStoreModel
::
getInstance
(
DbNameConst
::
masterDBConnectName
);
...
...
application/models/DAO/Goods.php
View file @
57b821d9
...
@@ -505,8 +505,13 @@ class GoodsModel extends \DAO\AbstractModel {
...
@@ -505,8 +505,13 @@ class GoodsModel extends \DAO\AbstractModel {
if
(
isset
(
$goods
[
'goodsGroup'
])
&&!
empty
(
$goods
[
'goodsGroup'
])){
if
(
isset
(
$goods
[
'goodsGroup'
])
&&!
empty
(
$goods
[
'goodsGroup'
])){
$goods
[
'goodsGroup'
]
=
$this
->
getGoodsGroup
(
$goods
[
'goodsGroup'
]);
$goods
[
'goodsGroup'
]
=
$this
->
getGoodsGroup
(
$goods
[
'goodsGroup'
]);
$goods
[
'goodsDiscountPrice'
]
=
array_sum
(
$goods
[
'goodsGroup'
],
'discountPrice'
);
$goodsDiscountPrice
=
ApiConst
::
zero
;
$goods
[
'goodsReduceAmount'
]
=
$goods
[
'goodsPayPrice'
]
-
$goods
[
'goodsDiscountPrice'
];
foreach
(
$goods
[
'goodsGroup'
]
as
$goodsG
){
$goodsDiscountPrice
+=
$goodsG
[
'num'
]
*
$goodsG
[
'discountPrice'
];
}
$goods
[
'goodsDiscountPrice'
]
=
$goodsDiscountPrice
;
// $goods['goodsDiscountPrice']=array_sum($goods['goodsGroup'],'discountPrice');
// $goods['goodsReduceAmount']=$goods['goodsPayPrice']-$goods['goodsDiscountPrice'];
}
else
{
}
else
{
$goods
[
'goodsGroup'
]
=
array
();
$goods
[
'goodsGroup'
]
=
array
();
}
}
...
...
application/modules/Client/controllers/User.php
View file @
57b821d9
...
@@ -84,7 +84,7 @@ class UserController extends \Our\Controller_AbstractIndex {
...
@@ -84,7 +84,7 @@ class UserController extends \Our\Controller_AbstractIndex {
//通知退出
//通知退出
$this
->
memberService
->
saveMember
(
$member
,
'seller'
);
$this
->
memberService
->
saveMember
(
$member
,
'seller'
);
$this
->
success
(
array
(
'key'
=>
$this
->
key
,
'memberName'
=>
$member
[
'member_name'
],
'memberMobile'
=>
$member
[
'member_mobile'
],
'memberAvatar'
=>
$member
[
'memberAvatarUrl'
],
'memberId'
=>
(
int
)
$member
[
'member_id'
],
'storeId'
=>
(
int
)
$seller
[
'storeId'
],
'storeLabel'
=>
$storeOne
[
'storeLabel'
]));
$this
->
success
(
array
(
'key'
=>
$this
->
key
,
'memberName'
=>
$member
[
'member_name'
],
'memberMobile'
=>
$member
[
'member_mobile'
],
'memberAvatar'
=>
$member
[
'memberAvatarUrl'
],
'memberId'
=>
(
int
)
$member
[
'member_id'
],
'storeId'
=>
(
int
)
$seller
[
'storeId'
],
'storeLabel'
=>
$storeOne
[
'storeLabel'
]
,
'storeName'
=>
$storeOne
[
'storeName'
]
));
}
else
{
}
else
{
ErrorModel
::
throwException
(
CodeConfigModel
::
errorUsernameOrPassword
);
ErrorModel
::
throwException
(
CodeConfigModel
::
errorUsernameOrPassword
);
}
}
...
...
scripts/crontab/push/jpush.php
View file @
57b821d9
...
@@ -87,13 +87,13 @@ class cliOrderClose extends basecli
...
@@ -87,13 +87,13 @@ class cliOrderClose extends basecli
$push
=
\Our\Push
::
getInstance
();
$push
=
\Our\Push
::
getInstance
();
$pushData
=
array
(
'storeId'
=>
$store
[
'storeId'
],
$pushData
=
array
(
'storeId'
=>
$store
[
'storeId'
],
'type'
=>
\Our\ApiConst
::
messageGoodsAlert
,
'type'
=>
\Our\ApiConst
::
messageGoodsAlert
,
'waitReceiveCount'
=>
ApiConst
::
zero
,
'waitReceiveCount'
=>
\Our\
ApiConst
::
zero
,
'waitDeliveryCount'
=>
0
,
'waitDeliveryCount'
=>
0
,
'waitGetCount'
=>
0
,
'waitGetCount'
=>
0
,
'orderCount'
=>
ApiConst
::
zero
,
'orderCount'
=>
\Our\
ApiConst
::
zero
,
'waitRefundProccessCount'
=>
ApiConst
::
zero
,
'waitRefundProccessCount'
=>
\Our\
ApiConst
::
zero
,
'waitRefundReceiveCount'
=>
ApiConst
::
zero
,
'waitRefundReceiveCount'
=>
\Our\
ApiConst
::
zero
,
'refundCount'
=>
ApiConst
::
zero
,
'refundCount'
=>
\Our\
ApiConst
::
zero
,
'alertCount'
=>
$store
[
'count'
],
'alertCount'
=>
$store
[
'count'
],
'params'
=>
array
(
'c'
=>
'shopkeeper'
,
'params'
=>
array
(
'c'
=>
'shopkeeper'
,
'm'
=>
'orderDetail'
,
'm'
=>
'orderDetail'
,
...
@@ -138,8 +138,8 @@ class cliOrderClose extends basecli
...
@@ -138,8 +138,8 @@ class cliOrderClose extends basecli
if
(
APP_ENV
==
'pre'
||
APP_ENV
==
'product'
){
if
(
APP_ENV
==
'pre'
||
APP_ENV
==
'product'
){
file_put_contents
(
$this
->
lockFileName
,
"running"
);
// CLI 独占锁
file_put_contents
(
$this
->
lockFileName
,
"running"
);
// CLI 独占锁
}
}
$this
->
autoPushMessage
();
//
$this->autoPushMessage();
echo
date
(
'Y-m-d H:i:s'
,
TIMESTAMP
)
.
'消息推送成功'
.
"
\r\n
"
;
//
echo date('Y-m-d H:i:s',TIMESTAMP).'消息推送成功'."\r\n";
$this
->
autoPushClient
();
$this
->
autoPushClient
();
echo
date
(
'Y-m-d H:i:s'
,
TIMESTAMP
)
.
'客户端消息推送成功'
.
"
\r\n
"
;
echo
date
(
'Y-m-d H:i:s'
,
TIMESTAMP
)
.
'客户端消息推送成功'
.
"
\r\n
"
;
...
...
scripts/crontab/store/stat.php
View file @
57b821d9
...
@@ -68,7 +68,7 @@ class cliStoreStat extends basecli
...
@@ -68,7 +68,7 @@ class cliStoreStat extends basecli
echo
"*** Debug mode ***
\n
"
;
echo
"*** Debug mode ***
\n
"
;
}
}
// Step: 02 检查是否已有相同CLI在运行中
// Step: 02 检查是否已有相同CLI在运行中
$lockDir
=
$this
->
_getBaseFileName
(
'
goods
'
);
$lockDir
=
$this
->
_getBaseFileName
(
'
store
'
);
if
(
!
$this
->
mkdirs
(
$lockDir
)){
if
(
!
$this
->
mkdirs
(
$lockDir
)){
echo
'****create dir fail ****'
;
echo
'****create dir fail ****'
;
exit
;
exit
;
...
...
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