yingzi 2 년 전
부모
커밋
76fbef8053
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 4 1
      Controller/Shop/ShopRostering.Class.php

+ 4 - 1
Controller/Shop/ShopRostering.Class.php

@@ -388,6 +388,9 @@ class ShopRostering extends BaseController
 
         $url = 'https://oapi.dingtalk.com/topapi/attendance/group/add?access_token='.$this->voucher();
         
+        if(empty($param) || empty($param["shift_vo_list"])){
+            parent::sendOutput('参数错误', 1005);
+        }
 
         $data = [
             'op_user_id' => '',
@@ -405,7 +408,7 @@ class ShopRostering extends BaseController
                 'id' => $item
             ];
         }
-        var_dump(explode(',',$param['staff_id']));
+        var_dump(explode(',',trim($param['staff_id'])));
         exit;
         foreach (explode(',',$param['staff_id']) as $item){
             $user = $this->staff->getStaffInfo(['id' => $item])->getData();