<?php $intModelId and $intModelId and $intModelId = intval($intModelId) or $intModelId = 0; $arrServiceModels = ServiceClass::getEnabledServiceModelList(); $strUrl = "index.php?do=user&view=transaction&op=sold"; $intModelId and $strUrl .= '&intModelId=' . intval($intModelId); $strStatus and $strUrl .= "&strStatus=" . strval($strStatus); $strOrder and $strUrl .= "&strOrder=" . strval($strOrder); $strTitle and $strUrl .= "&strTitle=" . strval($strTitle); $arrListOrder = array('b.order_id desc' => '编号降序', 'b.order_id asc' => '编号升序'); if ($intModelId) { $arrStatus = call_user_func(array($arrServiceModels[$intModelId]['model_code'] . '_shop_class', 'get_order_status')); } else { $arrStatus1 = call_user_func(array($arrServiceModels[6]['model_code'] . '_shop_class', 'get_order_status')); $arrStatus2 = call_user_func(array($arrServiceModels[7]['model_code'] . '_shop_class', 'get_order_status')); $arrStatus = array_merge($arrStatus1, $arrStatus2); } if (isset($action)) { if ($intModelId) { $className = $arrServiceModels[$intModelId]['model_code'] . '_shop_class'; } else { $orderInfo = db_factory::get_one("select * from " . TABLEPRE . "witkey_order where order_id = " . intval($orderId)); if (!in_array($orderInfo['model_id'], array(6, 7))) { kekezu::show_msg("订单不存在", null, null, null, 'fail'); } $className = $arrServiceModels[$orderInfo['model_id']]['model_code'] . '_shop_class'; } $objShop = new $className(); $resText = $objShop->dispose_order($orderId, $action); unset($objShop); if (true === $resText) {