<?php
namespace app\common\listener\help;
use app\common\model\dyqc\ManystoreShop;
use app\common\model\school\classes\Teacher;
use app\common\model\school\classes\Visit;
use app\common\model\school\Message;
use app\common\model\school\MessageConfig;

class HelpHook
{


        public function helpArticleViewAfter(&$params)
        {
            ['help_article' => $help_article,"user_id"=>$user_id,"oper_type"=>$oper_type,"oper_id"=>$oper_id] = $params;
           //访问记录
           Visit::create([
               "help_article_id"=>$help_article["id"],
               "classes_lib_id"=>0,
               "shop_id"=>0,
               "classes_activity_id"=>0,
               "status"=>'3',
               "user_id"=>$user_id,
               ]);
        }




}