wesmiler hace 2 meses
padre
commit
fbcbd2ac5f

+ 1 - 1
app/Models/SupervisorsModel.php

@@ -18,7 +18,7 @@ class SupervisorsModel extends BaseModel
         $value = $value ? get_image_url($value) : '';
         return $value;
     }
-    
+
     /**
      * @return array
      */

+ 2 - 0
app/Services/Api/MeetingService.php

@@ -89,6 +89,7 @@ class MeetingService extends BaseService
             $stores = '';
             if($info['store_ids']){
                 $stores = UserModel::whereIn('id', $info['store_ids'])
+                    ->select(['id','avatar','realname','nickname','mobile','department','position','status'])
                     ->where(['mark'=>1])
                     ->get();;
             }
@@ -97,6 +98,7 @@ class MeetingService extends BaseService
             $supervisors = '';
             if($info['supervisor_ids']){
                 $supervisors = SupervisorsModel::whereIn('id', $info['supervisor_ids'])
+                    ->select(['id','name','avatar','mobile','company','occupation','department','position','status'])
                     ->where(['mark'=>1])
                     ->get();
             }

+ 12 - 0
app/Services/Common/StoreService.php

@@ -175,6 +175,18 @@ class StoreService extends BaseService
             return  message('请填写企业账号(联系电话)', false);
         }
 
+        if (empty($data['realname'])) {
+            return  message('请填写负责人姓名', false);
+        }
+
+        if (empty($data['department'])) {
+            return  message('请填写负责人所在部门', false);
+        }
+
+        if (empty($data['position'])) {
+            return  message('请填写负责人职位', false);
+        }
+
         // 手机号唯一性验证
         $id = isset($data['id']) ? $data['id'] : 0;
         if ($mobile) {