From 09a98d33fb7521caff9e7dd4494981e7e8fcd5a6 Mon Sep 17 00:00:00 2001
From: zm <zm@iemsoft.cn>
Date: Thu, 25 Mar 2021 15:59:20 +0800
Subject: [PATCH] 导入卡号和密码功能完成,未测试

---
 plugins/exchange/controllers/mall/LibraryController.php |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/plugins/exchange/controllers/mall/LibraryController.php b/plugins/exchange/controllers/mall/LibraryController.php
index 9bceaaf..d9b9067 100644
--- a/plugins/exchange/controllers/mall/LibraryController.php
+++ b/plugins/exchange/controllers/mall/LibraryController.php
@@ -96,4 +96,16 @@
             return $this->asJson($form->import());
         }
     }
+
+    
+    // 模板下载和导出数据
+    public function actionExport()
+    {
+        if (\Yii::$app->request->isPost) {
+            $form = new ListForm();
+            $form->attributes = \Yii::$app->request->post();
+            return $this->asJson($form->export());
+        }
+    }
+
 }

--
Gitblit v1.8.0