|
@@ -128,6 +128,10 @@ class CmsContentTemplateRepository {
|
|
|
public function updateTemplateName($data)
|
|
|
{
|
|
|
$template = $this->cmsContentTemplate->select('city_id','apply_type')->where('id',$data['id'])->first();
|
|
|
+ if ($template->apply_type == 2){
|
|
|
+ throw new HttpException(500, '兑换商城不允许修改名称');
|
|
|
+ }
|
|
|
+
|
|
|
$template_array = $this->cmsContentTemplate->where(['city_id' => $template->city_id, 'apply_type' => $template->apply_type])->get();
|
|
|
|
|
|
if (count($template_array)>1){
|