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

o2o配送费详情规范代码

parent 65b26cd6
......@@ -39,12 +39,12 @@ class ShopTransportAreaController extends BaseController
$whereArr
);
return new ActiveDataProvider(
array(
[
'query' => $areas,
'pagination' => [
'pageSize' => 0,
]
)
]
);
}
......
......@@ -150,16 +150,15 @@ class O2oDeliveryController extends BaseController
->andFilterWhere(['scds.SETTING_TYPE'=>O2O_FLAG])//设定为o2o配送
->andFilterWhere(['sb.GUID'=>$branchGuid])
->andFilterWhere(['scds.GUID'=>$model->GUID])
->orFilterWhere(['sb.PARENTGUID'=>$parentBranchGuid])
->asArray()->all();
return new ArrayDataProvider(
[
'allModels' => $infoArr,
'pagination' => false
]
);
}else{
Yii::$app->response->statusCode = 422;
return $model->errors;
return $model;
}
}
......
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