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
cb4acec2
Commit
cb4acec2
authored
Feb 11, 2019
by
zhz
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://git.shenbd.com/api-project-dev/api.shenbd.com
into zhz_marketing
parents
a7799d85
b0c229df
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
34 additions
and
23 deletions
+34
-23
.gitignore
.gitignore
+0
-8
Abstract.php
application/library/Our/Controller/Abstract.php
+1
-1
WxPay.php
application/library/Payment/WxPay.php
+2
-0
OrderService.php
application/models/Business/Order/OrderService.php
+19
-3
RefundReturn.php
application/models/DAO/Order/RefundReturn.php
+1
-0
application.ini
conf/application.ini
+11
-11
No files found.
.gitignore
View file @
cb4acec2
<<<<<<< HEAD
dea
=======
/nbproject/
/nbproject/
.idea
.idea
>>>>>>> 07613dd26e99bb68b3772e7616f45675937eabb9
*.DS_Store
*.DS_Store
upload
upload
/data/log
/data/log
/data/images
/data/images
/scripts/crontab/push/nohup.out
/scripts/crontab/push/nohup.out
/lib
/lib
<<<<<<< HEAD
=======
>>>>>>> 07613dd26e99bb68b3772e7616f45675937eabb9
application/library/Our/Controller/Abstract.php
View file @
cb4acec2
...
@@ -14,7 +14,7 @@ abstract class Controller_Abstract extends \Yaf\Controller_Abstract {
...
@@ -14,7 +14,7 @@ abstract class Controller_Abstract extends \Yaf\Controller_Abstract {
if
(
$version
){
if
(
$version
){
define
(
'CURRENTVERSION'
,
$version
);
define
(
'CURRENTVERSION'
,
$version
);
}
else
{
}
else
{
define
(
'CURRENTVERSION'
,
\Our\NameConst
::
version
Default
);
define
(
'CURRENTVERSION'
,
\Our\NameConst
::
version
One
);
}
}
}
}
...
...
application/library/Payment/WxPay.php
View file @
cb4acec2
...
@@ -61,6 +61,8 @@ class WxPay extends \Payment\TencentPay
...
@@ -61,6 +61,8 @@ class WxPay extends \Payment\TencentPay
public
function
refund
(
$param
){
public
function
refund
(
$param
){
// return $this->commonRefund($param);
// return $this->serviceRefund($param);
if
(
$param
[
'subMchId'
]){
if
(
$param
[
'subMchId'
]){
return
$this
->
serviceRefund
(
$param
);
return
$this
->
serviceRefund
(
$param
);
}
else
{
}
else
{
...
...
application/models/Business/Order/OrderService.php
View file @
cb4acec2
...
@@ -575,6 +575,22 @@ class OrderServiceModel extends \Business\AbstractModel
...
@@ -575,6 +575,22 @@ class OrderServiceModel extends \Business\AbstractModel
$refundReturnDao
=
\DAO\Order\RefundReturnModel
::
getInstance
(
DbNameConst
::
masterDBConnectName
);
$refundReturnDao
=
\DAO\Order\RefundReturnModel
::
getInstance
(
DbNameConst
::
masterDBConnectName
);
$orderGoodsDao
=
\DAO\Order\OrderGoodsModel
::
getInstance
(
DbNameConst
::
masterDBConnectName
);
$orderGoodsDao
=
\DAO\Order\OrderGoodsModel
::
getInstance
(
DbNameConst
::
masterDBConnectName
);
$order
=
$orderDao
->
findByOrderId
(
$orderId
,
$orderDao
->
getOrderDetailField
());
$order
=
$orderDao
->
findByOrderId
(
$orderId
,
$orderDao
->
getOrderDetailField
());
$waitReceiveCount
=
ApiConst
::
zero
;
$waitDeliveryCount
=
ApiConst
::
zero
;
$waitGetCount
=
ApiConst
::
zero
;
if
(
in_array
(
$order
[
'orderState'
],
array
(
ApiConst
::
orderStateWaitSend
,
ApiConst
::
orderStateWaitRecieve
))){
if
(
$order
[
'shippingType'
]
==
ApiConst
::
bySelf
){
$waitGetCount
=
ApiConst
::
reduceOne
;
}
if
(
$order
[
'shippingType'
]
==
ApiConst
::
bySeller
){
$waitDeliveryCount
=
ApiConst
::
reduceOne
;
}
}
if
(
$order
[
'orderState'
]
==
ApiConst
::
orderStateWaitConfirm
){
$waitReceiveCount
=-
1
;
}
$storeDao
=
\DAO\StoreModel
::
getInstance
();
$storeDao
=
\DAO\StoreModel
::
getInstance
();
//判断订单目前状态是否允许取消
//判断订单目前状态是否允许取消
$isAllowCancel
=
$orderDao
->
isAllowCancel
(
$order
);
$isAllowCancel
=
$orderDao
->
isAllowCancel
(
$order
);
...
@@ -607,9 +623,9 @@ class OrderServiceModel extends \Business\AbstractModel
...
@@ -607,9 +623,9 @@ class OrderServiceModel extends \Business\AbstractModel
$push
=
\Our\Push
::
getInstance
();
$push
=
\Our\Push
::
getInstance
();
$pushData
=
array
(
'storeId'
=>
$order
[
'storeId'
],
$pushData
=
array
(
'storeId'
=>
$order
[
'storeId'
],
'type'
=>
ApiConst
::
messageWaitReceive
,
'type'
=>
ApiConst
::
messageWaitReceive
,
'waitReceiveCount'
=>
ApiConst
::
reduceOne
,
'waitReceiveCount'
=>
$waitReceiveCount
,
'waitDeliveryCount'
=>
ApiConst
::
zero
,
'waitDeliveryCount'
=>
$waitDeliveryCount
,
'waitGetCount'
=>
ApiConst
::
zero
,
'waitGetCount'
=>
$waitGetCount
,
'orderCount'
=>
ApiConst
::
reduceOne
,
'orderCount'
=>
ApiConst
::
reduceOne
,
'waitRefundProccessCount'
=>
ApiConst
::
zero
,
'waitRefundProccessCount'
=>
ApiConst
::
zero
,
'waitRefundReceiveCount'
=>
ApiConst
::
zero
,
'waitRefundReceiveCount'
=>
ApiConst
::
zero
,
...
...
application/models/DAO/Order/RefundReturn.php
View file @
cb4acec2
...
@@ -419,6 +419,7 @@ class RefundReturnModel extends \DAO\AbstractModel
...
@@ -419,6 +419,7 @@ class RefundReturnModel extends \DAO\AbstractModel
$param
[
'refundFee'
]
=
$orderInfo
[
'refund_amount'
];
//退款金额
$param
[
'refundFee'
]
=
$orderInfo
[
'refund_amount'
];
//退款金额
$param
[
'storeId'
]
=
$orderInfo
[
'store_id'
];
$param
[
'storeId'
]
=
$orderInfo
[
'store_id'
];
$param
[
'buyerId'
]
=
$orderInfo
[
'buyer_id'
];
$param
[
'buyerId'
]
=
$orderInfo
[
'buyer_id'
];
if
(
CURRENTVERSION
!=
\Our\NameConst
::
versionDefault
&&
in_array
(
intval
(
$orderInfo
[
'payment_type'
]),
array
(
ApiConst
::
wxAppPayType
,
ApiConst
::
wxProgram
)))
{
if
(
CURRENTVERSION
!=
\Our\NameConst
::
versionDefault
&&
in_array
(
intval
(
$orderInfo
[
'payment_type'
]),
array
(
ApiConst
::
wxAppPayType
,
ApiConst
::
wxProgram
)))
{
$mchIdArray
=
\DAO\StoreModel
::
getInstance
()
->
getStoreWxMchId
(
$param
[
'storeId'
]);
$mchIdArray
=
\DAO\StoreModel
::
getInstance
()
->
getStoreWxMchId
(
$param
[
'storeId'
]);
if
(
$mchIdArray
[
'errorCode'
]
>
0
)
{
if
(
$mchIdArray
[
'errorCode'
]
>
0
)
{
...
...
conf/application.ini
View file @
cb4acec2
...
@@ -285,21 +285,21 @@ elastic.master.scheme="http";
...
@@ -285,21 +285,21 @@ elastic.master.scheme="http";
[ccwdevelop : common]
[ccwdevelop : common]
; 数据库配置
; 数据库配置
resources.database.params.driver
=
"pdo_mysql"
resources.database.params.driver
=
"pdo_mysql"
resources.database.params.hostname
=
"1
92.168.1.20
1"
resources.database.params.hostname
=
"1
27.0.0.
1"
resources.database.params.port
=
3306
resources.database.params.port
=
3306
resources.database.params.database
=
"qmcs
_ccw
"
resources.database.params.database
=
"qmcs"
resources.database.params.username
=
"root"
resources.database.params.username
=
"root"
resources.database.params.password
=
"
123456
"
resources.database.params.password
=
"
root
"
resources.database.params.charset
=
"UTF8"
resources.database.params.charset
=
"UTF8"
resources.database.params.driver_options.1002
=
"SET NAMES utf8"
resources.database.params.driver_options.1002
=
"SET NAMES utf8"
; 从库配置
; 从库配置
resources.database.slave.params.driver
=
"pdo_mysql"
resources.database.slave.params.driver
=
"pdo_mysql"
resources.database.slave.params.hostname
=
"1
92.168.1.20
1"
resources.database.slave.params.hostname
=
"1
27.0.0.
1"
resources.database.slave.params.port
=
3306
resources.database.slave.params.port
=
3306
resources.database.slave.params.database
=
"qmcs
_ccw
"
resources.database.slave.params.database
=
"qmcs"
resources.database.slave.params.username
=
"root"
resources.database.slave.params.username
=
"root"
resources.database.slave.params.password
=
"
123456
"
resources.database.slave.params.password
=
"
root
"
resources.database.slave.params.charset
=
"UTF8"
resources.database.slave.params.charset
=
"UTF8"
resources.database.slave.params.driver_options.1002
=
"SET NAMES utf8"
resources.database.slave.params.driver_options.1002
=
"SET NAMES utf8"
...
@@ -316,10 +316,10 @@ resources.database.mongo.params.driver_options.1002 = "SET NAMES utf8"
...
@@ -316,10 +316,10 @@ resources.database.mongo.params.driver_options.1002 = "SET NAMES utf8"
password.key
=
'~!@#$`1234qwertasdfgzxcvb'
;
password.key
=
'~!@#$`1234qwertasdfgzxcvb'
;
redis.database.params.host
=
"1
92.168.1.180
"
redis.database.params.host
=
"1
27.0.0.1
"
redis.database.params.port
=
"6379"
redis.database.params.port
=
"6379"
redis.database.params.prefix
=
"qm_"
redis.database.params.prefix
=
"qm_"
redis.database.params.password
=
"
23456ertyu
"
redis.database.params.password
=
""
out.config
=
"/data/config"
;
out.config
=
"/data/config"
;
;锁文件
;锁文件
...
@@ -328,13 +328,13 @@ out.locks="/data/locks";
...
@@ -328,13 +328,13 @@ out.locks="/data/locks";
;redis.database.params.password = "test"
;redis.database.params.password = "test"
;推送配置
;推送配置
push.clientHost
=
"ws://1
92.168.1.180
:9502"
push.clientHost
=
"ws://1
27.0.0.1
:9502"
push.host
=
"1
92.168.1.180
"
push.host
=
"1
27.0.0.1
"
push.port
=
"9503"
push.port
=
"9503"
push.open
=
1
push.open
=
1
push.user.service.id
=
293
push.user.service.id
=
293
push.user.service.type
=
7
push.user.service.type
=
7
elastic.master.host
=
"1
92.168.1.180
"
elastic.master.host
=
"1
27.0.0.1
"
elastic.master.port
=
"9200"
elastic.master.port
=
"9200"
elastic.master.scheme
=
"http"
;
elastic.master.scheme
=
"http"
;
;resources.database.params.hostname = "127.0.0.1"
;resources.database.params.hostname = "127.0.0.1"
...
...
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