* @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() ]); } }