Silent %!s(int64=6) %!d(string=hai) anos
pai
achega
bfec1e6d45
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  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]