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
f0742cee
Commit
f0742cee
authored
Dec 18, 2018
by
christ
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ccw:master_dev
parent
0196cc37
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
ShopkeeperService.php
application/models/Business/Store/ShopkeeperService.php
+2
-2
Shopkeeper.php
application/modules/Client/controllers/Shopkeeper.php
+1
-1
No files found.
application/models/Business/Store/ShopkeeperService.php
View file @
f0742cee
...
@@ -513,9 +513,9 @@ class ShopkeeperServiceModel extends \Business\AbstractModel
...
@@ -513,9 +513,9 @@ class ShopkeeperServiceModel extends \Business\AbstractModel
return
$diliveryMans
;
return
$diliveryMans
;
}
}
public
function
confirmReceivePayment
(
$memberId
,
$orderId
){
public
function
confirmReceivePayment
(
$memberId
,
$
storeId
,
$
orderId
){
$memberDao
=
\DAO\MemberModel
::
getInstance
();
$memberDao
=
\DAO\MemberModel
::
getInstance
();
$storeId
=
$memberDao
->
getInfo
(
$memberId
,
'store_id'
);
//
$storeId = $memberDao->getInfo($memberId, 'store_id');
$orderDao
=
\DAO\Order\OrderModel
::
getInstance
(
DbNameConst
::
masterDBConnectName
);
$orderDao
=
\DAO\Order\OrderModel
::
getInstance
(
DbNameConst
::
masterDBConnectName
);
$where
[
'order_id'
]
=
$orderId
;
$where
[
'order_id'
]
=
$orderId
;
$where
[
'store_id'
]
=
$storeId
;
$where
[
'store_id'
]
=
$storeId
;
...
...
application/modules/Client/controllers/Shopkeeper.php
View file @
f0742cee
...
@@ -193,7 +193,7 @@ class ShopkeeperController extends \Our\Controller_AbstractClient {
...
@@ -193,7 +193,7 @@ class ShopkeeperController extends \Our\Controller_AbstractClient {
public
function
receivePaymentAction
(){
public
function
receivePaymentAction
(){
$shopkeeperService
=
\Business\Store\ShopkeeperServiceModel
::
getInstance
();
$shopkeeperService
=
\Business\Store\ShopkeeperServiceModel
::
getInstance
();
$res
=
$shopkeeperService
->
confirmReceivePayment
(
$this
->
memberId
,
$this
->
req
[
'data'
][
'orderId'
]);
$res
=
$shopkeeperService
->
confirmReceivePayment
(
$this
->
memberId
,
$this
->
storeId
,
$this
->
req
[
'data'
][
'orderId'
]);
if
(
$res
){
if
(
$res
){
$this
->
success
(
array
(),
\Our\DescribeConst
::
successMessage
);
$this
->
success
(
array
(),
\Our\DescribeConst
::
successMessage
);
}
else
{
}
else
{
...
...
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