Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
newShopBack
Project
Project
Details
Activity
Releases
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
newshop
newShopBack
Commits
fbb9853e
Commit
fbb9853e
authored
Jan 07, 2020
by
郭勇志
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
o2o配送费详情规范代码
parent
65b26cd6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
ShopTransportAreaController.php
...end/controllers/v1/common/ShopTransportAreaController.php
+2
-2
O2oDeliveryController.php
backend/controllers/v1/transport/O2oDeliveryController.php
+2
-3
No files found.
backend/controllers/v1/common/ShopTransportAreaController.php
View file @
fbb9853e
...
@@ -39,12 +39,12 @@ class ShopTransportAreaController extends BaseController
...
@@ -39,12 +39,12 @@ class ShopTransportAreaController extends BaseController
$whereArr
$whereArr
);
);
return
new
ActiveDataProvider
(
return
new
ActiveDataProvider
(
array
(
[
'query'
=>
$areas
,
'query'
=>
$areas
,
'pagination'
=>
[
'pagination'
=>
[
'pageSize'
=>
0
,
'pageSize'
=>
0
,
]
]
)
]
);
);
}
}
...
...
backend/controllers/v1/transport/O2oDeliveryController.php
View file @
fbb9853e
...
@@ -150,16 +150,15 @@ class O2oDeliveryController extends BaseController
...
@@ -150,16 +150,15 @@ class O2oDeliveryController extends BaseController
->
andFilterWhere
([
'scds.SETTING_TYPE'
=>
O2O_FLAG
])
//设定为o2o配送
->
andFilterWhere
([
'scds.SETTING_TYPE'
=>
O2O_FLAG
])
//设定为o2o配送
->
andFilterWhere
([
'sb.GUID'
=>
$branchGuid
])
->
andFilterWhere
([
'sb.GUID'
=>
$branchGuid
])
->
andFilterWhere
([
'scds.GUID'
=>
$model
->
GUID
])
->
andFilterWhere
([
'scds.GUID'
=>
$model
->
GUID
])
->
orFilterWhere
([
'sb.PARENTGUID'
=>
$parentBranchGuid
])
->
asArray
()
->
all
();
->
asArray
()
->
all
();
return
new
ArrayDataProvider
(
return
new
ArrayDataProvider
(
[
[
'allModels'
=>
$infoArr
,
'allModels'
=>
$infoArr
,
'pagination'
=>
false
]
]
);
);
}
else
{
}
else
{
Yii
::
$app
->
response
->
statusCode
=
422
;
return
$model
;
return
$model
->
errors
;
}
}
}
}
...
...
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