|
@@ -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])->first();
|
|
|
|
|
|
+ $temalates = $this->cmsContentTemplate->select('title', 'id')->where(['city_id' => $request['city_id'], 'apply_type' => $request['type'], 'is_open' => 1])->orderBy('id','desc')->first();
|
|
if (!$temalates) {
|
|
if (!$temalates) {
|
|
throw new HttpException(500, '没有找到对应模板');
|
|
throw new HttpException(500, '没有找到对应模板');
|
|
}
|
|
}
|