|
@@ -50,8 +50,8 @@ class CmsContentTemplateRepository {
|
|
|
}
|
|
|
}
|
|
|
if ($request['apply_type'] == 2) {
|
|
|
- if ($this->cmsContentTemplate->where(['title' => $request['title'], 'apply_type' => 2])->exists()) {
|
|
|
- throw new HttpException(500, '当前模版类型下该名称已存在');
|
|
|
+ if ($this->cmsContentTemplate->where('apply_type', '=', 2)->exists()) {
|
|
|
+ throw new HttpException(500, '兑换商城只能有一个');
|
|
|
}
|
|
|
}
|
|
|
|