CouponLog.php 562 B

123456789101112131415161718192021
  1. <?php
  2. /**
  3. * @copyright Copyright (c) 2017 https://www.sapixx.com All rights reserved.
  4. * @license Licensed (http://www.apache.org/licenses/LICENSE-2.0).
  5. * @author pillar<ltmn@qq.com>
  6. * 优惠券使用记录
  7. */
  8. namespace app\allwin\model;
  9. use think\Model;
  10. use think\facade\Log;
  11. class CouponLog extends Model{
  12. protected $pk = 'id';
  13. protected $table = 'ai_allwin_coupon_log';
  14. //读取某个消费记录信息
  15. public static function getLog(array $condition){
  16. return self::where($condition)->order('id desc')->find();
  17. }
  18. }