<?php
/**
 * @copyright   Copyright (c) 2017 https://www.sapixx.com All rights reserved.
 * @license     Licensed (http://www.apache.org/licenses/LICENSE-2.0).
 * @author      pillar<ltmn@qq.com>
 * 优惠券使用记录
 */
namespace app\allwin\model;
use think\Model;
use think\facade\Log;

class CouponLog extends Model{

    protected $pk = 'id';
    protected $table = 'ai_allwin_coupon_log';

    //读取某个消费记录信息
    public static function getLog(array $condition){
        return self::where($condition)->order('id desc')->find();
    }
}