From 13ac484711e864c33619940c545a323f59f3a8c0 Mon Sep 17 00:00:00 2001 From: knowpia <9812993@qq.com> Date: Mon, 19 Sep 2022 08:38:23 +0800 Subject: [PATCH] fix bug --- app/controller/Article.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/app/controller/Article.php b/app/controller/Article.php index 44791c7..93e6e3d 100644 --- a/app/controller/Article.php +++ b/app/controller/Article.php @@ -139,6 +139,22 @@ class Article if(count($list)$GLOBALS['data']['userid'], + "student_id"=>$student_userid, + "createtime"=>date("Y-m-d",time()) + ]; + $data['sha'] = sha1(json_encode($data)); + $info = Db::name("app_help_log")->where("sha", $data['sha'])->find(); + if (!empty($info)) { + $result['is_assist'] = 1; + } + } + return show(SUCCESS_MESSAGE,SUCCESS_CODE,$result); } } \ No newline at end of file