/** * 增加工单 * @return void */ public function addOrder($order) { // $this->_orderNum[$order['vip_level']]++;//vip几级的工单数+1 if (!$order['room_id']) { return false; } //如果没有房间ID,就跳过. $orderArr = array(); //防止有过多的字段被存进对象,减小对象文件的大小 $orderArr['game_type_id'] = $order['game_type_id']; $orderArr['work_order_id'] = $order['Id']; $orderArr['vip_level'] = $order['vip_level']; $orderArr['room_id'] = $order['room_id']; $orderArr['operator_id'] = $order['operator_id']; $orderArr['create_time'] = CURRENT_TIME; $this->_modelAutoOrderQueue = $this->_getGlobalData('Model_AutoOrderQueue', 'object'); $this->_modelAutoOrderQueue->add($orderArr); }