<?php
 namespace App\Util; use TechOnline\Laravel\Dao\ModelUtil; class VipArticleUtil { public static function hasBought($memberUserId, $articleId) { return ModelUtil::exists('vip_article_pay', [ 'memberUserId' => $memberUserId, 'articleId' => $articleId, ]); } public static function putBought($memberUserId, $articleId) { ModelUtil::insert('vip_article_pay', [ 'memberUserId' => $memberUserId, 'articleId' => $articleId, ]); } }