1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- <?php
- /**
- *
- * @author: xaboy<365615158@qq.com>
- * @day: 2017/11/02
- */
- namespace app\models\auction;
- use crmeb\traits\ModelTrait;
- use crmeb\basic\BaseModel;
- /**
- * 预约 Model
- * Class WechatNews
- * @package app\admin\model\wechat
- */
- class AuctionBooking extends BaseModel
- {
- use ModelTrait;
- protected $pk = 'id';
- protected $name = 'auction_booking';
- protected $autoWriteTimestamp = true;
- /**
- * 添加预约记录
- * @param $uid
- * @param $auction
- * @return void
- */
- public static function booKing($uid, $auction)
- {
- self::create([
- 'uid' => $uid,
- 'anticipate' => $auction['anticipate'],
- 'auction_id' => $auction['id'],
- 'frequency' => $auction['frequency'],
- 'create_time' => time()
- ]);
- }
- }
|