|
@@ -25,7 +25,7 @@ class CmsContentTemplateSetRepository
|
|
*/
|
|
*/
|
|
public function preview($request)
|
|
public function preview($request)
|
|
{
|
|
{
|
|
- $temalates = $this->cmsContentTemplate->select('title', 'id')->where(['city_id' => $request['city_id'], 'apply_type' => $request['type'], 'is_open' => 1])->orderBy('id','desc')->first();
|
|
|
|
|
|
+ $temalates = $this->cmsContentTemplate->select('title', 'id')->where(['city_id' => $request['city_id'], 'apply_type' => $request['type'], 'is_open' => 1,'status'=>1])->orderBy('id','desc')->first();
|
|
if (!$temalates) {
|
|
if (!$temalates) {
|
|
throw new HttpException(500, '没有找到对应模板');
|
|
throw new HttpException(500, '没有找到对应模板');
|
|
}
|
|
}
|
|
@@ -116,7 +116,7 @@ class CmsContentTemplateSetRepository
|
|
|
|
|
|
public function getTemplate($cityId)
|
|
public function getTemplate($cityId)
|
|
{
|
|
{
|
|
- return $this->cmsContentTemplate->select('title', 'apply_type')->where(['city_id' => $cityId, 'is_open' => 1])->orderBy('apply_type', 'asc')->get();
|
|
|
|
|
|
+ return $this->cmsContentTemplate->where(['city_id' => $cityId, 'is_open' => 1,'status'=>1])->select('id','title', 'apply_type')->orderBy('apply_type', 'asc')->get();
|
|
}
|
|
}
|
|
|
|
|
|
public function productList($request)
|
|
public function productList($request)
|