StoreCouponIssueUser.php 620 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. /**
  3. *
  4. * @author: xaboy<365615158@qq.com>
  5. * @day: 2018/01/22
  6. */
  7. namespace app\models\store;
  8. use crmeb\basic\BaseModel;
  9. use crmeb\traits\ModelTrait;
  10. /**
  11. * TODO 优惠券前台用户领取Model
  12. * Class StoreCouponIssueUser
  13. * @package app\models\store
  14. */
  15. class StoreCouponIssueUser extends BaseModel
  16. {
  17. /**
  18. * 模型名称
  19. * @var string
  20. */
  21. protected $name = 'store_coupon_issue_user';
  22. use ModelTrait;
  23. public static function addUserIssue($uid,$issue_coupon_id)
  24. {
  25. $add_time = time();
  26. return self::create(compact('uid','issue_coupon_id','add_time'));
  27. }
  28. }