Commit fbb9853e authored by 郭勇志's avatar 郭勇志

o2o配送费详情规范代码

parent 65b26cd6
...@@ -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,
] ]
) ]
); );
} }
......
...@@ -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;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment