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