Ken 4 روز پیش
والد
کامیت
9785c2f8e4
1فایلهای تغییر یافته به همراه0 افزوده شده و 7 حذف شده
  1. 0 7
      app/Models/Config.php

+ 0 - 7
app/Models/Config.php

@@ -28,13 +28,6 @@ class Config extends BaseModel
         $pc28_switch = intval($pc28_switch);
         $val = static::where('field', 'pc28_switch')->first()->val;
         $val = intval($val);
-        $m = new Message();
-        $m->json = json_encode([
-            'pc28_switch' => $pc28_switch,
-            'val' => $val
-        ]);
-        $m->save();
-
         if (!in_array($pc28_switch,[0,1])) $pc28_switch = $val;
         if ($pc28_switch !== $val) {
             static::where('field', 'pc28_switch')->update(['val' => $pc28_switch]);