区别诊所和药店
This commit is contained in:
@@ -27,7 +27,7 @@ class StoreController extends BaseAppController
|
||||
'store_id'=>\Yii::$app->store,
|
||||
'is_delete'=>0
|
||||
])->with(['store' => function ($q) {
|
||||
$q->select('id,name,position,start_time,end_time,mobile');
|
||||
$q->select('id,name,position,type,start_time,end_time,mobile');
|
||||
}])->asArray()->one();
|
||||
|
||||
if (!$StoreUser) throw new Exception('门店不存在');
|
||||
@@ -36,7 +36,7 @@ class StoreController extends BaseAppController
|
||||
|
||||
//门店详情
|
||||
public function actionDetail(){
|
||||
$store = Store::find()->select('id,name,position,start_time,end_time,mobile')->where(['id' => \Yii::$app->store])->with(['nav' => function ($q){
|
||||
$store = Store::find()->select('id,name,position,type,start_time,end_time,mobile')->where(['id' => \Yii::$app->store])->with(['nav' => function ($q){
|
||||
$q->andWhere(['type' => 1]);//首页轮播图
|
||||
$q->select(['id','store_id','pic','link_type','external_link']);
|
||||
}])->asArray()->one();
|
||||
|
||||
Reference in New Issue
Block a user