Silent 6 년 전
부모
커밋
bfec1e6d45
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 4 1
      app/Http/Controllers/WeChat/ApiController.php

+ 4 - 1
app/Http/Controllers/WeChat/ApiController.php

xqd
@@ -213,7 +213,10 @@ class ApiController extends Controller
                 $result = 'ok';
             }
         }
-//        $result = 'ok';
+        $check_position = Setting::where('key', 'check_position')->first();
+        if(!empty($check_position) && empty($check_position->value)) {
+            $result = 'ok';
+        }
         $now = Carbon::today()->toDateTimeString();
         $checkCard = CheckCard::where([
             ['begin_date_time', '>', $now]