|
|
@@ -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]);
|