From 7ff6f470aaf8ffe37750c7fa238ff1543e847032 Mon Sep 17 00:00:00 2001 From: xiaochong0302 Date: Sat, 9 Nov 2024 20:37:43 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=AE=9A=E6=97=B6?= =?UTF-8?q?=E8=87=AA=E5=8A=A8=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/static/admin/js/content.editor.js | 1 + public/static/home/js/content.editor.js | 1 + 2 files changed, 2 insertions(+) diff --git a/public/static/admin/js/content.editor.js b/public/static/admin/js/content.editor.js index 3191a7ae..5f55f911 100644 --- a/public/static/admin/js/content.editor.js +++ b/public/static/admin/js/content.editor.js @@ -55,6 +55,7 @@ layui.use(['jquery'], function () { */ setInterval(function () { editor.sync(); + if (!$form.attr('action').includes('update')) return; if ($textarea.val().length > 30) { $.ajax({ type: 'POST', diff --git a/public/static/home/js/content.editor.js b/public/static/home/js/content.editor.js index 67b89340..8fe6d58e 100644 --- a/public/static/home/js/content.editor.js +++ b/public/static/home/js/content.editor.js @@ -53,6 +53,7 @@ layui.use(['jquery'], function () { */ setInterval(function () { editor.sync(); + if (!$form.attr('action').includes('update')) return; if ($textarea.val().length > 30) { $.ajax({ type: 'POST', From 0f446fef100a3fff653fb553b9f70e208b005931 Mon Sep 17 00:00:00 2001 From: xiaochong0302 Date: Sun, 20 Oct 2024 19:32:33 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=AF=BE=E7=A8=8B?= =?UTF-8?q?=E6=9C=9F=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Models/Course.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/Models/Course.php b/app/Models/Course.php index 6821c7b0..56bb3219 100644 --- a/app/Models/Course.php +++ b/app/Models/Course.php @@ -462,7 +462,9 @@ class Course extends Model 3 => '3个月', 6 => '6个月', 12 => '12个月', + 24 => '24个月', 36 => '36个月', + 48 => '48个月', ]; } @@ -470,11 +472,11 @@ class Course extends Model { return [ 0 => '0天', + 1 => '1天', + 3 => '3天', 7 => '7天', 14 => '14天', 30 => '30天', - 90 => '90天', - 180 => '180天', ]; }