1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- <?php
- namespace app\models\auction;
- use crmeb\traits\ModelTrait;
- use crmeb\basic\BaseModel;
- class AuctionBooking extends BaseModel
- {
- use ModelTrait;
- protected $pk = 'id';
- protected $name = 'auction_booking';
- protected $autoWriteTimestamp = true;
-
- public static function booKing($uid, $auction)
- {
- self::create([
- 'uid' => $uid,
- 'anticipate' => $auction['anticipate'],
- 'auction_id' => $auction['id'],
- 'frequency' => $auction['frequency'],
- 'create_time' => time()
- ]);
- }
- }
|