Silent 6 年 前
コミット
eb2b4075bb

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

xqd
@@ -214,7 +214,7 @@ class ApiController extends Controller
             }
         }
         $check_position = Setting::where('key', 'check_position')->first();
-        if(!empty($check_position) && empty($check_position->value)) {
+        if(!empty($check_position) && $check_position->value == 2) {
             $result = 'ok';
         }
         $now = Carbon::today()->toDateTimeString();

+ 1 - 1
resources/views/admin/settings/system.blade.php

xqd
@@ -44,7 +44,7 @@
                                         <input type="radio" name="check_position" value="1" {{ $check_position->value == 1 ? 'checked' : '' }}>是
                                     </label>
                                     <label class="radio-inline">
-                                        <input type="radio" name="check_position" value="0" {{ $check_position->value != 1 ? 'checked' : '' }}>否
+                                        <input type="radio" name="check_position" value="2" {{ $check_position->value != 1 ? 'checked' : '' }}>否
                                     </label>
                                 </div>
                             </div>