区别诊所和药店

This commit is contained in:
2025-10-22 16:04:31 +08:00
parent 046808290d
commit 3083214b01

View File

@@ -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();