wesmiler 2 هفته پیش
والد
کامیت
03cc874218
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  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;
         }
 
         // 保存数据