|
|
@@ -84,4 +84,20 @@ class SystemStoreApply extends BaseModel
|
|
|
};
|
|
|
return isset($data) ? $data : [];
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 获取门店信息
|
|
|
+ * @param int $id
|
|
|
+ * @return array|\think\Model|null
|
|
|
+ * @throws \think\db\exception\DataNotFoundException
|
|
|
+ * @throws \think\db\exception\DbException
|
|
|
+ * @throws \think\db\exception\ModelNotFoundException
|
|
|
+ */
|
|
|
+ public static function getDetail($id)
|
|
|
+ {
|
|
|
+
|
|
|
+ $storeInfo = self::verificWhere()->where('id', $id)->find();
|
|
|
+ $storeInfo['address'] = $storeInfo['address'] ? explode(',', $storeInfo['address']) : [];
|
|
|
+ return $storeInfo;
|
|
|
+ }
|
|
|
}
|