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
02a41a12
Commit
02a41a12
authored
Dec 18, 2018
by
christ
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ccw:master_dev
parent
127c4564
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
ShopkeeperService.php
application/models/Business/Store/ShopkeeperService.php
+6
-2
Shopkeeper.php
application/modules/Client/controllers/Shopkeeper.php
+1
-1
No files found.
application/models/Business/Store/ShopkeeperService.php
View file @
02a41a12
...
...
@@ -237,9 +237,13 @@ class ShopkeeperServiceModel extends \Business\AbstractModel
* @param $orderId
* @return bool
*/
public
function
orderReceive
(
$memberId
,
$orderId
)
public
function
orderReceive
(
$memberId
,
$orderId
,
$isStore
=
false
)
{
if
(
$isStore
){
$storeId
=
$memberId
;
}
else
{
$storeId
=
$this
->
_getStoreByMemberId
(
$memberId
);
}
$where
[
'order_id'
]
=
$orderId
;
$where
[
'store_id'
]
=
$storeId
;
$where
[
'order_state'
]
=
ApiConst
::
orderStateWaitConfirm
;
...
...
application/modules/Client/controllers/Shopkeeper.php
View file @
02a41a12
...
...
@@ -111,7 +111,7 @@ class ShopkeeperController extends \Our\Controller_AbstractClient {
*/
public
function
orderReceiveAction
(){
$orderId
=
$this
->
req
[
'data'
][
'orderId'
];
$result
=
$this
->
shopkeeperService
->
orderReceive
(
$this
->
memberId
,
$orderId
);
$result
=
$this
->
shopkeeperService
->
orderReceive
(
$this
->
storeId
,
$orderId
,
true
);
if
(
$result
)
{
$this
->
success
(
array
(),
\Our\DescribeConst
::
successMessage
,
\Our\DescribeConst
::
successMessage
);
}
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