From 8823978098115ced99df33a82b99dd9161a34d7c Mon Sep 17 00:00:00 2001 From: Chaim Date: Mon, 18 May 2020 17:56:02 +0800 Subject: [PATCH] =?UTF-8?q?-=20=E4=BC=98=E5=8C=96=E7=BC=93=E5=AD=98?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=BA=93=E9=A9=B1=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/cache/Mysql.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cache/Mysql.php b/src/cache/Mysql.php index 3c4685c..39eb9ea 100644 --- a/src/cache/Mysql.php +++ b/src/cache/Mysql.php @@ -17,6 +17,7 @@ namespace DtApp\ThinkLibrary\cache; use DtApp\ThinkLibrary\exception\CacheException; +use DtApp\ThinkLibrary\facade\Times; use think\db\exception\DataNotFoundException; use think\db\exception\DbException; use think\db\exception\ModelNotFoundException; @@ -68,7 +69,7 @@ class Mysql ->insert([ 'cache_name' => $this->cache_name, 'cache_value' => $cache_value, - 'cache_expire' => $this->cache_expire + 'cache_expire' => Times::dateRear("Y-m-d H:i:s", $this->cache_expire) ]); }