wesmiler hace 2 semanas
padre
commit
03cc874218
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      app/Services/Common/StoreCategoryService.php

+ 2 - 1
app/Services/Common/StoreCategoryService.php

@@ -130,7 +130,8 @@ class StoreCategoryService extends BaseService
         $id = isset($param['id'])?$param['id']:0;
         $checkId = $this->model->where(['name' => $param['name'], 'mark' => 1])->value('id');
         if ($checkId && ($id != $checkId)) {
-            return message('该商户分类已存在', false);
+            $this->error = '该商户分类已存在';
+            return false;
         }
 
         // 保存数据