浏览代码

feature/EK-3320

ryan 1 月之前
父节点
当前提交
96d39d3650
共有 2 个文件被更改,包括 1 次插入2 次删除
  1. 0 1
      backendApi/modules/v1/controllers/ShopController.php
  2. 1 1
      common/libs/export/BaseExport.php

+ 0 - 1
backendApi/modules/v1/controllers/ShopController.php

@@ -850,7 +850,6 @@ class ShopController extends BaseController {
         }
 
         $form = new ShopExportForm();
-        Yii::$app->cache->flush();
         $result = $form->run($filter, \Yii::t('ctx', 'actionOrderInvoiceExport'));
         if (!$result) {
             return static::notice(Form::formatErrorsForApi($form->getErrors()), 400);

+ 1 - 1
common/libs/export/BaseExport.php

@@ -1619,7 +1619,7 @@ ORDER;
             $totalAmount = 0;
             $paymentStatus = 'Paid'; // 支付状态
             $invoiceRemark = $oderList[0]['INVOICE_REMARK'];
-            $paymentMethod = $oderList[0]['METHOD']??''; // 支付方式
+            $paymentMethod = $oderList[0]['METHOD']??'Cash'; // 支付方式
             $currency = Currency::findOne($oderList[0]['CURRENCY_ID'])['CODE'] ?? '';;
             $invoiceNo = $oderList[0]['INVOICE_NO'];