WebSiteModel.php 389 B

12345678910111213141516171819
  1. <?php
  2. namespace App\Models;
  3. class WebSiteModel extends BaseModel
  4. {
  5. protected $table = "web_site";
  6. /**
  7. * 根据微信公众号ID获取站点信息
  8. * @param $wechatAccountId int 微信公众号ID
  9. */
  10. public static function findByWechatAccountId($wechatAccountId)
  11. {
  12. return self::query()->where("wechat_account_id",$wechatAccountId)->first();
  13. }
  14. }