如何解决“ System.Double有太多尺寸”的问题

时间:2019-06-20 17:00:23

标签: c# .net matlab

我想将public function order(\Magento\Payment\Model\InfoInterface $payment, $amount) { $order = $payment->getOrder(); $helper = $this->_spsHelper; $spsTransaccionesHelper = $this->_spsTransaccionesHelper; $customerSession = $this->_customerSession; $infoOperacionSps = $this->_spsHelper->getInfoTransaccionSPS(); if(!$infoOperacionSps){ return $this; } \Magento\Framework\App\ObjectManager::getInstance() ->get(\Psr\Log\LoggerInterface::class)->debug('DECIDIR2 - MODEL PAYMENT - InfoOperacion: '.print_r($infoOperacionSps, true)); \Magento\Framework\App\ObjectManager::getInstance() ->get(\Psr\Log\LoggerInterface::class)->debug('DECIDIR2 - MODEL PAYMENT - Version plugin: '.$this->_moduleList ->getOne(self::MODULE_NAME)['setup_version']); /*\Magento\Framework\App\ObjectManager::getInstance() ->get(\Psr\Log\LoggerInterface::class)->debug( 'infoOperacionSps payment model : '. print_r($infoOperacionSps, true) ); \Magento\Framework\App\ObjectManager::getInstance() ->get(\Psr\Log\LoggerInterface::class)->debug( 'infoOperacionSps payment model : '. $order->getIncrementId() ); \Magento\Framework\App\ObjectManager::getInstance() ->get(\Psr\Log\LoggerInterface::class)->debug( 'infoOperacionSps payment model : '. $order->getCustomerId() ); \Magento\Framework\App\ObjectManager::getInstance() ->get(\Psr\Log\LoggerInterface::class)->debug( 'getCustomer()->getId : '. $order->getCustomerId() );*/ $cuotaCollection = $this->_cuotaFactory->create() ->getCollection() ->addFieldToFilter('plan_pago_id',['eq'=>$infoOperacionSps['planPago']]) ->addFieldToFilter('cuota',['eq'=>$infoOperacionSps['cuota']]); $cuotaData=$cuotaCollection->getData(); \Magento\Framework\App\ObjectManager::getInstance() ->get(\Psr\Log\LoggerInterface::class)->debug( 'getCcuotaData: '. print_r($cuotaData, true) ); if( empty($cuotaData[0]['cuota_gateway']) ){ $cantidad_cuotas = $cuotaData[0]['cuota']; }else{ $cantidad_cuotas = $cuotaData[0]['cuota_gateway']; } $payment_type = "single"; $merchant=""; $planPagoDataCollection = $this->_planPagoFactory->create() ->getCollection() ->addFieldToFilter('plan_pago_id',['eq'=>$infoOperacionSps['planPago']]); $planPagoData=$planPagoDataCollection->getData(); if( !empty($planPagoData[0]['merchant']) ){ $merchant = $planPagoData[0]['merchant']; } if(!$order->getCustomerId()){ //Usuario guest $customerId='guest'; }else{ $customerId=$order->getCustomerId(); } $ws = $this->_webservice; $data = array( "site_transaction_id" => $order->getIncrementId(), "token" => $infoOperacionSps['tokenPago'], "payment_method_id" => (int)$infoOperacionSps['tarjeta_id'], "amount" => number_format($amount, 2, ".", ""), "bin" => $infoOperacionSps['bin'], "currency" => "ARS", "installments" => (int)$cantidad_cuotas, "description" => "Orden ".$order->getIncrementId(), "payment_type" => $payment_type, "sub_payments" => array(), "fraud_detection" => array() 转换为C#数组。但是我不能使用MWNumericArrayToArray()函数。我不知道哪里出了问题。

我想将ToVector()转到数组MWNumericArray abs_U_lv,并使用AToArray()。这两个功能都无法使用。

ToVector(MWNumericArray.component.Real)
  

System.TypeLoadException:“” System.Double [,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, ”,“ 、、、、、、、、、、、]“ der Assembly” mscorlib,Version = 4.0.0.0,Culture = neutral,PublicKeyToken = b77a5c561934e089“。

0 个答案:

没有答案