order_ctrl = new classes\OrderCtrl(); error_log('basesdk new'); } protected function setChannel($channel) { $this->channel = $channel; } public function preOrder() { } public function payNotify() { } public function queryOrderInfo() { $order_info = $this->order_ctrl->getOrderByCpOrderId($_REQUEST['cp_orderid']); if (!$order_info) { phpcommon\sendError(1, '订单不存在'); } echo json_encode(array( 'errcode' => 0, 'errmsg' => '', 'cp_orderid' => $order_info['cp_orderid'], 'status' => $order_info['status'], )); } }