WechatAccountModel.php 258 B

123456789101112131415
  1. <?php
  2. namespace App\Models;
  3. class WechatAccountModel extends BaseModel
  4. {
  5. protected $table = "wechat_account";
  6. public static function findByWechatAppCode($code)
  7. {
  8. return self::query()->where("wechat_app_code",$code)->first();
  9. }
  10. }