From 641a1cf576a0931341e979fcb021728a5f208868 Mon Sep 17 00:00:00 2001 From: shengchanzhe <179998674@qq.com> Date: Fri, 22 Dec 2023 10:26:19 +0800 Subject: [PATCH 01/44] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E9=93=B6=E8=A1=8C?= =?UTF-8?q?=E5=8D=A1=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/api/store/merchant/MerchantIntention.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/controller/api/store/merchant/MerchantIntention.php b/app/controller/api/store/merchant/MerchantIntention.php index 8dbe29ac..1e429c88 100644 --- a/app/controller/api/store/merchant/MerchantIntention.php +++ b/app/controller/api/store/merchant/MerchantIntention.php @@ -135,6 +135,7 @@ class MerchantIntention extends BaseController 'village_id', 'is_nmsc', 'bank_username', + 'bank_code', 'bank_opening', 'bank_front', 'bank_back', @@ -175,6 +176,7 @@ class MerchantIntention extends BaseController } $intenInfo['bank_username'] = $data['bank_username']; $intenInfo['bank_opening'] = $data['bank_opening']; + $intenInfo['bank_code'] = $data['bank_code']; $intenInfo['bank_front'] = $data['bank_front']; $intenInfo['bank_back'] = $data['bank_back']; $intenInfo['cardno_front'] = $data['cardno_front']; @@ -205,6 +207,7 @@ class MerchantIntention extends BaseController 'address' => $intenInfo['address'] ?? '', 'bank_username' => $data['bank_username'] ?? '', 'bank_opening' => $data['bank_opening'] ?? '', + 'bank_code' => $data['bank_code'] ?? '', 'bank_front' => $data['bank_front'] ?? '', 'bank_back' => $data['bank_back'] ?? '', 'cardno_front' => $data['cardno_front'] ?? '', From 12f73c0934015a5dc3d373ded27217b66dc7c84c Mon Sep 17 00:00:00 2001 From: chenbo <709206448@qq.com> Date: Fri, 22 Dec 2023 14:28:51 +0800 Subject: [PATCH 02/44] =?UTF-8?q?=E9=95=87=E5=86=9C=E7=A7=91=E4=B8=8B?= =?UTF-8?q?=E7=9A=84=E4=B8=89=E8=BD=AE=E7=AD=96=E5=88=92=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E5=81=9A=E7=A9=BA=E6=8C=87=E9=92=88=E5=85=BC=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/api/dataview/Logistics.php | 28 +++++++++++++++++++---- 1 file changed, 24 insertions(+), 4 deletions(-) diff --git a/app/controller/api/dataview/Logistics.php b/app/controller/api/dataview/Logistics.php index 7bb44361..d5ecf841 100755 --- a/app/controller/api/dataview/Logistics.php +++ b/app/controller/api/dataview/Logistics.php @@ -37,26 +37,39 @@ class Logistics extends BaseController { // 查区县的镇农科公司 $list = []; - $companyList = Db::connect('work_task')->name('company')->where(['area' => $this->areaCode, 'company_type'=>41])->select()->toArray(); + $companyList = Db::connect('work_task')->name('company')->where('id', 69)->where(['area' => $this->areaCode, 'company_type'=>41])->select()->toArray(); foreach ($companyList as $company) { // 先从供销系统 查出镇下边的所有配送员-小组服务公司的负责人 $serviceGroupCompanyIds = Db::connect('work_task')->name('company') ->where(['street'=> $company['street'], 'company_type'=>18]) ->column('id'); - + if (empty($serviceGroupCompanyIds)) { + continue; + } $userIdList = Db::connect('work_task')->name('user') ->whereIn('company_id', $serviceGroupCompanyIds) ->where(['group_id'=>5]) - ->column('id'); + ->field('id, nickname')->select()->toArray(); + + if (empty($userIdList)) { + continue; + } // 从物流系统 查物流订单排序 确定谁是 镇辖区内配送订单最多的配送员 $topCourier = Db::connect('logistics')->name('logistics') ->field(['courier_id','courier_name','COUNT(order_id) AS order_count']) - ->whereIn('courier_id', $userIdList) + ->whereIn('courier_id', array_column($userIdList, 'id')) ->group('courier_id') ->order('order_count DESC') ->find(); + + if (!empty($userIdList) && empty($topCourier)) { + $topCourier['courier_id'] = $userIdList[0]['id']; + $topCourier['courier_name'] = $userIdList[0]['nickname']; + $topCourier['order_count'] = 0; + } + // 小组公司没有配送员或是没有三轮车 if (empty($topCourier)) { continue; @@ -65,8 +78,15 @@ class Logistics extends BaseController // 三轮车车牌号 根据配送员id反查公司id,公司id反查车牌号 $courier = Db::connect('work_task')->name('user')->where(['id'=>$topCourier['courier_id']])->find(); + if (empty($courier)) { + continue; + } $vehicleRent = Db::connect('work_task')->name('vehicle_rent')->where(['rent_company_id'=>$courier['company_id']])->find(); + if (empty($vehicleRent)) { + continue; + } + $topCourier['id'] = $vehicleRent['car_id']; $topCourier['license'] = $vehicleRent['car_license']; $topCourier['area_code'] = $courier['area']; From 3a485e846d9867d4e49a23e50b385b5d794a9995 Mon Sep 17 00:00:00 2001 From: chenbo <709206448@qq.com> Date: Fri, 22 Dec 2023 14:35:56 +0800 Subject: [PATCH 03/44] =?UTF-8?q?=E4=B8=89=E8=BD=AE=E8=BD=A6=E7=89=A9?= =?UTF-8?q?=E6=B5=81=E8=AF=A6=E6=83=85=E7=A9=BA=E6=8C=87=E9=92=88=E5=85=BC?= =?UTF-8?q?=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/api/dataview/Logistics.php | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/app/controller/api/dataview/Logistics.php b/app/controller/api/dataview/Logistics.php index d5ecf841..d55642a1 100755 --- a/app/controller/api/dataview/Logistics.php +++ b/app/controller/api/dataview/Logistics.php @@ -148,17 +148,24 @@ class Logistics extends BaseController // 第二页 物流信息统计 public function logisticsCount() { + $topCourier = []; + // 查询镇辖区内配送订单最多的配送员 // 先从供销系统 查出镇下边的所有配送员-小组服务公司的负责人 $serviceGroupCompanyIds = Db::connect('work_task')->name('company') ->where(['street'=> $this->streetCode, 'company_type'=>18]) ->column('id'); + if (empty($serviceGroupCompanyIds)) { + return app('json')->success($topCourier); + } $userIdList = Db::connect('work_task')->name('user') ->whereIn('company_id', $serviceGroupCompanyIds) ->where(['group_id'=>5]) ->column('id'); - + if (empty($userIdList)) { + return app('json')->success($topCourier); + } // 从物流系统 查物流订单排序 确定谁是 镇辖区内配送订单最多的配送员 $topCourier = Db::connect('logistics')->name('logistics') ->field(['courier_id','courier_name','COUNT(order_id) AS order_count']) @@ -166,6 +173,17 @@ class Logistics extends BaseController ->group('courier_id') ->order('order_count DESC') ->find(); + + if (!empty($userIdList) && empty($topCourier)) { + $user = Db::connect('work_task')->name('user')->where('id', $userIdList[0])->find(); + $topCourier['courier_id'] = $user['id']; + $topCourier['courier_name'] = $user['nickname']; + $topCourier['order_count'] = 0; + } + + if (empty($topCourier)) { + return app('json')->success($topCourier); + } // 返查配送员的物流配送订单统计信息 // 待取货数 $topCourier['pending_order_count'] = Db::connect('logistics')->name('logistics')->where(['status'=>0, 'courier_id'=>$topCourier['courier_id']])->count(); From 642aa37fbc837bbe7a82ee65f44fa243574b1f9b Mon Sep 17 00:00:00 2001 From: chenbo <709206448@qq.com> Date: Fri, 22 Dec 2023 14:39:16 +0800 Subject: [PATCH 04/44] =?UTF-8?q?=E4=B8=89=E8=BD=AE=E8=BD=A6=E6=9C=80?= =?UTF-8?q?=E6=96=B0=E8=AE=A2=E5=8D=95=E5=92=8C=E6=9C=80=E8=BF=9110?= =?UTF-8?q?=E7=AC=94=E8=AE=A2=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/api/dataview/Logistics.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/controller/api/dataview/Logistics.php b/app/controller/api/dataview/Logistics.php index d55642a1..342651cf 100755 --- a/app/controller/api/dataview/Logistics.php +++ b/app/controller/api/dataview/Logistics.php @@ -205,9 +205,13 @@ class Logistics extends BaseController public function logisticsMapCount() { $courierId = $this->request->param('courier_id'); + $latestOrder = []; + $latestTenOrder = []; // 最近一次取货地址 最新一笔的配送中订单的取货地址 $latestLogistics = Db::connect('logistics')->name('logistics')->where(['status'=>1, 'courier_id' => $courierId])->order('id', 'desc')->find(); - + if (empty($latestLogistics)) { + return app('json')->success(compact('latestOrder', 'latestTenOrder')); + } $latestOrderInfo = Db::name('store_order')->where(['order_id'=>$latestLogistics['order_id']])->find(); $merchant = Db::name('merchant')->where(['mer_id'=>$latestOrderInfo['mer_id']])->find(); From dd44ea63ce28aa6dd80ea73b0a14e4c95f101ca7 Mon Sep 17 00:00:00 2001 From: chenbo <709206448@qq.com> Date: Fri, 22 Dec 2023 17:02:37 +0800 Subject: [PATCH 05/44] =?UTF-8?q?fixed=20=E9=85=8D=E9=80=81=E5=95=86?= =?UTF-8?q?=E5=93=81=E6=8E=92=E8=A1=8C=E6=A6=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/api/dataview/Order.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controller/api/dataview/Order.php b/app/controller/api/dataview/Order.php index 2730f1ef..72f15ef0 100755 --- a/app/controller/api/dataview/Order.php +++ b/app/controller/api/dataview/Order.php @@ -177,7 +177,7 @@ class Order extends BaseController { // 查到镇级 if ($this->areaCode != '' && $this->streetCode != '') { - $list = Db::query("SELECT p.store_name, SUM(o.`total_num`) AS total_quantity + $list = Db::query("SELECT p.store_name, SUM(op.`product_num`) AS total_quantity FROM `eb_store_product` p JOIN `eb_store_order_product` op ON p.product_id = op.product_id JOIN `eb_store_order` o ON o.`order_id` = op.`order_id` @@ -188,7 +188,7 @@ class Order extends BaseController LIMIT 50"); } else { // 查到区县级 - $list = Db::query("SELECT p.store_name, SUM(o.`total_num`) AS total_quantity + $list = Db::query("SELECT p.store_name, SUM(op.`product_num`) AS total_quantity FROM `eb_store_product` p JOIN `eb_store_order_product` op ON p.product_id = op.product_id JOIN `eb_store_order` o ON o.`order_id` = op.`order_id` From 9398dfc214d8b1ed3266fb1c9bad4dfe0e74790c Mon Sep 17 00:00:00 2001 From: chenbo <709206448@qq.com> Date: Fri, 22 Dec 2023 17:07:09 +0800 Subject: [PATCH 06/44] =?UTF-8?q?=E4=BB=8A=E6=97=A5=E8=AE=A2=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/api/dataview/Order.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controller/api/dataview/Order.php b/app/controller/api/dataview/Order.php index 72f15ef0..0c4ee527 100755 --- a/app/controller/api/dataview/Order.php +++ b/app/controller/api/dataview/Order.php @@ -43,7 +43,7 @@ class Order extends BaseController public function currOrderInfo() { try { - $day = '2023-11-29'; // today + $day = 'today'; // today $currOrderCountQuery = Db::name('store_order')->alias('o') ->field(['o.order_sn', 'o.real_name', 'o.user_phone', 'o.user_address', 'o.user_address_code', 'p.store_name', 'm.mer_name', 'o.create_time', 'o.status']) ->leftJoin('product_order_log og', 'o.order_id = og.order_id') From e6df1e710b626df6cce1e98f4458c0d6d9126151 Mon Sep 17 00:00:00 2001 From: shengchanzhe <179998674@qq.com> Date: Fri, 22 Dec 2023 18:04:59 +0800 Subject: [PATCH 07/44] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/api/Common.php | 50 + app/controller/api/store/product/StoreSpu.php | 6 +- composer.json | 3 +- composer.lock | 256 +- route/api.php | 2 + vendor/alibabacloud/ocr-20191230/.gitignore | 15 + vendor/alibabacloud/ocr-20191230/.php_cs.dist | 65 + vendor/alibabacloud/ocr-20191230/ChangeLog.md | 70 + vendor/alibabacloud/ocr-20191230/LICENSE | 201 + vendor/alibabacloud/ocr-20191230/README-CN.md | 35 + vendor/alibabacloud/ocr-20191230/README.md | 35 + vendor/alibabacloud/ocr-20191230/autoload.php | 17 + .../alibabacloud/ocr-20191230/composer.json | 37 + .../src/Models/GetAsyncJobResultRequest.php | 49 + .../src/Models/GetAsyncJobResultResponse.php | 74 + .../Models/GetAsyncJobResultResponseBody.php | 62 + .../GetAsyncJobResultResponseBody/data.php | 103 + .../RecognizeBankCardAdvanceRequest.php | 50 + .../src/Models/RecognizeBankCardRequest.php | 49 + .../src/Models/RecognizeBankCardResponse.php | 74 + .../Models/RecognizeBankCardResponseBody.php | 62 + .../RecognizeBankCardResponseBody/data.php | 75 + .../RecognizeBusinessCardAdvanceRequest.php | 50 + .../Models/RecognizeBusinessCardRequest.php | 49 + .../Models/RecognizeBusinessCardResponse.php | 74 + .../RecognizeBusinessCardResponseBody.php | 62 + .../data.php | 145 + ...RecognizeBusinessLicenseAdvanceRequest.php | 50 + .../RecognizeBusinessLicenseRequest.php | 49 + .../RecognizeBusinessLicenseResponse.php | 74 + .../RecognizeBusinessLicenseResponseBody.php | 62 + .../data.php | 215 + .../data/QRCode.php | 91 + .../data/emblem.php | 91 + .../data/stamp.php | 91 + .../data/title.php | 91 + .../RecognizeCharacterAdvanceRequest.php | 78 + .../src/Models/RecognizeCharacterRequest.php | 77 + .../src/Models/RecognizeCharacterResponse.php | 74 + .../Models/RecognizeCharacterResponseBody.php | 62 + .../RecognizeCharacterResponseBody/data.php | 60 + .../data/results.php | 74 + .../data/results/textRectangles.php | 105 + .../RecognizeDriverLicenseAdvanceRequest.php | 64 + .../Models/RecognizeDriverLicenseRequest.php | 63 + .../Models/RecognizeDriverLicenseResponse.php | 74 + .../RecognizeDriverLicenseResponseBody.php | 62 + .../data.php | 61 + .../data/backResult.php | 87 + .../data/faceResult.php | 153 + .../RecognizeDrivingLicenseAdvanceRequest.php | 64 + .../Models/RecognizeDrivingLicenseRequest.php | 63 + .../RecognizeDrivingLicenseResponse.php | 74 + .../RecognizeDrivingLicenseResponseBody.php | 62 + .../data.php | 61 + .../data/backResult.php | 169 + .../data/faceResult.php | 163 + .../RecognizeIdentityCardAdvanceRequest.php | 64 + .../Models/RecognizeIdentityCardRequest.php | 63 + .../Models/RecognizeIdentityCardResponse.php | 74 + .../RecognizeIdentityCardResponseBody.php | 62 + .../data.php | 61 + .../data/backResult.php | 75 + .../data/frontResult.php | 174 + .../data/frontResult/cardAreas.php | 63 + .../data/frontResult/faceRectVertices.php | 63 + .../data/frontResult/faceRectangle.php | 75 + .../data/frontResult/faceRectangle/center.php | 63 + .../data/frontResult/faceRectangle/size.php | 63 + .../RecognizeLicensePlateAdvanceRequest.php | 50 + .../Models/RecognizeLicensePlateRequest.php | 49 + .../Models/RecognizeLicensePlateResponse.php | 74 + .../RecognizeLicensePlateResponseBody.php | 62 + .../data.php | 60 + .../data/plates.php | 125 + .../data/plates/positions.php | 63 + .../data/plates/roi.php | 91 + .../src/Models/RecognizePdfAdvanceRequest.php | 50 + .../src/Models/RecognizePdfRequest.php | 49 + .../src/Models/RecognizePdfResponse.php | 74 + .../src/Models/RecognizePdfResponseBody.php | 62 + .../Models/RecognizePdfResponseBody/data.php | 144 + .../data/wordsInfo.php | 142 + .../data/wordsInfo/positions.php | 63 + .../Models/RecognizeQrCodeAdvanceRequest.php | 62 + .../RecognizeQrCodeAdvanceRequest/tasks.php | 50 + .../src/Models/RecognizeQrCodeRequest.php | 62 + .../Models/RecognizeQrCodeRequest/tasks.php | 49 + .../src/Models/RecognizeQrCodeResponse.php | 74 + .../Models/RecognizeQrCodeResponseBody.php | 62 + .../RecognizeQrCodeResponseBody/data.php | 60 + .../data/elements.php | 88 + .../data/elements/results.php | 93 + .../RecognizeQuotaInvoiceAdvanceRequest.php | 50 + .../Models/RecognizeQuotaInvoiceRequest.php | 49 + .../Models/RecognizeQuotaInvoiceResponse.php | 74 + .../RecognizeQuotaInvoiceResponseBody.php | 62 + .../data.php | 143 + .../data/content.php | 101 + .../data/keyValueInfos.php | 98 + .../data/keyValueInfos/valuePositions.php | 63 + .../Models/RecognizeStampAdvanceRequest.php | 50 + .../src/Models/RecognizeStampRequest.php | 49 + .../src/Models/RecognizeStampResponse.php | 74 + .../src/Models/RecognizeStampResponseBody.php | 62 + .../RecognizeStampResponseBody/data.php | 60 + .../data/results.php | 86 + .../data/results/generalText.php | 61 + .../data/results/roi.php | 91 + .../data/results/text.php | 61 + .../Models/RecognizeTableAdvanceRequest.php | 120 + .../src/Models/RecognizeTableRequest.php | 119 + .../src/Models/RecognizeTableResponse.php | 74 + .../src/Models/RecognizeTableResponseBody.php | 62 + .../RecognizeTableResponseBody/data.php | 74 + .../data/tables.php | 88 + .../data/tables/tableRows.php | 60 + .../data/tables/tableRows/tableColumns.php | 133 + .../RecognizeTaxiInvoiceAdvanceRequest.php | 50 + .../Models/RecognizeTaxiInvoiceRequest.php | 49 + .../Models/RecognizeTaxiInvoiceResponse.php | 74 + .../RecognizeTaxiInvoiceResponseBody.php | 62 + .../RecognizeTaxiInvoiceResponseBody/data.php | 60 + .../data/invoices.php | 87 + .../data/invoices/invoiceRoi.php | 91 + .../data/invoices/items.php | 62 + .../data/invoices/items/itemRoi.php | 75 + .../data/invoices/items/itemRoi/center.php | 63 + .../data/invoices/items/itemRoi/size.php | 63 + .../RecognizeTicketInvoiceAdvanceRequest.php | 50 + .../Models/RecognizeTicketInvoiceRequest.php | 49 + .../Models/RecognizeTicketInvoiceResponse.php | 74 + .../RecognizeTicketInvoiceResponseBody.php | 62 + .../data.php | 130 + .../data/results.php | 124 + .../data/results/content.php | 157 + .../data/results/keyValueInfos.php | 100 + .../results/keyValueInfos/valuePositions.php | 63 + .../data/results/sliceRectangle.php | 63 + .../RecognizeTrainTicketAdvanceRequest.php | 50 + .../Models/RecognizeTrainTicketRequest.php | 49 + .../Models/RecognizeTrainTicketResponse.php | 74 + .../RecognizeTrainTicketResponseBody.php | 62 + .../RecognizeTrainTicketResponseBody/data.php | 135 + .../RecognizeVATInvoiceAdvanceRequest.php | 64 + .../src/Models/RecognizeVATInvoiceRequest.php | 63 + .../Models/RecognizeVATInvoiceResponse.php | 74 + .../RecognizeVATInvoiceResponseBody.php | 62 + .../RecognizeVATInvoiceResponseBody/data.php | 61 + .../data/box.php | 355 + .../data/content.php | 301 + .../Models/RecognizeVINCodeAdvanceRequest.php | 50 + .../src/Models/RecognizeVINCodeRequest.php | 49 + .../src/Models/RecognizeVINCodeResponse.php | 74 + .../Models/RecognizeVINCodeResponseBody.php | 62 + .../RecognizeVINCodeResponseBody/data.php | 49 + .../RecognizeVideoCharacterAdvanceRequest.php | 50 + .../Models/RecognizeVideoCharacterRequest.php | 49 + .../RecognizeVideoCharacterResponse.php | 74 + .../RecognizeVideoCharacterResponseBody.php | 74 + .../data.php | 102 + .../data/frames.php | 74 + .../data/frames/elements.php | 86 + .../data/frames/elements/textRectangles.php | 105 + vendor/alibabacloud/ocr-20191230/src/Ocr.php | 2496 ++++++ .../openplatform-20191219/.gitignore | 15 + .../openplatform-20191219/.php_cs.dist | 65 + .../openplatform-20191219/ChangeLog.md | 15 + .../openplatform-20191219/LICENSE | 201 + .../openplatform-20191219/README-CN.md | 35 + .../openplatform-20191219/README.md | 35 + .../openplatform-20191219/autoload.php | 17 + .../openplatform-20191219/composer.json | 33 + .../src/Models/AuthorizeFileUploadRequest.php | 59 + .../Models/AuthorizeFileUploadResponse.php | 74 + .../AuthorizeFileUploadResponseBody.php | 131 + .../src/OpenPlatform.php | 89 + vendor/alibabacloud/tea-fileform/.gitignore | 12 + vendor/alibabacloud/tea-fileform/.php_cs.dist | 65 + vendor/alibabacloud/tea-fileform/README-CN.md | 31 + vendor/alibabacloud/tea-fileform/README.md | 31 + .../alibabacloud/tea-fileform/composer.json | 44 + vendor/alibabacloud/tea-fileform/phpunit.xml | 32 + .../tea-fileform/src/FileForm.php | 16 + .../tea-fileform/src/FileForm/FileField.php | 22 + .../tea-fileform/src/FileFormStream.php | 321 + .../tea-fileform/tests/FileFormTest.php | 81 + .../tea-fileform/tests/bootstrap.php | 3 + vendor/alibabacloud/tea-oss-sdk/.gitignore | 15 + vendor/alibabacloud/tea-oss-sdk/.php_cs.dist | 65 + vendor/alibabacloud/tea-oss-sdk/LICENSE | 13 + vendor/alibabacloud/tea-oss-sdk/README-CN.md | 31 + vendor/alibabacloud/tea-oss-sdk/README.md | 31 + vendor/alibabacloud/tea-oss-sdk/autoload.php | 17 + vendor/alibabacloud/tea-oss-sdk/composer.json | 34 + vendor/alibabacloud/tea-oss-sdk/src/OSS.php | 7255 ++++++++++++++++ .../src/OSS/AbortMultipartUploadRequest.php | 82 + .../AbortMultipartUploadRequest/filter.php | 50 + .../src/OSS/AbortMultipartUploadResponse.php | 50 + .../src/OSS/AppendObjectRequest.php | 126 + .../src/OSS/AppendObjectRequest/filter.php | 50 + .../src/OSS/AppendObjectRequest/header.php | 161 + .../src/OSS/AppendObjectResponse.php | 80 + .../tea-oss-sdk/src/OSS/CallbackRequest.php | 51 + .../tea-oss-sdk/src/OSS/CallbackResponse.php | 50 + .../OSS/CompleteMultipartUploadRequest.php | 97 + .../CompleteMultipartUploadRequest/body.php | 51 + .../body/completeMultipartUpload.php | 62 + .../body/completeMultipartUpload/part.php | 63 + .../CompleteMultipartUploadRequest/filter.php | 64 + .../OSS/CompleteMultipartUploadResponse.php | 66 + .../completeMultipartUploadResult.php | 105 + .../tea-oss-sdk/src/OSS/Config.php | 223 + .../tea-oss-sdk/src/OSS/CopyObjectRequest.php | 82 + .../src/OSS/CopyObjectRequest/header.php | 204 + .../src/OSS/CopyObjectResponse.php | 66 + .../CopyObjectResponse/copyObjectResult.php | 63 + .../src/OSS/DeleteBucketCORSRequest.php | 51 + .../src/OSS/DeleteBucketCORSResponse.php | 50 + .../src/OSS/DeleteBucketEncryptionRequest.php | 51 + .../OSS/DeleteBucketEncryptionResponse.php | 50 + .../src/OSS/DeleteBucketLifecycleRequest.php | 51 + .../src/OSS/DeleteBucketLifecycleResponse.php | 50 + .../src/OSS/DeleteBucketLoggingRequest.php | 51 + .../src/OSS/DeleteBucketLoggingResponse.php | 50 + .../src/OSS/DeleteBucketRequest.php | 51 + .../src/OSS/DeleteBucketResponse.php | 50 + .../src/OSS/DeleteBucketTagsRequest.php | 67 + .../OSS/DeleteBucketTagsRequest/filter.php | 50 + .../src/OSS/DeleteBucketTagsResponse.php | 50 + .../src/OSS/DeleteBucketWebsiteRequest.php | 51 + .../src/OSS/DeleteBucketWebsiteResponse.php | 50 + .../src/OSS/DeleteLiveChannelRequest.php | 66 + .../src/OSS/DeleteLiveChannelResponse.php | 50 + .../src/OSS/DeleteMultipleObjectsRequest.php | 82 + .../OSS/DeleteMultipleObjectsRequest/body.php | 51 + .../body/delete.php | 76 + .../body/delete/object.php | 49 + .../DeleteMultipleObjectsRequest/header.php | 79 + .../src/OSS/DeleteMultipleObjectsResponse.php | 66 + .../deleteResult.php | 90 + .../deleteResult/deleted.php | 49 + .../src/OSS/DeleteObjectRequest.php | 66 + .../src/OSS/DeleteObjectResponse.php | 50 + .../src/OSS/DeleteObjectTaggingRequest.php | 66 + .../src/OSS/DeleteObjectTaggingResponse.php | 50 + .../src/OSS/GetBucketAclRequest.php | 51 + .../src/OSS/GetBucketAclResponse.php | 66 + .../accessControlPolicy.php | 67 + .../accessControlPolicy/accessControlList.php | 49 + .../accessControlPolicy/owner.php | 63 + .../src/OSS/GetBucketCORSRequest.php | 51 + .../src/OSS/GetBucketCORSResponse.php | 66 + .../cORSConfiguration.php | 62 + .../cORSConfiguration/cORSRule.php | 49 + .../src/OSS/GetBucketEncryptionRequest.php | 51 + .../src/OSS/GetBucketEncryptionResponse.php | 66 + .../serverSideEncryptionRule.php | 51 + .../applyServerSideEncryptionByDefault.php | 63 + .../src/OSS/GetBucketInfoRequest.php | 51 + .../src/OSS/GetBucketInfoResponse.php | 66 + .../OSS/GetBucketInfoResponse/bucketInfo.php | 51 + .../bucketInfo/bucket.php | 179 + .../bucketInfo/bucket/accessControlList.php | 49 + .../bucketInfo/bucket/owner.php | 63 + .../src/OSS/GetBucketLifecycleRequest.php | 51 + .../src/OSS/GetBucketLifecycleResponse.php | 66 + .../lifecycleConfiguration.php | 62 + .../lifecycleConfiguration/rule.php | 141 + .../rule/abortMultipartUpload.php | 63 + .../rule/expiration.php | 63 + .../lifecycleConfiguration/rule/tag.php | 63 + .../rule/transition.php | 63 + .../src/OSS/GetBucketLocationRequest.php | 51 + .../src/OSS/GetBucketLocationResponse.php | 65 + .../src/OSS/GetBucketLoggingRequest.php | 51 + .../src/OSS/GetBucketLoggingResponse.php | 66 + .../bucketLoggingStatus.php | 51 + .../bucketLoggingStatus/loggingEnabled.php | 63 + .../src/OSS/GetBucketRefererRequest.php | 51 + .../src/OSS/GetBucketRefererResponse.php | 66 + .../refererConfiguration.php | 65 + .../refererConfiguration/refererList.php | 51 + .../tea-oss-sdk/src/OSS/GetBucketRequest.php | 66 + .../src/OSS/GetBucketRequest/filter.php | 105 + .../OSS/GetBucketRequestPaymentRequest.php | 51 + .../OSS/GetBucketRequestPaymentResponse.php | 66 + .../requestPaymentConfiguration.php | 49 + .../tea-oss-sdk/src/OSS/GetBucketResponse.php | 66 + .../GetBucketResponse/listBucketResult.php | 174 + .../listBucketResult/contents.php | 121 + .../listBucketResult/contents/owner.php | 63 + .../src/OSS/GetBucketTagsRequest.php | 51 + .../src/OSS/GetBucketTagsResponse.php | 66 + .../src/OSS/GetBucketTagsResponse/tagging.php | 51 + .../GetBucketTagsResponse/tagging/tagSet.php | 62 + .../tagging/tagSet/tag.php | 63 + .../src/OSS/GetBucketWebsiteRequest.php | 51 + .../src/OSS/GetBucketWebsiteResponse.php | 66 + .../websiteConfiguration.php | 83 + .../websiteConfiguration/errorDocument.php | 49 + .../websiteConfiguration/indexDocument.php | 49 + .../websiteConfiguration/routingRules.php | 62 + .../routingRules/routingRule.php | 81 + .../routingRules/routingRule/condition.php | 79 + .../routingRule/condition/includeHeader.php | 63 + .../routingRules/routingRule/redirect.php | 205 + .../routingRule/redirect/mirrorHeaders.php | 93 + .../redirect/mirrorHeaders/set.php | 63 + .../src/OSS/GetLiveChannelHistoryRequest.php | 81 + .../GetLiveChannelHistoryRequest/filter.php | 49 + .../src/OSS/GetLiveChannelHistoryResponse.php | 66 + .../liveChannelHistory.php | 62 + .../liveChannelHistory/liveRecord.php | 77 + .../src/OSS/GetLiveChannelInfoRequest.php | 66 + .../src/OSS/GetLiveChannelInfoResponse.php | 66 + .../liveChannelConfiguration.php | 79 + .../liveChannelConfiguration/target.php | 91 + .../src/OSS/GetLiveChannelStatRequest.php | 81 + .../OSS/GetLiveChannelStatRequest/filter.php | 49 + .../src/OSS/GetLiveChannelStatResponse.php | 66 + .../liveChannelStat.php | 109 + .../liveChannelStat/audio.php | 77 + .../liveChannelStat/video.php | 105 + .../src/OSS/GetObjectAclRequest.php | 66 + .../src/OSS/GetObjectAclResponse.php | 66 + .../accessControlPolicy.php | 67 + .../accessControlPolicy/accessControlList.php | 49 + .../accessControlPolicy/owner.php | 63 + .../src/OSS/GetObjectMetaRequest.php | 66 + .../src/OSS/GetObjectMetaResponse.php | 95 + .../tea-oss-sdk/src/OSS/GetObjectRequest.php | 81 + .../src/OSS/GetObjectRequest/header.php | 203 + .../tea-oss-sdk/src/OSS/GetObjectResponse.php | 126 + .../src/OSS/GetObjectTaggingRequest.php | 66 + .../src/OSS/GetObjectTaggingResponse.php | 66 + .../OSS/GetObjectTaggingResponse/tagging.php | 51 + .../tagging/tagSet.php | 62 + .../tagging/tagSet/tag.php | 63 + .../tea-oss-sdk/src/OSS/GetServiceRequest.php | 50 + .../src/OSS/GetServiceRequest/filter.php | 77 + .../src/OSS/GetServiceResponse.php | 66 + .../listAllMyBucketsResult.php | 137 + .../listAllMyBucketsResult/buckets.php | 62 + .../listAllMyBucketsResult/buckets/bucket.php | 119 + .../listAllMyBucketsResult/owner.php | 63 + .../tea-oss-sdk/src/OSS/GetSymlinkRequest.php | 66 + .../src/OSS/GetSymlinkResponse.php | 65 + .../src/OSS/GetVodPlaylistRequest.php | 82 + .../src/OSS/GetVodPlaylistRequest/filter.php | 65 + .../src/OSS/GetVodPlaylistResponse.php | 50 + .../tea-oss-sdk/src/OSS/HeadObjectRequest.php | 81 + .../src/OSS/HeadObjectRequest/header.php | 91 + .../src/OSS/HeadObjectResponse.php | 335 + .../OSS/InitiateMultipartUploadRequest.php | 96 + .../InitiateMultipartUploadRequest/filter.php | 49 + .../InitiateMultipartUploadRequest/header.php | 161 + .../OSS/InitiateMultipartUploadResponse.php | 66 + .../initiateMultipartUploadResult.php | 77 + .../src/OSS/ListLiveChannelRequest.php | 66 + .../src/OSS/ListLiveChannelRequest/filter.php | 77 + .../src/OSS/ListLiveChannelResponse.php | 66 + .../listLiveChannelResult.php | 121 + .../listLiveChannelResult/liveChannel.php | 123 + .../liveChannel/playUrls.php | 49 + .../liveChannel/publishUrls.php | 49 + .../src/OSS/ListMultipartUploadsRequest.php | 66 + .../ListMultipartUploadsRequest/filter.php | 119 + .../src/OSS/ListMultipartUploadsResponse.php | 66 + .../listMultipartUploadsResult.php | 188 + .../listMultipartUploadsResult/upload.php | 77 + .../tea-oss-sdk/src/OSS/ListPartsRequest.php | 82 + .../src/OSS/ListPartsRequest/filter.php | 92 + .../tea-oss-sdk/src/OSS/ListPartsResponse.php | 66 + .../OSS/ListPartsResponse/listPartsResult.php | 174 + .../listPartsResult/part.php | 91 + .../src/OSS/OptionObjectRequest.php | 82 + .../src/OSS/OptionObjectRequest/header.php | 80 + .../src/OSS/OptionObjectResponse.php | 125 + .../tea-oss-sdk/src/OSS/PostObjectRequest.php | 67 + .../src/OSS/PostObjectRequest/header.php | 136 + .../src/OSS/PostObjectResponse.php | 51 + .../OSS/PostObjectResponse/postResponse.php | 80 + .../src/OSS/PostVodPlaylistRequest.php | 97 + .../src/OSS/PostVodPlaylistRequest/filter.php | 65 + .../src/OSS/PostVodPlaylistResponse.php | 50 + .../src/OSS/PutBucketAclRequest.php | 67 + .../src/OSS/PutBucketAclRequest/header.php | 50 + .../src/OSS/PutBucketAclResponse.php | 50 + .../src/OSS/PutBucketCORSRequest.php | 66 + .../src/OSS/PutBucketCORSRequest/body.php | 51 + .../body/cORSConfiguration.php | 62 + .../body/cORSConfiguration/cORSRule.php | 113 + .../src/OSS/PutBucketCORSResponse.php | 50 + .../src/OSS/PutBucketEncryptionRequest.php | 66 + .../OSS/PutBucketEncryptionRequest/body.php | 51 + .../body/serverSideEncryptionRule.php | 50 + .../applyServerSideEncryptionByDefault.php | 63 + .../src/OSS/PutBucketEncryptionResponse.php | 50 + .../src/OSS/PutBucketLifecycleRequest.php | 66 + .../OSS/PutBucketLifecycleRequest/body.php | 51 + .../body/lifecycleConfiguration.php | 62 + .../body/lifecycleConfiguration/rule.php | 137 + .../rule/abortMultipartUpload.php | 63 + .../rule/expiration.php | 63 + .../body/lifecycleConfiguration/rule/tag.php | 63 + .../rule/transition.php | 63 + .../src/OSS/PutBucketLifecycleResponse.php | 50 + .../src/OSS/PutBucketLoggingRequest.php | 66 + .../src/OSS/PutBucketLoggingRequest/body.php | 51 + .../body/bucketLoggingStatus.php | 50 + .../bucketLoggingStatus/loggingEnabled.php | 63 + .../src/OSS/PutBucketLoggingResponse.php | 50 + .../src/OSS/PutBucketRefererRequest.php | 66 + .../src/OSS/PutBucketRefererRequest/body.php | 51 + .../body/refererConfiguration.php | 64 + .../body/refererConfiguration/refererList.php | 51 + .../src/OSS/PutBucketRefererResponse.php | 50 + .../tea-oss-sdk/src/OSS/PutBucketRequest.php | 81 + .../src/OSS/PutBucketRequest/body.php | 51 + .../body/createBucketConfiguration.php | 63 + .../src/OSS/PutBucketRequest/header.php | 49 + .../OSS/PutBucketRequestPaymentRequest.php | 66 + .../PutBucketRequestPaymentRequest/body.php | 51 + .../body/requestPaymentConfiguration.php | 49 + .../OSS/PutBucketRequestPaymentResponse.php | 50 + .../tea-oss-sdk/src/OSS/PutBucketResponse.php | 50 + .../src/OSS/PutBucketTagsRequest.php | 66 + .../src/OSS/PutBucketTagsRequest/body.php | 51 + .../OSS/PutBucketTagsRequest/body/tagging.php | 50 + .../body/tagging/tagSet.php | 62 + .../body/tagging/tagSet/tag.php | 63 + .../src/OSS/PutBucketTagsResponse.php | 50 + .../src/OSS/PutBucketWebsiteRequest.php | 66 + .../src/OSS/PutBucketWebsiteRequest/body.php | 51 + .../body/websiteConfiguration.php | 80 + .../websiteConfiguration/errorDocument.php | 49 + .../websiteConfiguration/indexDocument.php | 49 + .../websiteConfiguration/routingRules.php | 62 + .../routingRules/routingRule.php | 79 + .../routingRules/routingRule/condition.php | 78 + .../routingRule/condition/includeHeader.php | 63 + .../routingRules/routingRule/redirect.php | 204 + .../routingRule/redirect/mirrorHeaders.php | 92 + .../redirect/mirrorHeaders/set.php | 63 + .../src/OSS/PutBucketWebsiteResponse.php | 50 + .../src/OSS/PutLiveChannelRequest.php | 81 + .../src/OSS/PutLiveChannelRequest/body.php | 51 + .../body/liveChannelConfiguration.php | 93 + .../liveChannelConfiguration/snapshot.php | 91 + .../body/liveChannelConfiguration/target.php | 91 + .../src/OSS/PutLiveChannelResponse.php | 66 + .../createLiveChannelResult.php | 67 + .../createLiveChannelResult/playUrls.php | 49 + .../createLiveChannelResult/publishUrls.php | 49 + .../src/OSS/PutLiveChannelStatusRequest.php | 82 + .../PutLiveChannelStatusRequest/filter.php | 50 + .../src/OSS/PutLiveChannelStatusResponse.php | 50 + .../src/OSS/PutObjectAclRequest.php | 82 + .../src/OSS/PutObjectAclRequest/header.php | 50 + .../src/OSS/PutObjectAclResponse.php | 50 + .../tea-oss-sdk/src/OSS/PutObjectRequest.php | 110 + .../src/OSS/PutObjectRequest/header.php | 231 + .../tea-oss-sdk/src/OSS/PutObjectResponse.php | 95 + .../src/OSS/PutObjectTaggingRequest.php | 81 + .../src/OSS/PutObjectTaggingRequest/body.php | 51 + .../PutObjectTaggingRequest/body/tagging.php | 50 + .../body/tagging/tagSet.php | 62 + .../body/tagging/tagSet/tag.php | 63 + .../src/OSS/PutObjectTaggingResponse.php | 50 + .../tea-oss-sdk/src/OSS/PutSymlinkRequest.php | 82 + .../src/OSS/PutSymlinkRequest/header.php | 64 + .../src/OSS/PutSymlinkResponse.php | 50 + .../src/OSS/RestoreObjectRequest.php | 66 + .../src/OSS/RestoreObjectResponse.php | 50 + .../src/OSS/SelectObjectRequest.php | 97 + .../src/OSS/SelectObjectRequest/body.php | 51 + .../body/selectRequest.php | 94 + .../body/selectRequest/inputSerialization.php | 64 + .../selectRequest/inputSerialization/cSV.php | 119 + .../body/selectRequest/options.php | 63 + .../selectRequest/outputSerialization.php | 106 + .../selectRequest/outputSerialization/cSV.php | 63 + .../src/OSS/SelectObjectRequest/filter.php | 50 + .../src/OSS/SelectObjectResponse.php | 50 + .../src/OSS/UploadPartCopyRequest.php | 98 + .../src/OSS/UploadPartCopyRequest/filter.php | 65 + .../src/OSS/UploadPartCopyRequest/header.php | 121 + .../src/OSS/UploadPartCopyResponse.php | 66 + .../UploadPartCopyResponse/copyPartResult.php | 63 + .../tea-oss-sdk/src/OSS/UploadPartRequest.php | 97 + .../src/OSS/UploadPartRequest/filter.php | 65 + .../src/OSS/UploadPartResponse.php | 50 + vendor/alibabacloud/tea-oss-utils/.gitignore | 12 + .../alibabacloud/tea-oss-utils/.php_cs.dist | 65 + .../alibabacloud/tea-oss-utils/README-CN.md | 31 + vendor/alibabacloud/tea-oss-utils/README.md | 31 + .../alibabacloud/tea-oss-utils/composer.json | 45 + .../alibabacloud/tea-oss-utils/mime.types.php | 7299 +++++++++++++++++ vendor/alibabacloud/tea-oss-utils/phpunit.xml | 32 + .../alibabacloud/tea-oss-utils/src/Crc64.php | 49 + .../tea-oss-utils/src/OSSUtils.php | 418 + .../src/OSSUtils/RuntimeOptions.php | 239 + .../tea-oss-utils/src/VerifyStream.php | 49 + .../tea-oss-utils/tests/Crc64Test.php | 27 + .../tea-oss-utils/tests/OSSUtilsTest.php | 153 + .../tea-oss-utils/tests/VerifyStreamTest.php | 30 + .../tea-oss-utils/tests/bootstrap.php | 3 + vendor/autoload.php | 18 - vendor/composer/ClassLoader.php | 166 +- vendor/composer/InstalledVersions.php | 44 +- vendor/composer/autoload_classmap.php | 2 +- vendor/composer/autoload_files.php | 12 +- vendor/composer/autoload_namespaces.php | 2 +- vendor/composer/autoload_psr4.php | 7 +- vendor/composer/autoload_real.php | 51 +- vendor/composer/autoload_static.php | 35 +- vendor/composer/installed.json | 267 + vendor/composer/installed.php | 251 +- vendor/services.php | 2 +- 520 files changed, 54964 insertions(+), 318 deletions(-) create mode 100644 vendor/alibabacloud/ocr-20191230/.gitignore create mode 100644 vendor/alibabacloud/ocr-20191230/.php_cs.dist create mode 100644 vendor/alibabacloud/ocr-20191230/ChangeLog.md create mode 100644 vendor/alibabacloud/ocr-20191230/LICENSE create mode 100644 vendor/alibabacloud/ocr-20191230/README-CN.md create mode 100644 vendor/alibabacloud/ocr-20191230/README.md create mode 100644 vendor/alibabacloud/ocr-20191230/autoload.php create mode 100644 vendor/alibabacloud/ocr-20191230/composer.json create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/GetAsyncJobResultRequest.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/GetAsyncJobResultResponse.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/GetAsyncJobResultResponseBody.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/GetAsyncJobResultResponseBody/data.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBankCardAdvanceRequest.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBankCardRequest.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBankCardResponse.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBankCardResponseBody.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBankCardResponseBody/data.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBusinessCardAdvanceRequest.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBusinessCardRequest.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBusinessCardResponse.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBusinessCardResponseBody.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBusinessCardResponseBody/data.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBusinessLicenseAdvanceRequest.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBusinessLicenseRequest.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBusinessLicenseResponse.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBusinessLicenseResponseBody.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBusinessLicenseResponseBody/data.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBusinessLicenseResponseBody/data/QRCode.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBusinessLicenseResponseBody/data/emblem.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBusinessLicenseResponseBody/data/stamp.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBusinessLicenseResponseBody/data/title.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeCharacterAdvanceRequest.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeCharacterRequest.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeCharacterResponse.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeCharacterResponseBody.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeCharacterResponseBody/data.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeCharacterResponseBody/data/results.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeCharacterResponseBody/data/results/textRectangles.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeDriverLicenseAdvanceRequest.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeDriverLicenseRequest.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeDriverLicenseResponse.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeDriverLicenseResponseBody.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeDriverLicenseResponseBody/data.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeDriverLicenseResponseBody/data/backResult.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeDriverLicenseResponseBody/data/faceResult.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeDrivingLicenseAdvanceRequest.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeDrivingLicenseRequest.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeDrivingLicenseResponse.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeDrivingLicenseResponseBody.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeDrivingLicenseResponseBody/data.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeDrivingLicenseResponseBody/data/backResult.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeDrivingLicenseResponseBody/data/faceResult.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeIdentityCardAdvanceRequest.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeIdentityCardRequest.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeIdentityCardResponse.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeIdentityCardResponseBody.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeIdentityCardResponseBody/data.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeIdentityCardResponseBody/data/backResult.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeIdentityCardResponseBody/data/frontResult.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeIdentityCardResponseBody/data/frontResult/cardAreas.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeIdentityCardResponseBody/data/frontResult/faceRectVertices.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeIdentityCardResponseBody/data/frontResult/faceRectangle.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeIdentityCardResponseBody/data/frontResult/faceRectangle/center.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeIdentityCardResponseBody/data/frontResult/faceRectangle/size.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeLicensePlateAdvanceRequest.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeLicensePlateRequest.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeLicensePlateResponse.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeLicensePlateResponseBody.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeLicensePlateResponseBody/data.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeLicensePlateResponseBody/data/plates.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeLicensePlateResponseBody/data/plates/positions.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeLicensePlateResponseBody/data/plates/roi.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizePdfAdvanceRequest.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizePdfRequest.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizePdfResponse.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizePdfResponseBody.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizePdfResponseBody/data.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizePdfResponseBody/data/wordsInfo.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizePdfResponseBody/data/wordsInfo/positions.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeQrCodeAdvanceRequest.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeQrCodeAdvanceRequest/tasks.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeQrCodeRequest.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeQrCodeRequest/tasks.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeQrCodeResponse.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeQrCodeResponseBody.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeQrCodeResponseBody/data.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeQrCodeResponseBody/data/elements.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeQrCodeResponseBody/data/elements/results.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeQuotaInvoiceAdvanceRequest.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeQuotaInvoiceRequest.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeQuotaInvoiceResponse.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeQuotaInvoiceResponseBody.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeQuotaInvoiceResponseBody/data.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeQuotaInvoiceResponseBody/data/content.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeQuotaInvoiceResponseBody/data/keyValueInfos.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeQuotaInvoiceResponseBody/data/keyValueInfos/valuePositions.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeStampAdvanceRequest.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeStampRequest.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeStampResponse.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeStampResponseBody.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeStampResponseBody/data.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeStampResponseBody/data/results.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeStampResponseBody/data/results/generalText.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeStampResponseBody/data/results/roi.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeStampResponseBody/data/results/text.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTableAdvanceRequest.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTableRequest.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTableResponse.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTableResponseBody.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTableResponseBody/data.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTableResponseBody/data/tables.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTableResponseBody/data/tables/tableRows.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTableResponseBody/data/tables/tableRows/tableColumns.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTaxiInvoiceAdvanceRequest.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTaxiInvoiceRequest.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTaxiInvoiceResponse.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTaxiInvoiceResponseBody.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTaxiInvoiceResponseBody/data.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTaxiInvoiceResponseBody/data/invoices.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTaxiInvoiceResponseBody/data/invoices/invoiceRoi.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTaxiInvoiceResponseBody/data/invoices/items.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTaxiInvoiceResponseBody/data/invoices/items/itemRoi.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTaxiInvoiceResponseBody/data/invoices/items/itemRoi/center.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTaxiInvoiceResponseBody/data/invoices/items/itemRoi/size.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTicketInvoiceAdvanceRequest.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTicketInvoiceRequest.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTicketInvoiceResponse.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTicketInvoiceResponseBody.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTicketInvoiceResponseBody/data.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTicketInvoiceResponseBody/data/results.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTicketInvoiceResponseBody/data/results/content.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTicketInvoiceResponseBody/data/results/keyValueInfos.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTicketInvoiceResponseBody/data/results/keyValueInfos/valuePositions.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTicketInvoiceResponseBody/data/results/sliceRectangle.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTrainTicketAdvanceRequest.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTrainTicketRequest.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTrainTicketResponse.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTrainTicketResponseBody.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTrainTicketResponseBody/data.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeVATInvoiceAdvanceRequest.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeVATInvoiceRequest.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeVATInvoiceResponse.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeVATInvoiceResponseBody.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeVATInvoiceResponseBody/data.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeVATInvoiceResponseBody/data/box.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeVATInvoiceResponseBody/data/content.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeVINCodeAdvanceRequest.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeVINCodeRequest.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeVINCodeResponse.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeVINCodeResponseBody.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeVINCodeResponseBody/data.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeVideoCharacterAdvanceRequest.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeVideoCharacterRequest.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeVideoCharacterResponse.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeVideoCharacterResponseBody.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeVideoCharacterResponseBody/data.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeVideoCharacterResponseBody/data/frames.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeVideoCharacterResponseBody/data/frames/elements.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Models/RecognizeVideoCharacterResponseBody/data/frames/elements/textRectangles.php create mode 100644 vendor/alibabacloud/ocr-20191230/src/Ocr.php create mode 100644 vendor/alibabacloud/openplatform-20191219/.gitignore create mode 100644 vendor/alibabacloud/openplatform-20191219/.php_cs.dist create mode 100644 vendor/alibabacloud/openplatform-20191219/ChangeLog.md create mode 100644 vendor/alibabacloud/openplatform-20191219/LICENSE create mode 100644 vendor/alibabacloud/openplatform-20191219/README-CN.md create mode 100644 vendor/alibabacloud/openplatform-20191219/README.md create mode 100644 vendor/alibabacloud/openplatform-20191219/autoload.php create mode 100644 vendor/alibabacloud/openplatform-20191219/composer.json create mode 100644 vendor/alibabacloud/openplatform-20191219/src/Models/AuthorizeFileUploadRequest.php create mode 100644 vendor/alibabacloud/openplatform-20191219/src/Models/AuthorizeFileUploadResponse.php create mode 100644 vendor/alibabacloud/openplatform-20191219/src/Models/AuthorizeFileUploadResponseBody.php create mode 100644 vendor/alibabacloud/openplatform-20191219/src/OpenPlatform.php create mode 100644 vendor/alibabacloud/tea-fileform/.gitignore create mode 100644 vendor/alibabacloud/tea-fileform/.php_cs.dist create mode 100644 vendor/alibabacloud/tea-fileform/README-CN.md create mode 100644 vendor/alibabacloud/tea-fileform/README.md create mode 100644 vendor/alibabacloud/tea-fileform/composer.json create mode 100644 vendor/alibabacloud/tea-fileform/phpunit.xml create mode 100644 vendor/alibabacloud/tea-fileform/src/FileForm.php create mode 100644 vendor/alibabacloud/tea-fileform/src/FileForm/FileField.php create mode 100644 vendor/alibabacloud/tea-fileform/src/FileFormStream.php create mode 100644 vendor/alibabacloud/tea-fileform/tests/FileFormTest.php create mode 100644 vendor/alibabacloud/tea-fileform/tests/bootstrap.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/.gitignore create mode 100644 vendor/alibabacloud/tea-oss-sdk/.php_cs.dist create mode 100644 vendor/alibabacloud/tea-oss-sdk/LICENSE create mode 100644 vendor/alibabacloud/tea-oss-sdk/README-CN.md create mode 100644 vendor/alibabacloud/tea-oss-sdk/README.md create mode 100644 vendor/alibabacloud/tea-oss-sdk/autoload.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/composer.json create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/AbortMultipartUploadRequest.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/AbortMultipartUploadRequest/filter.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/AbortMultipartUploadResponse.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/AppendObjectRequest.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/AppendObjectRequest/filter.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/AppendObjectRequest/header.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/AppendObjectResponse.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/CallbackRequest.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/CallbackResponse.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/CompleteMultipartUploadRequest.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/CompleteMultipartUploadRequest/body.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/CompleteMultipartUploadRequest/body/completeMultipartUpload.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/CompleteMultipartUploadRequest/body/completeMultipartUpload/part.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/CompleteMultipartUploadRequest/filter.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/CompleteMultipartUploadResponse.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/CompleteMultipartUploadResponse/completeMultipartUploadResult.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/Config.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/CopyObjectRequest.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/CopyObjectRequest/header.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/CopyObjectResponse.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/CopyObjectResponse/copyObjectResult.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteBucketCORSRequest.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteBucketCORSResponse.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteBucketEncryptionRequest.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteBucketEncryptionResponse.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteBucketLifecycleRequest.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteBucketLifecycleResponse.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteBucketLoggingRequest.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteBucketLoggingResponse.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteBucketRequest.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteBucketResponse.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteBucketTagsRequest.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteBucketTagsRequest/filter.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteBucketTagsResponse.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteBucketWebsiteRequest.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteBucketWebsiteResponse.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteLiveChannelRequest.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteLiveChannelResponse.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteMultipleObjectsRequest.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteMultipleObjectsRequest/body.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteMultipleObjectsRequest/body/delete.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteMultipleObjectsRequest/body/delete/object.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteMultipleObjectsRequest/header.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteMultipleObjectsResponse.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteMultipleObjectsResponse/deleteResult.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteMultipleObjectsResponse/deleteResult/deleted.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteObjectRequest.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteObjectResponse.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteObjectTaggingRequest.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteObjectTaggingResponse.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketAclRequest.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketAclResponse.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketAclResponse/accessControlPolicy.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketAclResponse/accessControlPolicy/accessControlList.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketAclResponse/accessControlPolicy/owner.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketCORSRequest.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketCORSResponse.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketCORSResponse/cORSConfiguration.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketCORSResponse/cORSConfiguration/cORSRule.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketEncryptionRequest.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketEncryptionResponse.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketEncryptionResponse/serverSideEncryptionRule.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketEncryptionResponse/serverSideEncryptionRule/applyServerSideEncryptionByDefault.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketInfoRequest.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketInfoResponse.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketInfoResponse/bucketInfo.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketInfoResponse/bucketInfo/bucket.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketInfoResponse/bucketInfo/bucket/accessControlList.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketInfoResponse/bucketInfo/bucket/owner.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketLifecycleRequest.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketLifecycleResponse.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketLifecycleResponse/lifecycleConfiguration.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketLifecycleResponse/lifecycleConfiguration/rule.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketLifecycleResponse/lifecycleConfiguration/rule/abortMultipartUpload.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketLifecycleResponse/lifecycleConfiguration/rule/expiration.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketLifecycleResponse/lifecycleConfiguration/rule/tag.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketLifecycleResponse/lifecycleConfiguration/rule/transition.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketLocationRequest.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketLocationResponse.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketLoggingRequest.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketLoggingResponse.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketLoggingResponse/bucketLoggingStatus.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketLoggingResponse/bucketLoggingStatus/loggingEnabled.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketRefererRequest.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketRefererResponse.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketRefererResponse/refererConfiguration.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketRefererResponse/refererConfiguration/refererList.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketRequest.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketRequest/filter.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketRequestPaymentRequest.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketRequestPaymentResponse.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketRequestPaymentResponse/requestPaymentConfiguration.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketResponse.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketResponse/listBucketResult.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketResponse/listBucketResult/contents.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketResponse/listBucketResult/contents/owner.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketTagsRequest.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketTagsResponse.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketTagsResponse/tagging.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketTagsResponse/tagging/tagSet.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketTagsResponse/tagging/tagSet/tag.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketWebsiteRequest.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketWebsiteResponse.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketWebsiteResponse/websiteConfiguration.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketWebsiteResponse/websiteConfiguration/errorDocument.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketWebsiteResponse/websiteConfiguration/indexDocument.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketWebsiteResponse/websiteConfiguration/routingRules.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketWebsiteResponse/websiteConfiguration/routingRules/routingRule.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketWebsiteResponse/websiteConfiguration/routingRules/routingRule/condition.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketWebsiteResponse/websiteConfiguration/routingRules/routingRule/condition/includeHeader.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketWebsiteResponse/websiteConfiguration/routingRules/routingRule/redirect.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketWebsiteResponse/websiteConfiguration/routingRules/routingRule/redirect/mirrorHeaders.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketWebsiteResponse/websiteConfiguration/routingRules/routingRule/redirect/mirrorHeaders/set.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/GetLiveChannelHistoryRequest.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/GetLiveChannelHistoryRequest/filter.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/GetLiveChannelHistoryResponse.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/GetLiveChannelHistoryResponse/liveChannelHistory.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/GetLiveChannelHistoryResponse/liveChannelHistory/liveRecord.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/GetLiveChannelInfoRequest.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/GetLiveChannelInfoResponse.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/GetLiveChannelInfoResponse/liveChannelConfiguration.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/GetLiveChannelInfoResponse/liveChannelConfiguration/target.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/GetLiveChannelStatRequest.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/GetLiveChannelStatRequest/filter.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/GetLiveChannelStatResponse.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/GetLiveChannelStatResponse/liveChannelStat.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/GetLiveChannelStatResponse/liveChannelStat/audio.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/GetLiveChannelStatResponse/liveChannelStat/video.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/GetObjectAclRequest.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/GetObjectAclResponse.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/GetObjectAclResponse/accessControlPolicy.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/GetObjectAclResponse/accessControlPolicy/accessControlList.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/GetObjectAclResponse/accessControlPolicy/owner.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/GetObjectMetaRequest.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/GetObjectMetaResponse.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/GetObjectRequest.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/GetObjectRequest/header.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/GetObjectResponse.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/GetObjectTaggingRequest.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/GetObjectTaggingResponse.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/GetObjectTaggingResponse/tagging.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/GetObjectTaggingResponse/tagging/tagSet.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/GetObjectTaggingResponse/tagging/tagSet/tag.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/GetServiceRequest.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/GetServiceRequest/filter.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/GetServiceResponse.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/GetServiceResponse/listAllMyBucketsResult.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/GetServiceResponse/listAllMyBucketsResult/buckets.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/GetServiceResponse/listAllMyBucketsResult/buckets/bucket.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/GetServiceResponse/listAllMyBucketsResult/owner.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/GetSymlinkRequest.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/GetSymlinkResponse.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/GetVodPlaylistRequest.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/GetVodPlaylistRequest/filter.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/GetVodPlaylistResponse.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/HeadObjectRequest.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/HeadObjectRequest/header.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/HeadObjectResponse.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/InitiateMultipartUploadRequest.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/InitiateMultipartUploadRequest/filter.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/InitiateMultipartUploadRequest/header.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/InitiateMultipartUploadResponse.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/InitiateMultipartUploadResponse/initiateMultipartUploadResult.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/ListLiveChannelRequest.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/ListLiveChannelRequest/filter.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/ListLiveChannelResponse.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/ListLiveChannelResponse/listLiveChannelResult.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/ListLiveChannelResponse/listLiveChannelResult/liveChannel.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/ListLiveChannelResponse/listLiveChannelResult/liveChannel/playUrls.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/ListLiveChannelResponse/listLiveChannelResult/liveChannel/publishUrls.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/ListMultipartUploadsRequest.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/ListMultipartUploadsRequest/filter.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/ListMultipartUploadsResponse.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/ListMultipartUploadsResponse/listMultipartUploadsResult.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/ListMultipartUploadsResponse/listMultipartUploadsResult/upload.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/ListPartsRequest.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/ListPartsRequest/filter.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/ListPartsResponse.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/ListPartsResponse/listPartsResult.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/ListPartsResponse/listPartsResult/part.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/OptionObjectRequest.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/OptionObjectRequest/header.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/OptionObjectResponse.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/PostObjectRequest.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/PostObjectRequest/header.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/PostObjectResponse.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/PostObjectResponse/postResponse.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/PostVodPlaylistRequest.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/PostVodPlaylistRequest/filter.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/PostVodPlaylistResponse.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketAclRequest.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketAclRequest/header.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketAclResponse.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketCORSRequest.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketCORSRequest/body.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketCORSRequest/body/cORSConfiguration.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketCORSRequest/body/cORSConfiguration/cORSRule.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketCORSResponse.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketEncryptionRequest.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketEncryptionRequest/body.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketEncryptionRequest/body/serverSideEncryptionRule.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketEncryptionRequest/body/serverSideEncryptionRule/applyServerSideEncryptionByDefault.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketEncryptionResponse.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketLifecycleRequest.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketLifecycleRequest/body.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketLifecycleRequest/body/lifecycleConfiguration.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketLifecycleRequest/body/lifecycleConfiguration/rule.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketLifecycleRequest/body/lifecycleConfiguration/rule/abortMultipartUpload.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketLifecycleRequest/body/lifecycleConfiguration/rule/expiration.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketLifecycleRequest/body/lifecycleConfiguration/rule/tag.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketLifecycleRequest/body/lifecycleConfiguration/rule/transition.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketLifecycleResponse.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketLoggingRequest.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketLoggingRequest/body.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketLoggingRequest/body/bucketLoggingStatus.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketLoggingRequest/body/bucketLoggingStatus/loggingEnabled.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketLoggingResponse.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketRefererRequest.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketRefererRequest/body.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketRefererRequest/body/refererConfiguration.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketRefererRequest/body/refererConfiguration/refererList.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketRefererResponse.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketRequest.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketRequest/body.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketRequest/body/createBucketConfiguration.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketRequest/header.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketRequestPaymentRequest.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketRequestPaymentRequest/body.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketRequestPaymentRequest/body/requestPaymentConfiguration.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketRequestPaymentResponse.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketResponse.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketTagsRequest.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketTagsRequest/body.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketTagsRequest/body/tagging.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketTagsRequest/body/tagging/tagSet.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketTagsRequest/body/tagging/tagSet/tag.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketTagsResponse.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketWebsiteRequest.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketWebsiteRequest/body.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketWebsiteRequest/body/websiteConfiguration.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketWebsiteRequest/body/websiteConfiguration/errorDocument.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketWebsiteRequest/body/websiteConfiguration/indexDocument.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketWebsiteRequest/body/websiteConfiguration/routingRules.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketWebsiteRequest/body/websiteConfiguration/routingRules/routingRule.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketWebsiteRequest/body/websiteConfiguration/routingRules/routingRule/condition.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketWebsiteRequest/body/websiteConfiguration/routingRules/routingRule/condition/includeHeader.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketWebsiteRequest/body/websiteConfiguration/routingRules/routingRule/redirect.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketWebsiteRequest/body/websiteConfiguration/routingRules/routingRule/redirect/mirrorHeaders.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketWebsiteRequest/body/websiteConfiguration/routingRules/routingRule/redirect/mirrorHeaders/set.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketWebsiteResponse.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/PutLiveChannelRequest.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/PutLiveChannelRequest/body.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/PutLiveChannelRequest/body/liveChannelConfiguration.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/PutLiveChannelRequest/body/liveChannelConfiguration/snapshot.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/PutLiveChannelRequest/body/liveChannelConfiguration/target.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/PutLiveChannelResponse.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/PutLiveChannelResponse/createLiveChannelResult.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/PutLiveChannelResponse/createLiveChannelResult/playUrls.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/PutLiveChannelResponse/createLiveChannelResult/publishUrls.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/PutLiveChannelStatusRequest.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/PutLiveChannelStatusRequest/filter.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/PutLiveChannelStatusResponse.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/PutObjectAclRequest.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/PutObjectAclRequest/header.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/PutObjectAclResponse.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/PutObjectRequest.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/PutObjectRequest/header.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/PutObjectResponse.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/PutObjectTaggingRequest.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/PutObjectTaggingRequest/body.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/PutObjectTaggingRequest/body/tagging.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/PutObjectTaggingRequest/body/tagging/tagSet.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/PutObjectTaggingRequest/body/tagging/tagSet/tag.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/PutObjectTaggingResponse.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/PutSymlinkRequest.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/PutSymlinkRequest/header.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/PutSymlinkResponse.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/RestoreObjectRequest.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/RestoreObjectResponse.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/SelectObjectRequest.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/SelectObjectRequest/body.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/SelectObjectRequest/body/selectRequest.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/SelectObjectRequest/body/selectRequest/inputSerialization.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/SelectObjectRequest/body/selectRequest/inputSerialization/cSV.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/SelectObjectRequest/body/selectRequest/options.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/SelectObjectRequest/body/selectRequest/outputSerialization.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/SelectObjectRequest/body/selectRequest/outputSerialization/cSV.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/SelectObjectRequest/filter.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/SelectObjectResponse.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/UploadPartCopyRequest.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/UploadPartCopyRequest/filter.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/UploadPartCopyRequest/header.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/UploadPartCopyResponse.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/UploadPartCopyResponse/copyPartResult.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/UploadPartRequest.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/UploadPartRequest/filter.php create mode 100644 vendor/alibabacloud/tea-oss-sdk/src/OSS/UploadPartResponse.php create mode 100644 vendor/alibabacloud/tea-oss-utils/.gitignore create mode 100644 vendor/alibabacloud/tea-oss-utils/.php_cs.dist create mode 100644 vendor/alibabacloud/tea-oss-utils/README-CN.md create mode 100644 vendor/alibabacloud/tea-oss-utils/README.md create mode 100644 vendor/alibabacloud/tea-oss-utils/composer.json create mode 100644 vendor/alibabacloud/tea-oss-utils/mime.types.php create mode 100644 vendor/alibabacloud/tea-oss-utils/phpunit.xml create mode 100644 vendor/alibabacloud/tea-oss-utils/src/Crc64.php create mode 100644 vendor/alibabacloud/tea-oss-utils/src/OSSUtils.php create mode 100644 vendor/alibabacloud/tea-oss-utils/src/OSSUtils/RuntimeOptions.php create mode 100644 vendor/alibabacloud/tea-oss-utils/src/VerifyStream.php create mode 100644 vendor/alibabacloud/tea-oss-utils/tests/Crc64Test.php create mode 100644 vendor/alibabacloud/tea-oss-utils/tests/OSSUtilsTest.php create mode 100644 vendor/alibabacloud/tea-oss-utils/tests/VerifyStreamTest.php create mode 100644 vendor/alibabacloud/tea-oss-utils/tests/bootstrap.php diff --git a/app/controller/api/Common.php b/app/controller/api/Common.php index 265feb19..680bd4fe 100644 --- a/app/controller/api/Common.php +++ b/app/controller/api/Common.php @@ -48,7 +48,13 @@ use think\facade\Cache; use think\facade\Db; use think\facade\Log; use think\Response; +use AlibabaCloud\SDK\Ocr\V20191230\Ocr; +use AlibabaCloud\Tea\Exception\TeaError; +use AlibabaCloud\Tea\Utils\Utils; +use Darabonba\OpenApi\Models\Config; +use AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeBusinessLicenseRequest; +use AlibabaCloud\Tea\Utils\Utils\RuntimeOptions; /** * Class Common * @package app\controller\api @@ -543,4 +549,48 @@ class Common extends BaseController return app('json')->success($data); } + + /** + * + * 商户营业执照 + */ + public function merchant_license_identify($image){ + $config = new Config([ + // 必填,您的 AccessKey ID + "accessKeyId" => 'LTAI5t7mhH3ij2cNWs1zhPmv', + // 必填,您的 AccessKey Secret + "accessKeySecret" => 'gqo2wMpvi8h5bDBmCpMje6BaiXvcPu' + ]); + // Endpoint 请参考 https://api.aliyun.com/product/ocr + $config->endpoint = "ocr.cn-shanghai.aliyuncs.com"; + $client= new Ocr($config); + $recognizeBusinessLicenseRequest = new RecognizeBusinessLicenseRequest([ + "imageURL" => $image + ]); + $runtime = new RuntimeOptions([]); + try { + // 复制代码运行请自行打印 API 的返回值 + $resp=$client->recognizeBusinessLicenseWithOptions($recognizeBusinessLicenseRequest, $runtime); + $a= Utils::toArray($resp->body); + $data=[]; + if($a){ + $data['address']=$a['Data']['Address']; + $data['business']=$a['Data']['Business']; + $data['legal_person']=$a['Data']['LegalPerson']; + $data['name']=$a['Data']['Name']; + $data['register_number']=$a['Data']['RegisterNumber']; + $data['type']=$a['Data']['Type']; + } + return app('json')->success($data); + + } + catch (Exception $error) { + if (!($error instanceof TeaError)) { + $error = new TeaError([], $error->getMessage(), $error->getCode(), $error); + } + $a=Utils::assertAsString($error->message); + return app('json')->fail($a); + + } + } } diff --git a/app/controller/api/store/product/StoreSpu.php b/app/controller/api/store/product/StoreSpu.php index 76bff57e..59fbadb0 100644 --- a/app/controller/api/store/product/StoreSpu.php +++ b/app/controller/api/store/product/StoreSpu.php @@ -59,7 +59,8 @@ class StoreSpu extends BaseController 'product_ids', 'mer_id', 'type_id', - 'street_id' + 'street_id', + 'category_id' ]); if ($where['type_id']) { $arr = ['status' => 1, 'mer_state' => 1, 'is_del' => 0]; @@ -74,6 +75,9 @@ class StoreSpu extends BaseController $where['product_type'] = $where['product_type']??0; $where['order'] = $where['order'] ?: 'star'; if ($where['is_trader'] != 1) unset($where['is_trader']); + if($where['category_id']!=''){ + $where['mer_ids']= Db::name('merchant')->where(['category_id'=>$where['category_id'],'status'=>1,'is_del'=>0])->column('mer_id'); + } $data = $this->repository->getApiSearch($where, $page, $limit, $this->userInfo); return app('json')->success($data); } diff --git a/composer.json b/composer.json index eeb7ca31..0d419104 100644 --- a/composer.json +++ b/composer.json @@ -60,7 +60,8 @@ "topthink/think-api": "1.0.27", "intervention/image": "^2.7", "fastknife/ajcaptcha": "^1.2", - "nelexa/zip": "^4.0" + "nelexa/zip": "^4.0", + "alibabacloud/ocr-20191230": "^3.0" }, "require-dev": { "symfony/var-dumper": "^4.2", diff --git a/composer.lock b/composer.lock index 68d601ea..bdd6c404 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "60838a051e04cfb13dd75049f7540171", + "content-hash": "58b44ebbb4f75dc8b47bcaa0ae8327f7", "packages": [ { "name": "adbario/php-dot-notation", @@ -252,6 +252,59 @@ "description": "Alibaba Cloud Gateway SPI Client", "time": "2022-07-14T05:31:35+00:00" }, + { + "name": "alibabacloud/ocr-20191230", + "version": "3.0.0", + "source": { + "type": "git", + "url": "https://github.com/alibabacloud-sdk-php/Ocr-20191230.git", + "reference": "8d7ad521074b2fd6c392cf0f2b114ce43f0612b8" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/alibabacloud-sdk-php/Ocr-20191230/zipball/8d7ad521074b2fd6c392cf0f2b114ce43f0612b8", + "reference": "8d7ad521074b2fd6c392cf0f2b114ce43f0612b8", + "shasum": "", + "mirrors": [ + { + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", + "preferred": true + } + ] + }, + "require": { + "alibabacloud/darabonba-openapi": "^0.2.8", + "alibabacloud/endpoint-util": "^0.1.0", + "alibabacloud/openapi-util": "^0.1.10|^0.2.1", + "alibabacloud/openplatform-20191219": "^2.0.1", + "alibabacloud/tea-fileform": "^0.3.0", + "alibabacloud/tea-oss-sdk": "^0.3.0", + "alibabacloud/tea-oss-utils": "^0.3.1", + "alibabacloud/tea-utils": "^0.2.19", + "php": ">5.5" + }, + "type": "library", + "autoload": { + "psr-4": { + "AlibabaCloud\\SDK\\Ocr\\V20191230\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "Apache-2.0" + ], + "authors": [ + { + "name": "Alibaba Cloud SDK", + "email": "sdk-team@alibabacloud.com" + } + ], + "description": "Alibaba Cloud OCR (20191230) SDK Library for PHP", + "support": { + "source": "https://github.com/alibabacloud-sdk-php/Ocr-20191230/tree/3.0.0" + }, + "time": "2023-07-04T02:18:29+00:00" + }, { "name": "alibabacloud/openapi-util", "version": "0.1.13", @@ -288,6 +341,55 @@ "description": "Alibaba Cloud OpenApi Util", "time": "2022-11-06T05:49:55+00:00" }, + { + "name": "alibabacloud/openplatform-20191219", + "version": "2.0.1", + "source": { + "type": "git", + "url": "https://github.com/alibabacloud-sdk-php/OpenPlatform-20191219.git", + "reference": "02ffa72369f8649214f1cfa336b52a544735f517" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/alibabacloud-sdk-php/OpenPlatform-20191219/zipball/02ffa72369f8649214f1cfa336b52a544735f517", + "reference": "02ffa72369f8649214f1cfa336b52a544735f517", + "shasum": "", + "mirrors": [ + { + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", + "preferred": true + } + ] + }, + "require": { + "alibabacloud/darabonba-openapi": "^0.2.8", + "alibabacloud/endpoint-util": "^0.1.0", + "alibabacloud/openapi-util": "^0.1.10|^0.2.1", + "alibabacloud/tea-utils": "^0.2.17", + "php": ">5.5" + }, + "type": "library", + "autoload": { + "psr-4": { + "AlibabaCloud\\SDK\\OpenPlatform\\V20191219\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "Apache-2.0" + ], + "authors": [ + { + "name": "Alibaba Cloud SDK", + "email": "sdk-team@alibabacloud.com" + } + ], + "description": "Alibaba Cloud OpenPlatform (20191219) SDK Library for PHP", + "support": { + "source": "https://github.com/alibabacloud-sdk-php/OpenPlatform-20191219/tree/2.0.1" + }, + "time": "2023-02-07T06:39:39+00:00" + }, { "name": "alibabacloud/tea", "version": "3.2.1", @@ -343,6 +445,156 @@ ], "time": "2023-05-16T06:43:41+00:00" }, + { + "name": "alibabacloud/tea-fileform", + "version": "0.3.4", + "source": { + "type": "git", + "url": "https://github.com/alibabacloud-sdk-php/tea-fileform.git", + "reference": "4bf0c75a045c8115aa8cb1a394bd08d8bb833181" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/alibabacloud-sdk-php/tea-fileform/zipball/4bf0c75a045c8115aa8cb1a394bd08d8bb833181", + "reference": "4bf0c75a045c8115aa8cb1a394bd08d8bb833181", + "shasum": "", + "mirrors": [ + { + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", + "preferred": true + } + ] + }, + "require": { + "alibabacloud/tea": "^3.0", + "php": ">5.5" + }, + "require-dev": { + "phpunit/phpunit": "^4.8.35|^5.4.3" + }, + "type": "library", + "autoload": { + "psr-4": { + "AlibabaCloud\\Tea\\FileForm\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "Apache-2.0" + ], + "authors": [ + { + "name": "Alibaba Cloud SDK", + "email": "sdk-team@alibabacloud.com" + } + ], + "description": "Alibaba Cloud Tea File Library for PHP", + "support": { + "issues": "https://github.com/alibabacloud-sdk-php/tea-fileform/issues", + "source": "https://github.com/alibabacloud-sdk-php/tea-fileform/tree/0.3.4" + }, + "time": "2020-12-01T07:24:35+00:00" + }, + { + "name": "alibabacloud/tea-oss-sdk", + "version": "0.3.6", + "source": { + "type": "git", + "url": "https://github.com/alibabacloud-sdk-php/tea-oss-sdk.git", + "reference": "e28e70e2842b2e4da031a774209231bf08d7965c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/alibabacloud-sdk-php/tea-oss-sdk/zipball/e28e70e2842b2e4da031a774209231bf08d7965c", + "reference": "e28e70e2842b2e4da031a774209231bf08d7965c", + "shasum": "", + "mirrors": [ + { + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", + "preferred": true + } + ] + }, + "require": { + "alibabacloud/credentials": "^1.1", + "alibabacloud/tea-fileform": "^0.3.0", + "alibabacloud/tea-oss-utils": "^0.3.0", + "alibabacloud/tea-utils": "^0.2.0", + "alibabacloud/tea-xml": "^0.2", + "php": ">5.5" + }, + "type": "library", + "autoload": { + "psr-4": { + "AlibabaCloud\\SDK\\OSS\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "Apache-2.0" + ], + "authors": [ + { + "name": "Alibaba Cloud SDK", + "email": "sdk-team@alibabacloud.com" + } + ], + "description": "Aliyun Tea OSS SDK Library for PHP", + "support": { + "source": "https://github.com/alibabacloud-sdk-php/tea-oss-sdk/tree/0.3.6" + }, + "time": "2022-10-13T07:23:51+00:00" + }, + { + "name": "alibabacloud/tea-oss-utils", + "version": "0.3.1", + "source": { + "type": "git", + "url": "https://github.com/alibabacloud-sdk-php/tea-oss-utils.git", + "reference": "19f58fc509347f075664e377742d4f9e18465372" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/alibabacloud-sdk-php/tea-oss-utils/zipball/19f58fc509347f075664e377742d4f9e18465372", + "reference": "19f58fc509347f075664e377742d4f9e18465372", + "shasum": "", + "mirrors": [ + { + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", + "preferred": true + } + ] + }, + "require": { + "alibabacloud/tea": "^3.0", + "guzzlehttp/psr7": "^1.0", + "php": ">5.5" + }, + "require-dev": { + "phpunit/phpunit": "^4.8.35|^5.4.3|^9.4" + }, + "type": "library", + "autoload": { + "psr-4": { + "AlibabaCloud\\Tea\\OSSUtils\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "Apache-2.0" + ], + "authors": [ + { + "name": "Alibaba Cloud SDK", + "email": "sdk-team@alibabacloud.com" + } + ], + "description": "Alibaba Cloud Tea OSS Utils Library for PHP", + "support": { + "source": "https://github.com/alibabacloud-sdk-php/tea-oss-utils/tree/0.3.1" + }, + "time": "2023-01-08T13:26:58+00:00" + }, { "name": "alibabacloud/tea-utils", "version": "0.2.19", @@ -5053,5 +5305,5 @@ "ext-swoole": "^4.4.0" }, "platform-dev": [], - "plugin-api-version": "2.3.0" + "plugin-api-version": "2.1.0" } diff --git a/route/api.php b/route/api.php index 3606e8f7..397f3572 100644 --- a/route/api.php +++ b/route/api.php @@ -44,6 +44,8 @@ Route::group('api/', function () { //强制登录 Route::group(function () { + Route::post('merchant_license_identify', 'api.Common/merchant_license_identify');//营业执照识别 + Route::post('user_free_trial/:id', 'api.store.product.StoreProduct/UserFreeTrial')->option([ '_alias' => '免审编辑', ]); diff --git a/vendor/alibabacloud/ocr-20191230/.gitignore b/vendor/alibabacloud/ocr-20191230/.gitignore new file mode 100644 index 00000000..89c7aa58 --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/.gitignore @@ -0,0 +1,15 @@ +composer.phar +/vendor/ + +# Commit your application's lock file https://getcomposer.org/doc/01-basic-usage.md#commit-your-composer-lock-file-to-version-control +# You may choose to ignore a library lock file http://getcomposer.org/doc/02-libraries.md#lock-file +composer.lock + +.vscode/ +.idea +.DS_Store + +cache/ +*.cache +runtime/ +.php_cs.cache diff --git a/vendor/alibabacloud/ocr-20191230/.php_cs.dist b/vendor/alibabacloud/ocr-20191230/.php_cs.dist new file mode 100644 index 00000000..8617ec2f --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/.php_cs.dist @@ -0,0 +1,65 @@ +setRiskyAllowed(true) + ->setIndent(' ') + ->setRules([ + '@PSR2' => true, + '@PhpCsFixer' => true, + '@Symfony:risky' => true, + 'concat_space' => ['spacing' => 'one'], + 'array_syntax' => ['syntax' => 'short'], + 'array_indentation' => true, + 'combine_consecutive_unsets' => true, + 'method_separation' => true, + 'single_quote' => true, + 'declare_equal_normalize' => true, + 'function_typehint_space' => true, + 'hash_to_slash_comment' => true, + 'include' => true, + 'lowercase_cast' => true, + 'no_multiline_whitespace_before_semicolons' => true, + 'no_leading_import_slash' => true, + 'no_multiline_whitespace_around_double_arrow' => true, + 'no_spaces_around_offset' => true, + 'no_unneeded_control_parentheses' => true, + 'no_unused_imports' => true, + 'no_whitespace_before_comma_in_array' => true, + 'no_whitespace_in_blank_line' => true, + 'object_operator_without_whitespace' => true, + 'single_blank_line_before_namespace' => true, + 'single_class_element_per_statement' => true, + 'space_after_semicolon' => true, + 'standardize_not_equals' => true, + 'ternary_operator_spaces' => true, + 'trailing_comma_in_multiline_array' => true, + 'trim_array_spaces' => true, + 'unary_operator_spaces' => true, + 'whitespace_after_comma_in_array' => true, + 'no_extra_consecutive_blank_lines' => [ + 'curly_brace_block', + 'extra', + 'parenthesis_brace_block', + 'square_brace_block', + 'throw', + 'use', + ], + 'binary_operator_spaces' => [ + 'align_double_arrow' => true, + 'align_equals' => true, + ], + 'braces' => [ + 'allow_single_line_closure' => true, + ], + ]) + ->setFinder( + PhpCsFixer\Finder::create() + ->exclude('vendor') + ->exclude('tests') + ->in(__DIR__) + ); diff --git a/vendor/alibabacloud/ocr-20191230/ChangeLog.md b/vendor/alibabacloud/ocr-20191230/ChangeLog.md new file mode 100644 index 00000000..b94bfc3f --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/ChangeLog.md @@ -0,0 +1,70 @@ +2023-07-04 Version: 3.0.0 +- Update TrimDocument. +- Update RecognizeTakeoutOrder. +- Update RecognizePassportMRZ. +- Update RecognizeChinapassport. +- Update DetectCardScreenshot. +- Update RecognizeVerificationcode. +- Update RecognizePoiName. +- Update RecognizeAccountPage. + +2023-02-16 Version: 2.0.17 +- Update RecognizeVideoCharacter. + +2023-01-13 Version: 2.0.16 +- Update sdk. + +2023-01-11 Version: 2.0.15 +- Update sdk. + +2023-01-05 Version: 2.0.14 +- Release RecognizeVATInvoice. + +2022-11-10 Version: 2.0.13 +- Release RecognizeVATInvoice. + +2022-10-17 Version: 2.0.12 +- Release RecognizeVATInvoice. + +2022-10-14 Version: 2.0.11 +- Release RecognizeVATInvoice. + +2022-06-21 Version: 2.0.10 +- Release RecognizeTurkeyIdentityCard RecognizeMalaysiaIdentityCard RecognizeRussiaIdentityCard RecognizeIndonesiaIdentityCard RecognizeUkraineIdentityCard RecognizeVietnamIdentityCard. + +2022-05-25 Version: 2.0.9 +- Release RecognizeTurkeyIdentityCard RecognizeMalaysiaIdentityCard RecognizeRussiaIdentityCard RecognizeIndonesiaIdentityCard RecognizeIndonesiaIdentityCard. + +2022-05-05 Version: 2.0.8 +- Release RecognizeUkraineIdentityCard. + +2022-03-09 Version: 2.0.7 +- Release RecognizeVideoCastCrewList. + +2022-03-03 Version: 2.0.6 +- RecognizeVideoCharacter add output field inputFile. + +2021-12-15 Version: 2.0.5 +- RecognizeVideoCharacter add output field inputFile. + +2021-11-23 Version: 1.0.5 +- Update RecognizeCharacter. + +2021-07-02 Version: 1.0.4 +- Release RecognizeQuotaInvoice RecognizeTicketInvoice RecognizePdf. + +2021-05-10 Version: 1.0.3 +- Update RecognizeDriverLicense RecognizeLicensePlate. + +2021-03-25 Version: 1.0.2 +- Generated php 2019-12-30 for ocr. + +2021-03-04 Version: 1.0.1 +- Update Ocr. + +2021-01-29 Version: 1.0.0 +- Generated php 2019-12-30 for ocr. + +2020-11-13 Version: 0.1.16 +- Release DetectCardScreenshot RecognizePoiName. + diff --git a/vendor/alibabacloud/ocr-20191230/LICENSE b/vendor/alibabacloud/ocr-20191230/LICENSE new file mode 100644 index 00000000..0c44dcef --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright (c) 2009-present, Alibaba Cloud All rights reserved. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/vendor/alibabacloud/ocr-20191230/README-CN.md b/vendor/alibabacloud/ocr-20191230/README-CN.md new file mode 100644 index 00000000..d7fdd39f --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/README-CN.md @@ -0,0 +1,35 @@ +[English](README.md) | 简体中文 + +![](https://aliyunsdk-pages.alicdn.com/icons/AlibabaCloud.svg) + +# Alibaba Cloud ocr SDK for PHP + +## 安装 + +### Composer + +```bash +composer require alibabacloud/ocr-20191230 +``` + +## 问题 + +[提交 Issue](https://github.com/aliyun/alibabacloud-php-sdk/issues/new),不符合指南的问题可能会立即关闭。 + +## 使用说明 + +[快速使用](https://github.com/aliyun/alibabacloud-php-sdk/blob/master/docs/0-Examples-CN.md#%E5%BF%AB%E9%80%9F%E4%BD%BF%E7%94%A8) + +## 发行说明 + +每个版本的详细更改记录在[发行说明](./ChangeLog.txt)中。 + +## 相关 + +* [最新源码](https://github.com/aliyun/alibabacloud-php-sdk/) + +## 许可证 + +[Apache-2.0](http://www.apache.org/licenses/LICENSE-2.0) + +Copyright (c) 2009-present, Alibaba Cloud All rights reserved. diff --git a/vendor/alibabacloud/ocr-20191230/README.md b/vendor/alibabacloud/ocr-20191230/README.md new file mode 100644 index 00000000..329f3e93 --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/README.md @@ -0,0 +1,35 @@ +English | [简体中文](README-CN.md) + +![](https://aliyunsdk-pages.alicdn.com/icons/AlibabaCloud.svg) + +# Alibaba Cloud ocr SDK for PHP + +## Installation + +### Composer + +```bash +composer require alibabacloud/ocr-20191230 +``` + +## Issues + +[Opening an Issue](https://github.com/aliyun/alibabacloud-php-sdk/issues/new), Issues not conforming to the guidelines may be closed immediately. + +## Usage + +[Quick Examples](https://github.com/aliyun/alibabacloud-php-sdk/blob/master/docs/0-Examples-EN.md#quick-examples) + +## Changelog + +Detailed changes for each release are documented in the [release notes](./ChangeLog.txt). + +## References + +* [Latest Release](https://github.com/aliyun/alibabacloud-php-sdk/) + +## License + +[Apache-2.0](http://www.apache.org/licenses/LICENSE-2.0) + +Copyright (c) 2009-present, Alibaba Cloud All rights reserved. diff --git a/vendor/alibabacloud/ocr-20191230/autoload.php b/vendor/alibabacloud/ocr-20191230/autoload.php new file mode 100644 index 00000000..508ac344 --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/autoload.php @@ -0,0 +1,17 @@ +5.5", + "alibabacloud/tea-utils": "^0.2.19", + "alibabacloud/tea-oss-sdk": "^0.3.0", + "alibabacloud/openplatform-20191219": "^2.0.1", + "alibabacloud/tea-oss-utils": "^0.3.1", + "alibabacloud/tea-fileform": "^0.3.0", + "alibabacloud/darabonba-openapi": "^0.2.8", + "alibabacloud/openapi-util": "^0.1.10|^0.2.1", + "alibabacloud/endpoint-util": "^0.1.0" + }, + "autoload": { + "psr-4": { + "AlibabaCloud\\SDK\\Ocr\\V20191230\\": "src" + } + }, + "scripts": { + "fixer": "php-cs-fixer fix ./" + }, + "config": { + "sort-packages": true, + "preferred-install": "dist", + "optimize-autoloader": true + }, + "prefer-stable": true +} \ No newline at end of file diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/GetAsyncJobResultRequest.php b/vendor/alibabacloud/ocr-20191230/src/Models/GetAsyncJobResultRequest.php new file mode 100644 index 00000000..7f489cc0 --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/GetAsyncJobResultRequest.php @@ -0,0 +1,49 @@ + 'JobId', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->jobId) { + $res['JobId'] = $this->jobId; + } + + return $res; + } + + /** + * @param array $map + * + * @return GetAsyncJobResultRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['JobId'])) { + $model->jobId = $map['JobId']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/GetAsyncJobResultResponse.php b/vendor/alibabacloud/ocr-20191230/src/Models/GetAsyncJobResultResponse.php new file mode 100644 index 00000000..01b2fcdd --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/GetAsyncJobResultResponse.php @@ -0,0 +1,74 @@ + 'headers', + 'statusCode' => 'statusCode', + 'body' => 'body', + ]; + + public function validate() + { + Model::validateRequired('headers', $this->headers, true); + Model::validateRequired('statusCode', $this->statusCode, true); + Model::validateRequired('body', $this->body, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->headers) { + $res['headers'] = $this->headers; + } + if (null !== $this->statusCode) { + $res['statusCode'] = $this->statusCode; + } + if (null !== $this->body) { + $res['body'] = null !== $this->body ? $this->body->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return GetAsyncJobResultResponse + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['headers'])) { + $model->headers = $map['headers']; + } + if (isset($map['statusCode'])) { + $model->statusCode = $map['statusCode']; + } + if (isset($map['body'])) { + $model->body = GetAsyncJobResultResponseBody::fromMap($map['body']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/GetAsyncJobResultResponseBody.php b/vendor/alibabacloud/ocr-20191230/src/Models/GetAsyncJobResultResponseBody.php new file mode 100644 index 00000000..ed3010ad --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/GetAsyncJobResultResponseBody.php @@ -0,0 +1,62 @@ + 'Data', + 'requestId' => 'RequestId', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->data) { + $res['Data'] = null !== $this->data ? $this->data->toMap() : null; + } + if (null !== $this->requestId) { + $res['RequestId'] = $this->requestId; + } + + return $res; + } + + /** + * @param array $map + * + * @return GetAsyncJobResultResponseBody + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Data'])) { + $model->data = data::fromMap($map['Data']); + } + if (isset($map['RequestId'])) { + $model->requestId = $map['RequestId']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/GetAsyncJobResultResponseBody/data.php b/vendor/alibabacloud/ocr-20191230/src/Models/GetAsyncJobResultResponseBody/data.php new file mode 100644 index 00000000..824ab6c1 --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/GetAsyncJobResultResponseBody/data.php @@ -0,0 +1,103 @@ + 'ErrorCode', + 'errorMessage' => 'ErrorMessage', + 'jobId' => 'JobId', + 'result' => 'Result', + 'status' => 'Status', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->errorCode) { + $res['ErrorCode'] = $this->errorCode; + } + if (null !== $this->errorMessage) { + $res['ErrorMessage'] = $this->errorMessage; + } + if (null !== $this->jobId) { + $res['JobId'] = $this->jobId; + } + if (null !== $this->result) { + $res['Result'] = $this->result; + } + if (null !== $this->status) { + $res['Status'] = $this->status; + } + + return $res; + } + + /** + * @param array $map + * + * @return data + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['ErrorCode'])) { + $model->errorCode = $map['ErrorCode']; + } + if (isset($map['ErrorMessage'])) { + $model->errorMessage = $map['ErrorMessage']; + } + if (isset($map['JobId'])) { + $model->jobId = $map['JobId']; + } + if (isset($map['Result'])) { + $model->result = $map['Result']; + } + if (isset($map['Status'])) { + $model->status = $map['Status']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBankCardAdvanceRequest.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBankCardAdvanceRequest.php new file mode 100644 index 00000000..64333edb --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBankCardAdvanceRequest.php @@ -0,0 +1,50 @@ + 'ImageURL', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->imageURLObject) { + $res['ImageURL'] = $this->imageURLObject; + } + + return $res; + } + + /** + * @param array $map + * + * @return RecognizeBankCardAdvanceRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['ImageURL'])) { + $model->imageURLObject = $map['ImageURL']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBankCardRequest.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBankCardRequest.php new file mode 100644 index 00000000..3bd8179b --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBankCardRequest.php @@ -0,0 +1,49 @@ + 'ImageURL', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->imageURL) { + $res['ImageURL'] = $this->imageURL; + } + + return $res; + } + + /** + * @param array $map + * + * @return RecognizeBankCardRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['ImageURL'])) { + $model->imageURL = $map['ImageURL']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBankCardResponse.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBankCardResponse.php new file mode 100644 index 00000000..d468001a --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBankCardResponse.php @@ -0,0 +1,74 @@ + 'headers', + 'statusCode' => 'statusCode', + 'body' => 'body', + ]; + + public function validate() + { + Model::validateRequired('headers', $this->headers, true); + Model::validateRequired('statusCode', $this->statusCode, true); + Model::validateRequired('body', $this->body, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->headers) { + $res['headers'] = $this->headers; + } + if (null !== $this->statusCode) { + $res['statusCode'] = $this->statusCode; + } + if (null !== $this->body) { + $res['body'] = null !== $this->body ? $this->body->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return RecognizeBankCardResponse + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['headers'])) { + $model->headers = $map['headers']; + } + if (isset($map['statusCode'])) { + $model->statusCode = $map['statusCode']; + } + if (isset($map['body'])) { + $model->body = RecognizeBankCardResponseBody::fromMap($map['body']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBankCardResponseBody.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBankCardResponseBody.php new file mode 100644 index 00000000..6e5bca67 --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBankCardResponseBody.php @@ -0,0 +1,62 @@ + 'Data', + 'requestId' => 'RequestId', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->data) { + $res['Data'] = null !== $this->data ? $this->data->toMap() : null; + } + if (null !== $this->requestId) { + $res['RequestId'] = $this->requestId; + } + + return $res; + } + + /** + * @param array $map + * + * @return RecognizeBankCardResponseBody + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Data'])) { + $model->data = data::fromMap($map['Data']); + } + if (isset($map['RequestId'])) { + $model->requestId = $map['RequestId']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBankCardResponseBody/data.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBankCardResponseBody/data.php new file mode 100644 index 00000000..621bed59 --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBankCardResponseBody/data.php @@ -0,0 +1,75 @@ + 'BankName', + 'cardNumber' => 'CardNumber', + 'validDate' => 'ValidDate', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->bankName) { + $res['BankName'] = $this->bankName; + } + if (null !== $this->cardNumber) { + $res['CardNumber'] = $this->cardNumber; + } + if (null !== $this->validDate) { + $res['ValidDate'] = $this->validDate; + } + + return $res; + } + + /** + * @param array $map + * + * @return data + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['BankName'])) { + $model->bankName = $map['BankName']; + } + if (isset($map['CardNumber'])) { + $model->cardNumber = $map['CardNumber']; + } + if (isset($map['ValidDate'])) { + $model->validDate = $map['ValidDate']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBusinessCardAdvanceRequest.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBusinessCardAdvanceRequest.php new file mode 100644 index 00000000..51e7af38 --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBusinessCardAdvanceRequest.php @@ -0,0 +1,50 @@ + 'ImageURL', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->imageURLObject) { + $res['ImageURL'] = $this->imageURLObject; + } + + return $res; + } + + /** + * @param array $map + * + * @return RecognizeBusinessCardAdvanceRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['ImageURL'])) { + $model->imageURLObject = $map['ImageURL']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBusinessCardRequest.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBusinessCardRequest.php new file mode 100644 index 00000000..c58ec50c --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBusinessCardRequest.php @@ -0,0 +1,49 @@ + 'ImageURL', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->imageURL) { + $res['ImageURL'] = $this->imageURL; + } + + return $res; + } + + /** + * @param array $map + * + * @return RecognizeBusinessCardRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['ImageURL'])) { + $model->imageURL = $map['ImageURL']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBusinessCardResponse.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBusinessCardResponse.php new file mode 100644 index 00000000..0d4687d9 --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBusinessCardResponse.php @@ -0,0 +1,74 @@ + 'headers', + 'statusCode' => 'statusCode', + 'body' => 'body', + ]; + + public function validate() + { + Model::validateRequired('headers', $this->headers, true); + Model::validateRequired('statusCode', $this->statusCode, true); + Model::validateRequired('body', $this->body, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->headers) { + $res['headers'] = $this->headers; + } + if (null !== $this->statusCode) { + $res['statusCode'] = $this->statusCode; + } + if (null !== $this->body) { + $res['body'] = null !== $this->body ? $this->body->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return RecognizeBusinessCardResponse + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['headers'])) { + $model->headers = $map['headers']; + } + if (isset($map['statusCode'])) { + $model->statusCode = $map['statusCode']; + } + if (isset($map['body'])) { + $model->body = RecognizeBusinessCardResponseBody::fromMap($map['body']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBusinessCardResponseBody.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBusinessCardResponseBody.php new file mode 100644 index 00000000..68dde4e4 --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBusinessCardResponseBody.php @@ -0,0 +1,62 @@ + 'Data', + 'requestId' => 'RequestId', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->data) { + $res['Data'] = null !== $this->data ? $this->data->toMap() : null; + } + if (null !== $this->requestId) { + $res['RequestId'] = $this->requestId; + } + + return $res; + } + + /** + * @param array $map + * + * @return RecognizeBusinessCardResponseBody + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Data'])) { + $model->data = data::fromMap($map['Data']); + } + if (isset($map['RequestId'])) { + $model->requestId = $map['RequestId']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBusinessCardResponseBody/data.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBusinessCardResponseBody/data.php new file mode 100644 index 00000000..d871dae6 --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBusinessCardResponseBody/data.php @@ -0,0 +1,145 @@ + 'Addresses', + 'cellPhoneNumbers' => 'CellPhoneNumbers', + 'companies' => 'Companies', + 'departments' => 'Departments', + 'emails' => 'Emails', + 'name' => 'Name', + 'officePhoneNumbers' => 'OfficePhoneNumbers', + 'titles' => 'Titles', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->addresses) { + $res['Addresses'] = $this->addresses; + } + if (null !== $this->cellPhoneNumbers) { + $res['CellPhoneNumbers'] = $this->cellPhoneNumbers; + } + if (null !== $this->companies) { + $res['Companies'] = $this->companies; + } + if (null !== $this->departments) { + $res['Departments'] = $this->departments; + } + if (null !== $this->emails) { + $res['Emails'] = $this->emails; + } + if (null !== $this->name) { + $res['Name'] = $this->name; + } + if (null !== $this->officePhoneNumbers) { + $res['OfficePhoneNumbers'] = $this->officePhoneNumbers; + } + if (null !== $this->titles) { + $res['Titles'] = $this->titles; + } + + return $res; + } + + /** + * @param array $map + * + * @return data + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Addresses'])) { + if (!empty($map['Addresses'])) { + $model->addresses = $map['Addresses']; + } + } + if (isset($map['CellPhoneNumbers'])) { + if (!empty($map['CellPhoneNumbers'])) { + $model->cellPhoneNumbers = $map['CellPhoneNumbers']; + } + } + if (isset($map['Companies'])) { + if (!empty($map['Companies'])) { + $model->companies = $map['Companies']; + } + } + if (isset($map['Departments'])) { + if (!empty($map['Departments'])) { + $model->departments = $map['Departments']; + } + } + if (isset($map['Emails'])) { + if (!empty($map['Emails'])) { + $model->emails = $map['Emails']; + } + } + if (isset($map['Name'])) { + $model->name = $map['Name']; + } + if (isset($map['OfficePhoneNumbers'])) { + if (!empty($map['OfficePhoneNumbers'])) { + $model->officePhoneNumbers = $map['OfficePhoneNumbers']; + } + } + if (isset($map['Titles'])) { + if (!empty($map['Titles'])) { + $model->titles = $map['Titles']; + } + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBusinessLicenseAdvanceRequest.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBusinessLicenseAdvanceRequest.php new file mode 100644 index 00000000..6ef9a69e --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBusinessLicenseAdvanceRequest.php @@ -0,0 +1,50 @@ + 'ImageURL', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->imageURLObject) { + $res['ImageURL'] = $this->imageURLObject; + } + + return $res; + } + + /** + * @param array $map + * + * @return RecognizeBusinessLicenseAdvanceRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['ImageURL'])) { + $model->imageURLObject = $map['ImageURL']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBusinessLicenseRequest.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBusinessLicenseRequest.php new file mode 100644 index 00000000..c0dc10dd --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBusinessLicenseRequest.php @@ -0,0 +1,49 @@ + 'ImageURL', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->imageURL) { + $res['ImageURL'] = $this->imageURL; + } + + return $res; + } + + /** + * @param array $map + * + * @return RecognizeBusinessLicenseRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['ImageURL'])) { + $model->imageURL = $map['ImageURL']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBusinessLicenseResponse.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBusinessLicenseResponse.php new file mode 100644 index 00000000..ad0ba958 --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBusinessLicenseResponse.php @@ -0,0 +1,74 @@ + 'headers', + 'statusCode' => 'statusCode', + 'body' => 'body', + ]; + + public function validate() + { + Model::validateRequired('headers', $this->headers, true); + Model::validateRequired('statusCode', $this->statusCode, true); + Model::validateRequired('body', $this->body, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->headers) { + $res['headers'] = $this->headers; + } + if (null !== $this->statusCode) { + $res['statusCode'] = $this->statusCode; + } + if (null !== $this->body) { + $res['body'] = null !== $this->body ? $this->body->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return RecognizeBusinessLicenseResponse + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['headers'])) { + $model->headers = $map['headers']; + } + if (isset($map['statusCode'])) { + $model->statusCode = $map['statusCode']; + } + if (isset($map['body'])) { + $model->body = RecognizeBusinessLicenseResponseBody::fromMap($map['body']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBusinessLicenseResponseBody.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBusinessLicenseResponseBody.php new file mode 100644 index 00000000..7a240a3c --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBusinessLicenseResponseBody.php @@ -0,0 +1,62 @@ + 'Data', + 'requestId' => 'RequestId', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->data) { + $res['Data'] = null !== $this->data ? $this->data->toMap() : null; + } + if (null !== $this->requestId) { + $res['RequestId'] = $this->requestId; + } + + return $res; + } + + /** + * @param array $map + * + * @return RecognizeBusinessLicenseResponseBody + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Data'])) { + $model->data = data::fromMap($map['Data']); + } + if (isset($map['RequestId'])) { + $model->requestId = $map['RequestId']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBusinessLicenseResponseBody/data.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBusinessLicenseResponseBody/data.php new file mode 100644 index 00000000..1a2516e3 --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBusinessLicenseResponseBody/data.php @@ -0,0 +1,215 @@ + 'Address', + 'angle' => 'Angle', + 'business' => 'Business', + 'capital' => 'Capital', + 'emblem' => 'Emblem', + 'establishDate' => 'EstablishDate', + 'legalPerson' => 'LegalPerson', + 'name' => 'Name', + 'QRCode' => 'QRCode', + 'registerNumber' => 'RegisterNumber', + 'stamp' => 'Stamp', + 'title' => 'Title', + 'type' => 'Type', + 'validPeriod' => 'ValidPeriod', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->address) { + $res['Address'] = $this->address; + } + if (null !== $this->angle) { + $res['Angle'] = $this->angle; + } + if (null !== $this->business) { + $res['Business'] = $this->business; + } + if (null !== $this->capital) { + $res['Capital'] = $this->capital; + } + if (null !== $this->emblem) { + $res['Emblem'] = null !== $this->emblem ? $this->emblem->toMap() : null; + } + if (null !== $this->establishDate) { + $res['EstablishDate'] = $this->establishDate; + } + if (null !== $this->legalPerson) { + $res['LegalPerson'] = $this->legalPerson; + } + if (null !== $this->name) { + $res['Name'] = $this->name; + } + if (null !== $this->QRCode) { + $res['QRCode'] = null !== $this->QRCode ? $this->QRCode->toMap() : null; + } + if (null !== $this->registerNumber) { + $res['RegisterNumber'] = $this->registerNumber; + } + if (null !== $this->stamp) { + $res['Stamp'] = null !== $this->stamp ? $this->stamp->toMap() : null; + } + if (null !== $this->title) { + $res['Title'] = null !== $this->title ? $this->title->toMap() : null; + } + if (null !== $this->type) { + $res['Type'] = $this->type; + } + if (null !== $this->validPeriod) { + $res['ValidPeriod'] = $this->validPeriod; + } + + return $res; + } + + /** + * @param array $map + * + * @return data + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Address'])) { + $model->address = $map['Address']; + } + if (isset($map['Angle'])) { + $model->angle = $map['Angle']; + } + if (isset($map['Business'])) { + $model->business = $map['Business']; + } + if (isset($map['Capital'])) { + $model->capital = $map['Capital']; + } + if (isset($map['Emblem'])) { + $model->emblem = emblem::fromMap($map['Emblem']); + } + if (isset($map['EstablishDate'])) { + $model->establishDate = $map['EstablishDate']; + } + if (isset($map['LegalPerson'])) { + $model->legalPerson = $map['LegalPerson']; + } + if (isset($map['Name'])) { + $model->name = $map['Name']; + } + if (isset($map['QRCode'])) { + $model->QRCode = QRCode::fromMap($map['QRCode']); + } + if (isset($map['RegisterNumber'])) { + $model->registerNumber = $map['RegisterNumber']; + } + if (isset($map['Stamp'])) { + $model->stamp = stamp::fromMap($map['Stamp']); + } + if (isset($map['Title'])) { + $model->title = title::fromMap($map['Title']); + } + if (isset($map['Type'])) { + $model->type = $map['Type']; + } + if (isset($map['ValidPeriod'])) { + $model->validPeriod = $map['ValidPeriod']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBusinessLicenseResponseBody/data/QRCode.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBusinessLicenseResponseBody/data/QRCode.php new file mode 100644 index 00000000..2d4ed8d7 --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBusinessLicenseResponseBody/data/QRCode.php @@ -0,0 +1,91 @@ + 'Height', + 'left' => 'Left', + 'top' => 'Top', + 'width' => 'Width', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->height) { + $res['Height'] = $this->height; + } + if (null !== $this->left) { + $res['Left'] = $this->left; + } + if (null !== $this->top) { + $res['Top'] = $this->top; + } + if (null !== $this->width) { + $res['Width'] = $this->width; + } + + return $res; + } + + /** + * @param array $map + * + * @return QRCode + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Height'])) { + $model->height = $map['Height']; + } + if (isset($map['Left'])) { + $model->left = $map['Left']; + } + if (isset($map['Top'])) { + $model->top = $map['Top']; + } + if (isset($map['Width'])) { + $model->width = $map['Width']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBusinessLicenseResponseBody/data/emblem.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBusinessLicenseResponseBody/data/emblem.php new file mode 100644 index 00000000..71cbe433 --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBusinessLicenseResponseBody/data/emblem.php @@ -0,0 +1,91 @@ + 'Height', + 'left' => 'Left', + 'top' => 'Top', + 'width' => 'Width', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->height) { + $res['Height'] = $this->height; + } + if (null !== $this->left) { + $res['Left'] = $this->left; + } + if (null !== $this->top) { + $res['Top'] = $this->top; + } + if (null !== $this->width) { + $res['Width'] = $this->width; + } + + return $res; + } + + /** + * @param array $map + * + * @return emblem + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Height'])) { + $model->height = $map['Height']; + } + if (isset($map['Left'])) { + $model->left = $map['Left']; + } + if (isset($map['Top'])) { + $model->top = $map['Top']; + } + if (isset($map['Width'])) { + $model->width = $map['Width']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBusinessLicenseResponseBody/data/stamp.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBusinessLicenseResponseBody/data/stamp.php new file mode 100644 index 00000000..fc267f81 --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBusinessLicenseResponseBody/data/stamp.php @@ -0,0 +1,91 @@ + 'Height', + 'left' => 'Left', + 'top' => 'Top', + 'width' => 'Width', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->height) { + $res['Height'] = $this->height; + } + if (null !== $this->left) { + $res['Left'] = $this->left; + } + if (null !== $this->top) { + $res['Top'] = $this->top; + } + if (null !== $this->width) { + $res['Width'] = $this->width; + } + + return $res; + } + + /** + * @param array $map + * + * @return stamp + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Height'])) { + $model->height = $map['Height']; + } + if (isset($map['Left'])) { + $model->left = $map['Left']; + } + if (isset($map['Top'])) { + $model->top = $map['Top']; + } + if (isset($map['Width'])) { + $model->width = $map['Width']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBusinessLicenseResponseBody/data/title.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBusinessLicenseResponseBody/data/title.php new file mode 100644 index 00000000..3f812546 --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBusinessLicenseResponseBody/data/title.php @@ -0,0 +1,91 @@ + 'Height', + 'left' => 'Left', + 'top' => 'Top', + 'width' => 'Width', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->height) { + $res['Height'] = $this->height; + } + if (null !== $this->left) { + $res['Left'] = $this->left; + } + if (null !== $this->top) { + $res['Top'] = $this->top; + } + if (null !== $this->width) { + $res['Width'] = $this->width; + } + + return $res; + } + + /** + * @param array $map + * + * @return title + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Height'])) { + $model->height = $map['Height']; + } + if (isset($map['Left'])) { + $model->left = $map['Left']; + } + if (isset($map['Top'])) { + $model->top = $map['Top']; + } + if (isset($map['Width'])) { + $model->width = $map['Width']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeCharacterAdvanceRequest.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeCharacterAdvanceRequest.php new file mode 100644 index 00000000..4e94416d --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeCharacterAdvanceRequest.php @@ -0,0 +1,78 @@ + 'ImageURL', + 'minHeight' => 'MinHeight', + 'outputProbability' => 'OutputProbability', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->imageURLObject) { + $res['ImageURL'] = $this->imageURLObject; + } + if (null !== $this->minHeight) { + $res['MinHeight'] = $this->minHeight; + } + if (null !== $this->outputProbability) { + $res['OutputProbability'] = $this->outputProbability; + } + + return $res; + } + + /** + * @param array $map + * + * @return RecognizeCharacterAdvanceRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['ImageURL'])) { + $model->imageURLObject = $map['ImageURL']; + } + if (isset($map['MinHeight'])) { + $model->minHeight = $map['MinHeight']; + } + if (isset($map['OutputProbability'])) { + $model->outputProbability = $map['OutputProbability']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeCharacterRequest.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeCharacterRequest.php new file mode 100644 index 00000000..513bc925 --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeCharacterRequest.php @@ -0,0 +1,77 @@ + 'ImageURL', + 'minHeight' => 'MinHeight', + 'outputProbability' => 'OutputProbability', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->imageURL) { + $res['ImageURL'] = $this->imageURL; + } + if (null !== $this->minHeight) { + $res['MinHeight'] = $this->minHeight; + } + if (null !== $this->outputProbability) { + $res['OutputProbability'] = $this->outputProbability; + } + + return $res; + } + + /** + * @param array $map + * + * @return RecognizeCharacterRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['ImageURL'])) { + $model->imageURL = $map['ImageURL']; + } + if (isset($map['MinHeight'])) { + $model->minHeight = $map['MinHeight']; + } + if (isset($map['OutputProbability'])) { + $model->outputProbability = $map['OutputProbability']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeCharacterResponse.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeCharacterResponse.php new file mode 100644 index 00000000..9a489788 --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeCharacterResponse.php @@ -0,0 +1,74 @@ + 'headers', + 'statusCode' => 'statusCode', + 'body' => 'body', + ]; + + public function validate() + { + Model::validateRequired('headers', $this->headers, true); + Model::validateRequired('statusCode', $this->statusCode, true); + Model::validateRequired('body', $this->body, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->headers) { + $res['headers'] = $this->headers; + } + if (null !== $this->statusCode) { + $res['statusCode'] = $this->statusCode; + } + if (null !== $this->body) { + $res['body'] = null !== $this->body ? $this->body->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return RecognizeCharacterResponse + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['headers'])) { + $model->headers = $map['headers']; + } + if (isset($map['statusCode'])) { + $model->statusCode = $map['statusCode']; + } + if (isset($map['body'])) { + $model->body = RecognizeCharacterResponseBody::fromMap($map['body']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeCharacterResponseBody.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeCharacterResponseBody.php new file mode 100644 index 00000000..1b31be48 --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeCharacterResponseBody.php @@ -0,0 +1,62 @@ + 'Data', + 'requestId' => 'RequestId', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->data) { + $res['Data'] = null !== $this->data ? $this->data->toMap() : null; + } + if (null !== $this->requestId) { + $res['RequestId'] = $this->requestId; + } + + return $res; + } + + /** + * @param array $map + * + * @return RecognizeCharacterResponseBody + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Data'])) { + $model->data = data::fromMap($map['Data']); + } + if (isset($map['RequestId'])) { + $model->requestId = $map['RequestId']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeCharacterResponseBody/data.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeCharacterResponseBody/data.php new file mode 100644 index 00000000..23d688df --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeCharacterResponseBody/data.php @@ -0,0 +1,60 @@ + 'Results', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->results) { + $res['Results'] = []; + if (null !== $this->results && \is_array($this->results)) { + $n = 0; + foreach ($this->results as $item) { + $res['Results'][$n++] = null !== $item ? $item->toMap() : $item; + } + } + } + + return $res; + } + + /** + * @param array $map + * + * @return data + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Results'])) { + if (!empty($map['Results'])) { + $model->results = []; + $n = 0; + foreach ($map['Results'] as $item) { + $model->results[$n++] = null !== $item ? results::fromMap($item) : $item; + } + } + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeCharacterResponseBody/data/results.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeCharacterResponseBody/data/results.php new file mode 100644 index 00000000..70d21639 --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeCharacterResponseBody/data/results.php @@ -0,0 +1,74 @@ + 'Probability', + 'text' => 'Text', + 'textRectangles' => 'TextRectangles', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->probability) { + $res['Probability'] = $this->probability; + } + if (null !== $this->text) { + $res['Text'] = $this->text; + } + if (null !== $this->textRectangles) { + $res['TextRectangles'] = null !== $this->textRectangles ? $this->textRectangles->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return results + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Probability'])) { + $model->probability = $map['Probability']; + } + if (isset($map['Text'])) { + $model->text = $map['Text']; + } + if (isset($map['TextRectangles'])) { + $model->textRectangles = textRectangles::fromMap($map['TextRectangles']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeCharacterResponseBody/data/results/textRectangles.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeCharacterResponseBody/data/results/textRectangles.php new file mode 100644 index 00000000..94d04822 --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeCharacterResponseBody/data/results/textRectangles.php @@ -0,0 +1,105 @@ + 'Angle', + 'height' => 'Height', + 'left' => 'Left', + 'top' => 'Top', + 'width' => 'Width', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->angle) { + $res['Angle'] = $this->angle; + } + if (null !== $this->height) { + $res['Height'] = $this->height; + } + if (null !== $this->left) { + $res['Left'] = $this->left; + } + if (null !== $this->top) { + $res['Top'] = $this->top; + } + if (null !== $this->width) { + $res['Width'] = $this->width; + } + + return $res; + } + + /** + * @param array $map + * + * @return textRectangles + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Angle'])) { + $model->angle = $map['Angle']; + } + if (isset($map['Height'])) { + $model->height = $map['Height']; + } + if (isset($map['Left'])) { + $model->left = $map['Left']; + } + if (isset($map['Top'])) { + $model->top = $map['Top']; + } + if (isset($map['Width'])) { + $model->width = $map['Width']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeDriverLicenseAdvanceRequest.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeDriverLicenseAdvanceRequest.php new file mode 100644 index 00000000..d756b15d --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeDriverLicenseAdvanceRequest.php @@ -0,0 +1,64 @@ + 'ImageURL', + 'side' => 'Side', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->imageURLObject) { + $res['ImageURL'] = $this->imageURLObject; + } + if (null !== $this->side) { + $res['Side'] = $this->side; + } + + return $res; + } + + /** + * @param array $map + * + * @return RecognizeDriverLicenseAdvanceRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['ImageURL'])) { + $model->imageURLObject = $map['ImageURL']; + } + if (isset($map['Side'])) { + $model->side = $map['Side']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeDriverLicenseRequest.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeDriverLicenseRequest.php new file mode 100644 index 00000000..2d695324 --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeDriverLicenseRequest.php @@ -0,0 +1,63 @@ + 'ImageURL', + 'side' => 'Side', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->imageURL) { + $res['ImageURL'] = $this->imageURL; + } + if (null !== $this->side) { + $res['Side'] = $this->side; + } + + return $res; + } + + /** + * @param array $map + * + * @return RecognizeDriverLicenseRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['ImageURL'])) { + $model->imageURL = $map['ImageURL']; + } + if (isset($map['Side'])) { + $model->side = $map['Side']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeDriverLicenseResponse.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeDriverLicenseResponse.php new file mode 100644 index 00000000..c46341ee --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeDriverLicenseResponse.php @@ -0,0 +1,74 @@ + 'headers', + 'statusCode' => 'statusCode', + 'body' => 'body', + ]; + + public function validate() + { + Model::validateRequired('headers', $this->headers, true); + Model::validateRequired('statusCode', $this->statusCode, true); + Model::validateRequired('body', $this->body, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->headers) { + $res['headers'] = $this->headers; + } + if (null !== $this->statusCode) { + $res['statusCode'] = $this->statusCode; + } + if (null !== $this->body) { + $res['body'] = null !== $this->body ? $this->body->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return RecognizeDriverLicenseResponse + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['headers'])) { + $model->headers = $map['headers']; + } + if (isset($map['statusCode'])) { + $model->statusCode = $map['statusCode']; + } + if (isset($map['body'])) { + $model->body = RecognizeDriverLicenseResponseBody::fromMap($map['body']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeDriverLicenseResponseBody.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeDriverLicenseResponseBody.php new file mode 100644 index 00000000..04e98b73 --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeDriverLicenseResponseBody.php @@ -0,0 +1,62 @@ + 'Data', + 'requestId' => 'RequestId', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->data) { + $res['Data'] = null !== $this->data ? $this->data->toMap() : null; + } + if (null !== $this->requestId) { + $res['RequestId'] = $this->requestId; + } + + return $res; + } + + /** + * @param array $map + * + * @return RecognizeDriverLicenseResponseBody + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Data'])) { + $model->data = data::fromMap($map['Data']); + } + if (isset($map['RequestId'])) { + $model->requestId = $map['RequestId']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeDriverLicenseResponseBody/data.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeDriverLicenseResponseBody/data.php new file mode 100644 index 00000000..d7949a22 --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeDriverLicenseResponseBody/data.php @@ -0,0 +1,61 @@ + 'BackResult', + 'faceResult' => 'FaceResult', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->backResult) { + $res['BackResult'] = null !== $this->backResult ? $this->backResult->toMap() : null; + } + if (null !== $this->faceResult) { + $res['FaceResult'] = null !== $this->faceResult ? $this->faceResult->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return data + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['BackResult'])) { + $model->backResult = backResult::fromMap($map['BackResult']); + } + if (isset($map['FaceResult'])) { + $model->faceResult = faceResult::fromMap($map['FaceResult']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeDriverLicenseResponseBody/data/backResult.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeDriverLicenseResponseBody/data/backResult.php new file mode 100644 index 00000000..7f6802a8 --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeDriverLicenseResponseBody/data/backResult.php @@ -0,0 +1,87 @@ + 'ArchiveNumber', + 'cardNumber' => 'CardNumber', + 'name' => 'Name', + 'record' => 'Record', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->archiveNumber) { + $res['ArchiveNumber'] = $this->archiveNumber; + } + if (null !== $this->cardNumber) { + $res['CardNumber'] = $this->cardNumber; + } + if (null !== $this->name) { + $res['Name'] = $this->name; + } + if (null !== $this->record) { + $res['Record'] = $this->record; + } + + return $res; + } + + /** + * @param array $map + * + * @return backResult + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['ArchiveNumber'])) { + $model->archiveNumber = $map['ArchiveNumber']; + } + if (isset($map['CardNumber'])) { + $model->cardNumber = $map['CardNumber']; + } + if (isset($map['Name'])) { + $model->name = $map['Name']; + } + if (isset($map['Record'])) { + $model->record = $map['Record']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeDriverLicenseResponseBody/data/faceResult.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeDriverLicenseResponseBody/data/faceResult.php new file mode 100644 index 00000000..2bab3948 --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeDriverLicenseResponseBody/data/faceResult.php @@ -0,0 +1,153 @@ + 'Address', + 'endDate' => 'EndDate', + 'gender' => 'Gender', + 'issueDate' => 'IssueDate', + 'issueUnit' => 'IssueUnit', + 'licenseNumber' => 'LicenseNumber', + 'name' => 'Name', + 'startDate' => 'StartDate', + 'vehicleType' => 'VehicleType', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->address) { + $res['Address'] = $this->address; + } + if (null !== $this->endDate) { + $res['EndDate'] = $this->endDate; + } + if (null !== $this->gender) { + $res['Gender'] = $this->gender; + } + if (null !== $this->issueDate) { + $res['IssueDate'] = $this->issueDate; + } + if (null !== $this->issueUnit) { + $res['IssueUnit'] = $this->issueUnit; + } + if (null !== $this->licenseNumber) { + $res['LicenseNumber'] = $this->licenseNumber; + } + if (null !== $this->name) { + $res['Name'] = $this->name; + } + if (null !== $this->startDate) { + $res['StartDate'] = $this->startDate; + } + if (null !== $this->vehicleType) { + $res['VehicleType'] = $this->vehicleType; + } + + return $res; + } + + /** + * @param array $map + * + * @return faceResult + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Address'])) { + $model->address = $map['Address']; + } + if (isset($map['EndDate'])) { + $model->endDate = $map['EndDate']; + } + if (isset($map['Gender'])) { + $model->gender = $map['Gender']; + } + if (isset($map['IssueDate'])) { + $model->issueDate = $map['IssueDate']; + } + if (isset($map['IssueUnit'])) { + $model->issueUnit = $map['IssueUnit']; + } + if (isset($map['LicenseNumber'])) { + $model->licenseNumber = $map['LicenseNumber']; + } + if (isset($map['Name'])) { + $model->name = $map['Name']; + } + if (isset($map['StartDate'])) { + $model->startDate = $map['StartDate']; + } + if (isset($map['VehicleType'])) { + $model->vehicleType = $map['VehicleType']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeDrivingLicenseAdvanceRequest.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeDrivingLicenseAdvanceRequest.php new file mode 100644 index 00000000..6c9d8e0b --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeDrivingLicenseAdvanceRequest.php @@ -0,0 +1,64 @@ + 'ImageURL', + 'side' => 'Side', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->imageURLObject) { + $res['ImageURL'] = $this->imageURLObject; + } + if (null !== $this->side) { + $res['Side'] = $this->side; + } + + return $res; + } + + /** + * @param array $map + * + * @return RecognizeDrivingLicenseAdvanceRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['ImageURL'])) { + $model->imageURLObject = $map['ImageURL']; + } + if (isset($map['Side'])) { + $model->side = $map['Side']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeDrivingLicenseRequest.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeDrivingLicenseRequest.php new file mode 100644 index 00000000..c08b1b18 --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeDrivingLicenseRequest.php @@ -0,0 +1,63 @@ + 'ImageURL', + 'side' => 'Side', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->imageURL) { + $res['ImageURL'] = $this->imageURL; + } + if (null !== $this->side) { + $res['Side'] = $this->side; + } + + return $res; + } + + /** + * @param array $map + * + * @return RecognizeDrivingLicenseRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['ImageURL'])) { + $model->imageURL = $map['ImageURL']; + } + if (isset($map['Side'])) { + $model->side = $map['Side']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeDrivingLicenseResponse.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeDrivingLicenseResponse.php new file mode 100644 index 00000000..0c9e8a82 --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeDrivingLicenseResponse.php @@ -0,0 +1,74 @@ + 'headers', + 'statusCode' => 'statusCode', + 'body' => 'body', + ]; + + public function validate() + { + Model::validateRequired('headers', $this->headers, true); + Model::validateRequired('statusCode', $this->statusCode, true); + Model::validateRequired('body', $this->body, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->headers) { + $res['headers'] = $this->headers; + } + if (null !== $this->statusCode) { + $res['statusCode'] = $this->statusCode; + } + if (null !== $this->body) { + $res['body'] = null !== $this->body ? $this->body->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return RecognizeDrivingLicenseResponse + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['headers'])) { + $model->headers = $map['headers']; + } + if (isset($map['statusCode'])) { + $model->statusCode = $map['statusCode']; + } + if (isset($map['body'])) { + $model->body = RecognizeDrivingLicenseResponseBody::fromMap($map['body']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeDrivingLicenseResponseBody.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeDrivingLicenseResponseBody.php new file mode 100644 index 00000000..d79d1df4 --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeDrivingLicenseResponseBody.php @@ -0,0 +1,62 @@ + 'Data', + 'requestId' => 'RequestId', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->data) { + $res['Data'] = null !== $this->data ? $this->data->toMap() : null; + } + if (null !== $this->requestId) { + $res['RequestId'] = $this->requestId; + } + + return $res; + } + + /** + * @param array $map + * + * @return RecognizeDrivingLicenseResponseBody + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Data'])) { + $model->data = data::fromMap($map['Data']); + } + if (isset($map['RequestId'])) { + $model->requestId = $map['RequestId']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeDrivingLicenseResponseBody/data.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeDrivingLicenseResponseBody/data.php new file mode 100644 index 00000000..a2aec2d8 --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeDrivingLicenseResponseBody/data.php @@ -0,0 +1,61 @@ + 'BackResult', + 'faceResult' => 'FaceResult', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->backResult) { + $res['BackResult'] = null !== $this->backResult ? $this->backResult->toMap() : null; + } + if (null !== $this->faceResult) { + $res['FaceResult'] = null !== $this->faceResult ? $this->faceResult->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return data + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['BackResult'])) { + $model->backResult = backResult::fromMap($map['BackResult']); + } + if (isset($map['FaceResult'])) { + $model->faceResult = faceResult::fromMap($map['FaceResult']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeDrivingLicenseResponseBody/data/backResult.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeDrivingLicenseResponseBody/data/backResult.php new file mode 100644 index 00000000..e57464b0 --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeDrivingLicenseResponseBody/data/backResult.php @@ -0,0 +1,169 @@ + 'ApprovedLoad', + 'approvedPassengerCapacity' => 'ApprovedPassengerCapacity', + 'energyType' => 'EnergyType', + 'fileNumber' => 'FileNumber', + 'grossMass' => 'GrossMass', + 'inspectionRecord' => 'InspectionRecord', + 'overallDimension' => 'OverallDimension', + 'plateNumber' => 'PlateNumber', + 'tractionMass' => 'TractionMass', + 'unladenMass' => 'UnladenMass', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->approvedLoad) { + $res['ApprovedLoad'] = $this->approvedLoad; + } + if (null !== $this->approvedPassengerCapacity) { + $res['ApprovedPassengerCapacity'] = $this->approvedPassengerCapacity; + } + if (null !== $this->energyType) { + $res['EnergyType'] = $this->energyType; + } + if (null !== $this->fileNumber) { + $res['FileNumber'] = $this->fileNumber; + } + if (null !== $this->grossMass) { + $res['GrossMass'] = $this->grossMass; + } + if (null !== $this->inspectionRecord) { + $res['InspectionRecord'] = $this->inspectionRecord; + } + if (null !== $this->overallDimension) { + $res['OverallDimension'] = $this->overallDimension; + } + if (null !== $this->plateNumber) { + $res['PlateNumber'] = $this->plateNumber; + } + if (null !== $this->tractionMass) { + $res['TractionMass'] = $this->tractionMass; + } + if (null !== $this->unladenMass) { + $res['UnladenMass'] = $this->unladenMass; + } + + return $res; + } + + /** + * @param array $map + * + * @return backResult + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['ApprovedLoad'])) { + $model->approvedLoad = $map['ApprovedLoad']; + } + if (isset($map['ApprovedPassengerCapacity'])) { + $model->approvedPassengerCapacity = $map['ApprovedPassengerCapacity']; + } + if (isset($map['EnergyType'])) { + $model->energyType = $map['EnergyType']; + } + if (isset($map['FileNumber'])) { + $model->fileNumber = $map['FileNumber']; + } + if (isset($map['GrossMass'])) { + $model->grossMass = $map['GrossMass']; + } + if (isset($map['InspectionRecord'])) { + $model->inspectionRecord = $map['InspectionRecord']; + } + if (isset($map['OverallDimension'])) { + $model->overallDimension = $map['OverallDimension']; + } + if (isset($map['PlateNumber'])) { + $model->plateNumber = $map['PlateNumber']; + } + if (isset($map['TractionMass'])) { + $model->tractionMass = $map['TractionMass']; + } + if (isset($map['UnladenMass'])) { + $model->unladenMass = $map['UnladenMass']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeDrivingLicenseResponseBody/data/faceResult.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeDrivingLicenseResponseBody/data/faceResult.php new file mode 100644 index 00000000..84172d6f --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeDrivingLicenseResponseBody/data/faceResult.php @@ -0,0 +1,163 @@ + 'Address', + 'engineNumber' => 'EngineNumber', + 'issueDate' => 'IssueDate', + 'model' => 'Model', + 'owner' => 'Owner', + 'plateNumber' => 'PlateNumber', + 'registerDate' => 'RegisterDate', + 'useCharacter' => 'UseCharacter', + 'vehicleType' => 'VehicleType', + 'vin' => 'Vin', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->address) { + $res['Address'] = $this->address; + } + if (null !== $this->engineNumber) { + $res['EngineNumber'] = $this->engineNumber; + } + if (null !== $this->issueDate) { + $res['IssueDate'] = $this->issueDate; + } + if (null !== $this->model) { + $res['Model'] = $this->model; + } + if (null !== $this->owner) { + $res['Owner'] = $this->owner; + } + if (null !== $this->plateNumber) { + $res['PlateNumber'] = $this->plateNumber; + } + if (null !== $this->registerDate) { + $res['RegisterDate'] = $this->registerDate; + } + if (null !== $this->useCharacter) { + $res['UseCharacter'] = $this->useCharacter; + } + if (null !== $this->vehicleType) { + $res['VehicleType'] = $this->vehicleType; + } + if (null !== $this->vin) { + $res['Vin'] = $this->vin; + } + + return $res; + } + + /** + * @param array $map + * + * @return faceResult + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Address'])) { + $model->address = $map['Address']; + } + if (isset($map['EngineNumber'])) { + $model->engineNumber = $map['EngineNumber']; + } + if (isset($map['IssueDate'])) { + $model->issueDate = $map['IssueDate']; + } + if (isset($map['Model'])) { + $model->model = $map['Model']; + } + if (isset($map['Owner'])) { + $model->owner = $map['Owner']; + } + if (isset($map['PlateNumber'])) { + $model->plateNumber = $map['PlateNumber']; + } + if (isset($map['RegisterDate'])) { + $model->registerDate = $map['RegisterDate']; + } + if (isset($map['UseCharacter'])) { + $model->useCharacter = $map['UseCharacter']; + } + if (isset($map['VehicleType'])) { + $model->vehicleType = $map['VehicleType']; + } + if (isset($map['Vin'])) { + $model->vin = $map['Vin']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeIdentityCardAdvanceRequest.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeIdentityCardAdvanceRequest.php new file mode 100644 index 00000000..0404a23d --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeIdentityCardAdvanceRequest.php @@ -0,0 +1,64 @@ + 'ImageURL', + 'side' => 'Side', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->imageURLObject) { + $res['ImageURL'] = $this->imageURLObject; + } + if (null !== $this->side) { + $res['Side'] = $this->side; + } + + return $res; + } + + /** + * @param array $map + * + * @return RecognizeIdentityCardAdvanceRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['ImageURL'])) { + $model->imageURLObject = $map['ImageURL']; + } + if (isset($map['Side'])) { + $model->side = $map['Side']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeIdentityCardRequest.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeIdentityCardRequest.php new file mode 100644 index 00000000..fffa4784 --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeIdentityCardRequest.php @@ -0,0 +1,63 @@ + 'ImageURL', + 'side' => 'Side', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->imageURL) { + $res['ImageURL'] = $this->imageURL; + } + if (null !== $this->side) { + $res['Side'] = $this->side; + } + + return $res; + } + + /** + * @param array $map + * + * @return RecognizeIdentityCardRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['ImageURL'])) { + $model->imageURL = $map['ImageURL']; + } + if (isset($map['Side'])) { + $model->side = $map['Side']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeIdentityCardResponse.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeIdentityCardResponse.php new file mode 100644 index 00000000..77d5b4e1 --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeIdentityCardResponse.php @@ -0,0 +1,74 @@ + 'headers', + 'statusCode' => 'statusCode', + 'body' => 'body', + ]; + + public function validate() + { + Model::validateRequired('headers', $this->headers, true); + Model::validateRequired('statusCode', $this->statusCode, true); + Model::validateRequired('body', $this->body, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->headers) { + $res['headers'] = $this->headers; + } + if (null !== $this->statusCode) { + $res['statusCode'] = $this->statusCode; + } + if (null !== $this->body) { + $res['body'] = null !== $this->body ? $this->body->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return RecognizeIdentityCardResponse + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['headers'])) { + $model->headers = $map['headers']; + } + if (isset($map['statusCode'])) { + $model->statusCode = $map['statusCode']; + } + if (isset($map['body'])) { + $model->body = RecognizeIdentityCardResponseBody::fromMap($map['body']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeIdentityCardResponseBody.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeIdentityCardResponseBody.php new file mode 100644 index 00000000..a7f8df4a --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeIdentityCardResponseBody.php @@ -0,0 +1,62 @@ + 'Data', + 'requestId' => 'RequestId', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->data) { + $res['Data'] = null !== $this->data ? $this->data->toMap() : null; + } + if (null !== $this->requestId) { + $res['RequestId'] = $this->requestId; + } + + return $res; + } + + /** + * @param array $map + * + * @return RecognizeIdentityCardResponseBody + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Data'])) { + $model->data = data::fromMap($map['Data']); + } + if (isset($map['RequestId'])) { + $model->requestId = $map['RequestId']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeIdentityCardResponseBody/data.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeIdentityCardResponseBody/data.php new file mode 100644 index 00000000..71423ef5 --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeIdentityCardResponseBody/data.php @@ -0,0 +1,61 @@ + 'BackResult', + 'frontResult' => 'FrontResult', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->backResult) { + $res['BackResult'] = null !== $this->backResult ? $this->backResult->toMap() : null; + } + if (null !== $this->frontResult) { + $res['FrontResult'] = null !== $this->frontResult ? $this->frontResult->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return data + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['BackResult'])) { + $model->backResult = backResult::fromMap($map['BackResult']); + } + if (isset($map['FrontResult'])) { + $model->frontResult = frontResult::fromMap($map['FrontResult']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeIdentityCardResponseBody/data/backResult.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeIdentityCardResponseBody/data/backResult.php new file mode 100644 index 00000000..9436f1c6 --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeIdentityCardResponseBody/data/backResult.php @@ -0,0 +1,75 @@ + 'EndDate', + 'issue' => 'Issue', + 'startDate' => 'StartDate', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->endDate) { + $res['EndDate'] = $this->endDate; + } + if (null !== $this->issue) { + $res['Issue'] = $this->issue; + } + if (null !== $this->startDate) { + $res['StartDate'] = $this->startDate; + } + + return $res; + } + + /** + * @param array $map + * + * @return backResult + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['EndDate'])) { + $model->endDate = $map['EndDate']; + } + if (isset($map['Issue'])) { + $model->issue = $map['Issue']; + } + if (isset($map['StartDate'])) { + $model->startDate = $map['StartDate']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeIdentityCardResponseBody/data/frontResult.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeIdentityCardResponseBody/data/frontResult.php new file mode 100644 index 00000000..68612c04 --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeIdentityCardResponseBody/data/frontResult.php @@ -0,0 +1,174 @@ + 'Address', + 'birthDate' => 'BirthDate', + 'cardAreas' => 'CardAreas', + 'faceRectVertices' => 'FaceRectVertices', + 'faceRectangle' => 'FaceRectangle', + 'gender' => 'Gender', + 'IDNumber' => 'IDNumber', + 'name' => 'Name', + 'nationality' => 'Nationality', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->address) { + $res['Address'] = $this->address; + } + if (null !== $this->birthDate) { + $res['BirthDate'] = $this->birthDate; + } + if (null !== $this->cardAreas) { + $res['CardAreas'] = []; + if (null !== $this->cardAreas && \is_array($this->cardAreas)) { + $n = 0; + foreach ($this->cardAreas as $item) { + $res['CardAreas'][$n++] = null !== $item ? $item->toMap() : $item; + } + } + } + if (null !== $this->faceRectVertices) { + $res['FaceRectVertices'] = []; + if (null !== $this->faceRectVertices && \is_array($this->faceRectVertices)) { + $n = 0; + foreach ($this->faceRectVertices as $item) { + $res['FaceRectVertices'][$n++] = null !== $item ? $item->toMap() : $item; + } + } + } + if (null !== $this->faceRectangle) { + $res['FaceRectangle'] = null !== $this->faceRectangle ? $this->faceRectangle->toMap() : null; + } + if (null !== $this->gender) { + $res['Gender'] = $this->gender; + } + if (null !== $this->IDNumber) { + $res['IDNumber'] = $this->IDNumber; + } + if (null !== $this->name) { + $res['Name'] = $this->name; + } + if (null !== $this->nationality) { + $res['Nationality'] = $this->nationality; + } + + return $res; + } + + /** + * @param array $map + * + * @return frontResult + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Address'])) { + $model->address = $map['Address']; + } + if (isset($map['BirthDate'])) { + $model->birthDate = $map['BirthDate']; + } + if (isset($map['CardAreas'])) { + if (!empty($map['CardAreas'])) { + $model->cardAreas = []; + $n = 0; + foreach ($map['CardAreas'] as $item) { + $model->cardAreas[$n++] = null !== $item ? cardAreas::fromMap($item) : $item; + } + } + } + if (isset($map['FaceRectVertices'])) { + if (!empty($map['FaceRectVertices'])) { + $model->faceRectVertices = []; + $n = 0; + foreach ($map['FaceRectVertices'] as $item) { + $model->faceRectVertices[$n++] = null !== $item ? faceRectVertices::fromMap($item) : $item; + } + } + } + if (isset($map['FaceRectangle'])) { + $model->faceRectangle = faceRectangle::fromMap($map['FaceRectangle']); + } + if (isset($map['Gender'])) { + $model->gender = $map['Gender']; + } + if (isset($map['IDNumber'])) { + $model->IDNumber = $map['IDNumber']; + } + if (isset($map['Name'])) { + $model->name = $map['Name']; + } + if (isset($map['Nationality'])) { + $model->nationality = $map['Nationality']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeIdentityCardResponseBody/data/frontResult/cardAreas.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeIdentityCardResponseBody/data/frontResult/cardAreas.php new file mode 100644 index 00000000..986abd75 --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeIdentityCardResponseBody/data/frontResult/cardAreas.php @@ -0,0 +1,63 @@ + 'X', + 'y' => 'Y', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->x) { + $res['X'] = $this->x; + } + if (null !== $this->y) { + $res['Y'] = $this->y; + } + + return $res; + } + + /** + * @param array $map + * + * @return cardAreas + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['X'])) { + $model->x = $map['X']; + } + if (isset($map['Y'])) { + $model->y = $map['Y']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeIdentityCardResponseBody/data/frontResult/faceRectVertices.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeIdentityCardResponseBody/data/frontResult/faceRectVertices.php new file mode 100644 index 00000000..9bae783e --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeIdentityCardResponseBody/data/frontResult/faceRectVertices.php @@ -0,0 +1,63 @@ + 'X', + 'y' => 'Y', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->x) { + $res['X'] = $this->x; + } + if (null !== $this->y) { + $res['Y'] = $this->y; + } + + return $res; + } + + /** + * @param array $map + * + * @return faceRectVertices + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['X'])) { + $model->x = $map['X']; + } + if (isset($map['Y'])) { + $model->y = $map['Y']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeIdentityCardResponseBody/data/frontResult/faceRectangle.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeIdentityCardResponseBody/data/frontResult/faceRectangle.php new file mode 100644 index 00000000..4c012c55 --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeIdentityCardResponseBody/data/frontResult/faceRectangle.php @@ -0,0 +1,75 @@ + 'Angle', + 'center' => 'Center', + 'size' => 'Size', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->angle) { + $res['Angle'] = $this->angle; + } + if (null !== $this->center) { + $res['Center'] = null !== $this->center ? $this->center->toMap() : null; + } + if (null !== $this->size) { + $res['Size'] = null !== $this->size ? $this->size->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return faceRectangle + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Angle'])) { + $model->angle = $map['Angle']; + } + if (isset($map['Center'])) { + $model->center = center::fromMap($map['Center']); + } + if (isset($map['Size'])) { + $model->size = size::fromMap($map['Size']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeIdentityCardResponseBody/data/frontResult/faceRectangle/center.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeIdentityCardResponseBody/data/frontResult/faceRectangle/center.php new file mode 100644 index 00000000..9d8906bf --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeIdentityCardResponseBody/data/frontResult/faceRectangle/center.php @@ -0,0 +1,63 @@ + 'X', + 'y' => 'Y', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->x) { + $res['X'] = $this->x; + } + if (null !== $this->y) { + $res['Y'] = $this->y; + } + + return $res; + } + + /** + * @param array $map + * + * @return center + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['X'])) { + $model->x = $map['X']; + } + if (isset($map['Y'])) { + $model->y = $map['Y']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeIdentityCardResponseBody/data/frontResult/faceRectangle/size.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeIdentityCardResponseBody/data/frontResult/faceRectangle/size.php new file mode 100644 index 00000000..dbacc2fe --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeIdentityCardResponseBody/data/frontResult/faceRectangle/size.php @@ -0,0 +1,63 @@ + 'Height', + 'width' => 'Width', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->height) { + $res['Height'] = $this->height; + } + if (null !== $this->width) { + $res['Width'] = $this->width; + } + + return $res; + } + + /** + * @param array $map + * + * @return size + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Height'])) { + $model->height = $map['Height']; + } + if (isset($map['Width'])) { + $model->width = $map['Width']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeLicensePlateAdvanceRequest.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeLicensePlateAdvanceRequest.php new file mode 100644 index 00000000..4510a48b --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeLicensePlateAdvanceRequest.php @@ -0,0 +1,50 @@ + 'ImageURL', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->imageURLObject) { + $res['ImageURL'] = $this->imageURLObject; + } + + return $res; + } + + /** + * @param array $map + * + * @return RecognizeLicensePlateAdvanceRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['ImageURL'])) { + $model->imageURLObject = $map['ImageURL']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeLicensePlateRequest.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeLicensePlateRequest.php new file mode 100644 index 00000000..f3722c81 --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeLicensePlateRequest.php @@ -0,0 +1,49 @@ + 'ImageURL', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->imageURL) { + $res['ImageURL'] = $this->imageURL; + } + + return $res; + } + + /** + * @param array $map + * + * @return RecognizeLicensePlateRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['ImageURL'])) { + $model->imageURL = $map['ImageURL']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeLicensePlateResponse.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeLicensePlateResponse.php new file mode 100644 index 00000000..634bf3dd --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeLicensePlateResponse.php @@ -0,0 +1,74 @@ + 'headers', + 'statusCode' => 'statusCode', + 'body' => 'body', + ]; + + public function validate() + { + Model::validateRequired('headers', $this->headers, true); + Model::validateRequired('statusCode', $this->statusCode, true); + Model::validateRequired('body', $this->body, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->headers) { + $res['headers'] = $this->headers; + } + if (null !== $this->statusCode) { + $res['statusCode'] = $this->statusCode; + } + if (null !== $this->body) { + $res['body'] = null !== $this->body ? $this->body->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return RecognizeLicensePlateResponse + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['headers'])) { + $model->headers = $map['headers']; + } + if (isset($map['statusCode'])) { + $model->statusCode = $map['statusCode']; + } + if (isset($map['body'])) { + $model->body = RecognizeLicensePlateResponseBody::fromMap($map['body']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeLicensePlateResponseBody.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeLicensePlateResponseBody.php new file mode 100644 index 00000000..feb686f9 --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeLicensePlateResponseBody.php @@ -0,0 +1,62 @@ + 'Data', + 'requestId' => 'RequestId', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->data) { + $res['Data'] = null !== $this->data ? $this->data->toMap() : null; + } + if (null !== $this->requestId) { + $res['RequestId'] = $this->requestId; + } + + return $res; + } + + /** + * @param array $map + * + * @return RecognizeLicensePlateResponseBody + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Data'])) { + $model->data = data::fromMap($map['Data']); + } + if (isset($map['RequestId'])) { + $model->requestId = $map['RequestId']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeLicensePlateResponseBody/data.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeLicensePlateResponseBody/data.php new file mode 100644 index 00000000..27b0b8e6 --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeLicensePlateResponseBody/data.php @@ -0,0 +1,60 @@ + 'Plates', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->plates) { + $res['Plates'] = []; + if (null !== $this->plates && \is_array($this->plates)) { + $n = 0; + foreach ($this->plates as $item) { + $res['Plates'][$n++] = null !== $item ? $item->toMap() : $item; + } + } + } + + return $res; + } + + /** + * @param array $map + * + * @return data + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Plates'])) { + if (!empty($map['Plates'])) { + $model->plates = []; + $n = 0; + foreach ($map['Plates'] as $item) { + $model->plates[$n++] = null !== $item ? plates::fromMap($item) : $item; + } + } + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeLicensePlateResponseBody/data/plates.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeLicensePlateResponseBody/data/plates.php new file mode 100644 index 00000000..7fa2fcea --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeLicensePlateResponseBody/data/plates.php @@ -0,0 +1,125 @@ + 'Confidence', + 'plateNumber' => 'PlateNumber', + 'plateType' => 'PlateType', + 'plateTypeConfidence' => 'PlateTypeConfidence', + 'positions' => 'Positions', + 'roi' => 'Roi', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->confidence) { + $res['Confidence'] = $this->confidence; + } + if (null !== $this->plateNumber) { + $res['PlateNumber'] = $this->plateNumber; + } + if (null !== $this->plateType) { + $res['PlateType'] = $this->plateType; + } + if (null !== $this->plateTypeConfidence) { + $res['PlateTypeConfidence'] = $this->plateTypeConfidence; + } + if (null !== $this->positions) { + $res['Positions'] = []; + if (null !== $this->positions && \is_array($this->positions)) { + $n = 0; + foreach ($this->positions as $item) { + $res['Positions'][$n++] = null !== $item ? $item->toMap() : $item; + } + } + } + if (null !== $this->roi) { + $res['Roi'] = null !== $this->roi ? $this->roi->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return plates + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Confidence'])) { + $model->confidence = $map['Confidence']; + } + if (isset($map['PlateNumber'])) { + $model->plateNumber = $map['PlateNumber']; + } + if (isset($map['PlateType'])) { + $model->plateType = $map['PlateType']; + } + if (isset($map['PlateTypeConfidence'])) { + $model->plateTypeConfidence = $map['PlateTypeConfidence']; + } + if (isset($map['Positions'])) { + if (!empty($map['Positions'])) { + $model->positions = []; + $n = 0; + foreach ($map['Positions'] as $item) { + $model->positions[$n++] = null !== $item ? positions::fromMap($item) : $item; + } + } + } + if (isset($map['Roi'])) { + $model->roi = roi::fromMap($map['Roi']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeLicensePlateResponseBody/data/plates/positions.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeLicensePlateResponseBody/data/plates/positions.php new file mode 100644 index 00000000..38148826 --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeLicensePlateResponseBody/data/plates/positions.php @@ -0,0 +1,63 @@ + 'X', + 'y' => 'Y', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->x) { + $res['X'] = $this->x; + } + if (null !== $this->y) { + $res['Y'] = $this->y; + } + + return $res; + } + + /** + * @param array $map + * + * @return positions + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['X'])) { + $model->x = $map['X']; + } + if (isset($map['Y'])) { + $model->y = $map['Y']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeLicensePlateResponseBody/data/plates/roi.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeLicensePlateResponseBody/data/plates/roi.php new file mode 100644 index 00000000..6f72fda2 --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeLicensePlateResponseBody/data/plates/roi.php @@ -0,0 +1,91 @@ + 'H', + 'w' => 'W', + 'x' => 'X', + 'y' => 'Y', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->h) { + $res['H'] = $this->h; + } + if (null !== $this->w) { + $res['W'] = $this->w; + } + if (null !== $this->x) { + $res['X'] = $this->x; + } + if (null !== $this->y) { + $res['Y'] = $this->y; + } + + return $res; + } + + /** + * @param array $map + * + * @return roi + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['H'])) { + $model->h = $map['H']; + } + if (isset($map['W'])) { + $model->w = $map['W']; + } + if (isset($map['X'])) { + $model->x = $map['X']; + } + if (isset($map['Y'])) { + $model->y = $map['Y']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizePdfAdvanceRequest.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizePdfAdvanceRequest.php new file mode 100644 index 00000000..3d92fc87 --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizePdfAdvanceRequest.php @@ -0,0 +1,50 @@ + 'FileURL', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->fileURLObject) { + $res['FileURL'] = $this->fileURLObject; + } + + return $res; + } + + /** + * @param array $map + * + * @return RecognizePdfAdvanceRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['FileURL'])) { + $model->fileURLObject = $map['FileURL']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizePdfRequest.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizePdfRequest.php new file mode 100644 index 00000000..f2b0d7cb --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizePdfRequest.php @@ -0,0 +1,49 @@ + 'FileURL', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->fileURL) { + $res['FileURL'] = $this->fileURL; + } + + return $res; + } + + /** + * @param array $map + * + * @return RecognizePdfRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['FileURL'])) { + $model->fileURL = $map['FileURL']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizePdfResponse.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizePdfResponse.php new file mode 100644 index 00000000..6fc30568 --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizePdfResponse.php @@ -0,0 +1,74 @@ + 'headers', + 'statusCode' => 'statusCode', + 'body' => 'body', + ]; + + public function validate() + { + Model::validateRequired('headers', $this->headers, true); + Model::validateRequired('statusCode', $this->statusCode, true); + Model::validateRequired('body', $this->body, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->headers) { + $res['headers'] = $this->headers; + } + if (null !== $this->statusCode) { + $res['statusCode'] = $this->statusCode; + } + if (null !== $this->body) { + $res['body'] = null !== $this->body ? $this->body->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return RecognizePdfResponse + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['headers'])) { + $model->headers = $map['headers']; + } + if (isset($map['statusCode'])) { + $model->statusCode = $map['statusCode']; + } + if (isset($map['body'])) { + $model->body = RecognizePdfResponseBody::fromMap($map['body']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizePdfResponseBody.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizePdfResponseBody.php new file mode 100644 index 00000000..6fde82b7 --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizePdfResponseBody.php @@ -0,0 +1,62 @@ + 'Data', + 'requestId' => 'RequestId', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->data) { + $res['Data'] = null !== $this->data ? $this->data->toMap() : null; + } + if (null !== $this->requestId) { + $res['RequestId'] = $this->requestId; + } + + return $res; + } + + /** + * @param array $map + * + * @return RecognizePdfResponseBody + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Data'])) { + $model->data = data::fromMap($map['Data']); + } + if (isset($map['RequestId'])) { + $model->requestId = $map['RequestId']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizePdfResponseBody/data.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizePdfResponseBody/data.php new file mode 100644 index 00000000..6b3fc3cb --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizePdfResponseBody/data.php @@ -0,0 +1,144 @@ + 'Angle', + 'height' => 'Height', + 'orgHeight' => 'OrgHeight', + 'orgWidth' => 'OrgWidth', + 'pageIndex' => 'PageIndex', + 'width' => 'Width', + 'wordsInfo' => 'WordsInfo', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->angle) { + $res['Angle'] = $this->angle; + } + if (null !== $this->height) { + $res['Height'] = $this->height; + } + if (null !== $this->orgHeight) { + $res['OrgHeight'] = $this->orgHeight; + } + if (null !== $this->orgWidth) { + $res['OrgWidth'] = $this->orgWidth; + } + if (null !== $this->pageIndex) { + $res['PageIndex'] = $this->pageIndex; + } + if (null !== $this->width) { + $res['Width'] = $this->width; + } + if (null !== $this->wordsInfo) { + $res['WordsInfo'] = []; + if (null !== $this->wordsInfo && \is_array($this->wordsInfo)) { + $n = 0; + foreach ($this->wordsInfo as $item) { + $res['WordsInfo'][$n++] = null !== $item ? $item->toMap() : $item; + } + } + } + + return $res; + } + + /** + * @param array $map + * + * @return data + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Angle'])) { + $model->angle = $map['Angle']; + } + if (isset($map['Height'])) { + $model->height = $map['Height']; + } + if (isset($map['OrgHeight'])) { + $model->orgHeight = $map['OrgHeight']; + } + if (isset($map['OrgWidth'])) { + $model->orgWidth = $map['OrgWidth']; + } + if (isset($map['PageIndex'])) { + $model->pageIndex = $map['PageIndex']; + } + if (isset($map['Width'])) { + $model->width = $map['Width']; + } + if (isset($map['WordsInfo'])) { + if (!empty($map['WordsInfo'])) { + $model->wordsInfo = []; + $n = 0; + foreach ($map['WordsInfo'] as $item) { + $model->wordsInfo[$n++] = null !== $item ? wordsInfo::fromMap($item) : $item; + } + } + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizePdfResponseBody/data/wordsInfo.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizePdfResponseBody/data/wordsInfo.php new file mode 100644 index 00000000..241503de --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizePdfResponseBody/data/wordsInfo.php @@ -0,0 +1,142 @@ + 'Angle', + 'height' => 'Height', + 'positions' => 'Positions', + 'width' => 'Width', + 'word' => 'Word', + 'x' => 'X', + 'y' => 'Y', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->angle) { + $res['Angle'] = $this->angle; + } + if (null !== $this->height) { + $res['Height'] = $this->height; + } + if (null !== $this->positions) { + $res['Positions'] = []; + if (null !== $this->positions && \is_array($this->positions)) { + $n = 0; + foreach ($this->positions as $item) { + $res['Positions'][$n++] = null !== $item ? $item->toMap() : $item; + } + } + } + if (null !== $this->width) { + $res['Width'] = $this->width; + } + if (null !== $this->word) { + $res['Word'] = $this->word; + } + if (null !== $this->x) { + $res['X'] = $this->x; + } + if (null !== $this->y) { + $res['Y'] = $this->y; + } + + return $res; + } + + /** + * @param array $map + * + * @return wordsInfo + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Angle'])) { + $model->angle = $map['Angle']; + } + if (isset($map['Height'])) { + $model->height = $map['Height']; + } + if (isset($map['Positions'])) { + if (!empty($map['Positions'])) { + $model->positions = []; + $n = 0; + foreach ($map['Positions'] as $item) { + $model->positions[$n++] = null !== $item ? positions::fromMap($item) : $item; + } + } + } + if (isset($map['Width'])) { + $model->width = $map['Width']; + } + if (isset($map['Word'])) { + $model->word = $map['Word']; + } + if (isset($map['X'])) { + $model->x = $map['X']; + } + if (isset($map['Y'])) { + $model->y = $map['Y']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizePdfResponseBody/data/wordsInfo/positions.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizePdfResponseBody/data/wordsInfo/positions.php new file mode 100644 index 00000000..9a609f4d --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizePdfResponseBody/data/wordsInfo/positions.php @@ -0,0 +1,63 @@ + 'X', + 'y' => 'Y', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->x) { + $res['X'] = $this->x; + } + if (null !== $this->y) { + $res['Y'] = $this->y; + } + + return $res; + } + + /** + * @param array $map + * + * @return positions + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['X'])) { + $model->x = $map['X']; + } + if (isset($map['Y'])) { + $model->y = $map['Y']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeQrCodeAdvanceRequest.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeQrCodeAdvanceRequest.php new file mode 100644 index 00000000..2513b374 --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeQrCodeAdvanceRequest.php @@ -0,0 +1,62 @@ + 'Tasks', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->tasks) { + $res['Tasks'] = []; + if (null !== $this->tasks && \is_array($this->tasks)) { + $n = 0; + foreach ($this->tasks as $item) { + $res['Tasks'][$n++] = null !== $item ? $item->toMap() : $item; + } + } + } + + return $res; + } + + /** + * @param array $map + * + * @return RecognizeQrCodeAdvanceRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Tasks'])) { + if (!empty($map['Tasks'])) { + $model->tasks = []; + $n = 0; + foreach ($map['Tasks'] as $item) { + $model->tasks[$n++] = null !== $item ? tasks::fromMap($item) : $item; + } + } + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeQrCodeAdvanceRequest/tasks.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeQrCodeAdvanceRequest/tasks.php new file mode 100644 index 00000000..b7607fdf --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeQrCodeAdvanceRequest/tasks.php @@ -0,0 +1,50 @@ + 'ImageURL', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->imageURLObject) { + $res['ImageURL'] = $this->imageURLObject; + } + + return $res; + } + + /** + * @param array $map + * + * @return tasks + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['ImageURL'])) { + $model->imageURLObject = $map['ImageURL']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeQrCodeRequest.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeQrCodeRequest.php new file mode 100644 index 00000000..bd063bfb --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeQrCodeRequest.php @@ -0,0 +1,62 @@ + 'Tasks', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->tasks) { + $res['Tasks'] = []; + if (null !== $this->tasks && \is_array($this->tasks)) { + $n = 0; + foreach ($this->tasks as $item) { + $res['Tasks'][$n++] = null !== $item ? $item->toMap() : $item; + } + } + } + + return $res; + } + + /** + * @param array $map + * + * @return RecognizeQrCodeRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Tasks'])) { + if (!empty($map['Tasks'])) { + $model->tasks = []; + $n = 0; + foreach ($map['Tasks'] as $item) { + $model->tasks[$n++] = null !== $item ? tasks::fromMap($item) : $item; + } + } + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeQrCodeRequest/tasks.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeQrCodeRequest/tasks.php new file mode 100644 index 00000000..1d0da6ec --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeQrCodeRequest/tasks.php @@ -0,0 +1,49 @@ + 'ImageURL', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->imageURL) { + $res['ImageURL'] = $this->imageURL; + } + + return $res; + } + + /** + * @param array $map + * + * @return tasks + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['ImageURL'])) { + $model->imageURL = $map['ImageURL']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeQrCodeResponse.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeQrCodeResponse.php new file mode 100644 index 00000000..6fbb5c08 --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeQrCodeResponse.php @@ -0,0 +1,74 @@ + 'headers', + 'statusCode' => 'statusCode', + 'body' => 'body', + ]; + + public function validate() + { + Model::validateRequired('headers', $this->headers, true); + Model::validateRequired('statusCode', $this->statusCode, true); + Model::validateRequired('body', $this->body, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->headers) { + $res['headers'] = $this->headers; + } + if (null !== $this->statusCode) { + $res['statusCode'] = $this->statusCode; + } + if (null !== $this->body) { + $res['body'] = null !== $this->body ? $this->body->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return RecognizeQrCodeResponse + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['headers'])) { + $model->headers = $map['headers']; + } + if (isset($map['statusCode'])) { + $model->statusCode = $map['statusCode']; + } + if (isset($map['body'])) { + $model->body = RecognizeQrCodeResponseBody::fromMap($map['body']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeQrCodeResponseBody.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeQrCodeResponseBody.php new file mode 100644 index 00000000..d4156f20 --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeQrCodeResponseBody.php @@ -0,0 +1,62 @@ + 'Data', + 'requestId' => 'RequestId', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->data) { + $res['Data'] = null !== $this->data ? $this->data->toMap() : null; + } + if (null !== $this->requestId) { + $res['RequestId'] = $this->requestId; + } + + return $res; + } + + /** + * @param array $map + * + * @return RecognizeQrCodeResponseBody + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Data'])) { + $model->data = data::fromMap($map['Data']); + } + if (isset($map['RequestId'])) { + $model->requestId = $map['RequestId']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeQrCodeResponseBody/data.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeQrCodeResponseBody/data.php new file mode 100644 index 00000000..35e2fda9 --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeQrCodeResponseBody/data.php @@ -0,0 +1,60 @@ + 'Elements', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->elements) { + $res['Elements'] = []; + if (null !== $this->elements && \is_array($this->elements)) { + $n = 0; + foreach ($this->elements as $item) { + $res['Elements'][$n++] = null !== $item ? $item->toMap() : $item; + } + } + } + + return $res; + } + + /** + * @param array $map + * + * @return data + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Elements'])) { + if (!empty($map['Elements'])) { + $model->elements = []; + $n = 0; + foreach ($map['Elements'] as $item) { + $model->elements[$n++] = null !== $item ? elements::fromMap($item) : $item; + } + } + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeQrCodeResponseBody/data/elements.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeQrCodeResponseBody/data/elements.php new file mode 100644 index 00000000..daff87eb --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeQrCodeResponseBody/data/elements.php @@ -0,0 +1,88 @@ + 'ImageURL', + 'results' => 'Results', + 'taskId' => 'TaskId', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->imageURL) { + $res['ImageURL'] = $this->imageURL; + } + if (null !== $this->results) { + $res['Results'] = []; + if (null !== $this->results && \is_array($this->results)) { + $n = 0; + foreach ($this->results as $item) { + $res['Results'][$n++] = null !== $item ? $item->toMap() : $item; + } + } + } + if (null !== $this->taskId) { + $res['TaskId'] = $this->taskId; + } + + return $res; + } + + /** + * @param array $map + * + * @return elements + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['ImageURL'])) { + $model->imageURL = $map['ImageURL']; + } + if (isset($map['Results'])) { + if (!empty($map['Results'])) { + $model->results = []; + $n = 0; + foreach ($map['Results'] as $item) { + $model->results[$n++] = null !== $item ? results::fromMap($item) : $item; + } + } + } + if (isset($map['TaskId'])) { + $model->taskId = $map['TaskId']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeQrCodeResponseBody/data/elements/results.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeQrCodeResponseBody/data/elements/results.php new file mode 100644 index 00000000..d1f02f0b --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeQrCodeResponseBody/data/elements/results.php @@ -0,0 +1,93 @@ + 'Label', + 'qrCodesData' => 'QrCodesData', + 'rate' => 'Rate', + 'suggestion' => 'Suggestion', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->label) { + $res['Label'] = $this->label; + } + if (null !== $this->qrCodesData) { + $res['QrCodesData'] = $this->qrCodesData; + } + if (null !== $this->rate) { + $res['Rate'] = $this->rate; + } + if (null !== $this->suggestion) { + $res['Suggestion'] = $this->suggestion; + } + + return $res; + } + + /** + * @param array $map + * + * @return results + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Label'])) { + $model->label = $map['Label']; + } + if (isset($map['QrCodesData'])) { + if (!empty($map['QrCodesData'])) { + $model->qrCodesData = $map['QrCodesData']; + } + } + if (isset($map['Rate'])) { + $model->rate = $map['Rate']; + } + if (isset($map['Suggestion'])) { + $model->suggestion = $map['Suggestion']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeQuotaInvoiceAdvanceRequest.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeQuotaInvoiceAdvanceRequest.php new file mode 100644 index 00000000..cdaaf232 --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeQuotaInvoiceAdvanceRequest.php @@ -0,0 +1,50 @@ + 'ImageURL', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->imageURLObject) { + $res['ImageURL'] = $this->imageURLObject; + } + + return $res; + } + + /** + * @param array $map + * + * @return RecognizeQuotaInvoiceAdvanceRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['ImageURL'])) { + $model->imageURLObject = $map['ImageURL']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeQuotaInvoiceRequest.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeQuotaInvoiceRequest.php new file mode 100644 index 00000000..9d6e0bdd --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeQuotaInvoiceRequest.php @@ -0,0 +1,49 @@ + 'ImageURL', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->imageURL) { + $res['ImageURL'] = $this->imageURL; + } + + return $res; + } + + /** + * @param array $map + * + * @return RecognizeQuotaInvoiceRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['ImageURL'])) { + $model->imageURL = $map['ImageURL']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeQuotaInvoiceResponse.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeQuotaInvoiceResponse.php new file mode 100644 index 00000000..dc661c80 --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeQuotaInvoiceResponse.php @@ -0,0 +1,74 @@ + 'headers', + 'statusCode' => 'statusCode', + 'body' => 'body', + ]; + + public function validate() + { + Model::validateRequired('headers', $this->headers, true); + Model::validateRequired('statusCode', $this->statusCode, true); + Model::validateRequired('body', $this->body, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->headers) { + $res['headers'] = $this->headers; + } + if (null !== $this->statusCode) { + $res['statusCode'] = $this->statusCode; + } + if (null !== $this->body) { + $res['body'] = null !== $this->body ? $this->body->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return RecognizeQuotaInvoiceResponse + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['headers'])) { + $model->headers = $map['headers']; + } + if (isset($map['statusCode'])) { + $model->statusCode = $map['statusCode']; + } + if (isset($map['body'])) { + $model->body = RecognizeQuotaInvoiceResponseBody::fromMap($map['body']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeQuotaInvoiceResponseBody.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeQuotaInvoiceResponseBody.php new file mode 100644 index 00000000..edf5af6e --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeQuotaInvoiceResponseBody.php @@ -0,0 +1,62 @@ + 'Data', + 'requestId' => 'RequestId', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->data) { + $res['Data'] = null !== $this->data ? $this->data->toMap() : null; + } + if (null !== $this->requestId) { + $res['RequestId'] = $this->requestId; + } + + return $res; + } + + /** + * @param array $map + * + * @return RecognizeQuotaInvoiceResponseBody + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Data'])) { + $model->data = data::fromMap($map['Data']); + } + if (isset($map['RequestId'])) { + $model->requestId = $map['RequestId']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeQuotaInvoiceResponseBody/data.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeQuotaInvoiceResponseBody/data.php new file mode 100644 index 00000000..9d9ab928 --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeQuotaInvoiceResponseBody/data.php @@ -0,0 +1,143 @@ + 'Angle', + 'content' => 'Content', + 'height' => 'Height', + 'keyValueInfos' => 'KeyValueInfos', + 'orgHeight' => 'OrgHeight', + 'orgWidth' => 'OrgWidth', + 'width' => 'Width', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->angle) { + $res['Angle'] = $this->angle; + } + if (null !== $this->content) { + $res['Content'] = null !== $this->content ? $this->content->toMap() : null; + } + if (null !== $this->height) { + $res['Height'] = $this->height; + } + if (null !== $this->keyValueInfos) { + $res['KeyValueInfos'] = []; + if (null !== $this->keyValueInfos && \is_array($this->keyValueInfos)) { + $n = 0; + foreach ($this->keyValueInfos as $item) { + $res['KeyValueInfos'][$n++] = null !== $item ? $item->toMap() : $item; + } + } + } + if (null !== $this->orgHeight) { + $res['OrgHeight'] = $this->orgHeight; + } + if (null !== $this->orgWidth) { + $res['OrgWidth'] = $this->orgWidth; + } + if (null !== $this->width) { + $res['Width'] = $this->width; + } + + return $res; + } + + /** + * @param array $map + * + * @return data + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Angle'])) { + $model->angle = $map['Angle']; + } + if (isset($map['Content'])) { + $model->content = content::fromMap($map['Content']); + } + if (isset($map['Height'])) { + $model->height = $map['Height']; + } + if (isset($map['KeyValueInfos'])) { + if (!empty($map['KeyValueInfos'])) { + $model->keyValueInfos = []; + $n = 0; + foreach ($map['KeyValueInfos'] as $item) { + $model->keyValueInfos[$n++] = null !== $item ? keyValueInfos::fromMap($item) : $item; + } + } + } + if (isset($map['OrgHeight'])) { + $model->orgHeight = $map['OrgHeight']; + } + if (isset($map['OrgWidth'])) { + $model->orgWidth = $map['OrgWidth']; + } + if (isset($map['Width'])) { + $model->width = $map['Width']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeQuotaInvoiceResponseBody/data/content.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeQuotaInvoiceResponseBody/data/content.php new file mode 100644 index 00000000..3684a267 --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeQuotaInvoiceResponseBody/data/content.php @@ -0,0 +1,101 @@ + 'InvoiceAmount', + 'invoiceCode' => 'InvoiceCode', + 'invoiceDetails' => 'InvoiceDetails', + 'invoiceNo' => 'InvoiceNo', + 'sumAmount' => 'SumAmount', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->invoiceAmount) { + $res['InvoiceAmount'] = $this->invoiceAmount; + } + if (null !== $this->invoiceCode) { + $res['InvoiceCode'] = $this->invoiceCode; + } + if (null !== $this->invoiceDetails) { + $res['InvoiceDetails'] = $this->invoiceDetails; + } + if (null !== $this->invoiceNo) { + $res['InvoiceNo'] = $this->invoiceNo; + } + if (null !== $this->sumAmount) { + $res['SumAmount'] = $this->sumAmount; + } + + return $res; + } + + /** + * @param array $map + * + * @return content + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['InvoiceAmount'])) { + $model->invoiceAmount = $map['InvoiceAmount']; + } + if (isset($map['InvoiceCode'])) { + $model->invoiceCode = $map['InvoiceCode']; + } + if (isset($map['InvoiceDetails'])) { + $model->invoiceDetails = $map['InvoiceDetails']; + } + if (isset($map['InvoiceNo'])) { + $model->invoiceNo = $map['InvoiceNo']; + } + if (isset($map['SumAmount'])) { + $model->sumAmount = $map['SumAmount']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeQuotaInvoiceResponseBody/data/keyValueInfos.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeQuotaInvoiceResponseBody/data/keyValueInfos.php new file mode 100644 index 00000000..ce5afff4 --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeQuotaInvoiceResponseBody/data/keyValueInfos.php @@ -0,0 +1,98 @@ + 'Key', + 'value' => 'Value', + 'valuePositions' => 'ValuePositions', + 'valueScore' => 'ValueScore', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->key) { + $res['Key'] = $this->key; + } + if (null !== $this->value) { + $res['Value'] = $this->value; + } + if (null !== $this->valuePositions) { + $res['ValuePositions'] = []; + if (null !== $this->valuePositions && \is_array($this->valuePositions)) { + $n = 0; + foreach ($this->valuePositions as $item) { + $res['ValuePositions'][$n++] = null !== $item ? $item->toMap() : $item; + } + } + } + if (null !== $this->valueScore) { + $res['ValueScore'] = $this->valueScore; + } + + return $res; + } + + /** + * @param array $map + * + * @return keyValueInfos + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Key'])) { + $model->key = $map['Key']; + } + if (isset($map['Value'])) { + $model->value = $map['Value']; + } + if (isset($map['ValuePositions'])) { + if (!empty($map['ValuePositions'])) { + $model->valuePositions = []; + $n = 0; + foreach ($map['ValuePositions'] as $item) { + $model->valuePositions[$n++] = null !== $item ? valuePositions::fromMap($item) : $item; + } + } + } + if (isset($map['ValueScore'])) { + $model->valueScore = $map['ValueScore']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeQuotaInvoiceResponseBody/data/keyValueInfos/valuePositions.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeQuotaInvoiceResponseBody/data/keyValueInfos/valuePositions.php new file mode 100644 index 00000000..540ac260 --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeQuotaInvoiceResponseBody/data/keyValueInfos/valuePositions.php @@ -0,0 +1,63 @@ + 'X', + 'y' => 'Y', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->x) { + $res['X'] = $this->x; + } + if (null !== $this->y) { + $res['Y'] = $this->y; + } + + return $res; + } + + /** + * @param array $map + * + * @return valuePositions + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['X'])) { + $model->x = $map['X']; + } + if (isset($map['Y'])) { + $model->y = $map['Y']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeStampAdvanceRequest.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeStampAdvanceRequest.php new file mode 100644 index 00000000..a1891961 --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeStampAdvanceRequest.php @@ -0,0 +1,50 @@ + 'ImageURL', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->imageURLObject) { + $res['ImageURL'] = $this->imageURLObject; + } + + return $res; + } + + /** + * @param array $map + * + * @return RecognizeStampAdvanceRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['ImageURL'])) { + $model->imageURLObject = $map['ImageURL']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeStampRequest.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeStampRequest.php new file mode 100644 index 00000000..d5097cdf --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeStampRequest.php @@ -0,0 +1,49 @@ + 'ImageURL', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->imageURL) { + $res['ImageURL'] = $this->imageURL; + } + + return $res; + } + + /** + * @param array $map + * + * @return RecognizeStampRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['ImageURL'])) { + $model->imageURL = $map['ImageURL']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeStampResponse.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeStampResponse.php new file mode 100644 index 00000000..1f004044 --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeStampResponse.php @@ -0,0 +1,74 @@ + 'headers', + 'statusCode' => 'statusCode', + 'body' => 'body', + ]; + + public function validate() + { + Model::validateRequired('headers', $this->headers, true); + Model::validateRequired('statusCode', $this->statusCode, true); + Model::validateRequired('body', $this->body, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->headers) { + $res['headers'] = $this->headers; + } + if (null !== $this->statusCode) { + $res['statusCode'] = $this->statusCode; + } + if (null !== $this->body) { + $res['body'] = null !== $this->body ? $this->body->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return RecognizeStampResponse + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['headers'])) { + $model->headers = $map['headers']; + } + if (isset($map['statusCode'])) { + $model->statusCode = $map['statusCode']; + } + if (isset($map['body'])) { + $model->body = RecognizeStampResponseBody::fromMap($map['body']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeStampResponseBody.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeStampResponseBody.php new file mode 100644 index 00000000..d7dfd1fa --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeStampResponseBody.php @@ -0,0 +1,62 @@ + 'Data', + 'requestId' => 'RequestId', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->data) { + $res['Data'] = null !== $this->data ? $this->data->toMap() : null; + } + if (null !== $this->requestId) { + $res['RequestId'] = $this->requestId; + } + + return $res; + } + + /** + * @param array $map + * + * @return RecognizeStampResponseBody + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Data'])) { + $model->data = data::fromMap($map['Data']); + } + if (isset($map['RequestId'])) { + $model->requestId = $map['RequestId']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeStampResponseBody/data.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeStampResponseBody/data.php new file mode 100644 index 00000000..b3d2e88d --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeStampResponseBody/data.php @@ -0,0 +1,60 @@ + 'Results', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->results) { + $res['Results'] = []; + if (null !== $this->results && \is_array($this->results)) { + $n = 0; + foreach ($this->results as $item) { + $res['Results'][$n++] = null !== $item ? $item->toMap() : $item; + } + } + } + + return $res; + } + + /** + * @param array $map + * + * @return data + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Results'])) { + if (!empty($map['Results'])) { + $model->results = []; + $n = 0; + foreach ($map['Results'] as $item) { + $model->results[$n++] = null !== $item ? results::fromMap($item) : $item; + } + } + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeStampResponseBody/data/results.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeStampResponseBody/data/results.php new file mode 100644 index 00000000..6e097204 --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeStampResponseBody/data/results.php @@ -0,0 +1,86 @@ + 'GeneralText', + 'roi' => 'Roi', + 'text' => 'Text', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->generalText) { + $res['GeneralText'] = []; + if (null !== $this->generalText && \is_array($this->generalText)) { + $n = 0; + foreach ($this->generalText as $item) { + $res['GeneralText'][$n++] = null !== $item ? $item->toMap() : $item; + } + } + } + if (null !== $this->roi) { + $res['Roi'] = null !== $this->roi ? $this->roi->toMap() : null; + } + if (null !== $this->text) { + $res['Text'] = null !== $this->text ? $this->text->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return results + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['GeneralText'])) { + if (!empty($map['GeneralText'])) { + $model->generalText = []; + $n = 0; + foreach ($map['GeneralText'] as $item) { + $model->generalText[$n++] = null !== $item ? generalText::fromMap($item) : $item; + } + } + } + if (isset($map['Roi'])) { + $model->roi = roi::fromMap($map['Roi']); + } + if (isset($map['Text'])) { + $model->text = text::fromMap($map['Text']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeStampResponseBody/data/results/generalText.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeStampResponseBody/data/results/generalText.php new file mode 100644 index 00000000..876198f2 --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeStampResponseBody/data/results/generalText.php @@ -0,0 +1,61 @@ + 'Confidence', + 'content' => 'Content', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->confidence) { + $res['Confidence'] = $this->confidence; + } + if (null !== $this->content) { + $res['Content'] = $this->content; + } + + return $res; + } + + /** + * @param array $map + * + * @return generalText + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Confidence'])) { + $model->confidence = $map['Confidence']; + } + if (isset($map['Content'])) { + $model->content = $map['Content']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeStampResponseBody/data/results/roi.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeStampResponseBody/data/results/roi.php new file mode 100644 index 00000000..0a741548 --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeStampResponseBody/data/results/roi.php @@ -0,0 +1,91 @@ + 'Height', + 'left' => 'Left', + 'top' => 'Top', + 'width' => 'Width', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->height) { + $res['Height'] = $this->height; + } + if (null !== $this->left) { + $res['Left'] = $this->left; + } + if (null !== $this->top) { + $res['Top'] = $this->top; + } + if (null !== $this->width) { + $res['Width'] = $this->width; + } + + return $res; + } + + /** + * @param array $map + * + * @return roi + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Height'])) { + $model->height = $map['Height']; + } + if (isset($map['Left'])) { + $model->left = $map['Left']; + } + if (isset($map['Top'])) { + $model->top = $map['Top']; + } + if (isset($map['Width'])) { + $model->width = $map['Width']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeStampResponseBody/data/results/text.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeStampResponseBody/data/results/text.php new file mode 100644 index 00000000..19cc9033 --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeStampResponseBody/data/results/text.php @@ -0,0 +1,61 @@ + 'Confidence', + 'content' => 'Content', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->confidence) { + $res['Confidence'] = $this->confidence; + } + if (null !== $this->content) { + $res['Content'] = $this->content; + } + + return $res; + } + + /** + * @param array $map + * + * @return text + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Confidence'])) { + $model->confidence = $map['Confidence']; + } + if (isset($map['Content'])) { + $model->content = $map['Content']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTableAdvanceRequest.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTableAdvanceRequest.php new file mode 100644 index 00000000..539a3ab0 --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTableAdvanceRequest.php @@ -0,0 +1,120 @@ + 'AssureDirection', + 'hasLine' => 'HasLine', + 'imageURLObject' => 'ImageURL', + 'outputFormat' => 'OutputFormat', + 'skipDetection' => 'SkipDetection', + 'useFinanceModel' => 'UseFinanceModel', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->assureDirection) { + $res['AssureDirection'] = $this->assureDirection; + } + if (null !== $this->hasLine) { + $res['HasLine'] = $this->hasLine; + } + if (null !== $this->imageURLObject) { + $res['ImageURL'] = $this->imageURLObject; + } + if (null !== $this->outputFormat) { + $res['OutputFormat'] = $this->outputFormat; + } + if (null !== $this->skipDetection) { + $res['SkipDetection'] = $this->skipDetection; + } + if (null !== $this->useFinanceModel) { + $res['UseFinanceModel'] = $this->useFinanceModel; + } + + return $res; + } + + /** + * @param array $map + * + * @return RecognizeTableAdvanceRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['AssureDirection'])) { + $model->assureDirection = $map['AssureDirection']; + } + if (isset($map['HasLine'])) { + $model->hasLine = $map['HasLine']; + } + if (isset($map['ImageURL'])) { + $model->imageURLObject = $map['ImageURL']; + } + if (isset($map['OutputFormat'])) { + $model->outputFormat = $map['OutputFormat']; + } + if (isset($map['SkipDetection'])) { + $model->skipDetection = $map['SkipDetection']; + } + if (isset($map['UseFinanceModel'])) { + $model->useFinanceModel = $map['UseFinanceModel']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTableRequest.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTableRequest.php new file mode 100644 index 00000000..43f0f4f5 --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTableRequest.php @@ -0,0 +1,119 @@ + 'AssureDirection', + 'hasLine' => 'HasLine', + 'imageURL' => 'ImageURL', + 'outputFormat' => 'OutputFormat', + 'skipDetection' => 'SkipDetection', + 'useFinanceModel' => 'UseFinanceModel', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->assureDirection) { + $res['AssureDirection'] = $this->assureDirection; + } + if (null !== $this->hasLine) { + $res['HasLine'] = $this->hasLine; + } + if (null !== $this->imageURL) { + $res['ImageURL'] = $this->imageURL; + } + if (null !== $this->outputFormat) { + $res['OutputFormat'] = $this->outputFormat; + } + if (null !== $this->skipDetection) { + $res['SkipDetection'] = $this->skipDetection; + } + if (null !== $this->useFinanceModel) { + $res['UseFinanceModel'] = $this->useFinanceModel; + } + + return $res; + } + + /** + * @param array $map + * + * @return RecognizeTableRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['AssureDirection'])) { + $model->assureDirection = $map['AssureDirection']; + } + if (isset($map['HasLine'])) { + $model->hasLine = $map['HasLine']; + } + if (isset($map['ImageURL'])) { + $model->imageURL = $map['ImageURL']; + } + if (isset($map['OutputFormat'])) { + $model->outputFormat = $map['OutputFormat']; + } + if (isset($map['SkipDetection'])) { + $model->skipDetection = $map['SkipDetection']; + } + if (isset($map['UseFinanceModel'])) { + $model->useFinanceModel = $map['UseFinanceModel']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTableResponse.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTableResponse.php new file mode 100644 index 00000000..f9ad765d --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTableResponse.php @@ -0,0 +1,74 @@ + 'headers', + 'statusCode' => 'statusCode', + 'body' => 'body', + ]; + + public function validate() + { + Model::validateRequired('headers', $this->headers, true); + Model::validateRequired('statusCode', $this->statusCode, true); + Model::validateRequired('body', $this->body, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->headers) { + $res['headers'] = $this->headers; + } + if (null !== $this->statusCode) { + $res['statusCode'] = $this->statusCode; + } + if (null !== $this->body) { + $res['body'] = null !== $this->body ? $this->body->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return RecognizeTableResponse + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['headers'])) { + $model->headers = $map['headers']; + } + if (isset($map['statusCode'])) { + $model->statusCode = $map['statusCode']; + } + if (isset($map['body'])) { + $model->body = RecognizeTableResponseBody::fromMap($map['body']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTableResponseBody.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTableResponseBody.php new file mode 100644 index 00000000..cce227c8 --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTableResponseBody.php @@ -0,0 +1,62 @@ + 'Data', + 'requestId' => 'RequestId', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->data) { + $res['Data'] = null !== $this->data ? $this->data->toMap() : null; + } + if (null !== $this->requestId) { + $res['RequestId'] = $this->requestId; + } + + return $res; + } + + /** + * @param array $map + * + * @return RecognizeTableResponseBody + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Data'])) { + $model->data = data::fromMap($map['Data']); + } + if (isset($map['RequestId'])) { + $model->requestId = $map['RequestId']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTableResponseBody/data.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTableResponseBody/data.php new file mode 100644 index 00000000..c149e516 --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTableResponseBody/data.php @@ -0,0 +1,74 @@ + 'FileContent', + 'tables' => 'Tables', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->fileContent) { + $res['FileContent'] = $this->fileContent; + } + if (null !== $this->tables) { + $res['Tables'] = []; + if (null !== $this->tables && \is_array($this->tables)) { + $n = 0; + foreach ($this->tables as $item) { + $res['Tables'][$n++] = null !== $item ? $item->toMap() : $item; + } + } + } + + return $res; + } + + /** + * @param array $map + * + * @return data + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['FileContent'])) { + $model->fileContent = $map['FileContent']; + } + if (isset($map['Tables'])) { + if (!empty($map['Tables'])) { + $model->tables = []; + $n = 0; + foreach ($map['Tables'] as $item) { + $model->tables[$n++] = null !== $item ? tables::fromMap($item) : $item; + } + } + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTableResponseBody/data/tables.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTableResponseBody/data/tables.php new file mode 100644 index 00000000..9030fdb7 --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTableResponseBody/data/tables.php @@ -0,0 +1,88 @@ + 'Head', + 'tableRows' => 'TableRows', + 'tail' => 'Tail', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->head) { + $res['Head'] = $this->head; + } + if (null !== $this->tableRows) { + $res['TableRows'] = []; + if (null !== $this->tableRows && \is_array($this->tableRows)) { + $n = 0; + foreach ($this->tableRows as $item) { + $res['TableRows'][$n++] = null !== $item ? $item->toMap() : $item; + } + } + } + if (null !== $this->tail) { + $res['Tail'] = $this->tail; + } + + return $res; + } + + /** + * @param array $map + * + * @return tables + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Head'])) { + if (!empty($map['Head'])) { + $model->head = $map['Head']; + } + } + if (isset($map['TableRows'])) { + if (!empty($map['TableRows'])) { + $model->tableRows = []; + $n = 0; + foreach ($map['TableRows'] as $item) { + $model->tableRows[$n++] = null !== $item ? tableRows::fromMap($item) : $item; + } + } + } + if (isset($map['Tail'])) { + if (!empty($map['Tail'])) { + $model->tail = $map['Tail']; + } + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTableResponseBody/data/tables/tableRows.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTableResponseBody/data/tables/tableRows.php new file mode 100644 index 00000000..613dea6b --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTableResponseBody/data/tables/tableRows.php @@ -0,0 +1,60 @@ + 'TableColumns', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->tableColumns) { + $res['TableColumns'] = []; + if (null !== $this->tableColumns && \is_array($this->tableColumns)) { + $n = 0; + foreach ($this->tableColumns as $item) { + $res['TableColumns'][$n++] = null !== $item ? $item->toMap() : $item; + } + } + } + + return $res; + } + + /** + * @param array $map + * + * @return tableRows + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['TableColumns'])) { + if (!empty($map['TableColumns'])) { + $model->tableColumns = []; + $n = 0; + foreach ($map['TableColumns'] as $item) { + $model->tableColumns[$n++] = null !== $item ? tableColumns::fromMap($item) : $item; + } + } + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTableResponseBody/data/tables/tableRows/tableColumns.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTableResponseBody/data/tables/tableRows/tableColumns.php new file mode 100644 index 00000000..b8d6673f --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTableResponseBody/data/tables/tableRows/tableColumns.php @@ -0,0 +1,133 @@ + 'EndColumn', + 'endRow' => 'EndRow', + 'height' => 'Height', + 'startColumn' => 'StartColumn', + 'startRow' => 'StartRow', + 'texts' => 'Texts', + 'width' => 'Width', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->endColumn) { + $res['EndColumn'] = $this->endColumn; + } + if (null !== $this->endRow) { + $res['EndRow'] = $this->endRow; + } + if (null !== $this->height) { + $res['Height'] = $this->height; + } + if (null !== $this->startColumn) { + $res['StartColumn'] = $this->startColumn; + } + if (null !== $this->startRow) { + $res['StartRow'] = $this->startRow; + } + if (null !== $this->texts) { + $res['Texts'] = $this->texts; + } + if (null !== $this->width) { + $res['Width'] = $this->width; + } + + return $res; + } + + /** + * @param array $map + * + * @return tableColumns + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['EndColumn'])) { + $model->endColumn = $map['EndColumn']; + } + if (isset($map['EndRow'])) { + $model->endRow = $map['EndRow']; + } + if (isset($map['Height'])) { + $model->height = $map['Height']; + } + if (isset($map['StartColumn'])) { + $model->startColumn = $map['StartColumn']; + } + if (isset($map['StartRow'])) { + $model->startRow = $map['StartRow']; + } + if (isset($map['Texts'])) { + if (!empty($map['Texts'])) { + $model->texts = $map['Texts']; + } + } + if (isset($map['Width'])) { + $model->width = $map['Width']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTaxiInvoiceAdvanceRequest.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTaxiInvoiceAdvanceRequest.php new file mode 100644 index 00000000..da838b84 --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTaxiInvoiceAdvanceRequest.php @@ -0,0 +1,50 @@ + 'ImageURL', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->imageURLObject) { + $res['ImageURL'] = $this->imageURLObject; + } + + return $res; + } + + /** + * @param array $map + * + * @return RecognizeTaxiInvoiceAdvanceRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['ImageURL'])) { + $model->imageURLObject = $map['ImageURL']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTaxiInvoiceRequest.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTaxiInvoiceRequest.php new file mode 100644 index 00000000..6590748e --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTaxiInvoiceRequest.php @@ -0,0 +1,49 @@ + 'ImageURL', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->imageURL) { + $res['ImageURL'] = $this->imageURL; + } + + return $res; + } + + /** + * @param array $map + * + * @return RecognizeTaxiInvoiceRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['ImageURL'])) { + $model->imageURL = $map['ImageURL']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTaxiInvoiceResponse.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTaxiInvoiceResponse.php new file mode 100644 index 00000000..9f34fa57 --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTaxiInvoiceResponse.php @@ -0,0 +1,74 @@ + 'headers', + 'statusCode' => 'statusCode', + 'body' => 'body', + ]; + + public function validate() + { + Model::validateRequired('headers', $this->headers, true); + Model::validateRequired('statusCode', $this->statusCode, true); + Model::validateRequired('body', $this->body, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->headers) { + $res['headers'] = $this->headers; + } + if (null !== $this->statusCode) { + $res['statusCode'] = $this->statusCode; + } + if (null !== $this->body) { + $res['body'] = null !== $this->body ? $this->body->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return RecognizeTaxiInvoiceResponse + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['headers'])) { + $model->headers = $map['headers']; + } + if (isset($map['statusCode'])) { + $model->statusCode = $map['statusCode']; + } + if (isset($map['body'])) { + $model->body = RecognizeTaxiInvoiceResponseBody::fromMap($map['body']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTaxiInvoiceResponseBody.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTaxiInvoiceResponseBody.php new file mode 100644 index 00000000..bcbdd60c --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTaxiInvoiceResponseBody.php @@ -0,0 +1,62 @@ + 'Data', + 'requestId' => 'RequestId', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->data) { + $res['Data'] = null !== $this->data ? $this->data->toMap() : null; + } + if (null !== $this->requestId) { + $res['RequestId'] = $this->requestId; + } + + return $res; + } + + /** + * @param array $map + * + * @return RecognizeTaxiInvoiceResponseBody + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Data'])) { + $model->data = data::fromMap($map['Data']); + } + if (isset($map['RequestId'])) { + $model->requestId = $map['RequestId']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTaxiInvoiceResponseBody/data.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTaxiInvoiceResponseBody/data.php new file mode 100644 index 00000000..8bd221ec --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTaxiInvoiceResponseBody/data.php @@ -0,0 +1,60 @@ + 'Invoices', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->invoices) { + $res['Invoices'] = []; + if (null !== $this->invoices && \is_array($this->invoices)) { + $n = 0; + foreach ($this->invoices as $item) { + $res['Invoices'][$n++] = null !== $item ? $item->toMap() : $item; + } + } + } + + return $res; + } + + /** + * @param array $map + * + * @return data + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Invoices'])) { + if (!empty($map['Invoices'])) { + $model->invoices = []; + $n = 0; + foreach ($map['Invoices'] as $item) { + $model->invoices[$n++] = null !== $item ? invoices::fromMap($item) : $item; + } + } + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTaxiInvoiceResponseBody/data/invoices.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTaxiInvoiceResponseBody/data/invoices.php new file mode 100644 index 00000000..d3954b41 --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTaxiInvoiceResponseBody/data/invoices.php @@ -0,0 +1,87 @@ + 'InvoiceRoi', + 'items' => 'Items', + 'rotateType' => 'RotateType', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->invoiceRoi) { + $res['InvoiceRoi'] = null !== $this->invoiceRoi ? $this->invoiceRoi->toMap() : null; + } + if (null !== $this->items) { + $res['Items'] = []; + if (null !== $this->items && \is_array($this->items)) { + $n = 0; + foreach ($this->items as $item) { + $res['Items'][$n++] = null !== $item ? $item->toMap() : $item; + } + } + } + if (null !== $this->rotateType) { + $res['RotateType'] = $this->rotateType; + } + + return $res; + } + + /** + * @param array $map + * + * @return invoices + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['InvoiceRoi'])) { + $model->invoiceRoi = invoiceRoi::fromMap($map['InvoiceRoi']); + } + if (isset($map['Items'])) { + if (!empty($map['Items'])) { + $model->items = []; + $n = 0; + foreach ($map['Items'] as $item) { + $model->items[$n++] = null !== $item ? items::fromMap($item) : $item; + } + } + } + if (isset($map['RotateType'])) { + $model->rotateType = $map['RotateType']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTaxiInvoiceResponseBody/data/invoices/invoiceRoi.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTaxiInvoiceResponseBody/data/invoices/invoiceRoi.php new file mode 100644 index 00000000..cdd999d0 --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTaxiInvoiceResponseBody/data/invoices/invoiceRoi.php @@ -0,0 +1,91 @@ + 'H', + 'w' => 'W', + 'x' => 'X', + 'y' => 'Y', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->h) { + $res['H'] = $this->h; + } + if (null !== $this->w) { + $res['W'] = $this->w; + } + if (null !== $this->x) { + $res['X'] = $this->x; + } + if (null !== $this->y) { + $res['Y'] = $this->y; + } + + return $res; + } + + /** + * @param array $map + * + * @return invoiceRoi + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['H'])) { + $model->h = $map['H']; + } + if (isset($map['W'])) { + $model->w = $map['W']; + } + if (isset($map['X'])) { + $model->x = $map['X']; + } + if (isset($map['Y'])) { + $model->y = $map['Y']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTaxiInvoiceResponseBody/data/invoices/items.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTaxiInvoiceResponseBody/data/invoices/items.php new file mode 100644 index 00000000..26e9f5f2 --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTaxiInvoiceResponseBody/data/invoices/items.php @@ -0,0 +1,62 @@ + 'ItemRoi', + 'text' => 'Text', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->itemRoi) { + $res['ItemRoi'] = null !== $this->itemRoi ? $this->itemRoi->toMap() : null; + } + if (null !== $this->text) { + $res['Text'] = $this->text; + } + + return $res; + } + + /** + * @param array $map + * + * @return items + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['ItemRoi'])) { + $model->itemRoi = itemRoi::fromMap($map['ItemRoi']); + } + if (isset($map['Text'])) { + $model->text = $map['Text']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTaxiInvoiceResponseBody/data/invoices/items/itemRoi.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTaxiInvoiceResponseBody/data/invoices/items/itemRoi.php new file mode 100644 index 00000000..520c2900 --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTaxiInvoiceResponseBody/data/invoices/items/itemRoi.php @@ -0,0 +1,75 @@ + 'Angle', + 'center' => 'Center', + 'size' => 'Size', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->angle) { + $res['Angle'] = $this->angle; + } + if (null !== $this->center) { + $res['Center'] = null !== $this->center ? $this->center->toMap() : null; + } + if (null !== $this->size) { + $res['Size'] = null !== $this->size ? $this->size->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return itemRoi + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Angle'])) { + $model->angle = $map['Angle']; + } + if (isset($map['Center'])) { + $model->center = center::fromMap($map['Center']); + } + if (isset($map['Size'])) { + $model->size = size::fromMap($map['Size']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTaxiInvoiceResponseBody/data/invoices/items/itemRoi/center.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTaxiInvoiceResponseBody/data/invoices/items/itemRoi/center.php new file mode 100644 index 00000000..2ebc7af7 --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTaxiInvoiceResponseBody/data/invoices/items/itemRoi/center.php @@ -0,0 +1,63 @@ + 'X', + 'y' => 'Y', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->x) { + $res['X'] = $this->x; + } + if (null !== $this->y) { + $res['Y'] = $this->y; + } + + return $res; + } + + /** + * @param array $map + * + * @return center + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['X'])) { + $model->x = $map['X']; + } + if (isset($map['Y'])) { + $model->y = $map['Y']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTaxiInvoiceResponseBody/data/invoices/items/itemRoi/size.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTaxiInvoiceResponseBody/data/invoices/items/itemRoi/size.php new file mode 100644 index 00000000..5acdbc5a --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTaxiInvoiceResponseBody/data/invoices/items/itemRoi/size.php @@ -0,0 +1,63 @@ + 'H', + 'w' => 'W', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->h) { + $res['H'] = $this->h; + } + if (null !== $this->w) { + $res['W'] = $this->w; + } + + return $res; + } + + /** + * @param array $map + * + * @return size + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['H'])) { + $model->h = $map['H']; + } + if (isset($map['W'])) { + $model->w = $map['W']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTicketInvoiceAdvanceRequest.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTicketInvoiceAdvanceRequest.php new file mode 100644 index 00000000..64e621b3 --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTicketInvoiceAdvanceRequest.php @@ -0,0 +1,50 @@ + 'ImageURL', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->imageURLObject) { + $res['ImageURL'] = $this->imageURLObject; + } + + return $res; + } + + /** + * @param array $map + * + * @return RecognizeTicketInvoiceAdvanceRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['ImageURL'])) { + $model->imageURLObject = $map['ImageURL']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTicketInvoiceRequest.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTicketInvoiceRequest.php new file mode 100644 index 00000000..60705c6e --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTicketInvoiceRequest.php @@ -0,0 +1,49 @@ + 'ImageURL', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->imageURL) { + $res['ImageURL'] = $this->imageURL; + } + + return $res; + } + + /** + * @param array $map + * + * @return RecognizeTicketInvoiceRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['ImageURL'])) { + $model->imageURL = $map['ImageURL']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTicketInvoiceResponse.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTicketInvoiceResponse.php new file mode 100644 index 00000000..caac774b --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTicketInvoiceResponse.php @@ -0,0 +1,74 @@ + 'headers', + 'statusCode' => 'statusCode', + 'body' => 'body', + ]; + + public function validate() + { + Model::validateRequired('headers', $this->headers, true); + Model::validateRequired('statusCode', $this->statusCode, true); + Model::validateRequired('body', $this->body, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->headers) { + $res['headers'] = $this->headers; + } + if (null !== $this->statusCode) { + $res['statusCode'] = $this->statusCode; + } + if (null !== $this->body) { + $res['body'] = null !== $this->body ? $this->body->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return RecognizeTicketInvoiceResponse + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['headers'])) { + $model->headers = $map['headers']; + } + if (isset($map['statusCode'])) { + $model->statusCode = $map['statusCode']; + } + if (isset($map['body'])) { + $model->body = RecognizeTicketInvoiceResponseBody::fromMap($map['body']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTicketInvoiceResponseBody.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTicketInvoiceResponseBody.php new file mode 100644 index 00000000..b57a31ca --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTicketInvoiceResponseBody.php @@ -0,0 +1,62 @@ + 'Data', + 'requestId' => 'RequestId', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->data) { + $res['Data'] = null !== $this->data ? $this->data->toMap() : null; + } + if (null !== $this->requestId) { + $res['RequestId'] = $this->requestId; + } + + return $res; + } + + /** + * @param array $map + * + * @return RecognizeTicketInvoiceResponseBody + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Data'])) { + $model->data = data::fromMap($map['Data']); + } + if (isset($map['RequestId'])) { + $model->requestId = $map['RequestId']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTicketInvoiceResponseBody/data.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTicketInvoiceResponseBody/data.php new file mode 100644 index 00000000..dab9a8ec --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTicketInvoiceResponseBody/data.php @@ -0,0 +1,130 @@ + 'Count', + 'height' => 'Height', + 'orgHeight' => 'OrgHeight', + 'orgWidth' => 'OrgWidth', + 'results' => 'Results', + 'width' => 'Width', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->count) { + $res['Count'] = $this->count; + } + if (null !== $this->height) { + $res['Height'] = $this->height; + } + if (null !== $this->orgHeight) { + $res['OrgHeight'] = $this->orgHeight; + } + if (null !== $this->orgWidth) { + $res['OrgWidth'] = $this->orgWidth; + } + if (null !== $this->results) { + $res['Results'] = []; + if (null !== $this->results && \is_array($this->results)) { + $n = 0; + foreach ($this->results as $item) { + $res['Results'][$n++] = null !== $item ? $item->toMap() : $item; + } + } + } + if (null !== $this->width) { + $res['Width'] = $this->width; + } + + return $res; + } + + /** + * @param array $map + * + * @return data + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Count'])) { + $model->count = $map['Count']; + } + if (isset($map['Height'])) { + $model->height = $map['Height']; + } + if (isset($map['OrgHeight'])) { + $model->orgHeight = $map['OrgHeight']; + } + if (isset($map['OrgWidth'])) { + $model->orgWidth = $map['OrgWidth']; + } + if (isset($map['Results'])) { + if (!empty($map['Results'])) { + $model->results = []; + $n = 0; + foreach ($map['Results'] as $item) { + $model->results[$n++] = null !== $item ? results::fromMap($item) : $item; + } + } + } + if (isset($map['Width'])) { + $model->width = $map['Width']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTicketInvoiceResponseBody/data/results.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTicketInvoiceResponseBody/data/results.php new file mode 100644 index 00000000..ab33fd07 --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTicketInvoiceResponseBody/data/results.php @@ -0,0 +1,124 @@ + 'Content', + 'index' => 'Index', + 'keyValueInfos' => 'KeyValueInfos', + 'sliceRectangle' => 'SliceRectangle', + 'type' => 'Type', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->content) { + $res['Content'] = null !== $this->content ? $this->content->toMap() : null; + } + if (null !== $this->index) { + $res['Index'] = $this->index; + } + if (null !== $this->keyValueInfos) { + $res['KeyValueInfos'] = []; + if (null !== $this->keyValueInfos && \is_array($this->keyValueInfos)) { + $n = 0; + foreach ($this->keyValueInfos as $item) { + $res['KeyValueInfos'][$n++] = null !== $item ? $item->toMap() : $item; + } + } + } + if (null !== $this->sliceRectangle) { + $res['SliceRectangle'] = []; + if (null !== $this->sliceRectangle && \is_array($this->sliceRectangle)) { + $n = 0; + foreach ($this->sliceRectangle as $item) { + $res['SliceRectangle'][$n++] = null !== $item ? $item->toMap() : $item; + } + } + } + if (null !== $this->type) { + $res['Type'] = $this->type; + } + + return $res; + } + + /** + * @param array $map + * + * @return results + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Content'])) { + $model->content = content::fromMap($map['Content']); + } + if (isset($map['Index'])) { + $model->index = $map['Index']; + } + if (isset($map['KeyValueInfos'])) { + if (!empty($map['KeyValueInfos'])) { + $model->keyValueInfos = []; + $n = 0; + foreach ($map['KeyValueInfos'] as $item) { + $model->keyValueInfos[$n++] = null !== $item ? keyValueInfos::fromMap($item) : $item; + } + } + } + if (isset($map['SliceRectangle'])) { + if (!empty($map['SliceRectangle'])) { + $model->sliceRectangle = []; + $n = 0; + foreach ($map['SliceRectangle'] as $item) { + $model->sliceRectangle[$n++] = null !== $item ? sliceRectangle::fromMap($item) : $item; + } + } + } + if (isset($map['Type'])) { + $model->type = $map['Type']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTicketInvoiceResponseBody/data/results/content.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTicketInvoiceResponseBody/data/results/content.php new file mode 100644 index 00000000..4f8df5da --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTicketInvoiceResponseBody/data/results/content.php @@ -0,0 +1,157 @@ + 'AntiFakeCode', + 'invoiceCode' => 'InvoiceCode', + 'invoiceDate' => 'InvoiceDate', + 'invoiceNumber' => 'InvoiceNumber', + 'payeeName' => 'PayeeName', + 'payeeRegisterNo' => 'PayeeRegisterNo', + 'payerName' => 'PayerName', + 'payerRegisterNo' => 'PayerRegisterNo', + 'sumAmount' => 'SumAmount', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->antiFakeCode) { + $res['AntiFakeCode'] = $this->antiFakeCode; + } + if (null !== $this->invoiceCode) { + $res['InvoiceCode'] = $this->invoiceCode; + } + if (null !== $this->invoiceDate) { + $res['InvoiceDate'] = $this->invoiceDate; + } + if (null !== $this->invoiceNumber) { + $res['InvoiceNumber'] = $this->invoiceNumber; + } + if (null !== $this->payeeName) { + $res['PayeeName'] = $this->payeeName; + } + if (null !== $this->payeeRegisterNo) { + $res['PayeeRegisterNo'] = $this->payeeRegisterNo; + } + if (null !== $this->payerName) { + $res['PayerName'] = $this->payerName; + } + if (null !== $this->payerRegisterNo) { + $res['PayerRegisterNo'] = $this->payerRegisterNo; + } + if (null !== $this->sumAmount) { + $res['SumAmount'] = $this->sumAmount; + } + + return $res; + } + + /** + * @param array $map + * + * @return content + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['AntiFakeCode'])) { + $model->antiFakeCode = $map['AntiFakeCode']; + } + if (isset($map['InvoiceCode'])) { + $model->invoiceCode = $map['InvoiceCode']; + } + if (isset($map['InvoiceDate'])) { + $model->invoiceDate = $map['InvoiceDate']; + } + if (isset($map['InvoiceNumber'])) { + $model->invoiceNumber = $map['InvoiceNumber']; + } + if (isset($map['PayeeName'])) { + $model->payeeName = $map['PayeeName']; + } + if (isset($map['PayeeRegisterNo'])) { + $model->payeeRegisterNo = $map['PayeeRegisterNo']; + } + if (isset($map['PayerName'])) { + $model->payerName = $map['PayerName']; + } + if (isset($map['PayerRegisterNo'])) { + $model->payerRegisterNo = $map['PayerRegisterNo']; + } + if (isset($map['SumAmount'])) { + $model->sumAmount = $map['SumAmount']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTicketInvoiceResponseBody/data/results/keyValueInfos.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTicketInvoiceResponseBody/data/results/keyValueInfos.php new file mode 100644 index 00000000..fc610c11 --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTicketInvoiceResponseBody/data/results/keyValueInfos.php @@ -0,0 +1,100 @@ + 'Key', + 'value' => 'Value', + 'valuePositions' => 'ValuePositions', + 'valueScore' => 'ValueScore', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->key) { + $res['Key'] = $this->key; + } + if (null !== $this->value) { + $res['Value'] = $this->value; + } + if (null !== $this->valuePositions) { + $res['ValuePositions'] = []; + if (null !== $this->valuePositions && \is_array($this->valuePositions)) { + $n = 0; + foreach ($this->valuePositions as $item) { + $res['ValuePositions'][$n++] = null !== $item ? $item->toMap() : $item; + } + } + } + if (null !== $this->valueScore) { + $res['ValueScore'] = $this->valueScore; + } + + return $res; + } + + /** + * @param array $map + * + * @return keyValueInfos + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Key'])) { + $model->key = $map['Key']; + } + if (isset($map['Value'])) { + $model->value = $map['Value']; + } + if (isset($map['ValuePositions'])) { + if (!empty($map['ValuePositions'])) { + $model->valuePositions = []; + $n = 0; + foreach ($map['ValuePositions'] as $item) { + $model->valuePositions[$n++] = null !== $item ? valuePositions::fromMap($item) : $item; + } + } + } + if (isset($map['ValueScore'])) { + $model->valueScore = $map['ValueScore']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTicketInvoiceResponseBody/data/results/keyValueInfos/valuePositions.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTicketInvoiceResponseBody/data/results/keyValueInfos/valuePositions.php new file mode 100644 index 00000000..049567c4 --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTicketInvoiceResponseBody/data/results/keyValueInfos/valuePositions.php @@ -0,0 +1,63 @@ + 'X', + 'y' => 'Y', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->x) { + $res['X'] = $this->x; + } + if (null !== $this->y) { + $res['Y'] = $this->y; + } + + return $res; + } + + /** + * @param array $map + * + * @return valuePositions + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['X'])) { + $model->x = $map['X']; + } + if (isset($map['Y'])) { + $model->y = $map['Y']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTicketInvoiceResponseBody/data/results/sliceRectangle.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTicketInvoiceResponseBody/data/results/sliceRectangle.php new file mode 100644 index 00000000..cbae93fb --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTicketInvoiceResponseBody/data/results/sliceRectangle.php @@ -0,0 +1,63 @@ + 'X', + 'y' => 'Y', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->x) { + $res['X'] = $this->x; + } + if (null !== $this->y) { + $res['Y'] = $this->y; + } + + return $res; + } + + /** + * @param array $map + * + * @return sliceRectangle + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['X'])) { + $model->x = $map['X']; + } + if (isset($map['Y'])) { + $model->y = $map['Y']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTrainTicketAdvanceRequest.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTrainTicketAdvanceRequest.php new file mode 100644 index 00000000..cdf0e552 --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTrainTicketAdvanceRequest.php @@ -0,0 +1,50 @@ + 'ImageURL', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->imageURLObject) { + $res['ImageURL'] = $this->imageURLObject; + } + + return $res; + } + + /** + * @param array $map + * + * @return RecognizeTrainTicketAdvanceRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['ImageURL'])) { + $model->imageURLObject = $map['ImageURL']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTrainTicketRequest.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTrainTicketRequest.php new file mode 100644 index 00000000..b1dc1d11 --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTrainTicketRequest.php @@ -0,0 +1,49 @@ + 'ImageURL', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->imageURL) { + $res['ImageURL'] = $this->imageURL; + } + + return $res; + } + + /** + * @param array $map + * + * @return RecognizeTrainTicketRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['ImageURL'])) { + $model->imageURL = $map['ImageURL']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTrainTicketResponse.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTrainTicketResponse.php new file mode 100644 index 00000000..220bcda5 --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTrainTicketResponse.php @@ -0,0 +1,74 @@ + 'headers', + 'statusCode' => 'statusCode', + 'body' => 'body', + ]; + + public function validate() + { + Model::validateRequired('headers', $this->headers, true); + Model::validateRequired('statusCode', $this->statusCode, true); + Model::validateRequired('body', $this->body, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->headers) { + $res['headers'] = $this->headers; + } + if (null !== $this->statusCode) { + $res['statusCode'] = $this->statusCode; + } + if (null !== $this->body) { + $res['body'] = null !== $this->body ? $this->body->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return RecognizeTrainTicketResponse + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['headers'])) { + $model->headers = $map['headers']; + } + if (isset($map['statusCode'])) { + $model->statusCode = $map['statusCode']; + } + if (isset($map['body'])) { + $model->body = RecognizeTrainTicketResponseBody::fromMap($map['body']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTrainTicketResponseBody.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTrainTicketResponseBody.php new file mode 100644 index 00000000..66599257 --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTrainTicketResponseBody.php @@ -0,0 +1,62 @@ + 'Data', + 'requestId' => 'RequestId', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->data) { + $res['Data'] = null !== $this->data ? $this->data->toMap() : null; + } + if (null !== $this->requestId) { + $res['RequestId'] = $this->requestId; + } + + return $res; + } + + /** + * @param array $map + * + * @return RecognizeTrainTicketResponseBody + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Data'])) { + $model->data = data::fromMap($map['Data']); + } + if (isset($map['RequestId'])) { + $model->requestId = $map['RequestId']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTrainTicketResponseBody/data.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTrainTicketResponseBody/data.php new file mode 100644 index 00000000..dd1233ed --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeTrainTicketResponseBody/data.php @@ -0,0 +1,135 @@ + 'Date', + 'departureStation' => 'DepartureStation', + 'destination' => 'Destination', + 'level' => 'Level', + 'name' => 'Name', + 'number' => 'Number', + 'price' => 'Price', + 'seat' => 'Seat', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->date) { + $res['Date'] = $this->date; + } + if (null !== $this->departureStation) { + $res['DepartureStation'] = $this->departureStation; + } + if (null !== $this->destination) { + $res['Destination'] = $this->destination; + } + if (null !== $this->level) { + $res['Level'] = $this->level; + } + if (null !== $this->name) { + $res['Name'] = $this->name; + } + if (null !== $this->number) { + $res['Number'] = $this->number; + } + if (null !== $this->price) { + $res['Price'] = $this->price; + } + if (null !== $this->seat) { + $res['Seat'] = $this->seat; + } + + return $res; + } + + /** + * @param array $map + * + * @return data + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Date'])) { + $model->date = $map['Date']; + } + if (isset($map['DepartureStation'])) { + $model->departureStation = $map['DepartureStation']; + } + if (isset($map['Destination'])) { + $model->destination = $map['Destination']; + } + if (isset($map['Level'])) { + $model->level = $map['Level']; + } + if (isset($map['Name'])) { + $model->name = $map['Name']; + } + if (isset($map['Number'])) { + $model->number = $map['Number']; + } + if (isset($map['Price'])) { + $model->price = $map['Price']; + } + if (isset($map['Seat'])) { + $model->seat = $map['Seat']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeVATInvoiceAdvanceRequest.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeVATInvoiceAdvanceRequest.php new file mode 100644 index 00000000..46e889c7 --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeVATInvoiceAdvanceRequest.php @@ -0,0 +1,64 @@ + 'FileType', + 'fileURLObject' => 'FileURL', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->fileType) { + $res['FileType'] = $this->fileType; + } + if (null !== $this->fileURLObject) { + $res['FileURL'] = $this->fileURLObject; + } + + return $res; + } + + /** + * @param array $map + * + * @return RecognizeVATInvoiceAdvanceRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['FileType'])) { + $model->fileType = $map['FileType']; + } + if (isset($map['FileURL'])) { + $model->fileURLObject = $map['FileURL']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeVATInvoiceRequest.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeVATInvoiceRequest.php new file mode 100644 index 00000000..2138023a --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeVATInvoiceRequest.php @@ -0,0 +1,63 @@ + 'FileType', + 'fileURL' => 'FileURL', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->fileType) { + $res['FileType'] = $this->fileType; + } + if (null !== $this->fileURL) { + $res['FileURL'] = $this->fileURL; + } + + return $res; + } + + /** + * @param array $map + * + * @return RecognizeVATInvoiceRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['FileType'])) { + $model->fileType = $map['FileType']; + } + if (isset($map['FileURL'])) { + $model->fileURL = $map['FileURL']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeVATInvoiceResponse.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeVATInvoiceResponse.php new file mode 100644 index 00000000..2f1f042d --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeVATInvoiceResponse.php @@ -0,0 +1,74 @@ + 'headers', + 'statusCode' => 'statusCode', + 'body' => 'body', + ]; + + public function validate() + { + Model::validateRequired('headers', $this->headers, true); + Model::validateRequired('statusCode', $this->statusCode, true); + Model::validateRequired('body', $this->body, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->headers) { + $res['headers'] = $this->headers; + } + if (null !== $this->statusCode) { + $res['statusCode'] = $this->statusCode; + } + if (null !== $this->body) { + $res['body'] = null !== $this->body ? $this->body->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return RecognizeVATInvoiceResponse + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['headers'])) { + $model->headers = $map['headers']; + } + if (isset($map['statusCode'])) { + $model->statusCode = $map['statusCode']; + } + if (isset($map['body'])) { + $model->body = RecognizeVATInvoiceResponseBody::fromMap($map['body']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeVATInvoiceResponseBody.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeVATInvoiceResponseBody.php new file mode 100644 index 00000000..743d1f76 --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeVATInvoiceResponseBody.php @@ -0,0 +1,62 @@ + 'Data', + 'requestId' => 'RequestId', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->data) { + $res['Data'] = null !== $this->data ? $this->data->toMap() : null; + } + if (null !== $this->requestId) { + $res['RequestId'] = $this->requestId; + } + + return $res; + } + + /** + * @param array $map + * + * @return RecognizeVATInvoiceResponseBody + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Data'])) { + $model->data = data::fromMap($map['Data']); + } + if (isset($map['RequestId'])) { + $model->requestId = $map['RequestId']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeVATInvoiceResponseBody/data.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeVATInvoiceResponseBody/data.php new file mode 100644 index 00000000..86b955e4 --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeVATInvoiceResponseBody/data.php @@ -0,0 +1,61 @@ + 'Box', + 'content' => 'Content', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->box) { + $res['Box'] = null !== $this->box ? $this->box->toMap() : null; + } + if (null !== $this->content) { + $res['Content'] = null !== $this->content ? $this->content->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return data + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Box'])) { + $model->box = box::fromMap($map['Box']); + } + if (isset($map['Content'])) { + $model->content = content::fromMap($map['Content']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeVATInvoiceResponseBody/data/box.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeVATInvoiceResponseBody/data/box.php new file mode 100644 index 00000000..ef090230 --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeVATInvoiceResponseBody/data/box.php @@ -0,0 +1,355 @@ + 'Checkers', + 'clerks' => 'Clerks', + 'invoiceAmounts' => 'InvoiceAmounts', + 'invoiceCodes' => 'InvoiceCodes', + 'invoiceDates' => 'InvoiceDates', + 'invoiceFakeCodes' => 'InvoiceFakeCodes', + 'invoiceNoes' => 'InvoiceNoes', + 'itemNames' => 'ItemNames', + 'payeeAddresses' => 'PayeeAddresses', + 'payeeBankNames' => 'PayeeBankNames', + 'payeeNames' => 'PayeeNames', + 'payeeRegisterNoes' => 'PayeeRegisterNoes', + 'payees' => 'Payees', + 'payerAddresses' => 'PayerAddresses', + 'payerBankNames' => 'PayerBankNames', + 'payerNames' => 'PayerNames', + 'payerRegisterNoes' => 'PayerRegisterNoes', + 'sumAmounts' => 'SumAmounts', + 'taxAmounts' => 'TaxAmounts', + 'withoutTaxAmounts' => 'WithoutTaxAmounts', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->checkers) { + $res['Checkers'] = $this->checkers; + } + if (null !== $this->clerks) { + $res['Clerks'] = $this->clerks; + } + if (null !== $this->invoiceAmounts) { + $res['InvoiceAmounts'] = $this->invoiceAmounts; + } + if (null !== $this->invoiceCodes) { + $res['InvoiceCodes'] = $this->invoiceCodes; + } + if (null !== $this->invoiceDates) { + $res['InvoiceDates'] = $this->invoiceDates; + } + if (null !== $this->invoiceFakeCodes) { + $res['InvoiceFakeCodes'] = $this->invoiceFakeCodes; + } + if (null !== $this->invoiceNoes) { + $res['InvoiceNoes'] = $this->invoiceNoes; + } + if (null !== $this->itemNames) { + $res['ItemNames'] = $this->itemNames; + } + if (null !== $this->payeeAddresses) { + $res['PayeeAddresses'] = $this->payeeAddresses; + } + if (null !== $this->payeeBankNames) { + $res['PayeeBankNames'] = $this->payeeBankNames; + } + if (null !== $this->payeeNames) { + $res['PayeeNames'] = $this->payeeNames; + } + if (null !== $this->payeeRegisterNoes) { + $res['PayeeRegisterNoes'] = $this->payeeRegisterNoes; + } + if (null !== $this->payees) { + $res['Payees'] = $this->payees; + } + if (null !== $this->payerAddresses) { + $res['PayerAddresses'] = $this->payerAddresses; + } + if (null !== $this->payerBankNames) { + $res['PayerBankNames'] = $this->payerBankNames; + } + if (null !== $this->payerNames) { + $res['PayerNames'] = $this->payerNames; + } + if (null !== $this->payerRegisterNoes) { + $res['PayerRegisterNoes'] = $this->payerRegisterNoes; + } + if (null !== $this->sumAmounts) { + $res['SumAmounts'] = $this->sumAmounts; + } + if (null !== $this->taxAmounts) { + $res['TaxAmounts'] = $this->taxAmounts; + } + if (null !== $this->withoutTaxAmounts) { + $res['WithoutTaxAmounts'] = $this->withoutTaxAmounts; + } + + return $res; + } + + /** + * @param array $map + * + * @return box + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Checkers'])) { + if (!empty($map['Checkers'])) { + $model->checkers = $map['Checkers']; + } + } + if (isset($map['Clerks'])) { + if (!empty($map['Clerks'])) { + $model->clerks = $map['Clerks']; + } + } + if (isset($map['InvoiceAmounts'])) { + if (!empty($map['InvoiceAmounts'])) { + $model->invoiceAmounts = $map['InvoiceAmounts']; + } + } + if (isset($map['InvoiceCodes'])) { + if (!empty($map['InvoiceCodes'])) { + $model->invoiceCodes = $map['InvoiceCodes']; + } + } + if (isset($map['InvoiceDates'])) { + if (!empty($map['InvoiceDates'])) { + $model->invoiceDates = $map['InvoiceDates']; + } + } + if (isset($map['InvoiceFakeCodes'])) { + if (!empty($map['InvoiceFakeCodes'])) { + $model->invoiceFakeCodes = $map['InvoiceFakeCodes']; + } + } + if (isset($map['InvoiceNoes'])) { + if (!empty($map['InvoiceNoes'])) { + $model->invoiceNoes = $map['InvoiceNoes']; + } + } + if (isset($map['ItemNames'])) { + if (!empty($map['ItemNames'])) { + $model->itemNames = $map['ItemNames']; + } + } + if (isset($map['PayeeAddresses'])) { + if (!empty($map['PayeeAddresses'])) { + $model->payeeAddresses = $map['PayeeAddresses']; + } + } + if (isset($map['PayeeBankNames'])) { + if (!empty($map['PayeeBankNames'])) { + $model->payeeBankNames = $map['PayeeBankNames']; + } + } + if (isset($map['PayeeNames'])) { + if (!empty($map['PayeeNames'])) { + $model->payeeNames = $map['PayeeNames']; + } + } + if (isset($map['PayeeRegisterNoes'])) { + if (!empty($map['PayeeRegisterNoes'])) { + $model->payeeRegisterNoes = $map['PayeeRegisterNoes']; + } + } + if (isset($map['Payees'])) { + if (!empty($map['Payees'])) { + $model->payees = $map['Payees']; + } + } + if (isset($map['PayerAddresses'])) { + if (!empty($map['PayerAddresses'])) { + $model->payerAddresses = $map['PayerAddresses']; + } + } + if (isset($map['PayerBankNames'])) { + if (!empty($map['PayerBankNames'])) { + $model->payerBankNames = $map['PayerBankNames']; + } + } + if (isset($map['PayerNames'])) { + if (!empty($map['PayerNames'])) { + $model->payerNames = $map['PayerNames']; + } + } + if (isset($map['PayerRegisterNoes'])) { + if (!empty($map['PayerRegisterNoes'])) { + $model->payerRegisterNoes = $map['PayerRegisterNoes']; + } + } + if (isset($map['SumAmounts'])) { + if (!empty($map['SumAmounts'])) { + $model->sumAmounts = $map['SumAmounts']; + } + } + if (isset($map['TaxAmounts'])) { + if (!empty($map['TaxAmounts'])) { + $model->taxAmounts = $map['TaxAmounts']; + } + } + if (isset($map['WithoutTaxAmounts'])) { + if (!empty($map['WithoutTaxAmounts'])) { + $model->withoutTaxAmounts = $map['WithoutTaxAmounts']; + } + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeVATInvoiceResponseBody/data/content.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeVATInvoiceResponseBody/data/content.php new file mode 100644 index 00000000..2c5c035c --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeVATInvoiceResponseBody/data/content.php @@ -0,0 +1,301 @@ + 'AntiFakeCode', + 'checker' => 'Checker', + 'clerk' => 'Clerk', + 'invoiceAmount' => 'InvoiceAmount', + 'invoiceCode' => 'InvoiceCode', + 'invoiceDate' => 'InvoiceDate', + 'invoiceNo' => 'InvoiceNo', + 'itemName' => 'ItemName', + 'payee' => 'Payee', + 'payeeAddress' => 'PayeeAddress', + 'payeeBankName' => 'PayeeBankName', + 'payeeName' => 'PayeeName', + 'payeeRegisterNo' => 'PayeeRegisterNo', + 'payerAddress' => 'PayerAddress', + 'payerBankName' => 'PayerBankName', + 'payerName' => 'PayerName', + 'payerRegisterNo' => 'PayerRegisterNo', + 'sumAmount' => 'SumAmount', + 'taxAmount' => 'TaxAmount', + 'withoutTaxAmount' => 'WithoutTaxAmount', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->antiFakeCode) { + $res['AntiFakeCode'] = $this->antiFakeCode; + } + if (null !== $this->checker) { + $res['Checker'] = $this->checker; + } + if (null !== $this->clerk) { + $res['Clerk'] = $this->clerk; + } + if (null !== $this->invoiceAmount) { + $res['InvoiceAmount'] = $this->invoiceAmount; + } + if (null !== $this->invoiceCode) { + $res['InvoiceCode'] = $this->invoiceCode; + } + if (null !== $this->invoiceDate) { + $res['InvoiceDate'] = $this->invoiceDate; + } + if (null !== $this->invoiceNo) { + $res['InvoiceNo'] = $this->invoiceNo; + } + if (null !== $this->itemName) { + $res['ItemName'] = $this->itemName; + } + if (null !== $this->payee) { + $res['Payee'] = $this->payee; + } + if (null !== $this->payeeAddress) { + $res['PayeeAddress'] = $this->payeeAddress; + } + if (null !== $this->payeeBankName) { + $res['PayeeBankName'] = $this->payeeBankName; + } + if (null !== $this->payeeName) { + $res['PayeeName'] = $this->payeeName; + } + if (null !== $this->payeeRegisterNo) { + $res['PayeeRegisterNo'] = $this->payeeRegisterNo; + } + if (null !== $this->payerAddress) { + $res['PayerAddress'] = $this->payerAddress; + } + if (null !== $this->payerBankName) { + $res['PayerBankName'] = $this->payerBankName; + } + if (null !== $this->payerName) { + $res['PayerName'] = $this->payerName; + } + if (null !== $this->payerRegisterNo) { + $res['PayerRegisterNo'] = $this->payerRegisterNo; + } + if (null !== $this->sumAmount) { + $res['SumAmount'] = $this->sumAmount; + } + if (null !== $this->taxAmount) { + $res['TaxAmount'] = $this->taxAmount; + } + if (null !== $this->withoutTaxAmount) { + $res['WithoutTaxAmount'] = $this->withoutTaxAmount; + } + + return $res; + } + + /** + * @param array $map + * + * @return content + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['AntiFakeCode'])) { + $model->antiFakeCode = $map['AntiFakeCode']; + } + if (isset($map['Checker'])) { + $model->checker = $map['Checker']; + } + if (isset($map['Clerk'])) { + $model->clerk = $map['Clerk']; + } + if (isset($map['InvoiceAmount'])) { + $model->invoiceAmount = $map['InvoiceAmount']; + } + if (isset($map['InvoiceCode'])) { + $model->invoiceCode = $map['InvoiceCode']; + } + if (isset($map['InvoiceDate'])) { + $model->invoiceDate = $map['InvoiceDate']; + } + if (isset($map['InvoiceNo'])) { + $model->invoiceNo = $map['InvoiceNo']; + } + if (isset($map['ItemName'])) { + if (!empty($map['ItemName'])) { + $model->itemName = $map['ItemName']; + } + } + if (isset($map['Payee'])) { + $model->payee = $map['Payee']; + } + if (isset($map['PayeeAddress'])) { + $model->payeeAddress = $map['PayeeAddress']; + } + if (isset($map['PayeeBankName'])) { + $model->payeeBankName = $map['PayeeBankName']; + } + if (isset($map['PayeeName'])) { + $model->payeeName = $map['PayeeName']; + } + if (isset($map['PayeeRegisterNo'])) { + $model->payeeRegisterNo = $map['PayeeRegisterNo']; + } + if (isset($map['PayerAddress'])) { + $model->payerAddress = $map['PayerAddress']; + } + if (isset($map['PayerBankName'])) { + $model->payerBankName = $map['PayerBankName']; + } + if (isset($map['PayerName'])) { + $model->payerName = $map['PayerName']; + } + if (isset($map['PayerRegisterNo'])) { + $model->payerRegisterNo = $map['PayerRegisterNo']; + } + if (isset($map['SumAmount'])) { + $model->sumAmount = $map['SumAmount']; + } + if (isset($map['TaxAmount'])) { + $model->taxAmount = $map['TaxAmount']; + } + if (isset($map['WithoutTaxAmount'])) { + $model->withoutTaxAmount = $map['WithoutTaxAmount']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeVINCodeAdvanceRequest.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeVINCodeAdvanceRequest.php new file mode 100644 index 00000000..c7d58a2d --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeVINCodeAdvanceRequest.php @@ -0,0 +1,50 @@ + 'ImageURL', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->imageURLObject) { + $res['ImageURL'] = $this->imageURLObject; + } + + return $res; + } + + /** + * @param array $map + * + * @return RecognizeVINCodeAdvanceRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['ImageURL'])) { + $model->imageURLObject = $map['ImageURL']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeVINCodeRequest.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeVINCodeRequest.php new file mode 100644 index 00000000..c1128f90 --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeVINCodeRequest.php @@ -0,0 +1,49 @@ + 'ImageURL', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->imageURL) { + $res['ImageURL'] = $this->imageURL; + } + + return $res; + } + + /** + * @param array $map + * + * @return RecognizeVINCodeRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['ImageURL'])) { + $model->imageURL = $map['ImageURL']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeVINCodeResponse.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeVINCodeResponse.php new file mode 100644 index 00000000..7f3b32d5 --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeVINCodeResponse.php @@ -0,0 +1,74 @@ + 'headers', + 'statusCode' => 'statusCode', + 'body' => 'body', + ]; + + public function validate() + { + Model::validateRequired('headers', $this->headers, true); + Model::validateRequired('statusCode', $this->statusCode, true); + Model::validateRequired('body', $this->body, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->headers) { + $res['headers'] = $this->headers; + } + if (null !== $this->statusCode) { + $res['statusCode'] = $this->statusCode; + } + if (null !== $this->body) { + $res['body'] = null !== $this->body ? $this->body->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return RecognizeVINCodeResponse + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['headers'])) { + $model->headers = $map['headers']; + } + if (isset($map['statusCode'])) { + $model->statusCode = $map['statusCode']; + } + if (isset($map['body'])) { + $model->body = RecognizeVINCodeResponseBody::fromMap($map['body']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeVINCodeResponseBody.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeVINCodeResponseBody.php new file mode 100644 index 00000000..0e0d11d4 --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeVINCodeResponseBody.php @@ -0,0 +1,62 @@ + 'Data', + 'requestId' => 'RequestId', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->data) { + $res['Data'] = null !== $this->data ? $this->data->toMap() : null; + } + if (null !== $this->requestId) { + $res['RequestId'] = $this->requestId; + } + + return $res; + } + + /** + * @param array $map + * + * @return RecognizeVINCodeResponseBody + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Data'])) { + $model->data = data::fromMap($map['Data']); + } + if (isset($map['RequestId'])) { + $model->requestId = $map['RequestId']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeVINCodeResponseBody/data.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeVINCodeResponseBody/data.php new file mode 100644 index 00000000..f16e4670 --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeVINCodeResponseBody/data.php @@ -0,0 +1,49 @@ + 'VinCode', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->vinCode) { + $res['VinCode'] = $this->vinCode; + } + + return $res; + } + + /** + * @param array $map + * + * @return data + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['VinCode'])) { + $model->vinCode = $map['VinCode']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeVideoCharacterAdvanceRequest.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeVideoCharacterAdvanceRequest.php new file mode 100644 index 00000000..2d21bc05 --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeVideoCharacterAdvanceRequest.php @@ -0,0 +1,50 @@ + 'VideoURL', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->videoURLObject) { + $res['VideoURL'] = $this->videoURLObject; + } + + return $res; + } + + /** + * @param array $map + * + * @return RecognizeVideoCharacterAdvanceRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['VideoURL'])) { + $model->videoURLObject = $map['VideoURL']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeVideoCharacterRequest.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeVideoCharacterRequest.php new file mode 100644 index 00000000..0e3ba905 --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeVideoCharacterRequest.php @@ -0,0 +1,49 @@ + 'VideoURL', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->videoURL) { + $res['VideoURL'] = $this->videoURL; + } + + return $res; + } + + /** + * @param array $map + * + * @return RecognizeVideoCharacterRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['VideoURL'])) { + $model->videoURL = $map['VideoURL']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeVideoCharacterResponse.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeVideoCharacterResponse.php new file mode 100644 index 00000000..4ac795a8 --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeVideoCharacterResponse.php @@ -0,0 +1,74 @@ + 'headers', + 'statusCode' => 'statusCode', + 'body' => 'body', + ]; + + public function validate() + { + Model::validateRequired('headers', $this->headers, true); + Model::validateRequired('statusCode', $this->statusCode, true); + Model::validateRequired('body', $this->body, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->headers) { + $res['headers'] = $this->headers; + } + if (null !== $this->statusCode) { + $res['statusCode'] = $this->statusCode; + } + if (null !== $this->body) { + $res['body'] = null !== $this->body ? $this->body->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return RecognizeVideoCharacterResponse + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['headers'])) { + $model->headers = $map['headers']; + } + if (isset($map['statusCode'])) { + $model->statusCode = $map['statusCode']; + } + if (isset($map['body'])) { + $model->body = RecognizeVideoCharacterResponseBody::fromMap($map['body']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeVideoCharacterResponseBody.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeVideoCharacterResponseBody.php new file mode 100644 index 00000000..a2d392f4 --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeVideoCharacterResponseBody.php @@ -0,0 +1,74 @@ + 'Data', + 'message' => 'Message', + 'requestId' => 'RequestId', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->data) { + $res['Data'] = null !== $this->data ? $this->data->toMap() : null; + } + if (null !== $this->message) { + $res['Message'] = $this->message; + } + if (null !== $this->requestId) { + $res['RequestId'] = $this->requestId; + } + + return $res; + } + + /** + * @param array $map + * + * @return RecognizeVideoCharacterResponseBody + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Data'])) { + $model->data = data::fromMap($map['Data']); + } + if (isset($map['Message'])) { + $model->message = $map['Message']; + } + if (isset($map['RequestId'])) { + $model->requestId = $map['RequestId']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeVideoCharacterResponseBody/data.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeVideoCharacterResponseBody/data.php new file mode 100644 index 00000000..748d0cb3 --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeVideoCharacterResponseBody/data.php @@ -0,0 +1,102 @@ + 'Frames', + 'height' => 'Height', + 'inputFile' => 'InputFile', + 'width' => 'Width', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->frames) { + $res['Frames'] = []; + if (null !== $this->frames && \is_array($this->frames)) { + $n = 0; + foreach ($this->frames as $item) { + $res['Frames'][$n++] = null !== $item ? $item->toMap() : $item; + } + } + } + if (null !== $this->height) { + $res['Height'] = $this->height; + } + if (null !== $this->inputFile) { + $res['InputFile'] = $this->inputFile; + } + if (null !== $this->width) { + $res['Width'] = $this->width; + } + + return $res; + } + + /** + * @param array $map + * + * @return data + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Frames'])) { + if (!empty($map['Frames'])) { + $model->frames = []; + $n = 0; + foreach ($map['Frames'] as $item) { + $model->frames[$n++] = null !== $item ? frames::fromMap($item) : $item; + } + } + } + if (isset($map['Height'])) { + $model->height = $map['Height']; + } + if (isset($map['InputFile'])) { + $model->inputFile = $map['InputFile']; + } + if (isset($map['Width'])) { + $model->width = $map['Width']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeVideoCharacterResponseBody/data/frames.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeVideoCharacterResponseBody/data/frames.php new file mode 100644 index 00000000..e42f6c84 --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeVideoCharacterResponseBody/data/frames.php @@ -0,0 +1,74 @@ + 'Elements', + 'timestamp' => 'Timestamp', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->elements) { + $res['Elements'] = []; + if (null !== $this->elements && \is_array($this->elements)) { + $n = 0; + foreach ($this->elements as $item) { + $res['Elements'][$n++] = null !== $item ? $item->toMap() : $item; + } + } + } + if (null !== $this->timestamp) { + $res['Timestamp'] = $this->timestamp; + } + + return $res; + } + + /** + * @param array $map + * + * @return frames + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Elements'])) { + if (!empty($map['Elements'])) { + $model->elements = []; + $n = 0; + foreach ($map['Elements'] as $item) { + $model->elements[$n++] = null !== $item ? elements::fromMap($item) : $item; + } + } + } + if (isset($map['Timestamp'])) { + $model->timestamp = $map['Timestamp']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeVideoCharacterResponseBody/data/frames/elements.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeVideoCharacterResponseBody/data/frames/elements.php new file mode 100644 index 00000000..7194785a --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeVideoCharacterResponseBody/data/frames/elements.php @@ -0,0 +1,86 @@ + 'Score', + 'text' => 'Text', + 'textRectangles' => 'TextRectangles', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->score) { + $res['Score'] = $this->score; + } + if (null !== $this->text) { + $res['Text'] = $this->text; + } + if (null !== $this->textRectangles) { + $res['TextRectangles'] = []; + if (null !== $this->textRectangles && \is_array($this->textRectangles)) { + $n = 0; + foreach ($this->textRectangles as $item) { + $res['TextRectangles'][$n++] = null !== $item ? $item->toMap() : $item; + } + } + } + + return $res; + } + + /** + * @param array $map + * + * @return elements + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Score'])) { + $model->score = $map['Score']; + } + if (isset($map['Text'])) { + $model->text = $map['Text']; + } + if (isset($map['TextRectangles'])) { + if (!empty($map['TextRectangles'])) { + $model->textRectangles = []; + $n = 0; + foreach ($map['TextRectangles'] as $item) { + $model->textRectangles[$n++] = null !== $item ? textRectangles::fromMap($item) : $item; + } + } + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeVideoCharacterResponseBody/data/frames/elements/textRectangles.php b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeVideoCharacterResponseBody/data/frames/elements/textRectangles.php new file mode 100644 index 00000000..19e038c1 --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeVideoCharacterResponseBody/data/frames/elements/textRectangles.php @@ -0,0 +1,105 @@ + 'Angle', + 'height' => 'Height', + 'left' => 'Left', + 'top' => 'Top', + 'width' => 'Width', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->angle) { + $res['Angle'] = $this->angle; + } + if (null !== $this->height) { + $res['Height'] = $this->height; + } + if (null !== $this->left) { + $res['Left'] = $this->left; + } + if (null !== $this->top) { + $res['Top'] = $this->top; + } + if (null !== $this->width) { + $res['Width'] = $this->width; + } + + return $res; + } + + /** + * @param array $map + * + * @return textRectangles + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Angle'])) { + $model->angle = $map['Angle']; + } + if (isset($map['Height'])) { + $model->height = $map['Height']; + } + if (isset($map['Left'])) { + $model->left = $map['Left']; + } + if (isset($map['Top'])) { + $model->top = $map['Top']; + } + if (isset($map['Width'])) { + $model->width = $map['Width']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/ocr-20191230/src/Ocr.php b/vendor/alibabacloud/ocr-20191230/src/Ocr.php new file mode 100644 index 00000000..3a84a3d6 --- /dev/null +++ b/vendor/alibabacloud/ocr-20191230/src/Ocr.php @@ -0,0 +1,2496 @@ +_endpointRule = 'regional'; + $this->checkConfig($config); + $this->_endpoint = $this->getEndpoint('ocr', $this->_regionId, $this->_endpointRule, $this->_network, $this->_suffix, $this->_endpointMap, $this->_endpoint); + } + + /** + * @param string $productId + * @param string $regionId + * @param string $endpointRule + * @param string $network + * @param string $suffix + * @param string[] $endpointMap + * @param string $endpoint + * + * @return string + */ + public function getEndpoint($productId, $regionId, $endpointRule, $network, $suffix, $endpointMap, $endpoint) + { + if (!Utils::empty_($endpoint)) { + return $endpoint; + } + if (!Utils::isUnset($endpointMap) && !Utils::empty_(@$endpointMap[$regionId])) { + return @$endpointMap[$regionId]; + } + + return Endpoint::getEndpointRules($productId, $regionId, $endpointRule, $network, $suffix); + } + + /** + * @param GetAsyncJobResultRequest $request + * @param RuntimeOptions $runtime + * + * @return GetAsyncJobResultResponse + */ + public function getAsyncJobResultWithOptions($request, $runtime) + { + Utils::validateModel($request); + $body = []; + if (!Utils::isUnset($request->jobId)) { + $body['JobId'] = $request->jobId; + } + $req = new OpenApiRequest([ + 'body' => OpenApiUtilClient::parseToMap($body), + ]); + $params = new Params([ + 'action' => 'GetAsyncJobResult', + 'version' => '2019-12-30', + 'protocol' => 'HTTPS', + 'pathname' => '/', + 'method' => 'POST', + 'authType' => 'AK', + 'style' => 'RPC', + 'reqBodyType' => 'formData', + 'bodyType' => 'json', + ]); + + return GetAsyncJobResultResponse::fromMap($this->callApi($params, $req, $runtime)); + } + + /** + * @param GetAsyncJobResultRequest $request + * + * @return GetAsyncJobResultResponse + */ + public function getAsyncJobResult($request) + { + $runtime = new RuntimeOptions([]); + + return $this->getAsyncJobResultWithOptions($request, $runtime); + } + + /** + * @param RecognizeBankCardRequest $request + * @param RuntimeOptions $runtime + * + * @return RecognizeBankCardResponse + */ + public function recognizeBankCardWithOptions($request, $runtime) + { + Utils::validateModel($request); + $body = []; + if (!Utils::isUnset($request->imageURL)) { + $body['ImageURL'] = $request->imageURL; + } + $req = new OpenApiRequest([ + 'body' => OpenApiUtilClient::parseToMap($body), + ]); + $params = new Params([ + 'action' => 'RecognizeBankCard', + 'version' => '2019-12-30', + 'protocol' => 'HTTPS', + 'pathname' => '/', + 'method' => 'POST', + 'authType' => 'AK', + 'style' => 'RPC', + 'reqBodyType' => 'formData', + 'bodyType' => 'json', + ]); + + return RecognizeBankCardResponse::fromMap($this->callApi($params, $req, $runtime)); + } + + /** + * @param RecognizeBankCardRequest $request + * + * @return RecognizeBankCardResponse + */ + public function recognizeBankCard($request) + { + $runtime = new RuntimeOptions([]); + + return $this->recognizeBankCardWithOptions($request, $runtime); + } + + /** + * @param RecognizeBankCardAdvanceRequest $request + * @param RuntimeOptions $runtime + * + * @return RecognizeBankCardResponse + */ + public function recognizeBankCardAdvance($request, $runtime) + { + // Step 0: init client + $accessKeyId = $this->_credential->getAccessKeyId(); + $accessKeySecret = $this->_credential->getAccessKeySecret(); + $securityToken = $this->_credential->getSecurityToken(); + $credentialType = $this->_credential->getType(); + $openPlatformEndpoint = $this->_openPlatformEndpoint; + if (Utils::isUnset($openPlatformEndpoint)) { + $openPlatformEndpoint = 'openplatform.aliyuncs.com'; + } + if (Utils::isUnset($credentialType)) { + $credentialType = 'access_key'; + } + $authConfig = new Config([ + 'accessKeyId' => $accessKeyId, + 'accessKeySecret' => $accessKeySecret, + 'securityToken' => $securityToken, + 'type' => $credentialType, + 'endpoint' => $openPlatformEndpoint, + 'protocol' => $this->_protocol, + 'regionId' => $this->_regionId, + ]); + $authClient = new OpenPlatform($authConfig); + $authRequest = new AuthorizeFileUploadRequest([ + 'product' => 'ocr', + 'regionId' => $this->_regionId, + ]); + $authResponse = new AuthorizeFileUploadResponse([]); + $ossConfig = new \AlibabaCloud\SDK\OSS\OSS\Config([ + 'accessKeySecret' => $accessKeySecret, + 'type' => 'access_key', + 'protocol' => $this->_protocol, + 'regionId' => $this->_regionId, + ]); + $ossClient = null; + $fileObj = new FileField([]); + $ossHeader = new header([]); + $uploadRequest = new PostObjectRequest([]); + $ossRuntime = new \AlibabaCloud\Tea\OSSUtils\OSSUtils\RuntimeOptions([]); + OpenApiUtilClient::convert($runtime, $ossRuntime); + $recognizeBankCardReq = new RecognizeBankCardRequest([]); + OpenApiUtilClient::convert($request, $recognizeBankCardReq); + if (!Utils::isUnset($request->imageURLObject)) { + $authResponse = $authClient->authorizeFileUploadWithOptions($authRequest, $runtime); + $ossConfig->accessKeyId = $authResponse->body->accessKeyId; + $ossConfig->endpoint = OpenApiUtilClient::getEndpoint($authResponse->body->endpoint, $authResponse->body->useAccelerate, $this->_endpointType); + $ossClient = new OSS($ossConfig); + $fileObj = new FileField([ + 'filename' => $authResponse->body->objectKey, + 'content' => $request->imageURLObject, + 'contentType' => '', + ]); + $ossHeader = new header([ + 'accessKeyId' => $authResponse->body->accessKeyId, + 'policy' => $authResponse->body->encodedPolicy, + 'signature' => $authResponse->body->signature, + 'key' => $authResponse->body->objectKey, + 'file' => $fileObj, + 'successActionStatus' => '201', + ]); + $uploadRequest = new PostObjectRequest([ + 'bucketName' => $authResponse->body->bucket, + 'header' => $ossHeader, + ]); + $ossClient->postObject($uploadRequest, $ossRuntime); + $recognizeBankCardReq->imageURL = 'http://' . $authResponse->body->bucket . '.' . $authResponse->body->endpoint . '/' . $authResponse->body->objectKey . ''; + } + + return $this->recognizeBankCardWithOptions($recognizeBankCardReq, $runtime); + } + + /** + * @param RecognizeBusinessCardRequest $request + * @param RuntimeOptions $runtime + * + * @return RecognizeBusinessCardResponse + */ + public function recognizeBusinessCardWithOptions($request, $runtime) + { + Utils::validateModel($request); + $body = []; + if (!Utils::isUnset($request->imageURL)) { + $body['ImageURL'] = $request->imageURL; + } + $req = new OpenApiRequest([ + 'body' => OpenApiUtilClient::parseToMap($body), + ]); + $params = new Params([ + 'action' => 'RecognizeBusinessCard', + 'version' => '2019-12-30', + 'protocol' => 'HTTPS', + 'pathname' => '/', + 'method' => 'POST', + 'authType' => 'AK', + 'style' => 'RPC', + 'reqBodyType' => 'formData', + 'bodyType' => 'json', + ]); + + return RecognizeBusinessCardResponse::fromMap($this->callApi($params, $req, $runtime)); + } + + /** + * @param RecognizeBusinessCardRequest $request + * + * @return RecognizeBusinessCardResponse + */ + public function recognizeBusinessCard($request) + { + $runtime = new RuntimeOptions([]); + + return $this->recognizeBusinessCardWithOptions($request, $runtime); + } + + /** + * @param RecognizeBusinessCardAdvanceRequest $request + * @param RuntimeOptions $runtime + * + * @return RecognizeBusinessCardResponse + */ + public function recognizeBusinessCardAdvance($request, $runtime) + { + // Step 0: init client + $accessKeyId = $this->_credential->getAccessKeyId(); + $accessKeySecret = $this->_credential->getAccessKeySecret(); + $securityToken = $this->_credential->getSecurityToken(); + $credentialType = $this->_credential->getType(); + $openPlatformEndpoint = $this->_openPlatformEndpoint; + if (Utils::isUnset($openPlatformEndpoint)) { + $openPlatformEndpoint = 'openplatform.aliyuncs.com'; + } + if (Utils::isUnset($credentialType)) { + $credentialType = 'access_key'; + } + $authConfig = new Config([ + 'accessKeyId' => $accessKeyId, + 'accessKeySecret' => $accessKeySecret, + 'securityToken' => $securityToken, + 'type' => $credentialType, + 'endpoint' => $openPlatformEndpoint, + 'protocol' => $this->_protocol, + 'regionId' => $this->_regionId, + ]); + $authClient = new OpenPlatform($authConfig); + $authRequest = new AuthorizeFileUploadRequest([ + 'product' => 'ocr', + 'regionId' => $this->_regionId, + ]); + $authResponse = new AuthorizeFileUploadResponse([]); + $ossConfig = new \AlibabaCloud\SDK\OSS\OSS\Config([ + 'accessKeySecret' => $accessKeySecret, + 'type' => 'access_key', + 'protocol' => $this->_protocol, + 'regionId' => $this->_regionId, + ]); + $ossClient = null; + $fileObj = new FileField([]); + $ossHeader = new header([]); + $uploadRequest = new PostObjectRequest([]); + $ossRuntime = new \AlibabaCloud\Tea\OSSUtils\OSSUtils\RuntimeOptions([]); + OpenApiUtilClient::convert($runtime, $ossRuntime); + $recognizeBusinessCardReq = new RecognizeBusinessCardRequest([]); + OpenApiUtilClient::convert($request, $recognizeBusinessCardReq); + if (!Utils::isUnset($request->imageURLObject)) { + $authResponse = $authClient->authorizeFileUploadWithOptions($authRequest, $runtime); + $ossConfig->accessKeyId = $authResponse->body->accessKeyId; + $ossConfig->endpoint = OpenApiUtilClient::getEndpoint($authResponse->body->endpoint, $authResponse->body->useAccelerate, $this->_endpointType); + $ossClient = new OSS($ossConfig); + $fileObj = new FileField([ + 'filename' => $authResponse->body->objectKey, + 'content' => $request->imageURLObject, + 'contentType' => '', + ]); + $ossHeader = new header([ + 'accessKeyId' => $authResponse->body->accessKeyId, + 'policy' => $authResponse->body->encodedPolicy, + 'signature' => $authResponse->body->signature, + 'key' => $authResponse->body->objectKey, + 'file' => $fileObj, + 'successActionStatus' => '201', + ]); + $uploadRequest = new PostObjectRequest([ + 'bucketName' => $authResponse->body->bucket, + 'header' => $ossHeader, + ]); + $ossClient->postObject($uploadRequest, $ossRuntime); + $recognizeBusinessCardReq->imageURL = 'http://' . $authResponse->body->bucket . '.' . $authResponse->body->endpoint . '/' . $authResponse->body->objectKey . ''; + } + + return $this->recognizeBusinessCardWithOptions($recognizeBusinessCardReq, $runtime); + } + + /** + * @param RecognizeBusinessLicenseRequest $request + * @param RuntimeOptions $runtime + * + * @return RecognizeBusinessLicenseResponse + */ + public function recognizeBusinessLicenseWithOptions($request, $runtime) + { + Utils::validateModel($request); + $body = []; + if (!Utils::isUnset($request->imageURL)) { + $body['ImageURL'] = $request->imageURL; + } + $req = new OpenApiRequest([ + 'body' => OpenApiUtilClient::parseToMap($body), + ]); + $params = new Params([ + 'action' => 'RecognizeBusinessLicense', + 'version' => '2019-12-30', + 'protocol' => 'HTTPS', + 'pathname' => '/', + 'method' => 'POST', + 'authType' => 'AK', + 'style' => 'RPC', + 'reqBodyType' => 'formData', + 'bodyType' => 'json', + ]); + + return RecognizeBusinessLicenseResponse::fromMap($this->callApi($params, $req, $runtime)); + } + + /** + * @param RecognizeBusinessLicenseRequest $request + * + * @return RecognizeBusinessLicenseResponse + */ + public function recognizeBusinessLicense($request) + { + $runtime = new RuntimeOptions([]); + + return $this->recognizeBusinessLicenseWithOptions($request, $runtime); + } + + /** + * @param RecognizeBusinessLicenseAdvanceRequest $request + * @param RuntimeOptions $runtime + * + * @return RecognizeBusinessLicenseResponse + */ + public function recognizeBusinessLicenseAdvance($request, $runtime) + { + // Step 0: init client + $accessKeyId = $this->_credential->getAccessKeyId(); + $accessKeySecret = $this->_credential->getAccessKeySecret(); + $securityToken = $this->_credential->getSecurityToken(); + $credentialType = $this->_credential->getType(); + $openPlatformEndpoint = $this->_openPlatformEndpoint; + if (Utils::isUnset($openPlatformEndpoint)) { + $openPlatformEndpoint = 'openplatform.aliyuncs.com'; + } + if (Utils::isUnset($credentialType)) { + $credentialType = 'access_key'; + } + $authConfig = new Config([ + 'accessKeyId' => $accessKeyId, + 'accessKeySecret' => $accessKeySecret, + 'securityToken' => $securityToken, + 'type' => $credentialType, + 'endpoint' => $openPlatformEndpoint, + 'protocol' => $this->_protocol, + 'regionId' => $this->_regionId, + ]); + $authClient = new OpenPlatform($authConfig); + $authRequest = new AuthorizeFileUploadRequest([ + 'product' => 'ocr', + 'regionId' => $this->_regionId, + ]); + $authResponse = new AuthorizeFileUploadResponse([]); + $ossConfig = new \AlibabaCloud\SDK\OSS\OSS\Config([ + 'accessKeySecret' => $accessKeySecret, + 'type' => 'access_key', + 'protocol' => $this->_protocol, + 'regionId' => $this->_regionId, + ]); + $ossClient = null; + $fileObj = new FileField([]); + $ossHeader = new header([]); + $uploadRequest = new PostObjectRequest([]); + $ossRuntime = new \AlibabaCloud\Tea\OSSUtils\OSSUtils\RuntimeOptions([]); + OpenApiUtilClient::convert($runtime, $ossRuntime); + $recognizeBusinessLicenseReq = new RecognizeBusinessLicenseRequest([]); + OpenApiUtilClient::convert($request, $recognizeBusinessLicenseReq); + if (!Utils::isUnset($request->imageURLObject)) { + $authResponse = $authClient->authorizeFileUploadWithOptions($authRequest, $runtime); + $ossConfig->accessKeyId = $authResponse->body->accessKeyId; + $ossConfig->endpoint = OpenApiUtilClient::getEndpoint($authResponse->body->endpoint, $authResponse->body->useAccelerate, $this->_endpointType); + $ossClient = new OSS($ossConfig); + $fileObj = new FileField([ + 'filename' => $authResponse->body->objectKey, + 'content' => $request->imageURLObject, + 'contentType' => '', + ]); + $ossHeader = new header([ + 'accessKeyId' => $authResponse->body->accessKeyId, + 'policy' => $authResponse->body->encodedPolicy, + 'signature' => $authResponse->body->signature, + 'key' => $authResponse->body->objectKey, + 'file' => $fileObj, + 'successActionStatus' => '201', + ]); + $uploadRequest = new PostObjectRequest([ + 'bucketName' => $authResponse->body->bucket, + 'header' => $ossHeader, + ]); + $ossClient->postObject($uploadRequest, $ossRuntime); + $recognizeBusinessLicenseReq->imageURL = 'http://' . $authResponse->body->bucket . '.' . $authResponse->body->endpoint . '/' . $authResponse->body->objectKey . ''; + } + + return $this->recognizeBusinessLicenseWithOptions($recognizeBusinessLicenseReq, $runtime); + } + + /** + * @param RecognizeCharacterRequest $request + * @param RuntimeOptions $runtime + * + * @return RecognizeCharacterResponse + */ + public function recognizeCharacterWithOptions($request, $runtime) + { + Utils::validateModel($request); + $body = []; + if (!Utils::isUnset($request->imageURL)) { + $body['ImageURL'] = $request->imageURL; + } + if (!Utils::isUnset($request->minHeight)) { + $body['MinHeight'] = $request->minHeight; + } + if (!Utils::isUnset($request->outputProbability)) { + $body['OutputProbability'] = $request->outputProbability; + } + $req = new OpenApiRequest([ + 'body' => OpenApiUtilClient::parseToMap($body), + ]); + $params = new Params([ + 'action' => 'RecognizeCharacter', + 'version' => '2019-12-30', + 'protocol' => 'HTTPS', + 'pathname' => '/', + 'method' => 'POST', + 'authType' => 'AK', + 'style' => 'RPC', + 'reqBodyType' => 'formData', + 'bodyType' => 'json', + ]); + + return RecognizeCharacterResponse::fromMap($this->callApi($params, $req, $runtime)); + } + + /** + * @param RecognizeCharacterRequest $request + * + * @return RecognizeCharacterResponse + */ + public function recognizeCharacter($request) + { + $runtime = new RuntimeOptions([]); + + return $this->recognizeCharacterWithOptions($request, $runtime); + } + + /** + * @param RecognizeCharacterAdvanceRequest $request + * @param RuntimeOptions $runtime + * + * @return RecognizeCharacterResponse + */ + public function recognizeCharacterAdvance($request, $runtime) + { + // Step 0: init client + $accessKeyId = $this->_credential->getAccessKeyId(); + $accessKeySecret = $this->_credential->getAccessKeySecret(); + $securityToken = $this->_credential->getSecurityToken(); + $credentialType = $this->_credential->getType(); + $openPlatformEndpoint = $this->_openPlatformEndpoint; + if (Utils::isUnset($openPlatformEndpoint)) { + $openPlatformEndpoint = 'openplatform.aliyuncs.com'; + } + if (Utils::isUnset($credentialType)) { + $credentialType = 'access_key'; + } + $authConfig = new Config([ + 'accessKeyId' => $accessKeyId, + 'accessKeySecret' => $accessKeySecret, + 'securityToken' => $securityToken, + 'type' => $credentialType, + 'endpoint' => $openPlatformEndpoint, + 'protocol' => $this->_protocol, + 'regionId' => $this->_regionId, + ]); + $authClient = new OpenPlatform($authConfig); + $authRequest = new AuthorizeFileUploadRequest([ + 'product' => 'ocr', + 'regionId' => $this->_regionId, + ]); + $authResponse = new AuthorizeFileUploadResponse([]); + $ossConfig = new \AlibabaCloud\SDK\OSS\OSS\Config([ + 'accessKeySecret' => $accessKeySecret, + 'type' => 'access_key', + 'protocol' => $this->_protocol, + 'regionId' => $this->_regionId, + ]); + $ossClient = null; + $fileObj = new FileField([]); + $ossHeader = new header([]); + $uploadRequest = new PostObjectRequest([]); + $ossRuntime = new \AlibabaCloud\Tea\OSSUtils\OSSUtils\RuntimeOptions([]); + OpenApiUtilClient::convert($runtime, $ossRuntime); + $recognizeCharacterReq = new RecognizeCharacterRequest([]); + OpenApiUtilClient::convert($request, $recognizeCharacterReq); + if (!Utils::isUnset($request->imageURLObject)) { + $authResponse = $authClient->authorizeFileUploadWithOptions($authRequest, $runtime); + $ossConfig->accessKeyId = $authResponse->body->accessKeyId; + $ossConfig->endpoint = OpenApiUtilClient::getEndpoint($authResponse->body->endpoint, $authResponse->body->useAccelerate, $this->_endpointType); + $ossClient = new OSS($ossConfig); + $fileObj = new FileField([ + 'filename' => $authResponse->body->objectKey, + 'content' => $request->imageURLObject, + 'contentType' => '', + ]); + $ossHeader = new header([ + 'accessKeyId' => $authResponse->body->accessKeyId, + 'policy' => $authResponse->body->encodedPolicy, + 'signature' => $authResponse->body->signature, + 'key' => $authResponse->body->objectKey, + 'file' => $fileObj, + 'successActionStatus' => '201', + ]); + $uploadRequest = new PostObjectRequest([ + 'bucketName' => $authResponse->body->bucket, + 'header' => $ossHeader, + ]); + $ossClient->postObject($uploadRequest, $ossRuntime); + $recognizeCharacterReq->imageURL = 'http://' . $authResponse->body->bucket . '.' . $authResponse->body->endpoint . '/' . $authResponse->body->objectKey . ''; + } + + return $this->recognizeCharacterWithOptions($recognizeCharacterReq, $runtime); + } + + /** + * @param RecognizeDriverLicenseRequest $request + * @param RuntimeOptions $runtime + * + * @return RecognizeDriverLicenseResponse + */ + public function recognizeDriverLicenseWithOptions($request, $runtime) + { + Utils::validateModel($request); + $body = []; + if (!Utils::isUnset($request->imageURL)) { + $body['ImageURL'] = $request->imageURL; + } + if (!Utils::isUnset($request->side)) { + $body['Side'] = $request->side; + } + $req = new OpenApiRequest([ + 'body' => OpenApiUtilClient::parseToMap($body), + ]); + $params = new Params([ + 'action' => 'RecognizeDriverLicense', + 'version' => '2019-12-30', + 'protocol' => 'HTTPS', + 'pathname' => '/', + 'method' => 'POST', + 'authType' => 'AK', + 'style' => 'RPC', + 'reqBodyType' => 'formData', + 'bodyType' => 'json', + ]); + + return RecognizeDriverLicenseResponse::fromMap($this->callApi($params, $req, $runtime)); + } + + /** + * @param RecognizeDriverLicenseRequest $request + * + * @return RecognizeDriverLicenseResponse + */ + public function recognizeDriverLicense($request) + { + $runtime = new RuntimeOptions([]); + + return $this->recognizeDriverLicenseWithOptions($request, $runtime); + } + + /** + * @param RecognizeDriverLicenseAdvanceRequest $request + * @param RuntimeOptions $runtime + * + * @return RecognizeDriverLicenseResponse + */ + public function recognizeDriverLicenseAdvance($request, $runtime) + { + // Step 0: init client + $accessKeyId = $this->_credential->getAccessKeyId(); + $accessKeySecret = $this->_credential->getAccessKeySecret(); + $securityToken = $this->_credential->getSecurityToken(); + $credentialType = $this->_credential->getType(); + $openPlatformEndpoint = $this->_openPlatformEndpoint; + if (Utils::isUnset($openPlatformEndpoint)) { + $openPlatformEndpoint = 'openplatform.aliyuncs.com'; + } + if (Utils::isUnset($credentialType)) { + $credentialType = 'access_key'; + } + $authConfig = new Config([ + 'accessKeyId' => $accessKeyId, + 'accessKeySecret' => $accessKeySecret, + 'securityToken' => $securityToken, + 'type' => $credentialType, + 'endpoint' => $openPlatformEndpoint, + 'protocol' => $this->_protocol, + 'regionId' => $this->_regionId, + ]); + $authClient = new OpenPlatform($authConfig); + $authRequest = new AuthorizeFileUploadRequest([ + 'product' => 'ocr', + 'regionId' => $this->_regionId, + ]); + $authResponse = new AuthorizeFileUploadResponse([]); + $ossConfig = new \AlibabaCloud\SDK\OSS\OSS\Config([ + 'accessKeySecret' => $accessKeySecret, + 'type' => 'access_key', + 'protocol' => $this->_protocol, + 'regionId' => $this->_regionId, + ]); + $ossClient = null; + $fileObj = new FileField([]); + $ossHeader = new header([]); + $uploadRequest = new PostObjectRequest([]); + $ossRuntime = new \AlibabaCloud\Tea\OSSUtils\OSSUtils\RuntimeOptions([]); + OpenApiUtilClient::convert($runtime, $ossRuntime); + $recognizeDriverLicenseReq = new RecognizeDriverLicenseRequest([]); + OpenApiUtilClient::convert($request, $recognizeDriverLicenseReq); + if (!Utils::isUnset($request->imageURLObject)) { + $authResponse = $authClient->authorizeFileUploadWithOptions($authRequest, $runtime); + $ossConfig->accessKeyId = $authResponse->body->accessKeyId; + $ossConfig->endpoint = OpenApiUtilClient::getEndpoint($authResponse->body->endpoint, $authResponse->body->useAccelerate, $this->_endpointType); + $ossClient = new OSS($ossConfig); + $fileObj = new FileField([ + 'filename' => $authResponse->body->objectKey, + 'content' => $request->imageURLObject, + 'contentType' => '', + ]); + $ossHeader = new header([ + 'accessKeyId' => $authResponse->body->accessKeyId, + 'policy' => $authResponse->body->encodedPolicy, + 'signature' => $authResponse->body->signature, + 'key' => $authResponse->body->objectKey, + 'file' => $fileObj, + 'successActionStatus' => '201', + ]); + $uploadRequest = new PostObjectRequest([ + 'bucketName' => $authResponse->body->bucket, + 'header' => $ossHeader, + ]); + $ossClient->postObject($uploadRequest, $ossRuntime); + $recognizeDriverLicenseReq->imageURL = 'http://' . $authResponse->body->bucket . '.' . $authResponse->body->endpoint . '/' . $authResponse->body->objectKey . ''; + } + + return $this->recognizeDriverLicenseWithOptions($recognizeDriverLicenseReq, $runtime); + } + + /** + * @param RecognizeDrivingLicenseRequest $request + * @param RuntimeOptions $runtime + * + * @return RecognizeDrivingLicenseResponse + */ + public function recognizeDrivingLicenseWithOptions($request, $runtime) + { + Utils::validateModel($request); + $body = []; + if (!Utils::isUnset($request->imageURL)) { + $body['ImageURL'] = $request->imageURL; + } + if (!Utils::isUnset($request->side)) { + $body['Side'] = $request->side; + } + $req = new OpenApiRequest([ + 'body' => OpenApiUtilClient::parseToMap($body), + ]); + $params = new Params([ + 'action' => 'RecognizeDrivingLicense', + 'version' => '2019-12-30', + 'protocol' => 'HTTPS', + 'pathname' => '/', + 'method' => 'POST', + 'authType' => 'AK', + 'style' => 'RPC', + 'reqBodyType' => 'formData', + 'bodyType' => 'json', + ]); + + return RecognizeDrivingLicenseResponse::fromMap($this->callApi($params, $req, $runtime)); + } + + /** + * @param RecognizeDrivingLicenseRequest $request + * + * @return RecognizeDrivingLicenseResponse + */ + public function recognizeDrivingLicense($request) + { + $runtime = new RuntimeOptions([]); + + return $this->recognizeDrivingLicenseWithOptions($request, $runtime); + } + + /** + * @param RecognizeDrivingLicenseAdvanceRequest $request + * @param RuntimeOptions $runtime + * + * @return RecognizeDrivingLicenseResponse + */ + public function recognizeDrivingLicenseAdvance($request, $runtime) + { + // Step 0: init client + $accessKeyId = $this->_credential->getAccessKeyId(); + $accessKeySecret = $this->_credential->getAccessKeySecret(); + $securityToken = $this->_credential->getSecurityToken(); + $credentialType = $this->_credential->getType(); + $openPlatformEndpoint = $this->_openPlatformEndpoint; + if (Utils::isUnset($openPlatformEndpoint)) { + $openPlatformEndpoint = 'openplatform.aliyuncs.com'; + } + if (Utils::isUnset($credentialType)) { + $credentialType = 'access_key'; + } + $authConfig = new Config([ + 'accessKeyId' => $accessKeyId, + 'accessKeySecret' => $accessKeySecret, + 'securityToken' => $securityToken, + 'type' => $credentialType, + 'endpoint' => $openPlatformEndpoint, + 'protocol' => $this->_protocol, + 'regionId' => $this->_regionId, + ]); + $authClient = new OpenPlatform($authConfig); + $authRequest = new AuthorizeFileUploadRequest([ + 'product' => 'ocr', + 'regionId' => $this->_regionId, + ]); + $authResponse = new AuthorizeFileUploadResponse([]); + $ossConfig = new \AlibabaCloud\SDK\OSS\OSS\Config([ + 'accessKeySecret' => $accessKeySecret, + 'type' => 'access_key', + 'protocol' => $this->_protocol, + 'regionId' => $this->_regionId, + ]); + $ossClient = null; + $fileObj = new FileField([]); + $ossHeader = new header([]); + $uploadRequest = new PostObjectRequest([]); + $ossRuntime = new \AlibabaCloud\Tea\OSSUtils\OSSUtils\RuntimeOptions([]); + OpenApiUtilClient::convert($runtime, $ossRuntime); + $recognizeDrivingLicenseReq = new RecognizeDrivingLicenseRequest([]); + OpenApiUtilClient::convert($request, $recognizeDrivingLicenseReq); + if (!Utils::isUnset($request->imageURLObject)) { + $authResponse = $authClient->authorizeFileUploadWithOptions($authRequest, $runtime); + $ossConfig->accessKeyId = $authResponse->body->accessKeyId; + $ossConfig->endpoint = OpenApiUtilClient::getEndpoint($authResponse->body->endpoint, $authResponse->body->useAccelerate, $this->_endpointType); + $ossClient = new OSS($ossConfig); + $fileObj = new FileField([ + 'filename' => $authResponse->body->objectKey, + 'content' => $request->imageURLObject, + 'contentType' => '', + ]); + $ossHeader = new header([ + 'accessKeyId' => $authResponse->body->accessKeyId, + 'policy' => $authResponse->body->encodedPolicy, + 'signature' => $authResponse->body->signature, + 'key' => $authResponse->body->objectKey, + 'file' => $fileObj, + 'successActionStatus' => '201', + ]); + $uploadRequest = new PostObjectRequest([ + 'bucketName' => $authResponse->body->bucket, + 'header' => $ossHeader, + ]); + $ossClient->postObject($uploadRequest, $ossRuntime); + $recognizeDrivingLicenseReq->imageURL = 'http://' . $authResponse->body->bucket . '.' . $authResponse->body->endpoint . '/' . $authResponse->body->objectKey . ''; + } + + return $this->recognizeDrivingLicenseWithOptions($recognizeDrivingLicenseReq, $runtime); + } + + /** + * @param RecognizeIdentityCardRequest $request + * @param RuntimeOptions $runtime + * + * @return RecognizeIdentityCardResponse + */ + public function recognizeIdentityCardWithOptions($request, $runtime) + { + Utils::validateModel($request); + $body = []; + if (!Utils::isUnset($request->imageURL)) { + $body['ImageURL'] = $request->imageURL; + } + if (!Utils::isUnset($request->side)) { + $body['Side'] = $request->side; + } + $req = new OpenApiRequest([ + 'body' => OpenApiUtilClient::parseToMap($body), + ]); + $params = new Params([ + 'action' => 'RecognizeIdentityCard', + 'version' => '2019-12-30', + 'protocol' => 'HTTPS', + 'pathname' => '/', + 'method' => 'POST', + 'authType' => 'AK', + 'style' => 'RPC', + 'reqBodyType' => 'formData', + 'bodyType' => 'json', + ]); + + return RecognizeIdentityCardResponse::fromMap($this->callApi($params, $req, $runtime)); + } + + /** + * @param RecognizeIdentityCardRequest $request + * + * @return RecognizeIdentityCardResponse + */ + public function recognizeIdentityCard($request) + { + $runtime = new RuntimeOptions([]); + + return $this->recognizeIdentityCardWithOptions($request, $runtime); + } + + /** + * @param RecognizeIdentityCardAdvanceRequest $request + * @param RuntimeOptions $runtime + * + * @return RecognizeIdentityCardResponse + */ + public function recognizeIdentityCardAdvance($request, $runtime) + { + // Step 0: init client + $accessKeyId = $this->_credential->getAccessKeyId(); + $accessKeySecret = $this->_credential->getAccessKeySecret(); + $securityToken = $this->_credential->getSecurityToken(); + $credentialType = $this->_credential->getType(); + $openPlatformEndpoint = $this->_openPlatformEndpoint; + if (Utils::isUnset($openPlatformEndpoint)) { + $openPlatformEndpoint = 'openplatform.aliyuncs.com'; + } + if (Utils::isUnset($credentialType)) { + $credentialType = 'access_key'; + } + $authConfig = new Config([ + 'accessKeyId' => $accessKeyId, + 'accessKeySecret' => $accessKeySecret, + 'securityToken' => $securityToken, + 'type' => $credentialType, + 'endpoint' => $openPlatformEndpoint, + 'protocol' => $this->_protocol, + 'regionId' => $this->_regionId, + ]); + $authClient = new OpenPlatform($authConfig); + $authRequest = new AuthorizeFileUploadRequest([ + 'product' => 'ocr', + 'regionId' => $this->_regionId, + ]); + $authResponse = new AuthorizeFileUploadResponse([]); + $ossConfig = new \AlibabaCloud\SDK\OSS\OSS\Config([ + 'accessKeySecret' => $accessKeySecret, + 'type' => 'access_key', + 'protocol' => $this->_protocol, + 'regionId' => $this->_regionId, + ]); + $ossClient = null; + $fileObj = new FileField([]); + $ossHeader = new header([]); + $uploadRequest = new PostObjectRequest([]); + $ossRuntime = new \AlibabaCloud\Tea\OSSUtils\OSSUtils\RuntimeOptions([]); + OpenApiUtilClient::convert($runtime, $ossRuntime); + $recognizeIdentityCardReq = new RecognizeIdentityCardRequest([]); + OpenApiUtilClient::convert($request, $recognizeIdentityCardReq); + if (!Utils::isUnset($request->imageURLObject)) { + $authResponse = $authClient->authorizeFileUploadWithOptions($authRequest, $runtime); + $ossConfig->accessKeyId = $authResponse->body->accessKeyId; + $ossConfig->endpoint = OpenApiUtilClient::getEndpoint($authResponse->body->endpoint, $authResponse->body->useAccelerate, $this->_endpointType); + $ossClient = new OSS($ossConfig); + $fileObj = new FileField([ + 'filename' => $authResponse->body->objectKey, + 'content' => $request->imageURLObject, + 'contentType' => '', + ]); + $ossHeader = new header([ + 'accessKeyId' => $authResponse->body->accessKeyId, + 'policy' => $authResponse->body->encodedPolicy, + 'signature' => $authResponse->body->signature, + 'key' => $authResponse->body->objectKey, + 'file' => $fileObj, + 'successActionStatus' => '201', + ]); + $uploadRequest = new PostObjectRequest([ + 'bucketName' => $authResponse->body->bucket, + 'header' => $ossHeader, + ]); + $ossClient->postObject($uploadRequest, $ossRuntime); + $recognizeIdentityCardReq->imageURL = 'http://' . $authResponse->body->bucket . '.' . $authResponse->body->endpoint . '/' . $authResponse->body->objectKey . ''; + } + + return $this->recognizeIdentityCardWithOptions($recognizeIdentityCardReq, $runtime); + } + + /** + * @param RecognizeLicensePlateRequest $request + * @param RuntimeOptions $runtime + * + * @return RecognizeLicensePlateResponse + */ + public function recognizeLicensePlateWithOptions($request, $runtime) + { + Utils::validateModel($request); + $body = []; + if (!Utils::isUnset($request->imageURL)) { + $body['ImageURL'] = $request->imageURL; + } + $req = new OpenApiRequest([ + 'body' => OpenApiUtilClient::parseToMap($body), + ]); + $params = new Params([ + 'action' => 'RecognizeLicensePlate', + 'version' => '2019-12-30', + 'protocol' => 'HTTPS', + 'pathname' => '/', + 'method' => 'POST', + 'authType' => 'AK', + 'style' => 'RPC', + 'reqBodyType' => 'formData', + 'bodyType' => 'json', + ]); + + return RecognizeLicensePlateResponse::fromMap($this->callApi($params, $req, $runtime)); + } + + /** + * @param RecognizeLicensePlateRequest $request + * + * @return RecognizeLicensePlateResponse + */ + public function recognizeLicensePlate($request) + { + $runtime = new RuntimeOptions([]); + + return $this->recognizeLicensePlateWithOptions($request, $runtime); + } + + /** + * @param RecognizeLicensePlateAdvanceRequest $request + * @param RuntimeOptions $runtime + * + * @return RecognizeLicensePlateResponse + */ + public function recognizeLicensePlateAdvance($request, $runtime) + { + // Step 0: init client + $accessKeyId = $this->_credential->getAccessKeyId(); + $accessKeySecret = $this->_credential->getAccessKeySecret(); + $securityToken = $this->_credential->getSecurityToken(); + $credentialType = $this->_credential->getType(); + $openPlatformEndpoint = $this->_openPlatformEndpoint; + if (Utils::isUnset($openPlatformEndpoint)) { + $openPlatformEndpoint = 'openplatform.aliyuncs.com'; + } + if (Utils::isUnset($credentialType)) { + $credentialType = 'access_key'; + } + $authConfig = new Config([ + 'accessKeyId' => $accessKeyId, + 'accessKeySecret' => $accessKeySecret, + 'securityToken' => $securityToken, + 'type' => $credentialType, + 'endpoint' => $openPlatformEndpoint, + 'protocol' => $this->_protocol, + 'regionId' => $this->_regionId, + ]); + $authClient = new OpenPlatform($authConfig); + $authRequest = new AuthorizeFileUploadRequest([ + 'product' => 'ocr', + 'regionId' => $this->_regionId, + ]); + $authResponse = new AuthorizeFileUploadResponse([]); + $ossConfig = new \AlibabaCloud\SDK\OSS\OSS\Config([ + 'accessKeySecret' => $accessKeySecret, + 'type' => 'access_key', + 'protocol' => $this->_protocol, + 'regionId' => $this->_regionId, + ]); + $ossClient = null; + $fileObj = new FileField([]); + $ossHeader = new header([]); + $uploadRequest = new PostObjectRequest([]); + $ossRuntime = new \AlibabaCloud\Tea\OSSUtils\OSSUtils\RuntimeOptions([]); + OpenApiUtilClient::convert($runtime, $ossRuntime); + $recognizeLicensePlateReq = new RecognizeLicensePlateRequest([]); + OpenApiUtilClient::convert($request, $recognizeLicensePlateReq); + if (!Utils::isUnset($request->imageURLObject)) { + $authResponse = $authClient->authorizeFileUploadWithOptions($authRequest, $runtime); + $ossConfig->accessKeyId = $authResponse->body->accessKeyId; + $ossConfig->endpoint = OpenApiUtilClient::getEndpoint($authResponse->body->endpoint, $authResponse->body->useAccelerate, $this->_endpointType); + $ossClient = new OSS($ossConfig); + $fileObj = new FileField([ + 'filename' => $authResponse->body->objectKey, + 'content' => $request->imageURLObject, + 'contentType' => '', + ]); + $ossHeader = new header([ + 'accessKeyId' => $authResponse->body->accessKeyId, + 'policy' => $authResponse->body->encodedPolicy, + 'signature' => $authResponse->body->signature, + 'key' => $authResponse->body->objectKey, + 'file' => $fileObj, + 'successActionStatus' => '201', + ]); + $uploadRequest = new PostObjectRequest([ + 'bucketName' => $authResponse->body->bucket, + 'header' => $ossHeader, + ]); + $ossClient->postObject($uploadRequest, $ossRuntime); + $recognizeLicensePlateReq->imageURL = 'http://' . $authResponse->body->bucket . '.' . $authResponse->body->endpoint . '/' . $authResponse->body->objectKey . ''; + } + + return $this->recognizeLicensePlateWithOptions($recognizeLicensePlateReq, $runtime); + } + + /** + * @param RecognizePdfRequest $request + * @param RuntimeOptions $runtime + * + * @return RecognizePdfResponse + */ + public function recognizePdfWithOptions($request, $runtime) + { + Utils::validateModel($request); + $body = []; + if (!Utils::isUnset($request->fileURL)) { + $body['FileURL'] = $request->fileURL; + } + $req = new OpenApiRequest([ + 'body' => OpenApiUtilClient::parseToMap($body), + ]); + $params = new Params([ + 'action' => 'RecognizePdf', + 'version' => '2019-12-30', + 'protocol' => 'HTTPS', + 'pathname' => '/', + 'method' => 'POST', + 'authType' => 'AK', + 'style' => 'RPC', + 'reqBodyType' => 'formData', + 'bodyType' => 'json', + ]); + + return RecognizePdfResponse::fromMap($this->callApi($params, $req, $runtime)); + } + + /** + * @param RecognizePdfRequest $request + * + * @return RecognizePdfResponse + */ + public function recognizePdf($request) + { + $runtime = new RuntimeOptions([]); + + return $this->recognizePdfWithOptions($request, $runtime); + } + + /** + * @param RecognizePdfAdvanceRequest $request + * @param RuntimeOptions $runtime + * + * @return RecognizePdfResponse + */ + public function recognizePdfAdvance($request, $runtime) + { + // Step 0: init client + $accessKeyId = $this->_credential->getAccessKeyId(); + $accessKeySecret = $this->_credential->getAccessKeySecret(); + $securityToken = $this->_credential->getSecurityToken(); + $credentialType = $this->_credential->getType(); + $openPlatformEndpoint = $this->_openPlatformEndpoint; + if (Utils::isUnset($openPlatformEndpoint)) { + $openPlatformEndpoint = 'openplatform.aliyuncs.com'; + } + if (Utils::isUnset($credentialType)) { + $credentialType = 'access_key'; + } + $authConfig = new Config([ + 'accessKeyId' => $accessKeyId, + 'accessKeySecret' => $accessKeySecret, + 'securityToken' => $securityToken, + 'type' => $credentialType, + 'endpoint' => $openPlatformEndpoint, + 'protocol' => $this->_protocol, + 'regionId' => $this->_regionId, + ]); + $authClient = new OpenPlatform($authConfig); + $authRequest = new AuthorizeFileUploadRequest([ + 'product' => 'ocr', + 'regionId' => $this->_regionId, + ]); + $authResponse = new AuthorizeFileUploadResponse([]); + $ossConfig = new \AlibabaCloud\SDK\OSS\OSS\Config([ + 'accessKeySecret' => $accessKeySecret, + 'type' => 'access_key', + 'protocol' => $this->_protocol, + 'regionId' => $this->_regionId, + ]); + $ossClient = null; + $fileObj = new FileField([]); + $ossHeader = new header([]); + $uploadRequest = new PostObjectRequest([]); + $ossRuntime = new \AlibabaCloud\Tea\OSSUtils\OSSUtils\RuntimeOptions([]); + OpenApiUtilClient::convert($runtime, $ossRuntime); + $recognizePdfReq = new RecognizePdfRequest([]); + OpenApiUtilClient::convert($request, $recognizePdfReq); + if (!Utils::isUnset($request->fileURLObject)) { + $authResponse = $authClient->authorizeFileUploadWithOptions($authRequest, $runtime); + $ossConfig->accessKeyId = $authResponse->body->accessKeyId; + $ossConfig->endpoint = OpenApiUtilClient::getEndpoint($authResponse->body->endpoint, $authResponse->body->useAccelerate, $this->_endpointType); + $ossClient = new OSS($ossConfig); + $fileObj = new FileField([ + 'filename' => $authResponse->body->objectKey, + 'content' => $request->fileURLObject, + 'contentType' => '', + ]); + $ossHeader = new header([ + 'accessKeyId' => $authResponse->body->accessKeyId, + 'policy' => $authResponse->body->encodedPolicy, + 'signature' => $authResponse->body->signature, + 'key' => $authResponse->body->objectKey, + 'file' => $fileObj, + 'successActionStatus' => '201', + ]); + $uploadRequest = new PostObjectRequest([ + 'bucketName' => $authResponse->body->bucket, + 'header' => $ossHeader, + ]); + $ossClient->postObject($uploadRequest, $ossRuntime); + $recognizePdfReq->fileURL = 'http://' . $authResponse->body->bucket . '.' . $authResponse->body->endpoint . '/' . $authResponse->body->objectKey . ''; + } + + return $this->recognizePdfWithOptions($recognizePdfReq, $runtime); + } + + /** + * @param RecognizeQrCodeRequest $request + * @param RuntimeOptions $runtime + * + * @return RecognizeQrCodeResponse + */ + public function recognizeQrCodeWithOptions($request, $runtime) + { + Utils::validateModel($request); + $body = []; + if (!Utils::isUnset($request->tasks)) { + $body['Tasks'] = $request->tasks; + } + $req = new OpenApiRequest([ + 'body' => OpenApiUtilClient::parseToMap($body), + ]); + $params = new Params([ + 'action' => 'RecognizeQrCode', + 'version' => '2019-12-30', + 'protocol' => 'HTTPS', + 'pathname' => '/', + 'method' => 'POST', + 'authType' => 'AK', + 'style' => 'RPC', + 'reqBodyType' => 'formData', + 'bodyType' => 'json', + ]); + + return RecognizeQrCodeResponse::fromMap($this->callApi($params, $req, $runtime)); + } + + /** + * @param RecognizeQrCodeRequest $request + * + * @return RecognizeQrCodeResponse + */ + public function recognizeQrCode($request) + { + $runtime = new RuntimeOptions([]); + + return $this->recognizeQrCodeWithOptions($request, $runtime); + } + + /** + * @param RecognizeQrCodeAdvanceRequest $request + * @param RuntimeOptions $runtime + * + * @return RecognizeQrCodeResponse + */ + public function recognizeQrCodeAdvance($request, $runtime) + { + // Step 0: init client + $accessKeyId = $this->_credential->getAccessKeyId(); + $accessKeySecret = $this->_credential->getAccessKeySecret(); + $securityToken = $this->_credential->getSecurityToken(); + $credentialType = $this->_credential->getType(); + $openPlatformEndpoint = $this->_openPlatformEndpoint; + if (Utils::isUnset($openPlatformEndpoint)) { + $openPlatformEndpoint = 'openplatform.aliyuncs.com'; + } + if (Utils::isUnset($credentialType)) { + $credentialType = 'access_key'; + } + $authConfig = new Config([ + 'accessKeyId' => $accessKeyId, + 'accessKeySecret' => $accessKeySecret, + 'securityToken' => $securityToken, + 'type' => $credentialType, + 'endpoint' => $openPlatformEndpoint, + 'protocol' => $this->_protocol, + 'regionId' => $this->_regionId, + ]); + $authClient = new OpenPlatform($authConfig); + $authRequest = new AuthorizeFileUploadRequest([ + 'product' => 'ocr', + 'regionId' => $this->_regionId, + ]); + $authResponse = new AuthorizeFileUploadResponse([]); + $ossConfig = new \AlibabaCloud\SDK\OSS\OSS\Config([ + 'accessKeySecret' => $accessKeySecret, + 'type' => 'access_key', + 'protocol' => $this->_protocol, + 'regionId' => $this->_regionId, + ]); + $ossClient = null; + $fileObj = new FileField([]); + $ossHeader = new header([]); + $uploadRequest = new PostObjectRequest([]); + $ossRuntime = new \AlibabaCloud\Tea\OSSUtils\OSSUtils\RuntimeOptions([]); + OpenApiUtilClient::convert($runtime, $ossRuntime); + $recognizeQrCodeReq = new RecognizeQrCodeRequest([]); + OpenApiUtilClient::convert($request, $recognizeQrCodeReq); + if (!Utils::isUnset($request->tasks)) { + $i0 = 0; + foreach ($request->tasks as $item0) { + if (!Utils::isUnset($item0->imageURLObject)) { + $authResponse = $authClient->authorizeFileUploadWithOptions($authRequest, $runtime); + $ossConfig->accessKeyId = $authResponse->body->accessKeyId; + $ossConfig->endpoint = OpenApiUtilClient::getEndpoint($authResponse->body->endpoint, $authResponse->body->useAccelerate, $this->_endpointType); + $ossClient = new OSS($ossConfig); + $fileObj = new FileField([ + 'filename' => $authResponse->body->objectKey, + 'content' => $item0->imageURLObject, + 'contentType' => '', + ]); + $ossHeader = new header([ + 'accessKeyId' => $authResponse->body->accessKeyId, + 'policy' => $authResponse->body->encodedPolicy, + 'signature' => $authResponse->body->signature, + 'key' => $authResponse->body->objectKey, + 'file' => $fileObj, + 'successActionStatus' => '201', + ]); + $uploadRequest = new PostObjectRequest([ + 'bucketName' => $authResponse->body->bucket, + 'header' => $ossHeader, + ]); + $ossClient->postObject($uploadRequest, $ossRuntime); + $tmp = @$recognizeQrCodeReq->tasks[$i0]; + $tmp->imageURL = 'http://' . $authResponse->body->bucket . '.' . $authResponse->body->endpoint . '/' . $authResponse->body->objectKey . ''; + $i0 = $i0 + 1; + } + } + } + + return $this->recognizeQrCodeWithOptions($recognizeQrCodeReq, $runtime); + } + + /** + * @param RecognizeQuotaInvoiceRequest $request + * @param RuntimeOptions $runtime + * + * @return RecognizeQuotaInvoiceResponse + */ + public function recognizeQuotaInvoiceWithOptions($request, $runtime) + { + Utils::validateModel($request); + $body = []; + if (!Utils::isUnset($request->imageURL)) { + $body['ImageURL'] = $request->imageURL; + } + $req = new OpenApiRequest([ + 'body' => OpenApiUtilClient::parseToMap($body), + ]); + $params = new Params([ + 'action' => 'RecognizeQuotaInvoice', + 'version' => '2019-12-30', + 'protocol' => 'HTTPS', + 'pathname' => '/', + 'method' => 'POST', + 'authType' => 'AK', + 'style' => 'RPC', + 'reqBodyType' => 'formData', + 'bodyType' => 'json', + ]); + + return RecognizeQuotaInvoiceResponse::fromMap($this->callApi($params, $req, $runtime)); + } + + /** + * @param RecognizeQuotaInvoiceRequest $request + * + * @return RecognizeQuotaInvoiceResponse + */ + public function recognizeQuotaInvoice($request) + { + $runtime = new RuntimeOptions([]); + + return $this->recognizeQuotaInvoiceWithOptions($request, $runtime); + } + + /** + * @param RecognizeQuotaInvoiceAdvanceRequest $request + * @param RuntimeOptions $runtime + * + * @return RecognizeQuotaInvoiceResponse + */ + public function recognizeQuotaInvoiceAdvance($request, $runtime) + { + // Step 0: init client + $accessKeyId = $this->_credential->getAccessKeyId(); + $accessKeySecret = $this->_credential->getAccessKeySecret(); + $securityToken = $this->_credential->getSecurityToken(); + $credentialType = $this->_credential->getType(); + $openPlatformEndpoint = $this->_openPlatformEndpoint; + if (Utils::isUnset($openPlatformEndpoint)) { + $openPlatformEndpoint = 'openplatform.aliyuncs.com'; + } + if (Utils::isUnset($credentialType)) { + $credentialType = 'access_key'; + } + $authConfig = new Config([ + 'accessKeyId' => $accessKeyId, + 'accessKeySecret' => $accessKeySecret, + 'securityToken' => $securityToken, + 'type' => $credentialType, + 'endpoint' => $openPlatformEndpoint, + 'protocol' => $this->_protocol, + 'regionId' => $this->_regionId, + ]); + $authClient = new OpenPlatform($authConfig); + $authRequest = new AuthorizeFileUploadRequest([ + 'product' => 'ocr', + 'regionId' => $this->_regionId, + ]); + $authResponse = new AuthorizeFileUploadResponse([]); + $ossConfig = new \AlibabaCloud\SDK\OSS\OSS\Config([ + 'accessKeySecret' => $accessKeySecret, + 'type' => 'access_key', + 'protocol' => $this->_protocol, + 'regionId' => $this->_regionId, + ]); + $ossClient = null; + $fileObj = new FileField([]); + $ossHeader = new header([]); + $uploadRequest = new PostObjectRequest([]); + $ossRuntime = new \AlibabaCloud\Tea\OSSUtils\OSSUtils\RuntimeOptions([]); + OpenApiUtilClient::convert($runtime, $ossRuntime); + $recognizeQuotaInvoiceReq = new RecognizeQuotaInvoiceRequest([]); + OpenApiUtilClient::convert($request, $recognizeQuotaInvoiceReq); + if (!Utils::isUnset($request->imageURLObject)) { + $authResponse = $authClient->authorizeFileUploadWithOptions($authRequest, $runtime); + $ossConfig->accessKeyId = $authResponse->body->accessKeyId; + $ossConfig->endpoint = OpenApiUtilClient::getEndpoint($authResponse->body->endpoint, $authResponse->body->useAccelerate, $this->_endpointType); + $ossClient = new OSS($ossConfig); + $fileObj = new FileField([ + 'filename' => $authResponse->body->objectKey, + 'content' => $request->imageURLObject, + 'contentType' => '', + ]); + $ossHeader = new header([ + 'accessKeyId' => $authResponse->body->accessKeyId, + 'policy' => $authResponse->body->encodedPolicy, + 'signature' => $authResponse->body->signature, + 'key' => $authResponse->body->objectKey, + 'file' => $fileObj, + 'successActionStatus' => '201', + ]); + $uploadRequest = new PostObjectRequest([ + 'bucketName' => $authResponse->body->bucket, + 'header' => $ossHeader, + ]); + $ossClient->postObject($uploadRequest, $ossRuntime); + $recognizeQuotaInvoiceReq->imageURL = 'http://' . $authResponse->body->bucket . '.' . $authResponse->body->endpoint . '/' . $authResponse->body->objectKey . ''; + } + + return $this->recognizeQuotaInvoiceWithOptions($recognizeQuotaInvoiceReq, $runtime); + } + + /** + * @param RecognizeStampRequest $request + * @param RuntimeOptions $runtime + * + * @return RecognizeStampResponse + */ + public function recognizeStampWithOptions($request, $runtime) + { + Utils::validateModel($request); + $body = []; + if (!Utils::isUnset($request->imageURL)) { + $body['ImageURL'] = $request->imageURL; + } + $req = new OpenApiRequest([ + 'body' => OpenApiUtilClient::parseToMap($body), + ]); + $params = new Params([ + 'action' => 'RecognizeStamp', + 'version' => '2019-12-30', + 'protocol' => 'HTTPS', + 'pathname' => '/', + 'method' => 'POST', + 'authType' => 'AK', + 'style' => 'RPC', + 'reqBodyType' => 'formData', + 'bodyType' => 'json', + ]); + + return RecognizeStampResponse::fromMap($this->callApi($params, $req, $runtime)); + } + + /** + * @param RecognizeStampRequest $request + * + * @return RecognizeStampResponse + */ + public function recognizeStamp($request) + { + $runtime = new RuntimeOptions([]); + + return $this->recognizeStampWithOptions($request, $runtime); + } + + /** + * @param RecognizeStampAdvanceRequest $request + * @param RuntimeOptions $runtime + * + * @return RecognizeStampResponse + */ + public function recognizeStampAdvance($request, $runtime) + { + // Step 0: init client + $accessKeyId = $this->_credential->getAccessKeyId(); + $accessKeySecret = $this->_credential->getAccessKeySecret(); + $securityToken = $this->_credential->getSecurityToken(); + $credentialType = $this->_credential->getType(); + $openPlatformEndpoint = $this->_openPlatformEndpoint; + if (Utils::isUnset($openPlatformEndpoint)) { + $openPlatformEndpoint = 'openplatform.aliyuncs.com'; + } + if (Utils::isUnset($credentialType)) { + $credentialType = 'access_key'; + } + $authConfig = new Config([ + 'accessKeyId' => $accessKeyId, + 'accessKeySecret' => $accessKeySecret, + 'securityToken' => $securityToken, + 'type' => $credentialType, + 'endpoint' => $openPlatformEndpoint, + 'protocol' => $this->_protocol, + 'regionId' => $this->_regionId, + ]); + $authClient = new OpenPlatform($authConfig); + $authRequest = new AuthorizeFileUploadRequest([ + 'product' => 'ocr', + 'regionId' => $this->_regionId, + ]); + $authResponse = new AuthorizeFileUploadResponse([]); + $ossConfig = new \AlibabaCloud\SDK\OSS\OSS\Config([ + 'accessKeySecret' => $accessKeySecret, + 'type' => 'access_key', + 'protocol' => $this->_protocol, + 'regionId' => $this->_regionId, + ]); + $ossClient = null; + $fileObj = new FileField([]); + $ossHeader = new header([]); + $uploadRequest = new PostObjectRequest([]); + $ossRuntime = new \AlibabaCloud\Tea\OSSUtils\OSSUtils\RuntimeOptions([]); + OpenApiUtilClient::convert($runtime, $ossRuntime); + $recognizeStampReq = new RecognizeStampRequest([]); + OpenApiUtilClient::convert($request, $recognizeStampReq); + if (!Utils::isUnset($request->imageURLObject)) { + $authResponse = $authClient->authorizeFileUploadWithOptions($authRequest, $runtime); + $ossConfig->accessKeyId = $authResponse->body->accessKeyId; + $ossConfig->endpoint = OpenApiUtilClient::getEndpoint($authResponse->body->endpoint, $authResponse->body->useAccelerate, $this->_endpointType); + $ossClient = new OSS($ossConfig); + $fileObj = new FileField([ + 'filename' => $authResponse->body->objectKey, + 'content' => $request->imageURLObject, + 'contentType' => '', + ]); + $ossHeader = new header([ + 'accessKeyId' => $authResponse->body->accessKeyId, + 'policy' => $authResponse->body->encodedPolicy, + 'signature' => $authResponse->body->signature, + 'key' => $authResponse->body->objectKey, + 'file' => $fileObj, + 'successActionStatus' => '201', + ]); + $uploadRequest = new PostObjectRequest([ + 'bucketName' => $authResponse->body->bucket, + 'header' => $ossHeader, + ]); + $ossClient->postObject($uploadRequest, $ossRuntime); + $recognizeStampReq->imageURL = 'http://' . $authResponse->body->bucket . '.' . $authResponse->body->endpoint . '/' . $authResponse->body->objectKey . ''; + } + + return $this->recognizeStampWithOptions($recognizeStampReq, $runtime); + } + + /** + * @param RecognizeTableRequest $request + * @param RuntimeOptions $runtime + * + * @return RecognizeTableResponse + */ + public function recognizeTableWithOptions($request, $runtime) + { + Utils::validateModel($request); + $body = []; + if (!Utils::isUnset($request->assureDirection)) { + $body['AssureDirection'] = $request->assureDirection; + } + if (!Utils::isUnset($request->hasLine)) { + $body['HasLine'] = $request->hasLine; + } + if (!Utils::isUnset($request->imageURL)) { + $body['ImageURL'] = $request->imageURL; + } + if (!Utils::isUnset($request->outputFormat)) { + $body['OutputFormat'] = $request->outputFormat; + } + if (!Utils::isUnset($request->skipDetection)) { + $body['SkipDetection'] = $request->skipDetection; + } + if (!Utils::isUnset($request->useFinanceModel)) { + $body['UseFinanceModel'] = $request->useFinanceModel; + } + $req = new OpenApiRequest([ + 'body' => OpenApiUtilClient::parseToMap($body), + ]); + $params = new Params([ + 'action' => 'RecognizeTable', + 'version' => '2019-12-30', + 'protocol' => 'HTTPS', + 'pathname' => '/', + 'method' => 'POST', + 'authType' => 'AK', + 'style' => 'RPC', + 'reqBodyType' => 'formData', + 'bodyType' => 'json', + ]); + + return RecognizeTableResponse::fromMap($this->callApi($params, $req, $runtime)); + } + + /** + * @param RecognizeTableRequest $request + * + * @return RecognizeTableResponse + */ + public function recognizeTable($request) + { + $runtime = new RuntimeOptions([]); + + return $this->recognizeTableWithOptions($request, $runtime); + } + + /** + * @param RecognizeTableAdvanceRequest $request + * @param RuntimeOptions $runtime + * + * @return RecognizeTableResponse + */ + public function recognizeTableAdvance($request, $runtime) + { + // Step 0: init client + $accessKeyId = $this->_credential->getAccessKeyId(); + $accessKeySecret = $this->_credential->getAccessKeySecret(); + $securityToken = $this->_credential->getSecurityToken(); + $credentialType = $this->_credential->getType(); + $openPlatformEndpoint = $this->_openPlatformEndpoint; + if (Utils::isUnset($openPlatformEndpoint)) { + $openPlatformEndpoint = 'openplatform.aliyuncs.com'; + } + if (Utils::isUnset($credentialType)) { + $credentialType = 'access_key'; + } + $authConfig = new Config([ + 'accessKeyId' => $accessKeyId, + 'accessKeySecret' => $accessKeySecret, + 'securityToken' => $securityToken, + 'type' => $credentialType, + 'endpoint' => $openPlatformEndpoint, + 'protocol' => $this->_protocol, + 'regionId' => $this->_regionId, + ]); + $authClient = new OpenPlatform($authConfig); + $authRequest = new AuthorizeFileUploadRequest([ + 'product' => 'ocr', + 'regionId' => $this->_regionId, + ]); + $authResponse = new AuthorizeFileUploadResponse([]); + $ossConfig = new \AlibabaCloud\SDK\OSS\OSS\Config([ + 'accessKeySecret' => $accessKeySecret, + 'type' => 'access_key', + 'protocol' => $this->_protocol, + 'regionId' => $this->_regionId, + ]); + $ossClient = null; + $fileObj = new FileField([]); + $ossHeader = new header([]); + $uploadRequest = new PostObjectRequest([]); + $ossRuntime = new \AlibabaCloud\Tea\OSSUtils\OSSUtils\RuntimeOptions([]); + OpenApiUtilClient::convert($runtime, $ossRuntime); + $recognizeTableReq = new RecognizeTableRequest([]); + OpenApiUtilClient::convert($request, $recognizeTableReq); + if (!Utils::isUnset($request->imageURLObject)) { + $authResponse = $authClient->authorizeFileUploadWithOptions($authRequest, $runtime); + $ossConfig->accessKeyId = $authResponse->body->accessKeyId; + $ossConfig->endpoint = OpenApiUtilClient::getEndpoint($authResponse->body->endpoint, $authResponse->body->useAccelerate, $this->_endpointType); + $ossClient = new OSS($ossConfig); + $fileObj = new FileField([ + 'filename' => $authResponse->body->objectKey, + 'content' => $request->imageURLObject, + 'contentType' => '', + ]); + $ossHeader = new header([ + 'accessKeyId' => $authResponse->body->accessKeyId, + 'policy' => $authResponse->body->encodedPolicy, + 'signature' => $authResponse->body->signature, + 'key' => $authResponse->body->objectKey, + 'file' => $fileObj, + 'successActionStatus' => '201', + ]); + $uploadRequest = new PostObjectRequest([ + 'bucketName' => $authResponse->body->bucket, + 'header' => $ossHeader, + ]); + $ossClient->postObject($uploadRequest, $ossRuntime); + $recognizeTableReq->imageURL = 'http://' . $authResponse->body->bucket . '.' . $authResponse->body->endpoint . '/' . $authResponse->body->objectKey . ''; + } + + return $this->recognizeTableWithOptions($recognizeTableReq, $runtime); + } + + /** + * @param RecognizeTaxiInvoiceRequest $request + * @param RuntimeOptions $runtime + * + * @return RecognizeTaxiInvoiceResponse + */ + public function recognizeTaxiInvoiceWithOptions($request, $runtime) + { + Utils::validateModel($request); + $body = []; + if (!Utils::isUnset($request->imageURL)) { + $body['ImageURL'] = $request->imageURL; + } + $req = new OpenApiRequest([ + 'body' => OpenApiUtilClient::parseToMap($body), + ]); + $params = new Params([ + 'action' => 'RecognizeTaxiInvoice', + 'version' => '2019-12-30', + 'protocol' => 'HTTPS', + 'pathname' => '/', + 'method' => 'POST', + 'authType' => 'AK', + 'style' => 'RPC', + 'reqBodyType' => 'formData', + 'bodyType' => 'json', + ]); + + return RecognizeTaxiInvoiceResponse::fromMap($this->callApi($params, $req, $runtime)); + } + + /** + * @param RecognizeTaxiInvoiceRequest $request + * + * @return RecognizeTaxiInvoiceResponse + */ + public function recognizeTaxiInvoice($request) + { + $runtime = new RuntimeOptions([]); + + return $this->recognizeTaxiInvoiceWithOptions($request, $runtime); + } + + /** + * @param RecognizeTaxiInvoiceAdvanceRequest $request + * @param RuntimeOptions $runtime + * + * @return RecognizeTaxiInvoiceResponse + */ + public function recognizeTaxiInvoiceAdvance($request, $runtime) + { + // Step 0: init client + $accessKeyId = $this->_credential->getAccessKeyId(); + $accessKeySecret = $this->_credential->getAccessKeySecret(); + $securityToken = $this->_credential->getSecurityToken(); + $credentialType = $this->_credential->getType(); + $openPlatformEndpoint = $this->_openPlatformEndpoint; + if (Utils::isUnset($openPlatformEndpoint)) { + $openPlatformEndpoint = 'openplatform.aliyuncs.com'; + } + if (Utils::isUnset($credentialType)) { + $credentialType = 'access_key'; + } + $authConfig = new Config([ + 'accessKeyId' => $accessKeyId, + 'accessKeySecret' => $accessKeySecret, + 'securityToken' => $securityToken, + 'type' => $credentialType, + 'endpoint' => $openPlatformEndpoint, + 'protocol' => $this->_protocol, + 'regionId' => $this->_regionId, + ]); + $authClient = new OpenPlatform($authConfig); + $authRequest = new AuthorizeFileUploadRequest([ + 'product' => 'ocr', + 'regionId' => $this->_regionId, + ]); + $authResponse = new AuthorizeFileUploadResponse([]); + $ossConfig = new \AlibabaCloud\SDK\OSS\OSS\Config([ + 'accessKeySecret' => $accessKeySecret, + 'type' => 'access_key', + 'protocol' => $this->_protocol, + 'regionId' => $this->_regionId, + ]); + $ossClient = null; + $fileObj = new FileField([]); + $ossHeader = new header([]); + $uploadRequest = new PostObjectRequest([]); + $ossRuntime = new \AlibabaCloud\Tea\OSSUtils\OSSUtils\RuntimeOptions([]); + OpenApiUtilClient::convert($runtime, $ossRuntime); + $recognizeTaxiInvoiceReq = new RecognizeTaxiInvoiceRequest([]); + OpenApiUtilClient::convert($request, $recognizeTaxiInvoiceReq); + if (!Utils::isUnset($request->imageURLObject)) { + $authResponse = $authClient->authorizeFileUploadWithOptions($authRequest, $runtime); + $ossConfig->accessKeyId = $authResponse->body->accessKeyId; + $ossConfig->endpoint = OpenApiUtilClient::getEndpoint($authResponse->body->endpoint, $authResponse->body->useAccelerate, $this->_endpointType); + $ossClient = new OSS($ossConfig); + $fileObj = new FileField([ + 'filename' => $authResponse->body->objectKey, + 'content' => $request->imageURLObject, + 'contentType' => '', + ]); + $ossHeader = new header([ + 'accessKeyId' => $authResponse->body->accessKeyId, + 'policy' => $authResponse->body->encodedPolicy, + 'signature' => $authResponse->body->signature, + 'key' => $authResponse->body->objectKey, + 'file' => $fileObj, + 'successActionStatus' => '201', + ]); + $uploadRequest = new PostObjectRequest([ + 'bucketName' => $authResponse->body->bucket, + 'header' => $ossHeader, + ]); + $ossClient->postObject($uploadRequest, $ossRuntime); + $recognizeTaxiInvoiceReq->imageURL = 'http://' . $authResponse->body->bucket . '.' . $authResponse->body->endpoint . '/' . $authResponse->body->objectKey . ''; + } + + return $this->recognizeTaxiInvoiceWithOptions($recognizeTaxiInvoiceReq, $runtime); + } + + /** + * @param RecognizeTicketInvoiceRequest $request + * @param RuntimeOptions $runtime + * + * @return RecognizeTicketInvoiceResponse + */ + public function recognizeTicketInvoiceWithOptions($request, $runtime) + { + Utils::validateModel($request); + $body = []; + if (!Utils::isUnset($request->imageURL)) { + $body['ImageURL'] = $request->imageURL; + } + $req = new OpenApiRequest([ + 'body' => OpenApiUtilClient::parseToMap($body), + ]); + $params = new Params([ + 'action' => 'RecognizeTicketInvoice', + 'version' => '2019-12-30', + 'protocol' => 'HTTPS', + 'pathname' => '/', + 'method' => 'POST', + 'authType' => 'AK', + 'style' => 'RPC', + 'reqBodyType' => 'formData', + 'bodyType' => 'json', + ]); + + return RecognizeTicketInvoiceResponse::fromMap($this->callApi($params, $req, $runtime)); + } + + /** + * @param RecognizeTicketInvoiceRequest $request + * + * @return RecognizeTicketInvoiceResponse + */ + public function recognizeTicketInvoice($request) + { + $runtime = new RuntimeOptions([]); + + return $this->recognizeTicketInvoiceWithOptions($request, $runtime); + } + + /** + * @param RecognizeTicketInvoiceAdvanceRequest $request + * @param RuntimeOptions $runtime + * + * @return RecognizeTicketInvoiceResponse + */ + public function recognizeTicketInvoiceAdvance($request, $runtime) + { + // Step 0: init client + $accessKeyId = $this->_credential->getAccessKeyId(); + $accessKeySecret = $this->_credential->getAccessKeySecret(); + $securityToken = $this->_credential->getSecurityToken(); + $credentialType = $this->_credential->getType(); + $openPlatformEndpoint = $this->_openPlatformEndpoint; + if (Utils::isUnset($openPlatformEndpoint)) { + $openPlatformEndpoint = 'openplatform.aliyuncs.com'; + } + if (Utils::isUnset($credentialType)) { + $credentialType = 'access_key'; + } + $authConfig = new Config([ + 'accessKeyId' => $accessKeyId, + 'accessKeySecret' => $accessKeySecret, + 'securityToken' => $securityToken, + 'type' => $credentialType, + 'endpoint' => $openPlatformEndpoint, + 'protocol' => $this->_protocol, + 'regionId' => $this->_regionId, + ]); + $authClient = new OpenPlatform($authConfig); + $authRequest = new AuthorizeFileUploadRequest([ + 'product' => 'ocr', + 'regionId' => $this->_regionId, + ]); + $authResponse = new AuthorizeFileUploadResponse([]); + $ossConfig = new \AlibabaCloud\SDK\OSS\OSS\Config([ + 'accessKeySecret' => $accessKeySecret, + 'type' => 'access_key', + 'protocol' => $this->_protocol, + 'regionId' => $this->_regionId, + ]); + $ossClient = null; + $fileObj = new FileField([]); + $ossHeader = new header([]); + $uploadRequest = new PostObjectRequest([]); + $ossRuntime = new \AlibabaCloud\Tea\OSSUtils\OSSUtils\RuntimeOptions([]); + OpenApiUtilClient::convert($runtime, $ossRuntime); + $recognizeTicketInvoiceReq = new RecognizeTicketInvoiceRequest([]); + OpenApiUtilClient::convert($request, $recognizeTicketInvoiceReq); + if (!Utils::isUnset($request->imageURLObject)) { + $authResponse = $authClient->authorizeFileUploadWithOptions($authRequest, $runtime); + $ossConfig->accessKeyId = $authResponse->body->accessKeyId; + $ossConfig->endpoint = OpenApiUtilClient::getEndpoint($authResponse->body->endpoint, $authResponse->body->useAccelerate, $this->_endpointType); + $ossClient = new OSS($ossConfig); + $fileObj = new FileField([ + 'filename' => $authResponse->body->objectKey, + 'content' => $request->imageURLObject, + 'contentType' => '', + ]); + $ossHeader = new header([ + 'accessKeyId' => $authResponse->body->accessKeyId, + 'policy' => $authResponse->body->encodedPolicy, + 'signature' => $authResponse->body->signature, + 'key' => $authResponse->body->objectKey, + 'file' => $fileObj, + 'successActionStatus' => '201', + ]); + $uploadRequest = new PostObjectRequest([ + 'bucketName' => $authResponse->body->bucket, + 'header' => $ossHeader, + ]); + $ossClient->postObject($uploadRequest, $ossRuntime); + $recognizeTicketInvoiceReq->imageURL = 'http://' . $authResponse->body->bucket . '.' . $authResponse->body->endpoint . '/' . $authResponse->body->objectKey . ''; + } + + return $this->recognizeTicketInvoiceWithOptions($recognizeTicketInvoiceReq, $runtime); + } + + /** + * @param RecognizeTrainTicketRequest $request + * @param RuntimeOptions $runtime + * + * @return RecognizeTrainTicketResponse + */ + public function recognizeTrainTicketWithOptions($request, $runtime) + { + Utils::validateModel($request); + $body = []; + if (!Utils::isUnset($request->imageURL)) { + $body['ImageURL'] = $request->imageURL; + } + $req = new OpenApiRequest([ + 'body' => OpenApiUtilClient::parseToMap($body), + ]); + $params = new Params([ + 'action' => 'RecognizeTrainTicket', + 'version' => '2019-12-30', + 'protocol' => 'HTTPS', + 'pathname' => '/', + 'method' => 'POST', + 'authType' => 'AK', + 'style' => 'RPC', + 'reqBodyType' => 'formData', + 'bodyType' => 'json', + ]); + + return RecognizeTrainTicketResponse::fromMap($this->callApi($params, $req, $runtime)); + } + + /** + * @param RecognizeTrainTicketRequest $request + * + * @return RecognizeTrainTicketResponse + */ + public function recognizeTrainTicket($request) + { + $runtime = new RuntimeOptions([]); + + return $this->recognizeTrainTicketWithOptions($request, $runtime); + } + + /** + * @param RecognizeTrainTicketAdvanceRequest $request + * @param RuntimeOptions $runtime + * + * @return RecognizeTrainTicketResponse + */ + public function recognizeTrainTicketAdvance($request, $runtime) + { + // Step 0: init client + $accessKeyId = $this->_credential->getAccessKeyId(); + $accessKeySecret = $this->_credential->getAccessKeySecret(); + $securityToken = $this->_credential->getSecurityToken(); + $credentialType = $this->_credential->getType(); + $openPlatformEndpoint = $this->_openPlatformEndpoint; + if (Utils::isUnset($openPlatformEndpoint)) { + $openPlatformEndpoint = 'openplatform.aliyuncs.com'; + } + if (Utils::isUnset($credentialType)) { + $credentialType = 'access_key'; + } + $authConfig = new Config([ + 'accessKeyId' => $accessKeyId, + 'accessKeySecret' => $accessKeySecret, + 'securityToken' => $securityToken, + 'type' => $credentialType, + 'endpoint' => $openPlatformEndpoint, + 'protocol' => $this->_protocol, + 'regionId' => $this->_regionId, + ]); + $authClient = new OpenPlatform($authConfig); + $authRequest = new AuthorizeFileUploadRequest([ + 'product' => 'ocr', + 'regionId' => $this->_regionId, + ]); + $authResponse = new AuthorizeFileUploadResponse([]); + $ossConfig = new \AlibabaCloud\SDK\OSS\OSS\Config([ + 'accessKeySecret' => $accessKeySecret, + 'type' => 'access_key', + 'protocol' => $this->_protocol, + 'regionId' => $this->_regionId, + ]); + $ossClient = null; + $fileObj = new FileField([]); + $ossHeader = new header([]); + $uploadRequest = new PostObjectRequest([]); + $ossRuntime = new \AlibabaCloud\Tea\OSSUtils\OSSUtils\RuntimeOptions([]); + OpenApiUtilClient::convert($runtime, $ossRuntime); + $recognizeTrainTicketReq = new RecognizeTrainTicketRequest([]); + OpenApiUtilClient::convert($request, $recognizeTrainTicketReq); + if (!Utils::isUnset($request->imageURLObject)) { + $authResponse = $authClient->authorizeFileUploadWithOptions($authRequest, $runtime); + $ossConfig->accessKeyId = $authResponse->body->accessKeyId; + $ossConfig->endpoint = OpenApiUtilClient::getEndpoint($authResponse->body->endpoint, $authResponse->body->useAccelerate, $this->_endpointType); + $ossClient = new OSS($ossConfig); + $fileObj = new FileField([ + 'filename' => $authResponse->body->objectKey, + 'content' => $request->imageURLObject, + 'contentType' => '', + ]); + $ossHeader = new header([ + 'accessKeyId' => $authResponse->body->accessKeyId, + 'policy' => $authResponse->body->encodedPolicy, + 'signature' => $authResponse->body->signature, + 'key' => $authResponse->body->objectKey, + 'file' => $fileObj, + 'successActionStatus' => '201', + ]); + $uploadRequest = new PostObjectRequest([ + 'bucketName' => $authResponse->body->bucket, + 'header' => $ossHeader, + ]); + $ossClient->postObject($uploadRequest, $ossRuntime); + $recognizeTrainTicketReq->imageURL = 'http://' . $authResponse->body->bucket . '.' . $authResponse->body->endpoint . '/' . $authResponse->body->objectKey . ''; + } + + return $this->recognizeTrainTicketWithOptions($recognizeTrainTicketReq, $runtime); + } + + /** + * @param RecognizeVATInvoiceRequest $request + * @param RuntimeOptions $runtime + * + * @return RecognizeVATInvoiceResponse + */ + public function recognizeVATInvoiceWithOptions($request, $runtime) + { + Utils::validateModel($request); + $body = []; + if (!Utils::isUnset($request->fileType)) { + $body['FileType'] = $request->fileType; + } + if (!Utils::isUnset($request->fileURL)) { + $body['FileURL'] = $request->fileURL; + } + $req = new OpenApiRequest([ + 'body' => OpenApiUtilClient::parseToMap($body), + ]); + $params = new Params([ + 'action' => 'RecognizeVATInvoice', + 'version' => '2019-12-30', + 'protocol' => 'HTTPS', + 'pathname' => '/', + 'method' => 'POST', + 'authType' => 'AK', + 'style' => 'RPC', + 'reqBodyType' => 'formData', + 'bodyType' => 'json', + ]); + + return RecognizeVATInvoiceResponse::fromMap($this->callApi($params, $req, $runtime)); + } + + /** + * @param RecognizeVATInvoiceRequest $request + * + * @return RecognizeVATInvoiceResponse + */ + public function recognizeVATInvoice($request) + { + $runtime = new RuntimeOptions([]); + + return $this->recognizeVATInvoiceWithOptions($request, $runtime); + } + + /** + * @param RecognizeVATInvoiceAdvanceRequest $request + * @param RuntimeOptions $runtime + * + * @return RecognizeVATInvoiceResponse + */ + public function recognizeVATInvoiceAdvance($request, $runtime) + { + // Step 0: init client + $accessKeyId = $this->_credential->getAccessKeyId(); + $accessKeySecret = $this->_credential->getAccessKeySecret(); + $securityToken = $this->_credential->getSecurityToken(); + $credentialType = $this->_credential->getType(); + $openPlatformEndpoint = $this->_openPlatformEndpoint; + if (Utils::isUnset($openPlatformEndpoint)) { + $openPlatformEndpoint = 'openplatform.aliyuncs.com'; + } + if (Utils::isUnset($credentialType)) { + $credentialType = 'access_key'; + } + $authConfig = new Config([ + 'accessKeyId' => $accessKeyId, + 'accessKeySecret' => $accessKeySecret, + 'securityToken' => $securityToken, + 'type' => $credentialType, + 'endpoint' => $openPlatformEndpoint, + 'protocol' => $this->_protocol, + 'regionId' => $this->_regionId, + ]); + $authClient = new OpenPlatform($authConfig); + $authRequest = new AuthorizeFileUploadRequest([ + 'product' => 'ocr', + 'regionId' => $this->_regionId, + ]); + $authResponse = new AuthorizeFileUploadResponse([]); + $ossConfig = new \AlibabaCloud\SDK\OSS\OSS\Config([ + 'accessKeySecret' => $accessKeySecret, + 'type' => 'access_key', + 'protocol' => $this->_protocol, + 'regionId' => $this->_regionId, + ]); + $ossClient = null; + $fileObj = new FileField([]); + $ossHeader = new header([]); + $uploadRequest = new PostObjectRequest([]); + $ossRuntime = new \AlibabaCloud\Tea\OSSUtils\OSSUtils\RuntimeOptions([]); + OpenApiUtilClient::convert($runtime, $ossRuntime); + $recognizeVATInvoiceReq = new RecognizeVATInvoiceRequest([]); + OpenApiUtilClient::convert($request, $recognizeVATInvoiceReq); + if (!Utils::isUnset($request->fileURLObject)) { + $authResponse = $authClient->authorizeFileUploadWithOptions($authRequest, $runtime); + $ossConfig->accessKeyId = $authResponse->body->accessKeyId; + $ossConfig->endpoint = OpenApiUtilClient::getEndpoint($authResponse->body->endpoint, $authResponse->body->useAccelerate, $this->_endpointType); + $ossClient = new OSS($ossConfig); + $fileObj = new FileField([ + 'filename' => $authResponse->body->objectKey, + 'content' => $request->fileURLObject, + 'contentType' => '', + ]); + $ossHeader = new header([ + 'accessKeyId' => $authResponse->body->accessKeyId, + 'policy' => $authResponse->body->encodedPolicy, + 'signature' => $authResponse->body->signature, + 'key' => $authResponse->body->objectKey, + 'file' => $fileObj, + 'successActionStatus' => '201', + ]); + $uploadRequest = new PostObjectRequest([ + 'bucketName' => $authResponse->body->bucket, + 'header' => $ossHeader, + ]); + $ossClient->postObject($uploadRequest, $ossRuntime); + $recognizeVATInvoiceReq->fileURL = 'http://' . $authResponse->body->bucket . '.' . $authResponse->body->endpoint . '/' . $authResponse->body->objectKey . ''; + } + + return $this->recognizeVATInvoiceWithOptions($recognizeVATInvoiceReq, $runtime); + } + + /** + * @param RecognizeVINCodeRequest $request + * @param RuntimeOptions $runtime + * + * @return RecognizeVINCodeResponse + */ + public function recognizeVINCodeWithOptions($request, $runtime) + { + Utils::validateModel($request); + $query = []; + if (!Utils::isUnset($request->imageURL)) { + $query['ImageURL'] = $request->imageURL; + } + $req = new OpenApiRequest([ + 'query' => OpenApiUtilClient::query($query), + ]); + $params = new Params([ + 'action' => 'RecognizeVINCode', + 'version' => '2019-12-30', + 'protocol' => 'HTTPS', + 'pathname' => '/', + 'method' => 'POST', + 'authType' => 'AK', + 'style' => 'RPC', + 'reqBodyType' => 'formData', + 'bodyType' => 'json', + ]); + + return RecognizeVINCodeResponse::fromMap($this->callApi($params, $req, $runtime)); + } + + /** + * @param RecognizeVINCodeRequest $request + * + * @return RecognizeVINCodeResponse + */ + public function recognizeVINCode($request) + { + $runtime = new RuntimeOptions([]); + + return $this->recognizeVINCodeWithOptions($request, $runtime); + } + + /** + * @param RecognizeVINCodeAdvanceRequest $request + * @param RuntimeOptions $runtime + * + * @return RecognizeVINCodeResponse + */ + public function recognizeVINCodeAdvance($request, $runtime) + { + // Step 0: init client + $accessKeyId = $this->_credential->getAccessKeyId(); + $accessKeySecret = $this->_credential->getAccessKeySecret(); + $securityToken = $this->_credential->getSecurityToken(); + $credentialType = $this->_credential->getType(); + $openPlatformEndpoint = $this->_openPlatformEndpoint; + if (Utils::isUnset($openPlatformEndpoint)) { + $openPlatformEndpoint = 'openplatform.aliyuncs.com'; + } + if (Utils::isUnset($credentialType)) { + $credentialType = 'access_key'; + } + $authConfig = new Config([ + 'accessKeyId' => $accessKeyId, + 'accessKeySecret' => $accessKeySecret, + 'securityToken' => $securityToken, + 'type' => $credentialType, + 'endpoint' => $openPlatformEndpoint, + 'protocol' => $this->_protocol, + 'regionId' => $this->_regionId, + ]); + $authClient = new OpenPlatform($authConfig); + $authRequest = new AuthorizeFileUploadRequest([ + 'product' => 'ocr', + 'regionId' => $this->_regionId, + ]); + $authResponse = new AuthorizeFileUploadResponse([]); + $ossConfig = new \AlibabaCloud\SDK\OSS\OSS\Config([ + 'accessKeySecret' => $accessKeySecret, + 'type' => 'access_key', + 'protocol' => $this->_protocol, + 'regionId' => $this->_regionId, + ]); + $ossClient = null; + $fileObj = new FileField([]); + $ossHeader = new header([]); + $uploadRequest = new PostObjectRequest([]); + $ossRuntime = new \AlibabaCloud\Tea\OSSUtils\OSSUtils\RuntimeOptions([]); + OpenApiUtilClient::convert($runtime, $ossRuntime); + $recognizeVINCodeReq = new RecognizeVINCodeRequest([]); + OpenApiUtilClient::convert($request, $recognizeVINCodeReq); + if (!Utils::isUnset($request->imageURLObject)) { + $authResponse = $authClient->authorizeFileUploadWithOptions($authRequest, $runtime); + $ossConfig->accessKeyId = $authResponse->body->accessKeyId; + $ossConfig->endpoint = OpenApiUtilClient::getEndpoint($authResponse->body->endpoint, $authResponse->body->useAccelerate, $this->_endpointType); + $ossClient = new OSS($ossConfig); + $fileObj = new FileField([ + 'filename' => $authResponse->body->objectKey, + 'content' => $request->imageURLObject, + 'contentType' => '', + ]); + $ossHeader = new header([ + 'accessKeyId' => $authResponse->body->accessKeyId, + 'policy' => $authResponse->body->encodedPolicy, + 'signature' => $authResponse->body->signature, + 'key' => $authResponse->body->objectKey, + 'file' => $fileObj, + 'successActionStatus' => '201', + ]); + $uploadRequest = new PostObjectRequest([ + 'bucketName' => $authResponse->body->bucket, + 'header' => $ossHeader, + ]); + $ossClient->postObject($uploadRequest, $ossRuntime); + $recognizeVINCodeReq->imageURL = 'http://' . $authResponse->body->bucket . '.' . $authResponse->body->endpoint . '/' . $authResponse->body->objectKey . ''; + } + + return $this->recognizeVINCodeWithOptions($recognizeVINCodeReq, $runtime); + } + + /** + * @param RecognizeVideoCharacterRequest $request + * @param RuntimeOptions $runtime + * + * @return RecognizeVideoCharacterResponse + */ + public function recognizeVideoCharacterWithOptions($request, $runtime) + { + Utils::validateModel($request); + $body = []; + if (!Utils::isUnset($request->videoURL)) { + $body['VideoURL'] = $request->videoURL; + } + $req = new OpenApiRequest([ + 'body' => OpenApiUtilClient::parseToMap($body), + ]); + $params = new Params([ + 'action' => 'RecognizeVideoCharacter', + 'version' => '2019-12-30', + 'protocol' => 'HTTPS', + 'pathname' => '/', + 'method' => 'POST', + 'authType' => 'AK', + 'style' => 'RPC', + 'reqBodyType' => 'formData', + 'bodyType' => 'json', + ]); + + return RecognizeVideoCharacterResponse::fromMap($this->callApi($params, $req, $runtime)); + } + + /** + * @param RecognizeVideoCharacterRequest $request + * + * @return RecognizeVideoCharacterResponse + */ + public function recognizeVideoCharacter($request) + { + $runtime = new RuntimeOptions([]); + + return $this->recognizeVideoCharacterWithOptions($request, $runtime); + } + + /** + * @param RecognizeVideoCharacterAdvanceRequest $request + * @param RuntimeOptions $runtime + * + * @return RecognizeVideoCharacterResponse + */ + public function recognizeVideoCharacterAdvance($request, $runtime) + { + // Step 0: init client + $accessKeyId = $this->_credential->getAccessKeyId(); + $accessKeySecret = $this->_credential->getAccessKeySecret(); + $securityToken = $this->_credential->getSecurityToken(); + $credentialType = $this->_credential->getType(); + $openPlatformEndpoint = $this->_openPlatformEndpoint; + if (Utils::isUnset($openPlatformEndpoint)) { + $openPlatformEndpoint = 'openplatform.aliyuncs.com'; + } + if (Utils::isUnset($credentialType)) { + $credentialType = 'access_key'; + } + $authConfig = new Config([ + 'accessKeyId' => $accessKeyId, + 'accessKeySecret' => $accessKeySecret, + 'securityToken' => $securityToken, + 'type' => $credentialType, + 'endpoint' => $openPlatformEndpoint, + 'protocol' => $this->_protocol, + 'regionId' => $this->_regionId, + ]); + $authClient = new OpenPlatform($authConfig); + $authRequest = new AuthorizeFileUploadRequest([ + 'product' => 'ocr', + 'regionId' => $this->_regionId, + ]); + $authResponse = new AuthorizeFileUploadResponse([]); + $ossConfig = new \AlibabaCloud\SDK\OSS\OSS\Config([ + 'accessKeySecret' => $accessKeySecret, + 'type' => 'access_key', + 'protocol' => $this->_protocol, + 'regionId' => $this->_regionId, + ]); + $ossClient = null; + $fileObj = new FileField([]); + $ossHeader = new header([]); + $uploadRequest = new PostObjectRequest([]); + $ossRuntime = new \AlibabaCloud\Tea\OSSUtils\OSSUtils\RuntimeOptions([]); + OpenApiUtilClient::convert($runtime, $ossRuntime); + $recognizeVideoCharacterReq = new RecognizeVideoCharacterRequest([]); + OpenApiUtilClient::convert($request, $recognizeVideoCharacterReq); + if (!Utils::isUnset($request->videoURLObject)) { + $authResponse = $authClient->authorizeFileUploadWithOptions($authRequest, $runtime); + $ossConfig->accessKeyId = $authResponse->body->accessKeyId; + $ossConfig->endpoint = OpenApiUtilClient::getEndpoint($authResponse->body->endpoint, $authResponse->body->useAccelerate, $this->_endpointType); + $ossClient = new OSS($ossConfig); + $fileObj = new FileField([ + 'filename' => $authResponse->body->objectKey, + 'content' => $request->videoURLObject, + 'contentType' => '', + ]); + $ossHeader = new header([ + 'accessKeyId' => $authResponse->body->accessKeyId, + 'policy' => $authResponse->body->encodedPolicy, + 'signature' => $authResponse->body->signature, + 'key' => $authResponse->body->objectKey, + 'file' => $fileObj, + 'successActionStatus' => '201', + ]); + $uploadRequest = new PostObjectRequest([ + 'bucketName' => $authResponse->body->bucket, + 'header' => $ossHeader, + ]); + $ossClient->postObject($uploadRequest, $ossRuntime); + $recognizeVideoCharacterReq->videoURL = 'http://' . $authResponse->body->bucket . '.' . $authResponse->body->endpoint . '/' . $authResponse->body->objectKey . ''; + } + + return $this->recognizeVideoCharacterWithOptions($recognizeVideoCharacterReq, $runtime); + } +} diff --git a/vendor/alibabacloud/openplatform-20191219/.gitignore b/vendor/alibabacloud/openplatform-20191219/.gitignore new file mode 100644 index 00000000..89c7aa58 --- /dev/null +++ b/vendor/alibabacloud/openplatform-20191219/.gitignore @@ -0,0 +1,15 @@ +composer.phar +/vendor/ + +# Commit your application's lock file https://getcomposer.org/doc/01-basic-usage.md#commit-your-composer-lock-file-to-version-control +# You may choose to ignore a library lock file http://getcomposer.org/doc/02-libraries.md#lock-file +composer.lock + +.vscode/ +.idea +.DS_Store + +cache/ +*.cache +runtime/ +.php_cs.cache diff --git a/vendor/alibabacloud/openplatform-20191219/.php_cs.dist b/vendor/alibabacloud/openplatform-20191219/.php_cs.dist new file mode 100644 index 00000000..8617ec2f --- /dev/null +++ b/vendor/alibabacloud/openplatform-20191219/.php_cs.dist @@ -0,0 +1,65 @@ +setRiskyAllowed(true) + ->setIndent(' ') + ->setRules([ + '@PSR2' => true, + '@PhpCsFixer' => true, + '@Symfony:risky' => true, + 'concat_space' => ['spacing' => 'one'], + 'array_syntax' => ['syntax' => 'short'], + 'array_indentation' => true, + 'combine_consecutive_unsets' => true, + 'method_separation' => true, + 'single_quote' => true, + 'declare_equal_normalize' => true, + 'function_typehint_space' => true, + 'hash_to_slash_comment' => true, + 'include' => true, + 'lowercase_cast' => true, + 'no_multiline_whitespace_before_semicolons' => true, + 'no_leading_import_slash' => true, + 'no_multiline_whitespace_around_double_arrow' => true, + 'no_spaces_around_offset' => true, + 'no_unneeded_control_parentheses' => true, + 'no_unused_imports' => true, + 'no_whitespace_before_comma_in_array' => true, + 'no_whitespace_in_blank_line' => true, + 'object_operator_without_whitespace' => true, + 'single_blank_line_before_namespace' => true, + 'single_class_element_per_statement' => true, + 'space_after_semicolon' => true, + 'standardize_not_equals' => true, + 'ternary_operator_spaces' => true, + 'trailing_comma_in_multiline_array' => true, + 'trim_array_spaces' => true, + 'unary_operator_spaces' => true, + 'whitespace_after_comma_in_array' => true, + 'no_extra_consecutive_blank_lines' => [ + 'curly_brace_block', + 'extra', + 'parenthesis_brace_block', + 'square_brace_block', + 'throw', + 'use', + ], + 'binary_operator_spaces' => [ + 'align_double_arrow' => true, + 'align_equals' => true, + ], + 'braces' => [ + 'allow_single_line_closure' => true, + ], + ]) + ->setFinder( + PhpCsFixer\Finder::create() + ->exclude('vendor') + ->exclude('tests') + ->in(__DIR__) + ); diff --git a/vendor/alibabacloud/openplatform-20191219/ChangeLog.md b/vendor/alibabacloud/openplatform-20191219/ChangeLog.md new file mode 100644 index 00000000..7a549452 --- /dev/null +++ b/vendor/alibabacloud/openplatform-20191219/ChangeLog.md @@ -0,0 +1,15 @@ +2023-02-07 Version: 2.0.1 +- Generated php 2019-12-19 for OpenPlatform. + +2022-09-21 Version: 2.0.0 +- Generated php 2019-12-19 for OpenPlatform. + +2021-07-27 Version: 1.0.3 +- Generated php 2019-12-19 for OpenPlatform. + +2020-12-20 Version: 1.0.2 +- Generated php 2019-12-19 for OpenPlatform. + +2020-12-02 Version: 1.0.1 +- Generated php 2019-12-19 for OpenPlatform. + diff --git a/vendor/alibabacloud/openplatform-20191219/LICENSE b/vendor/alibabacloud/openplatform-20191219/LICENSE new file mode 100644 index 00000000..0c44dcef --- /dev/null +++ b/vendor/alibabacloud/openplatform-20191219/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright (c) 2009-present, Alibaba Cloud All rights reserved. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/vendor/alibabacloud/openplatform-20191219/README-CN.md b/vendor/alibabacloud/openplatform-20191219/README-CN.md new file mode 100644 index 00000000..c4c520e2 --- /dev/null +++ b/vendor/alibabacloud/openplatform-20191219/README-CN.md @@ -0,0 +1,35 @@ +[English](README.md) | 简体中文 + +![](https://aliyunsdk-pages.alicdn.com/icons/AlibabaCloud.svg) + +# Alibaba Cloud OpenPlatform SDK for PHP + +## 安装 + +### Composer + +```bash +composer require alibabacloud/openplatform-20191219 +``` + +## 问题 + +[提交 Issue](https://github.com/aliyun/alibabacloud-php-sdk/issues/new),不符合指南的问题可能会立即关闭。 + +## 使用说明 + +[快速使用](https://github.com/aliyun/alibabacloud-php-sdk/blob/master/docs/0-Examples-CN.md#%E5%BF%AB%E9%80%9F%E4%BD%BF%E7%94%A8) + +## 发行说明 + +每个版本的详细更改记录在[发行说明](./ChangeLog.txt)中。 + +## 相关 + +* [最新源码](https://github.com/aliyun/alibabacloud-php-sdk/) + +## 许可证 + +[Apache-2.0](http://www.apache.org/licenses/LICENSE-2.0) + +Copyright (c) 2009-present, Alibaba Cloud All rights reserved. diff --git a/vendor/alibabacloud/openplatform-20191219/README.md b/vendor/alibabacloud/openplatform-20191219/README.md new file mode 100644 index 00000000..48e5e3ef --- /dev/null +++ b/vendor/alibabacloud/openplatform-20191219/README.md @@ -0,0 +1,35 @@ +English | [简体中文](README-CN.md) + +![](https://aliyunsdk-pages.alicdn.com/icons/AlibabaCloud.svg) + +# Alibaba Cloud OpenPlatform SDK for PHP + +## Installation + +### Composer + +```bash +composer require alibabacloud/openplatform-20191219 +``` + +## Issues + +[Opening an Issue](https://github.com/aliyun/alibabacloud-php-sdk/issues/new), Issues not conforming to the guidelines may be closed immediately. + +## Usage + +[Quick Examples](https://github.com/aliyun/alibabacloud-php-sdk/blob/master/docs/0-Examples-EN.md#quick-examples) + +## Changelog + +Detailed changes for each release are documented in the [release notes](./ChangeLog.txt). + +## References + +* [Latest Release](https://github.com/aliyun/alibabacloud-php-sdk/) + +## License + +[Apache-2.0](http://www.apache.org/licenses/LICENSE-2.0) + +Copyright (c) 2009-present, Alibaba Cloud All rights reserved. diff --git a/vendor/alibabacloud/openplatform-20191219/autoload.php b/vendor/alibabacloud/openplatform-20191219/autoload.php new file mode 100644 index 00000000..386715ba --- /dev/null +++ b/vendor/alibabacloud/openplatform-20191219/autoload.php @@ -0,0 +1,17 @@ +5.5", + "alibabacloud/tea-utils": "^0.2.17", + "alibabacloud/darabonba-openapi": "^0.2.8", + "alibabacloud/openapi-util": "^0.1.10|^0.2.1", + "alibabacloud/endpoint-util": "^0.1.0" + }, + "autoload": { + "psr-4": { + "AlibabaCloud\\SDK\\OpenPlatform\\V20191219\\": "src" + } + }, + "scripts": { + "fixer": "php-cs-fixer fix ./" + }, + "config": { + "sort-packages": true, + "preferred-install": "dist", + "optimize-autoloader": true + }, + "prefer-stable": true +} \ No newline at end of file diff --git a/vendor/alibabacloud/openplatform-20191219/src/Models/AuthorizeFileUploadRequest.php b/vendor/alibabacloud/openplatform-20191219/src/Models/AuthorizeFileUploadRequest.php new file mode 100644 index 00000000..3e61489a --- /dev/null +++ b/vendor/alibabacloud/openplatform-20191219/src/Models/AuthorizeFileUploadRequest.php @@ -0,0 +1,59 @@ + 'Product', + 'regionId' => 'RegionId', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->product) { + $res['Product'] = $this->product; + } + if (null !== $this->regionId) { + $res['RegionId'] = $this->regionId; + } + + return $res; + } + + /** + * @param array $map + * + * @return AuthorizeFileUploadRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Product'])) { + $model->product = $map['Product']; + } + if (isset($map['RegionId'])) { + $model->regionId = $map['RegionId']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/openplatform-20191219/src/Models/AuthorizeFileUploadResponse.php b/vendor/alibabacloud/openplatform-20191219/src/Models/AuthorizeFileUploadResponse.php new file mode 100644 index 00000000..a4602c46 --- /dev/null +++ b/vendor/alibabacloud/openplatform-20191219/src/Models/AuthorizeFileUploadResponse.php @@ -0,0 +1,74 @@ + 'headers', + 'statusCode' => 'statusCode', + 'body' => 'body', + ]; + + public function validate() + { + Model::validateRequired('headers', $this->headers, true); + Model::validateRequired('statusCode', $this->statusCode, true); + Model::validateRequired('body', $this->body, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->headers) { + $res['headers'] = $this->headers; + } + if (null !== $this->statusCode) { + $res['statusCode'] = $this->statusCode; + } + if (null !== $this->body) { + $res['body'] = null !== $this->body ? $this->body->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return AuthorizeFileUploadResponse + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['headers'])) { + $model->headers = $map['headers']; + } + if (isset($map['statusCode'])) { + $model->statusCode = $map['statusCode']; + } + if (isset($map['body'])) { + $model->body = AuthorizeFileUploadResponseBody::fromMap($map['body']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/openplatform-20191219/src/Models/AuthorizeFileUploadResponseBody.php b/vendor/alibabacloud/openplatform-20191219/src/Models/AuthorizeFileUploadResponseBody.php new file mode 100644 index 00000000..f2fe84f1 --- /dev/null +++ b/vendor/alibabacloud/openplatform-20191219/src/Models/AuthorizeFileUploadResponseBody.php @@ -0,0 +1,131 @@ + 'AccessKeyId', + 'bucket' => 'Bucket', + 'encodedPolicy' => 'EncodedPolicy', + 'endpoint' => 'Endpoint', + 'objectKey' => 'ObjectKey', + 'requestId' => 'RequestId', + 'signature' => 'Signature', + 'useAccelerate' => 'UseAccelerate', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->accessKeyId) { + $res['AccessKeyId'] = $this->accessKeyId; + } + if (null !== $this->bucket) { + $res['Bucket'] = $this->bucket; + } + if (null !== $this->encodedPolicy) { + $res['EncodedPolicy'] = $this->encodedPolicy; + } + if (null !== $this->endpoint) { + $res['Endpoint'] = $this->endpoint; + } + if (null !== $this->objectKey) { + $res['ObjectKey'] = $this->objectKey; + } + if (null !== $this->requestId) { + $res['RequestId'] = $this->requestId; + } + if (null !== $this->signature) { + $res['Signature'] = $this->signature; + } + if (null !== $this->useAccelerate) { + $res['UseAccelerate'] = $this->useAccelerate; + } + + return $res; + } + + /** + * @param array $map + * + * @return AuthorizeFileUploadResponseBody + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['AccessKeyId'])) { + $model->accessKeyId = $map['AccessKeyId']; + } + if (isset($map['Bucket'])) { + $model->bucket = $map['Bucket']; + } + if (isset($map['EncodedPolicy'])) { + $model->encodedPolicy = $map['EncodedPolicy']; + } + if (isset($map['Endpoint'])) { + $model->endpoint = $map['Endpoint']; + } + if (isset($map['ObjectKey'])) { + $model->objectKey = $map['ObjectKey']; + } + if (isset($map['RequestId'])) { + $model->requestId = $map['RequestId']; + } + if (isset($map['Signature'])) { + $model->signature = $map['Signature']; + } + if (isset($map['UseAccelerate'])) { + $model->useAccelerate = $map['UseAccelerate']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/openplatform-20191219/src/OpenPlatform.php b/vendor/alibabacloud/openplatform-20191219/src/OpenPlatform.php new file mode 100644 index 00000000..7bcc90d9 --- /dev/null +++ b/vendor/alibabacloud/openplatform-20191219/src/OpenPlatform.php @@ -0,0 +1,89 @@ +_endpointRule = ''; + $this->checkConfig($config); + $this->_endpoint = $this->getEndpoint('openplatform', $this->_regionId, $this->_endpointRule, $this->_network, $this->_suffix, $this->_endpointMap, $this->_endpoint); + } + + /** + * @param string $productId + * @param string $regionId + * @param string $endpointRule + * @param string $network + * @param string $suffix + * @param string[] $endpointMap + * @param string $endpoint + * + * @return string + */ + public function getEndpoint($productId, $regionId, $endpointRule, $network, $suffix, $endpointMap, $endpoint) + { + if (!Utils::empty_($endpoint)) { + return $endpoint; + } + if (!Utils::isUnset($endpointMap) && !Utils::empty_(@$endpointMap[$regionId])) { + return @$endpointMap[$regionId]; + } + + return Endpoint::getEndpointRules($productId, $regionId, $endpointRule, $network, $suffix); + } + + /** + * @param AuthorizeFileUploadRequest $request + * @param RuntimeOptions $runtime + * + * @return AuthorizeFileUploadResponse + */ + public function authorizeFileUploadWithOptions($request, $runtime) + { + Utils::validateModel($request); + $query = OpenApiUtilClient::query(Utils::toMap($request)); + $req = new OpenApiRequest([ + 'query' => OpenApiUtilClient::query($query), + ]); + $params = new Params([ + 'action' => 'AuthorizeFileUpload', + 'version' => '2019-12-19', + 'protocol' => 'HTTPS', + 'pathname' => '/', + 'method' => 'GET', + 'authType' => 'AK', + 'style' => 'RPC', + 'reqBodyType' => 'formData', + 'bodyType' => 'json', + ]); + + return AuthorizeFileUploadResponse::fromMap($this->callApi($params, $req, $runtime)); + } + + /** + * @param AuthorizeFileUploadRequest $request + * + * @return AuthorizeFileUploadResponse + */ + public function authorizeFileUpload($request) + { + $runtime = new RuntimeOptions([]); + + return $this->authorizeFileUploadWithOptions($request, $runtime); + } +} diff --git a/vendor/alibabacloud/tea-fileform/.gitignore b/vendor/alibabacloud/tea-fileform/.gitignore new file mode 100644 index 00000000..84837df3 --- /dev/null +++ b/vendor/alibabacloud/tea-fileform/.gitignore @@ -0,0 +1,12 @@ +composer.phar +/vendor/ + +# Commit your application's lock file https://getcomposer.org/doc/01-basic-usage.md#commit-your-composer-lock-file-to-version-control +# You may choose to ignore a library lock file http://getcomposer.org/doc/02-libraries.md#lock-file +composer.lock + +.idea +.DS_Store + +cache/ +*.cache diff --git a/vendor/alibabacloud/tea-fileform/.php_cs.dist b/vendor/alibabacloud/tea-fileform/.php_cs.dist new file mode 100644 index 00000000..8617ec2f --- /dev/null +++ b/vendor/alibabacloud/tea-fileform/.php_cs.dist @@ -0,0 +1,65 @@ +setRiskyAllowed(true) + ->setIndent(' ') + ->setRules([ + '@PSR2' => true, + '@PhpCsFixer' => true, + '@Symfony:risky' => true, + 'concat_space' => ['spacing' => 'one'], + 'array_syntax' => ['syntax' => 'short'], + 'array_indentation' => true, + 'combine_consecutive_unsets' => true, + 'method_separation' => true, + 'single_quote' => true, + 'declare_equal_normalize' => true, + 'function_typehint_space' => true, + 'hash_to_slash_comment' => true, + 'include' => true, + 'lowercase_cast' => true, + 'no_multiline_whitespace_before_semicolons' => true, + 'no_leading_import_slash' => true, + 'no_multiline_whitespace_around_double_arrow' => true, + 'no_spaces_around_offset' => true, + 'no_unneeded_control_parentheses' => true, + 'no_unused_imports' => true, + 'no_whitespace_before_comma_in_array' => true, + 'no_whitespace_in_blank_line' => true, + 'object_operator_without_whitespace' => true, + 'single_blank_line_before_namespace' => true, + 'single_class_element_per_statement' => true, + 'space_after_semicolon' => true, + 'standardize_not_equals' => true, + 'ternary_operator_spaces' => true, + 'trailing_comma_in_multiline_array' => true, + 'trim_array_spaces' => true, + 'unary_operator_spaces' => true, + 'whitespace_after_comma_in_array' => true, + 'no_extra_consecutive_blank_lines' => [ + 'curly_brace_block', + 'extra', + 'parenthesis_brace_block', + 'square_brace_block', + 'throw', + 'use', + ], + 'binary_operator_spaces' => [ + 'align_double_arrow' => true, + 'align_equals' => true, + ], + 'braces' => [ + 'allow_single_line_closure' => true, + ], + ]) + ->setFinder( + PhpCsFixer\Finder::create() + ->exclude('vendor') + ->exclude('tests') + ->in(__DIR__) + ); diff --git a/vendor/alibabacloud/tea-fileform/README-CN.md b/vendor/alibabacloud/tea-fileform/README-CN.md new file mode 100644 index 00000000..8d252382 --- /dev/null +++ b/vendor/alibabacloud/tea-fileform/README-CN.md @@ -0,0 +1,31 @@ +English | [简体中文](README-CN.md) + +![](https://aliyunsdk-pages.alicdn.com/icons/AlibabaCloud.svg) + +## Alibaba Cloud Tea File Library for PHP + +## Installation + +### Composer + +```bash +composer require alibabacloud/tea-fileform +``` + +## Issues + +[Opening an Issue](https://github.com/aliyun/tea-fileform/issues/new), Issues not conforming to the guidelines may be closed immediately. + +## Changelog + +Detailed changes for each release are documented in the [release notes](./ChangeLog.txt). + +## References + +* [Latest Release](https://github.com/aliyun/tea-fileform) + +## License + +[Apache-2.0](http://www.apache.org/licenses/LICENSE-2.0) + +Copyright (c) 2009-present, Alibaba Cloud All rights reserved. diff --git a/vendor/alibabacloud/tea-fileform/README.md b/vendor/alibabacloud/tea-fileform/README.md new file mode 100644 index 00000000..9917f3c0 --- /dev/null +++ b/vendor/alibabacloud/tea-fileform/README.md @@ -0,0 +1,31 @@ +[English](README.md) | 简体中文 + +![](https://aliyunsdk-pages.alicdn.com/icons/AlibabaCloud.svg) + +## Alibaba Cloud Tea File Library for PHP + +## 安装 + +### Composer + +```bash +composer require alibabacloud/tea-fileform +``` + +## 问题 + +[提交 Issue](https://github.com/aliyun/tea-fileform/issues/new),不符合指南的问题可能会立即关闭。 + +## 发行说明 + +每个版本的详细更改记录在[发行说明](./ChangeLog.txt)中。 + +## 相关 + +* [最新源码](https://github.com/aliyun/tea-fileform) + +## 许可证 + +[Apache-2.0](http://www.apache.org/licenses/LICENSE-2.0) + +Copyright (c) 2009-present, Alibaba Cloud All rights reserved. diff --git a/vendor/alibabacloud/tea-fileform/composer.json b/vendor/alibabacloud/tea-fileform/composer.json new file mode 100644 index 00000000..151fe7b7 --- /dev/null +++ b/vendor/alibabacloud/tea-fileform/composer.json @@ -0,0 +1,44 @@ +{ + "name": "alibabacloud/tea-fileform", + "description": "Alibaba Cloud Tea File Library for PHP", + "type": "library", + "license": "Apache-2.0", + "authors": [ + { + "name": "Alibaba Cloud SDK", + "email": "sdk-team@alibabacloud.com" + } + ], + "require": { + "php": ">5.5", + "alibabacloud/tea": "^3.0" + }, + "require-dev": { + "phpunit/phpunit": "^4.8.35|^5.4.3" + }, + "autoload": { + "psr-4": { + "AlibabaCloud\\Tea\\FileForm\\": "src" + } + }, + "autoload-dev": { + "psr-4": { + "AlibabaCloud\\Tea\\FileForm\\Tests\\": "tests" + } + }, + "scripts": { + "fixer": "php-cs-fixer fix ./", + "test": [ + "@clearCache", + "phpunit --colors=always" + ], + "clearCache": "rm -rf cache/*" + }, + "config": { + "sort-packages": true, + "preferred-install": "dist", + "optimize-autoloader": true + }, + "prefer-stable": true, + "minimum-stability": "dev" +} diff --git a/vendor/alibabacloud/tea-fileform/phpunit.xml b/vendor/alibabacloud/tea-fileform/phpunit.xml new file mode 100644 index 00000000..8306a799 --- /dev/null +++ b/vendor/alibabacloud/tea-fileform/phpunit.xml @@ -0,0 +1,32 @@ + + + + + + tests + + + ./tests/Unit + + + + + + integration + + + + + + + + + + + + ./src + + + diff --git a/vendor/alibabacloud/tea-fileform/src/FileForm.php b/vendor/alibabacloud/tea-fileform/src/FileForm.php new file mode 100644 index 00000000..ee44cbb5 --- /dev/null +++ b/vendor/alibabacloud/tea-fileform/src/FileForm.php @@ -0,0 +1,16 @@ +_required = [ + 'filename' => true, + 'contentType' => true, + 'content' => true, + ]; + parent::__construct($config); + } +} diff --git a/vendor/alibabacloud/tea-fileform/src/FileFormStream.php b/vendor/alibabacloud/tea-fileform/src/FileFormStream.php new file mode 100644 index 00000000..a2cc2462 --- /dev/null +++ b/vendor/alibabacloud/tea-fileform/src/FileFormStream.php @@ -0,0 +1,321 @@ +stream = fopen('php://memory', 'a+'); + $this->form = $map; + $this->boundary = $boundary; + $this->keys = array_keys($map); + do { + $read = $this->readForm(1024); + } while (null !== $read); + $meta = stream_get_meta_data($this->stream); + $this->seekable = $meta['seekable']; + $this->uri = $this->getMetadata('uri'); + $this->seek(0); + $this->seek(0); + } + + /** + * Closes the stream when the destructed. + */ + public function __destruct() + { + $this->close(); + } + + public function __toString() + { + try { + $this->seek(0); + + return (string) stream_get_contents($this->stream); + } catch (\Exception $e) { + return ''; + } + } + + /** + * @param int $length + * + * @return false|int|string + */ + public function readForm($length) + { + if ($this->streaming) { + if (null !== $this->currStream) { + // @var string $content + $content = $this->currStream->read($length); + if (false !== $content && '' !== $content) { + fwrite($this->stream, $content); + + return $content; + } + + return $this->next("\r\n"); + } + + return $this->next(); + } + $keysCount = \count($this->keys); + if ($this->index > $keysCount) { + return null; + } + if ($keysCount > 0) { + if ($this->index < $keysCount) { + $this->streaming = true; + + $name = $this->keys[$this->index]; + $field = $this->form[$name]; + if (!empty($field) && $field instanceof FileField) { + if (!empty($field->content)) { + $this->currStream = $field->content; + + $str = '--' . $this->boundary . "\r\n" . + 'Content-Disposition: form-data; name="' . $name . '"; filename="' . $field->filename . "\"\r\n" . + 'Content-Type: ' . $field->contentType . "\r\n\r\n"; + $this->write($str); + + return $str; + } + + return $this->next(); + } + $val = $field; + $str = '--' . $this->boundary . "\r\n" . + 'Content-Disposition: form-data; name="' . $name . "\"\r\n\r\n" . + $val . "\r\n"; + fwrite($this->stream, $str); + + return $str; + } + if ($this->index == $keysCount) { + return $this->next('--' . $this->boundary . "--\r\n"); + } + + return null; + } + + return null; + } + + public function getContents() + { + if (!isset($this->stream)) { + throw new \RuntimeException('Stream is detached'); + } + + $contents = stream_get_contents($this->stream); + + if (false === $contents) { + throw new \RuntimeException('Unable to read stream contents'); + } + + return $contents; + } + + public function close() + { + if (isset($this->stream)) { + if (\is_resource($this->stream)) { + fclose($this->stream); + } + $this->detach(); + } + } + + public function detach() + { + if (!isset($this->stream)) { + return null; + } + + $result = $this->stream; + unset($this->stream); + $this->size = $this->uri = null; + + return $result; + } + + public function getSize() + { + if (null !== $this->size) { + return $this->size; + } + + if (!isset($this->stream)) { + return null; + } + + // Clear the stat cache if the stream has a URI + if ($this->uri) { + clearstatcache(true, $this->uri); + } + + $stats = fstat($this->stream); + if (isset($stats['size'])) { + $this->size = $stats['size']; + + return $this->size; + } + + return null; + } + + public function isReadable() + { + return $this->readable; + } + + public function isWritable() + { + return $this->writable; + } + + public function isSeekable() + { + return $this->seekable; + } + + public function eof() + { + if (!isset($this->stream)) { + throw new \RuntimeException('Stream is detached'); + } + + return feof($this->stream); + } + + public function tell() + { + if (!isset($this->stream)) { + throw new \RuntimeException('Stream is detached'); + } + + $result = ftell($this->stream); + + if (false === $result) { + throw new \RuntimeException('Unable to determine stream position'); + } + + return $result; + } + + public function rewind() + { + $this->seek(0); + } + + public function seek($offset, $whence = SEEK_SET) + { + $whence = (int) $whence; + + if (!isset($this->stream)) { + throw new \RuntimeException('Stream is detached'); + } + if (!$this->seekable) { + throw new \RuntimeException('Stream is not seekable'); + } + if (-1 === fseek($this->stream, $offset, $whence)) { + throw new \RuntimeException('Unable to seek to stream position ' . $offset . ' with whence ' . var_export($whence, true)); + } + } + + public function read($length) + { + if (!isset($this->stream)) { + throw new \RuntimeException('Stream is detached'); + } + if (!$this->readable) { + throw new \RuntimeException('Cannot read from non-readable stream'); + } + if ($length < 0) { + throw new \RuntimeException('Length parameter cannot be negative'); + } + + if (0 === $length) { + return ''; + } + + $string = fread($this->stream, $length); + if (false === $string) { + throw new \RuntimeException('Unable to read from stream'); + } + + return $string; + } + + public function write($string) + { + if (!isset($this->stream)) { + throw new \RuntimeException('Stream is detached'); + } + if (!$this->writable) { + throw new \RuntimeException('Cannot write to a non-writable stream'); + } + + // We can't know the size after writing anything + $this->size = null; + $result = fwrite($this->stream, $string); + + if (false === $result) { + throw new \RuntimeException('Unable to write to stream'); + } + + return $result; + } + + public function getMetadata($key = null) + { + if (!isset($this->stream)) { + return $key ? null : []; + } + + $meta = stream_get_meta_data($this->stream); + + return isset($meta[$key]) ? $meta[$key] : null; + } + + private function next($endStr = '') + { + $this->streaming = false; + ++$this->index; + $this->write($endStr); + $this->currStream = null; + + return $endStr; + } +} diff --git a/vendor/alibabacloud/tea-fileform/tests/FileFormTest.php b/vendor/alibabacloud/tea-fileform/tests/FileFormTest.php new file mode 100644 index 00000000..67d24e8c --- /dev/null +++ b/vendor/alibabacloud/tea-fileform/tests/FileFormTest.php @@ -0,0 +1,81 @@ +assertTrue($stream instanceof FileFormStream); + $stream->write($boundary); + $this->assertTrue(\strlen($boundary) === $stream->getSize()); + } + + public function testSet() + { + $fileField = new FileField([ + 'filename' => 'fake filename', + 'contentType' => 'content type', + 'content' => null, + ]); + + $this->assertEquals('fake filename', $fileField->filename); + $this->assertEquals('content type', $fileField->contentType); + } + + public function testRead() + { + $fileField = new FileField(); + $fileField->filename = 'haveContent'; + $fileField->contentType = 'contentType'; + $fileField->content = new Stream(fopen('data://text/plain;base64,' . base64_encode('This is file test. This sentence must be long'), 'r')); + + $fileFieldNoContent = new FileField(); + $fileFieldNoContent->filename = 'noContent'; + $fileFieldNoContent->contentType = 'contentType'; + $fileFieldNoContent->content = null; + + $map = [ + 'key' => 'value', + 'testKey' => 'testValue', + 'haveFile' => $fileField, + 'noFile' => $fileFieldNoContent, + ]; + + $stream = FileForm::toFileForm($map, 'testBoundary'); + + $result = $stream->getContents(); + $target = "--testBoundary\r\nContent-Disposition: form-data; name=\"key\"\r\n\r\nvalue\r\n--testBoundary\r\nContent-Disposition: form-data; name=\"testKey\"\r\n\r\ntestValue\r\n--testBoundary\r\nContent-Disposition: form-data; name=\"haveFile\"; filename=\"haveContent\"\r\nContent-Type: contentType\r\n\r\nThis is file test. This sentence must be long\r\n--testBoundary--\r\n"; + + $this->assertEquals($target, $result); + } + + public function testReadFile() + { + $fileField = new FileField(); + $fileField->filename = 'composer.json'; + $fileField->contentType = 'application/json'; + $fileField->content = new Stream(fopen(__DIR__ . '/../composer.json', 'r')); + $map = [ + 'name' => 'json_file', + 'type' => 'application/json', + 'json_file' => $fileField, + ]; + + $boundary = FileForm::getBoundary(); + $fileStream = FileForm::toFileForm($map, $boundary); + $this->assertTrue(false !== strpos($fileStream->getContents(), 'json_file')); + } +} diff --git a/vendor/alibabacloud/tea-fileform/tests/bootstrap.php b/vendor/alibabacloud/tea-fileform/tests/bootstrap.php new file mode 100644 index 00000000..c62c4e81 --- /dev/null +++ b/vendor/alibabacloud/tea-fileform/tests/bootstrap.php @@ -0,0 +1,3 @@ +setRiskyAllowed(true) + ->setIndent(' ') + ->setRules([ + '@PSR2' => true, + '@PhpCsFixer' => true, + '@Symfony:risky' => true, + 'concat_space' => ['spacing' => 'one'], + 'array_syntax' => ['syntax' => 'short'], + 'array_indentation' => true, + 'combine_consecutive_unsets' => true, + 'method_separation' => true, + 'single_quote' => true, + 'declare_equal_normalize' => true, + 'function_typehint_space' => true, + 'hash_to_slash_comment' => true, + 'include' => true, + 'lowercase_cast' => true, + 'no_multiline_whitespace_before_semicolons' => true, + 'no_leading_import_slash' => true, + 'no_multiline_whitespace_around_double_arrow' => true, + 'no_spaces_around_offset' => true, + 'no_unneeded_control_parentheses' => true, + 'no_unused_imports' => true, + 'no_whitespace_before_comma_in_array' => true, + 'no_whitespace_in_blank_line' => true, + 'object_operator_without_whitespace' => true, + 'single_blank_line_before_namespace' => true, + 'single_class_element_per_statement' => true, + 'space_after_semicolon' => true, + 'standardize_not_equals' => true, + 'ternary_operator_spaces' => true, + 'trailing_comma_in_multiline_array' => true, + 'trim_array_spaces' => true, + 'unary_operator_spaces' => true, + 'whitespace_after_comma_in_array' => true, + 'no_extra_consecutive_blank_lines' => [ + 'curly_brace_block', + 'extra', + 'parenthesis_brace_block', + 'square_brace_block', + 'throw', + 'use', + ], + 'binary_operator_spaces' => [ + 'align_double_arrow' => true, + 'align_equals' => true, + ], + 'braces' => [ + 'allow_single_line_closure' => true, + ], + ]) + ->setFinder( + PhpCsFixer\Finder::create() + ->exclude('vendor') + ->exclude('tests') + ->in(__DIR__) + ); diff --git a/vendor/alibabacloud/tea-oss-sdk/LICENSE b/vendor/alibabacloud/tea-oss-sdk/LICENSE new file mode 100644 index 00000000..ec13fccd --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/LICENSE @@ -0,0 +1,13 @@ +Copyright (c) 2009-present, Alibaba Cloud All rights reserved. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. diff --git a/vendor/alibabacloud/tea-oss-sdk/README-CN.md b/vendor/alibabacloud/tea-oss-sdk/README-CN.md new file mode 100644 index 00000000..435fc9db --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/README-CN.md @@ -0,0 +1,31 @@ +[English](README.md) | 简体中文 + +![](https://aliyunsdk-pages.alicdn.com/icons/AlibabaCloud.svg) + +## Aliyun Tea OSS SDK Library for PHP + +## 安装 + +### Composer + +```bash +composer require alibabacloud/tea-oss-sdk +``` + +## 问题 + +[提交 Issue](https://github.com/aliyun/alibabacloud-oss-sdk/issues/new),不符合指南的问题可能会立即关闭。 + +## 发行说明 + +每个版本的详细更改记录在[发行说明](./ChangeLog.txt)中。 + +## 相关 + +* [最新源码](https://github.com/aliyun/alibabacloud-oss-sdk) + +## 许可证 + +[Apache-2.0](http://www.apache.org/licenses/LICENSE-2.0) + +Copyright (c) 2009-present, Alibaba Cloud All rights reserved. diff --git a/vendor/alibabacloud/tea-oss-sdk/README.md b/vendor/alibabacloud/tea-oss-sdk/README.md new file mode 100644 index 00000000..69d114be --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/README.md @@ -0,0 +1,31 @@ +English | [简体中文](README-CN.md) + +![](https://aliyunsdk-pages.alicdn.com/icons/AlibabaCloud.svg) + +## Aliyun Tea OSS SDK Library for PHP + +## Installation + +### Composer + +```bash +composer require alibabacloud/tea-oss-sdk +``` + +## Issues + +[Opening an Issue](https://github.com/aliyun/alibabacloud-oss-sdk/issues/new), Issues not conforming to the guidelines may be closed immediately. + +## Changelog + +Detailed changes for each release are documented in the [release notes](./ChangeLog.txt). + +## References + +* [Latest Release](https://github.com/aliyun/alibabacloud-oss-sdk) + +## License + +[Apache-2.0](http://www.apache.org/licenses/LICENSE-2.0) + +Copyright (c) 2009-present, Alibaba Cloud All rights reserved. diff --git a/vendor/alibabacloud/tea-oss-sdk/autoload.php b/vendor/alibabacloud/tea-oss-sdk/autoload.php new file mode 100644 index 00000000..e9f21de7 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/autoload.php @@ -0,0 +1,17 @@ +5.5", + "alibabacloud/tea-utils": "^0.2.0", + "alibabacloud/tea-oss-utils": "^0.3.0", + "alibabacloud/tea-xml": "^0.2", + "alibabacloud/tea-fileform": "^0.3.0", + "alibabacloud/credentials": "^1.1" + }, + "autoload": { + "psr-4": { + "AlibabaCloud\\SDK\\OSS\\": "src" + } + }, + "scripts": { + "fixer": "php-cs-fixer fix ./" + }, + "config": { + "sort-packages": true, + "preferred-install": "dist", + "optimize-autoloader": true + }, + "prefer-stable": true +} \ No newline at end of file diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS.php new file mode 100644 index 00000000..0aee78c0 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS.php @@ -0,0 +1,7255 @@ + 'ParameterMissing', + 'message' => "'config' can not be unset", + ]); + } + if (Utils::empty_($config->type)) { + $config->type = 'access_key'; + } + $credentialConfig = new Config([ + 'accessKeyId' => $config->accessKeyId, + 'type' => $config->type, + 'accessKeySecret' => $config->accessKeySecret, + 'securityToken' => $config->securityToken, + ]); + $this->_credential = new Credential($credentialConfig); + if (Utils::isUnset($config->isEnableMD5)) { + $config->isEnableMD5 = false; + } + if (Utils::isUnset($config->isEnableCrc)) { + $config->isEnableCrc = false; + } + $this->_endpoint = $config->endpoint; + $this->_protocol = $config->protocol; + $this->_regionId = $config->regionId; + $this->_userAgent = $config->userAgent; + $this->_readTimeout = $config->readTimeout; + $this->_connectTimeout = $config->connectTimeout; + $this->_localAddr = $config->localAddr; + $this->_httpProxy = $config->httpProxy; + $this->_httpsProxy = $config->httpsProxy; + $this->_noProxy = $config->noProxy; + $this->_socks5Proxy = $config->socks5Proxy; + $this->_socks5NetWork = $config->socks5NetWork; + $this->_maxIdleConns = $config->maxIdleConns; + $this->_signatureVersion = $config->signatureVersion; + $this->_addtionalHeaders = $config->addtionalHeaders; + $this->_hostModel = $config->hostModel; + $this->_isEnableMD5 = $config->isEnableMD5; + $this->_isEnableCrc = $config->isEnableCrc; + } + + /** + * @param PutBucketLifecycleRequest $request + * @param RuntimeOptions $runtime + * + * @throws TeaError + * @throws Exception + * @throws TeaUnableRetryError + * + * @return PutBucketLifecycleResponse + */ + public function putBucketLifecycle($request, $runtime) + { + $request->validate(); + $runtime->validate(); + $_runtime = [ + 'timeouted' => 'retry', + 'readTimeout' => Utils::defaultNumber($runtime->readTimeout, $this->_readTimeout), + 'connectTimeout' => Utils::defaultNumber($runtime->connectTimeout, $this->_connectTimeout), + 'localAddr' => Utils::defaultString($runtime->localAddr, $this->_localAddr), + 'httpProxy' => Utils::defaultString($runtime->httpProxy, $this->_httpProxy), + 'httpsProxy' => Utils::defaultString($runtime->httpsProxy, $this->_httpsProxy), + 'noProxy' => Utils::defaultString($runtime->noProxy, $this->_noProxy), + 'socks5Proxy' => Utils::defaultString($runtime->socks5Proxy, $this->_socks5Proxy), + 'socks5NetWork' => Utils::defaultString($runtime->socks5NetWork, $this->_socks5NetWork), + 'maxIdleConns' => Utils::defaultNumber($runtime->maxIdleConns, $this->_maxIdleConns), + 'retry' => [ + 'retryable' => $runtime->autoretry, + 'maxAttempts' => Utils::defaultNumber($runtime->maxAttempts, 3), + ], + 'backoff' => [ + 'policy' => Utils::defaultString($runtime->backoffPolicy, 'no'), + 'period' => Utils::defaultNumber($runtime->backoffPeriod, 1), + ], + 'ignoreSSL' => $runtime->ignoreSSL, + ]; + $_lastRequest = null; + $_lastException = null; + $_now = time(); + $_retryTimes = 0; + while (Tea::allowRetry(@$_runtime['retry'], $_retryTimes, $_now)) { + if ($_retryTimes > 0) { + $_backoffTime = Tea::getBackoffTime(@$_runtime['backoff'], $_retryTimes); + if ($_backoffTime > 0) { + Tea::sleep($_backoffTime); + } + } + $_retryTimes = $_retryTimes + 1; + + try { + $_request = new Request(); + $accessKeyId = $this->_credential->getAccessKeyId(); + $accessKeySecret = $this->_credential->getAccessKeySecret(); + $token = $this->_credential->getSecurityToken(); + $reqBody = XML::toXML(Tea::merge($request->body)); + $_request->protocol = $this->_protocol; + $_request->method = 'PUT'; + $_request->pathname = '/?lifecycle'; + $_request->headers = [ + 'host' => OSSUtils::getHost($request->bucketName, $this->_regionId, $this->_endpoint, $this->_hostModel), + 'date' => Utils::getDateUTCString(), + 'user-agent' => $this->getUserAgent(), + ]; + if (!Utils::empty_($token)) { + $_request->headers['x-oss-security-token'] = $token; + } + $_request->body = $reqBody; + $_request->headers['authorization'] = OSSUtils::getSignature($_request, $request->bucketName, $accessKeyId, $accessKeySecret, $this->_signatureVersion, $this->_addtionalHeaders); + $_lastRequest = $_request; + $_response = Tea::send($_request, $_runtime); + $respMap = null; + $bodyStr = null; + if (Utils::is4xx($_response->statusCode) || Utils::is5xx($_response->statusCode)) { + $bodyStr = Utils::readAsString($_response->body); + $respMap = OSSUtils::getErrMessage($bodyStr); + + throw new TeaError([ + 'code' => @$respMap['Code'], + 'message' => @$respMap['Message'], + 'data' => [ + 'httpCode' => $_response->statusCode, + 'requestId' => @$respMap['RequestId'], + 'hostId' => @$respMap['HostId'], + ], + ]); + } + + return PutBucketLifecycleResponse::fromMap(Tea::merge($_response->headers)); + } catch (Exception $e) { + if (!($e instanceof TeaError)) { + $e = new TeaError([], $e->getMessage(), $e->getCode(), $e); + } + if (Tea::isRetryable($e)) { + $_lastException = $e; + + continue; + } + + throw $e; + } + } + + throw new TeaUnableRetryError($_lastRequest, $_lastException); + } + + /** + * @param DeleteMultipleObjectsRequest $request + * @param RuntimeOptions $runtime + * + * @throws TeaError + * @throws Exception + * @throws TeaUnableRetryError + * + * @return DeleteMultipleObjectsResponse + */ + public function deleteMultipleObjects($request, $runtime) + { + $request->validate(); + $runtime->validate(); + $_runtime = [ + 'timeouted' => 'retry', + 'readTimeout' => Utils::defaultNumber($runtime->readTimeout, $this->_readTimeout), + 'connectTimeout' => Utils::defaultNumber($runtime->connectTimeout, $this->_connectTimeout), + 'localAddr' => Utils::defaultString($runtime->localAddr, $this->_localAddr), + 'httpProxy' => Utils::defaultString($runtime->httpProxy, $this->_httpProxy), + 'httpsProxy' => Utils::defaultString($runtime->httpsProxy, $this->_httpsProxy), + 'noProxy' => Utils::defaultString($runtime->noProxy, $this->_noProxy), + 'socks5Proxy' => Utils::defaultString($runtime->socks5Proxy, $this->_socks5Proxy), + 'socks5NetWork' => Utils::defaultString($runtime->socks5NetWork, $this->_socks5NetWork), + 'maxIdleConns' => Utils::defaultNumber($runtime->maxIdleConns, $this->_maxIdleConns), + 'retry' => [ + 'retryable' => $runtime->autoretry, + 'maxAttempts' => Utils::defaultNumber($runtime->maxAttempts, 3), + ], + 'backoff' => [ + 'policy' => Utils::defaultString($runtime->backoffPolicy, 'no'), + 'period' => Utils::defaultNumber($runtime->backoffPeriod, 1), + ], + 'ignoreSSL' => $runtime->ignoreSSL, + ]; + $_lastRequest = null; + $_lastException = null; + $_now = time(); + $_retryTimes = 0; + while (Tea::allowRetry(@$_runtime['retry'], $_retryTimes, $_now)) { + if ($_retryTimes > 0) { + $_backoffTime = Tea::getBackoffTime(@$_runtime['backoff'], $_retryTimes); + if ($_backoffTime > 0) { + Tea::sleep($_backoffTime); + } + } + $_retryTimes = $_retryTimes + 1; + + try { + $_request = new Request(); + $accessKeyId = $this->_credential->getAccessKeyId(); + $accessKeySecret = $this->_credential->getAccessKeySecret(); + $token = $this->_credential->getSecurityToken(); + $reqBody = XML::toXML(Tea::merge($request->body)); + $_request->protocol = $this->_protocol; + $_request->method = 'POST'; + $_request->pathname = '/?delete'; + $_request->headers = Tea::merge([ + 'host' => OSSUtils::getHost($request->bucketName, $this->_regionId, $this->_endpoint, $this->_hostModel), + 'date' => Utils::getDateUTCString(), + 'user-agent' => $this->getUserAgent(), + ], Utils::stringifyMapValue(Tea::merge($request->header))); + if (!Utils::empty_($token)) { + $_request->headers['x-oss-security-token'] = $token; + } + $_request->body = $reqBody; + if (!Utils::isUnset($request->header) && !Utils::empty_($request->header->contentMD5)) { + $_request->headers['content-md5'] = $request->header->contentMD5; + } else { + $_request->headers['content-md5'] = OSSUtils::getContentMD5($reqBody, $this->_isEnableMD5); + } + $_request->headers['authorization'] = OSSUtils::getSignature($_request, $request->bucketName, $accessKeyId, $accessKeySecret, $this->_signatureVersion, $this->_addtionalHeaders); + $_lastRequest = $_request; + $_response = Tea::send($_request, $_runtime); + $respMap = null; + $bodyStr = null; + if (Utils::is4xx($_response->statusCode) || Utils::is5xx($_response->statusCode)) { + $bodyStr = Utils::readAsString($_response->body); + $respMap = OSSUtils::getErrMessage($bodyStr); + + throw new TeaError([ + 'code' => @$respMap['Code'], + 'message' => @$respMap['Message'], + 'data' => [ + 'httpCode' => $_response->statusCode, + 'requestId' => @$respMap['RequestId'], + 'hostId' => @$respMap['HostId'], + ], + ]); + } + $bodyStr = Utils::readAsString($_response->body); + $respMap = XML::parseXml($bodyStr, DeleteMultipleObjectsResponse::class); + + return DeleteMultipleObjectsResponse::fromMap(Tea::merge([ + 'DeleteResult' => @$respMap['DeleteResult'], + ], $_response->headers)); + } catch (Exception $e) { + if (!($e instanceof TeaError)) { + $e = new TeaError([], $e->getMessage(), $e->getCode(), $e); + } + if (Tea::isRetryable($e)) { + $_lastException = $e; + + continue; + } + + throw $e; + } + } + + throw new TeaUnableRetryError($_lastRequest, $_lastException); + } + + /** + * @param PutBucketRefererRequest $request + * @param RuntimeOptions $runtime + * + * @throws TeaError + * @throws Exception + * @throws TeaUnableRetryError + * + * @return PutBucketRefererResponse + */ + public function putBucketReferer($request, $runtime) + { + $request->validate(); + $runtime->validate(); + $_runtime = [ + 'timeouted' => 'retry', + 'readTimeout' => Utils::defaultNumber($runtime->readTimeout, $this->_readTimeout), + 'connectTimeout' => Utils::defaultNumber($runtime->connectTimeout, $this->_connectTimeout), + 'localAddr' => Utils::defaultString($runtime->localAddr, $this->_localAddr), + 'httpProxy' => Utils::defaultString($runtime->httpProxy, $this->_httpProxy), + 'httpsProxy' => Utils::defaultString($runtime->httpsProxy, $this->_httpsProxy), + 'noProxy' => Utils::defaultString($runtime->noProxy, $this->_noProxy), + 'socks5Proxy' => Utils::defaultString($runtime->socks5Proxy, $this->_socks5Proxy), + 'socks5NetWork' => Utils::defaultString($runtime->socks5NetWork, $this->_socks5NetWork), + 'maxIdleConns' => Utils::defaultNumber($runtime->maxIdleConns, $this->_maxIdleConns), + 'retry' => [ + 'retryable' => $runtime->autoretry, + 'maxAttempts' => Utils::defaultNumber($runtime->maxAttempts, 3), + ], + 'backoff' => [ + 'policy' => Utils::defaultString($runtime->backoffPolicy, 'no'), + 'period' => Utils::defaultNumber($runtime->backoffPeriod, 1), + ], + 'ignoreSSL' => $runtime->ignoreSSL, + ]; + $_lastRequest = null; + $_lastException = null; + $_now = time(); + $_retryTimes = 0; + while (Tea::allowRetry(@$_runtime['retry'], $_retryTimes, $_now)) { + if ($_retryTimes > 0) { + $_backoffTime = Tea::getBackoffTime(@$_runtime['backoff'], $_retryTimes); + if ($_backoffTime > 0) { + Tea::sleep($_backoffTime); + } + } + $_retryTimes = $_retryTimes + 1; + + try { + $_request = new Request(); + $accessKeyId = $this->_credential->getAccessKeyId(); + $accessKeySecret = $this->_credential->getAccessKeySecret(); + $token = $this->_credential->getSecurityToken(); + $reqBody = XML::toXML(Tea::merge($request->body)); + $_request->protocol = $this->_protocol; + $_request->method = 'PUT'; + $_request->pathname = '/?referer'; + $_request->headers = [ + 'host' => OSSUtils::getHost($request->bucketName, $this->_regionId, $this->_endpoint, $this->_hostModel), + 'date' => Utils::getDateUTCString(), + 'user-agent' => $this->getUserAgent(), + ]; + if (!Utils::empty_($token)) { + $_request->headers['x-oss-security-token'] = $token; + } + $_request->body = $reqBody; + $_request->headers['authorization'] = OSSUtils::getSignature($_request, $request->bucketName, $accessKeyId, $accessKeySecret, $this->_signatureVersion, $this->_addtionalHeaders); + $_lastRequest = $_request; + $_response = Tea::send($_request, $_runtime); + $respMap = null; + $bodyStr = null; + if (Utils::is4xx($_response->statusCode) || Utils::is5xx($_response->statusCode)) { + $bodyStr = Utils::readAsString($_response->body); + $respMap = OSSUtils::getErrMessage($bodyStr); + + throw new TeaError([ + 'code' => @$respMap['Code'], + 'message' => @$respMap['Message'], + 'data' => [ + 'httpCode' => $_response->statusCode, + 'requestId' => @$respMap['RequestId'], + 'hostId' => @$respMap['HostId'], + ], + ]); + } + + return PutBucketRefererResponse::fromMap(Tea::merge($_response->headers)); + } catch (Exception $e) { + if (!($e instanceof TeaError)) { + $e = new TeaError([], $e->getMessage(), $e->getCode(), $e); + } + if (Tea::isRetryable($e)) { + $_lastException = $e; + + continue; + } + + throw $e; + } + } + + throw new TeaUnableRetryError($_lastRequest, $_lastException); + } + + /** + * @param PutBucketWebsiteRequest $request + * @param RuntimeOptions $runtime + * + * @throws TeaError + * @throws Exception + * @throws TeaUnableRetryError + * + * @return PutBucketWebsiteResponse + */ + public function putBucketWebsite($request, $runtime) + { + $request->validate(); + $runtime->validate(); + $_runtime = [ + 'timeouted' => 'retry', + 'readTimeout' => Utils::defaultNumber($runtime->readTimeout, $this->_readTimeout), + 'connectTimeout' => Utils::defaultNumber($runtime->connectTimeout, $this->_connectTimeout), + 'localAddr' => Utils::defaultString($runtime->localAddr, $this->_localAddr), + 'httpProxy' => Utils::defaultString($runtime->httpProxy, $this->_httpProxy), + 'httpsProxy' => Utils::defaultString($runtime->httpsProxy, $this->_httpsProxy), + 'noProxy' => Utils::defaultString($runtime->noProxy, $this->_noProxy), + 'socks5Proxy' => Utils::defaultString($runtime->socks5Proxy, $this->_socks5Proxy), + 'socks5NetWork' => Utils::defaultString($runtime->socks5NetWork, $this->_socks5NetWork), + 'maxIdleConns' => Utils::defaultNumber($runtime->maxIdleConns, $this->_maxIdleConns), + 'retry' => [ + 'retryable' => $runtime->autoretry, + 'maxAttempts' => Utils::defaultNumber($runtime->maxAttempts, 3), + ], + 'backoff' => [ + 'policy' => Utils::defaultString($runtime->backoffPolicy, 'no'), + 'period' => Utils::defaultNumber($runtime->backoffPeriod, 1), + ], + 'ignoreSSL' => $runtime->ignoreSSL, + ]; + $_lastRequest = null; + $_lastException = null; + $_now = time(); + $_retryTimes = 0; + while (Tea::allowRetry(@$_runtime['retry'], $_retryTimes, $_now)) { + if ($_retryTimes > 0) { + $_backoffTime = Tea::getBackoffTime(@$_runtime['backoff'], $_retryTimes); + if ($_backoffTime > 0) { + Tea::sleep($_backoffTime); + } + } + $_retryTimes = $_retryTimes + 1; + + try { + $_request = new Request(); + $accessKeyId = $this->_credential->getAccessKeyId(); + $accessKeySecret = $this->_credential->getAccessKeySecret(); + $token = $this->_credential->getSecurityToken(); + $reqBody = XML::toXML(Tea::merge($request->body)); + $_request->protocol = $this->_protocol; + $_request->method = 'PUT'; + $_request->pathname = '/?website'; + $_request->headers = [ + 'host' => OSSUtils::getHost($request->bucketName, $this->_regionId, $this->_endpoint, $this->_hostModel), + 'date' => Utils::getDateUTCString(), + 'user-agent' => $this->getUserAgent(), + ]; + if (!Utils::empty_($token)) { + $_request->headers['x-oss-security-token'] = $token; + } + $_request->body = $reqBody; + $_request->headers['authorization'] = OSSUtils::getSignature($_request, $request->bucketName, $accessKeyId, $accessKeySecret, $this->_signatureVersion, $this->_addtionalHeaders); + $_lastRequest = $_request; + $_response = Tea::send($_request, $_runtime); + $respMap = null; + $bodyStr = null; + if (Utils::is4xx($_response->statusCode) || Utils::is5xx($_response->statusCode)) { + $bodyStr = Utils::readAsString($_response->body); + $respMap = OSSUtils::getErrMessage($bodyStr); + + throw new TeaError([ + 'code' => @$respMap['Code'], + 'message' => @$respMap['Message'], + 'data' => [ + 'httpCode' => $_response->statusCode, + 'requestId' => @$respMap['RequestId'], + 'hostId' => @$respMap['HostId'], + ], + ]); + } + + return PutBucketWebsiteResponse::fromMap(Tea::merge($_response->headers)); + } catch (Exception $e) { + if (!($e instanceof TeaError)) { + $e = new TeaError([], $e->getMessage(), $e->getCode(), $e); + } + if (Tea::isRetryable($e)) { + $_lastException = $e; + + continue; + } + + throw $e; + } + } + + throw new TeaUnableRetryError($_lastRequest, $_lastException); + } + + /** + * @param CompleteMultipartUploadRequest $request + * @param RuntimeOptions $runtime + * + * @throws TeaError + * @throws Exception + * @throws TeaUnableRetryError + * + * @return CompleteMultipartUploadResponse + */ + public function completeMultipartUpload($request, $runtime) + { + $request->validate(); + $runtime->validate(); + $_runtime = [ + 'timeouted' => 'retry', + 'readTimeout' => Utils::defaultNumber($runtime->readTimeout, $this->_readTimeout), + 'connectTimeout' => Utils::defaultNumber($runtime->connectTimeout, $this->_connectTimeout), + 'localAddr' => Utils::defaultString($runtime->localAddr, $this->_localAddr), + 'httpProxy' => Utils::defaultString($runtime->httpProxy, $this->_httpProxy), + 'httpsProxy' => Utils::defaultString($runtime->httpsProxy, $this->_httpsProxy), + 'noProxy' => Utils::defaultString($runtime->noProxy, $this->_noProxy), + 'socks5Proxy' => Utils::defaultString($runtime->socks5Proxy, $this->_socks5Proxy), + 'socks5NetWork' => Utils::defaultString($runtime->socks5NetWork, $this->_socks5NetWork), + 'maxIdleConns' => Utils::defaultNumber($runtime->maxIdleConns, $this->_maxIdleConns), + 'retry' => [ + 'retryable' => $runtime->autoretry, + 'maxAttempts' => Utils::defaultNumber($runtime->maxAttempts, 3), + ], + 'backoff' => [ + 'policy' => Utils::defaultString($runtime->backoffPolicy, 'no'), + 'period' => Utils::defaultNumber($runtime->backoffPeriod, 1), + ], + 'ignoreSSL' => $runtime->ignoreSSL, + ]; + $_lastRequest = null; + $_lastException = null; + $_now = time(); + $_retryTimes = 0; + while (Tea::allowRetry(@$_runtime['retry'], $_retryTimes, $_now)) { + if ($_retryTimes > 0) { + $_backoffTime = Tea::getBackoffTime(@$_runtime['backoff'], $_retryTimes); + if ($_backoffTime > 0) { + Tea::sleep($_backoffTime); + } + } + $_retryTimes = $_retryTimes + 1; + + try { + $_request = new Request(); + $accessKeyId = $this->_credential->getAccessKeyId(); + $accessKeySecret = $this->_credential->getAccessKeySecret(); + $token = $this->_credential->getSecurityToken(); + $reqBody = XML::toXML(Tea::merge($request->body)); + $_request->protocol = $this->_protocol; + $_request->method = 'POST'; + $_request->pathname = '/' . $request->objectName . ''; + $_request->headers = [ + 'host' => OSSUtils::getHost($request->bucketName, $this->_regionId, $this->_endpoint, $this->_hostModel), + 'date' => Utils::getDateUTCString(), + 'user-agent' => $this->getUserAgent(), + ]; + if (!Utils::empty_($token)) { + $_request->headers['x-oss-security-token'] = $token; + } + $_request->query = Utils::stringifyMapValue(Tea::merge($request->filter)); + $_request->body = $reqBody; + $_request->headers['authorization'] = OSSUtils::getSignature($_request, $request->bucketName, $accessKeyId, $accessKeySecret, $this->_signatureVersion, $this->_addtionalHeaders); + $_lastRequest = $_request; + $_response = Tea::send($_request, $_runtime); + $respMap = null; + $bodyStr = null; + if (Utils::is4xx($_response->statusCode) || Utils::is5xx($_response->statusCode)) { + $bodyStr = Utils::readAsString($_response->body); + $respMap = OSSUtils::getErrMessage($bodyStr); + + throw new TeaError([ + 'code' => @$respMap['Code'], + 'message' => @$respMap['Message'], + 'data' => [ + 'httpCode' => $_response->statusCode, + 'requestId' => @$respMap['RequestId'], + 'hostId' => @$respMap['HostId'], + ], + ]); + } + $bodyStr = Utils::readAsString($_response->body); + $respMap = XML::parseXml($bodyStr, CompleteMultipartUploadResponse::class); + + return CompleteMultipartUploadResponse::fromMap(Tea::merge([ + 'CompleteMultipartUploadResult' => @$respMap['CompleteMultipartUploadResult'], + ], $_response->headers)); + } catch (Exception $e) { + if (!($e instanceof TeaError)) { + $e = new TeaError([], $e->getMessage(), $e->getCode(), $e); + } + if (Tea::isRetryable($e)) { + $_lastException = $e; + + continue; + } + + throw $e; + } + } + + throw new TeaUnableRetryError($_lastRequest, $_lastException); + } + + /** + * @param PutBucketLoggingRequest $request + * @param RuntimeOptions $runtime + * + * @throws TeaError + * @throws Exception + * @throws TeaUnableRetryError + * + * @return PutBucketLoggingResponse + */ + public function putBucketLogging($request, $runtime) + { + $request->validate(); + $runtime->validate(); + $_runtime = [ + 'timeouted' => 'retry', + 'readTimeout' => Utils::defaultNumber($runtime->readTimeout, $this->_readTimeout), + 'connectTimeout' => Utils::defaultNumber($runtime->connectTimeout, $this->_connectTimeout), + 'localAddr' => Utils::defaultString($runtime->localAddr, $this->_localAddr), + 'httpProxy' => Utils::defaultString($runtime->httpProxy, $this->_httpProxy), + 'httpsProxy' => Utils::defaultString($runtime->httpsProxy, $this->_httpsProxy), + 'noProxy' => Utils::defaultString($runtime->noProxy, $this->_noProxy), + 'socks5Proxy' => Utils::defaultString($runtime->socks5Proxy, $this->_socks5Proxy), + 'socks5NetWork' => Utils::defaultString($runtime->socks5NetWork, $this->_socks5NetWork), + 'maxIdleConns' => Utils::defaultNumber($runtime->maxIdleConns, $this->_maxIdleConns), + 'retry' => [ + 'retryable' => $runtime->autoretry, + 'maxAttempts' => Utils::defaultNumber($runtime->maxAttempts, 3), + ], + 'backoff' => [ + 'policy' => Utils::defaultString($runtime->backoffPolicy, 'no'), + 'period' => Utils::defaultNumber($runtime->backoffPeriod, 1), + ], + 'ignoreSSL' => $runtime->ignoreSSL, + ]; + $_lastRequest = null; + $_lastException = null; + $_now = time(); + $_retryTimes = 0; + while (Tea::allowRetry(@$_runtime['retry'], $_retryTimes, $_now)) { + if ($_retryTimes > 0) { + $_backoffTime = Tea::getBackoffTime(@$_runtime['backoff'], $_retryTimes); + if ($_backoffTime > 0) { + Tea::sleep($_backoffTime); + } + } + $_retryTimes = $_retryTimes + 1; + + try { + $_request = new Request(); + $accessKeyId = $this->_credential->getAccessKeyId(); + $accessKeySecret = $this->_credential->getAccessKeySecret(); + $token = $this->_credential->getSecurityToken(); + $reqBody = XML::toXML(Tea::merge($request->body)); + $_request->protocol = $this->_protocol; + $_request->method = 'PUT'; + $_request->pathname = '/?logging'; + $_request->headers = [ + 'host' => OSSUtils::getHost($request->bucketName, $this->_regionId, $this->_endpoint, $this->_hostModel), + 'date' => Utils::getDateUTCString(), + 'user-agent' => $this->getUserAgent(), + ]; + if (!Utils::empty_($token)) { + $_request->headers['x-oss-security-token'] = $token; + } + $_request->body = $reqBody; + $_request->headers['authorization'] = OSSUtils::getSignature($_request, $request->bucketName, $accessKeyId, $accessKeySecret, $this->_signatureVersion, $this->_addtionalHeaders); + $_lastRequest = $_request; + $_response = Tea::send($_request, $_runtime); + $respMap = null; + $bodyStr = null; + if (Utils::is4xx($_response->statusCode) || Utils::is5xx($_response->statusCode)) { + $bodyStr = Utils::readAsString($_response->body); + $respMap = OSSUtils::getErrMessage($bodyStr); + + throw new TeaError([ + 'code' => @$respMap['Code'], + 'message' => @$respMap['Message'], + 'data' => [ + 'httpCode' => $_response->statusCode, + 'requestId' => @$respMap['RequestId'], + 'hostId' => @$respMap['HostId'], + ], + ]); + } + + return PutBucketLoggingResponse::fromMap(Tea::merge($_response->headers)); + } catch (Exception $e) { + if (!($e instanceof TeaError)) { + $e = new TeaError([], $e->getMessage(), $e->getCode(), $e); + } + if (Tea::isRetryable($e)) { + $_lastException = $e; + + continue; + } + + throw $e; + } + } + + throw new TeaUnableRetryError($_lastRequest, $_lastException); + } + + /** + * @param PutBucketRequestPaymentRequest $request + * @param RuntimeOptions $runtime + * + * @throws TeaError + * @throws Exception + * @throws TeaUnableRetryError + * + * @return PutBucketRequestPaymentResponse + */ + public function putBucketRequestPayment($request, $runtime) + { + $request->validate(); + $runtime->validate(); + $_runtime = [ + 'timeouted' => 'retry', + 'readTimeout' => Utils::defaultNumber($runtime->readTimeout, $this->_readTimeout), + 'connectTimeout' => Utils::defaultNumber($runtime->connectTimeout, $this->_connectTimeout), + 'localAddr' => Utils::defaultString($runtime->localAddr, $this->_localAddr), + 'httpProxy' => Utils::defaultString($runtime->httpProxy, $this->_httpProxy), + 'httpsProxy' => Utils::defaultString($runtime->httpsProxy, $this->_httpsProxy), + 'noProxy' => Utils::defaultString($runtime->noProxy, $this->_noProxy), + 'socks5Proxy' => Utils::defaultString($runtime->socks5Proxy, $this->_socks5Proxy), + 'socks5NetWork' => Utils::defaultString($runtime->socks5NetWork, $this->_socks5NetWork), + 'maxIdleConns' => Utils::defaultNumber($runtime->maxIdleConns, $this->_maxIdleConns), + 'retry' => [ + 'retryable' => $runtime->autoretry, + 'maxAttempts' => Utils::defaultNumber($runtime->maxAttempts, 3), + ], + 'backoff' => [ + 'policy' => Utils::defaultString($runtime->backoffPolicy, 'no'), + 'period' => Utils::defaultNumber($runtime->backoffPeriod, 1), + ], + 'ignoreSSL' => $runtime->ignoreSSL, + ]; + $_lastRequest = null; + $_lastException = null; + $_now = time(); + $_retryTimes = 0; + while (Tea::allowRetry(@$_runtime['retry'], $_retryTimes, $_now)) { + if ($_retryTimes > 0) { + $_backoffTime = Tea::getBackoffTime(@$_runtime['backoff'], $_retryTimes); + if ($_backoffTime > 0) { + Tea::sleep($_backoffTime); + } + } + $_retryTimes = $_retryTimes + 1; + + try { + $_request = new Request(); + $accessKeyId = $this->_credential->getAccessKeyId(); + $accessKeySecret = $this->_credential->getAccessKeySecret(); + $token = $this->_credential->getSecurityToken(); + $reqBody = XML::toXML(Tea::merge($request->body)); + $_request->protocol = $this->_protocol; + $_request->method = 'PUT'; + $_request->pathname = '/?requestPayment'; + $_request->headers = [ + 'host' => OSSUtils::getHost($request->bucketName, $this->_regionId, $this->_endpoint, $this->_hostModel), + 'date' => Utils::getDateUTCString(), + 'user-agent' => $this->getUserAgent(), + ]; + if (!Utils::empty_($token)) { + $_request->headers['x-oss-security-token'] = $token; + } + $_request->body = $reqBody; + $_request->headers['authorization'] = OSSUtils::getSignature($_request, $request->bucketName, $accessKeyId, $accessKeySecret, $this->_signatureVersion, $this->_addtionalHeaders); + $_lastRequest = $_request; + $_response = Tea::send($_request, $_runtime); + $respMap = null; + $bodyStr = null; + if (Utils::is4xx($_response->statusCode) || Utils::is5xx($_response->statusCode)) { + $bodyStr = Utils::readAsString($_response->body); + $respMap = OSSUtils::getErrMessage($bodyStr); + + throw new TeaError([ + 'code' => @$respMap['Code'], + 'message' => @$respMap['Message'], + 'data' => [ + 'httpCode' => $_response->statusCode, + 'requestId' => @$respMap['RequestId'], + 'hostId' => @$respMap['HostId'], + ], + ]); + } + + return PutBucketRequestPaymentResponse::fromMap(Tea::merge($_response->headers)); + } catch (Exception $e) { + if (!($e instanceof TeaError)) { + $e = new TeaError([], $e->getMessage(), $e->getCode(), $e); + } + if (Tea::isRetryable($e)) { + $_lastException = $e; + + continue; + } + + throw $e; + } + } + + throw new TeaUnableRetryError($_lastRequest, $_lastException); + } + + /** + * @param PutBucketEncryptionRequest $request + * @param RuntimeOptions $runtime + * + * @throws TeaError + * @throws Exception + * @throws TeaUnableRetryError + * + * @return PutBucketEncryptionResponse + */ + public function putBucketEncryption($request, $runtime) + { + $request->validate(); + $runtime->validate(); + $_runtime = [ + 'timeouted' => 'retry', + 'readTimeout' => Utils::defaultNumber($runtime->readTimeout, $this->_readTimeout), + 'connectTimeout' => Utils::defaultNumber($runtime->connectTimeout, $this->_connectTimeout), + 'localAddr' => Utils::defaultString($runtime->localAddr, $this->_localAddr), + 'httpProxy' => Utils::defaultString($runtime->httpProxy, $this->_httpProxy), + 'httpsProxy' => Utils::defaultString($runtime->httpsProxy, $this->_httpsProxy), + 'noProxy' => Utils::defaultString($runtime->noProxy, $this->_noProxy), + 'socks5Proxy' => Utils::defaultString($runtime->socks5Proxy, $this->_socks5Proxy), + 'socks5NetWork' => Utils::defaultString($runtime->socks5NetWork, $this->_socks5NetWork), + 'maxIdleConns' => Utils::defaultNumber($runtime->maxIdleConns, $this->_maxIdleConns), + 'retry' => [ + 'retryable' => $runtime->autoretry, + 'maxAttempts' => Utils::defaultNumber($runtime->maxAttempts, 3), + ], + 'backoff' => [ + 'policy' => Utils::defaultString($runtime->backoffPolicy, 'no'), + 'period' => Utils::defaultNumber($runtime->backoffPeriod, 1), + ], + 'ignoreSSL' => $runtime->ignoreSSL, + ]; + $_lastRequest = null; + $_lastException = null; + $_now = time(); + $_retryTimes = 0; + while (Tea::allowRetry(@$_runtime['retry'], $_retryTimes, $_now)) { + if ($_retryTimes > 0) { + $_backoffTime = Tea::getBackoffTime(@$_runtime['backoff'], $_retryTimes); + if ($_backoffTime > 0) { + Tea::sleep($_backoffTime); + } + } + $_retryTimes = $_retryTimes + 1; + + try { + $_request = new Request(); + $accessKeyId = $this->_credential->getAccessKeyId(); + $accessKeySecret = $this->_credential->getAccessKeySecret(); + $token = $this->_credential->getSecurityToken(); + $reqBody = XML::toXML(Tea::merge($request->body)); + $_request->protocol = $this->_protocol; + $_request->method = 'PUT'; + $_request->pathname = '/?encryption'; + $_request->headers = [ + 'host' => OSSUtils::getHost($request->bucketName, $this->_regionId, $this->_endpoint, $this->_hostModel), + 'date' => Utils::getDateUTCString(), + 'user-agent' => $this->getUserAgent(), + ]; + if (!Utils::empty_($token)) { + $_request->headers['x-oss-security-token'] = $token; + } + $_request->body = $reqBody; + $_request->headers['authorization'] = OSSUtils::getSignature($_request, $request->bucketName, $accessKeyId, $accessKeySecret, $this->_signatureVersion, $this->_addtionalHeaders); + $_lastRequest = $_request; + $_response = Tea::send($_request, $_runtime); + $respMap = null; + $bodyStr = null; + if (Utils::is4xx($_response->statusCode) || Utils::is5xx($_response->statusCode)) { + $bodyStr = Utils::readAsString($_response->body); + $respMap = OSSUtils::getErrMessage($bodyStr); + + throw new TeaError([ + 'code' => @$respMap['Code'], + 'message' => @$respMap['Message'], + 'data' => [ + 'httpCode' => $_response->statusCode, + 'requestId' => @$respMap['RequestId'], + 'hostId' => @$respMap['HostId'], + ], + ]); + } + + return PutBucketEncryptionResponse::fromMap(Tea::merge($_response->headers)); + } catch (Exception $e) { + if (!($e instanceof TeaError)) { + $e = new TeaError([], $e->getMessage(), $e->getCode(), $e); + } + if (Tea::isRetryable($e)) { + $_lastException = $e; + + continue; + } + + throw $e; + } + } + + throw new TeaUnableRetryError($_lastRequest, $_lastException); + } + + /** + * @param PutLiveChannelRequest $request + * @param RuntimeOptions $runtime + * + * @throws TeaError + * @throws Exception + * @throws TeaUnableRetryError + * + * @return PutLiveChannelResponse + */ + public function putLiveChannel($request, $runtime) + { + $request->validate(); + $runtime->validate(); + $_runtime = [ + 'timeouted' => 'retry', + 'readTimeout' => Utils::defaultNumber($runtime->readTimeout, $this->_readTimeout), + 'connectTimeout' => Utils::defaultNumber($runtime->connectTimeout, $this->_connectTimeout), + 'localAddr' => Utils::defaultString($runtime->localAddr, $this->_localAddr), + 'httpProxy' => Utils::defaultString($runtime->httpProxy, $this->_httpProxy), + 'httpsProxy' => Utils::defaultString($runtime->httpsProxy, $this->_httpsProxy), + 'noProxy' => Utils::defaultString($runtime->noProxy, $this->_noProxy), + 'socks5Proxy' => Utils::defaultString($runtime->socks5Proxy, $this->_socks5Proxy), + 'socks5NetWork' => Utils::defaultString($runtime->socks5NetWork, $this->_socks5NetWork), + 'maxIdleConns' => Utils::defaultNumber($runtime->maxIdleConns, $this->_maxIdleConns), + 'retry' => [ + 'retryable' => $runtime->autoretry, + 'maxAttempts' => Utils::defaultNumber($runtime->maxAttempts, 3), + ], + 'backoff' => [ + 'policy' => Utils::defaultString($runtime->backoffPolicy, 'no'), + 'period' => Utils::defaultNumber($runtime->backoffPeriod, 1), + ], + 'ignoreSSL' => $runtime->ignoreSSL, + ]; + $_lastRequest = null; + $_lastException = null; + $_now = time(); + $_retryTimes = 0; + while (Tea::allowRetry(@$_runtime['retry'], $_retryTimes, $_now)) { + if ($_retryTimes > 0) { + $_backoffTime = Tea::getBackoffTime(@$_runtime['backoff'], $_retryTimes); + if ($_backoffTime > 0) { + Tea::sleep($_backoffTime); + } + } + $_retryTimes = $_retryTimes + 1; + + try { + $_request = new Request(); + $accessKeyId = $this->_credential->getAccessKeyId(); + $accessKeySecret = $this->_credential->getAccessKeySecret(); + $token = $this->_credential->getSecurityToken(); + $reqBody = XML::toXML(Tea::merge($request->body)); + $_request->protocol = $this->_protocol; + $_request->method = 'PUT'; + $_request->pathname = '/' . $request->channelName . '?live'; + $_request->headers = [ + 'host' => OSSUtils::getHost($request->bucketName, $this->_regionId, $this->_endpoint, $this->_hostModel), + 'date' => Utils::getDateUTCString(), + 'user-agent' => $this->getUserAgent(), + ]; + if (!Utils::empty_($token)) { + $_request->headers['x-oss-security-token'] = $token; + } + $_request->body = $reqBody; + $_request->headers['authorization'] = OSSUtils::getSignature($_request, $request->bucketName, $accessKeyId, $accessKeySecret, $this->_signatureVersion, $this->_addtionalHeaders); + $_lastRequest = $_request; + $_response = Tea::send($_request, $_runtime); + $respMap = null; + $bodyStr = null; + if (Utils::is4xx($_response->statusCode) || Utils::is5xx($_response->statusCode)) { + $bodyStr = Utils::readAsString($_response->body); + $respMap = OSSUtils::getErrMessage($bodyStr); + + throw new TeaError([ + 'code' => @$respMap['Code'], + 'message' => @$respMap['Message'], + 'data' => [ + 'httpCode' => $_response->statusCode, + 'requestId' => @$respMap['RequestId'], + 'hostId' => @$respMap['HostId'], + ], + ]); + } + $bodyStr = Utils::readAsString($_response->body); + $respMap = XML::parseXml($bodyStr, PutLiveChannelResponse::class); + + return PutLiveChannelResponse::fromMap(Tea::merge([ + 'CreateLiveChannelResult' => @$respMap['CreateLiveChannelResult'], + ], $_response->headers)); + } catch (Exception $e) { + if (!($e instanceof TeaError)) { + $e = new TeaError([], $e->getMessage(), $e->getCode(), $e); + } + if (Tea::isRetryable($e)) { + $_lastException = $e; + + continue; + } + + throw $e; + } + } + + throw new TeaUnableRetryError($_lastRequest, $_lastException); + } + + /** + * @param PutBucketTagsRequest $request + * @param RuntimeOptions $runtime + * + * @throws TeaError + * @throws Exception + * @throws TeaUnableRetryError + * + * @return PutBucketTagsResponse + */ + public function putBucketTags($request, $runtime) + { + $request->validate(); + $runtime->validate(); + $_runtime = [ + 'timeouted' => 'retry', + 'readTimeout' => Utils::defaultNumber($runtime->readTimeout, $this->_readTimeout), + 'connectTimeout' => Utils::defaultNumber($runtime->connectTimeout, $this->_connectTimeout), + 'localAddr' => Utils::defaultString($runtime->localAddr, $this->_localAddr), + 'httpProxy' => Utils::defaultString($runtime->httpProxy, $this->_httpProxy), + 'httpsProxy' => Utils::defaultString($runtime->httpsProxy, $this->_httpsProxy), + 'noProxy' => Utils::defaultString($runtime->noProxy, $this->_noProxy), + 'socks5Proxy' => Utils::defaultString($runtime->socks5Proxy, $this->_socks5Proxy), + 'socks5NetWork' => Utils::defaultString($runtime->socks5NetWork, $this->_socks5NetWork), + 'maxIdleConns' => Utils::defaultNumber($runtime->maxIdleConns, $this->_maxIdleConns), + 'retry' => [ + 'retryable' => $runtime->autoretry, + 'maxAttempts' => Utils::defaultNumber($runtime->maxAttempts, 3), + ], + 'backoff' => [ + 'policy' => Utils::defaultString($runtime->backoffPolicy, 'no'), + 'period' => Utils::defaultNumber($runtime->backoffPeriod, 1), + ], + 'ignoreSSL' => $runtime->ignoreSSL, + ]; + $_lastRequest = null; + $_lastException = null; + $_now = time(); + $_retryTimes = 0; + while (Tea::allowRetry(@$_runtime['retry'], $_retryTimes, $_now)) { + if ($_retryTimes > 0) { + $_backoffTime = Tea::getBackoffTime(@$_runtime['backoff'], $_retryTimes); + if ($_backoffTime > 0) { + Tea::sleep($_backoffTime); + } + } + $_retryTimes = $_retryTimes + 1; + + try { + $_request = new Request(); + $accessKeyId = $this->_credential->getAccessKeyId(); + $accessKeySecret = $this->_credential->getAccessKeySecret(); + $token = $this->_credential->getSecurityToken(); + $reqBody = XML::toXML(Tea::merge($request->body)); + $_request->protocol = $this->_protocol; + $_request->method = 'PUT'; + $_request->pathname = '/?tagging'; + $_request->headers = [ + 'host' => OSSUtils::getHost($request->bucketName, $this->_regionId, $this->_endpoint, $this->_hostModel), + 'date' => Utils::getDateUTCString(), + 'user-agent' => $this->getUserAgent(), + ]; + if (!Utils::empty_($token)) { + $_request->headers['x-oss-security-token'] = $token; + } + $_request->body = $reqBody; + $_request->headers['authorization'] = OSSUtils::getSignature($_request, $request->bucketName, $accessKeyId, $accessKeySecret, $this->_signatureVersion, $this->_addtionalHeaders); + $_lastRequest = $_request; + $_response = Tea::send($_request, $_runtime); + $respMap = null; + $bodyStr = null; + if (Utils::is4xx($_response->statusCode) || Utils::is5xx($_response->statusCode)) { + $bodyStr = Utils::readAsString($_response->body); + $respMap = OSSUtils::getErrMessage($bodyStr); + + throw new TeaError([ + 'code' => @$respMap['Code'], + 'message' => @$respMap['Message'], + 'data' => [ + 'httpCode' => $_response->statusCode, + 'requestId' => @$respMap['RequestId'], + 'hostId' => @$respMap['HostId'], + ], + ]); + } + + return PutBucketTagsResponse::fromMap(Tea::merge($_response->headers)); + } catch (Exception $e) { + if (!($e instanceof TeaError)) { + $e = new TeaError([], $e->getMessage(), $e->getCode(), $e); + } + if (Tea::isRetryable($e)) { + $_lastException = $e; + + continue; + } + + throw $e; + } + } + + throw new TeaUnableRetryError($_lastRequest, $_lastException); + } + + /** + * @param PutObjectTaggingRequest $request + * @param RuntimeOptions $runtime + * + * @throws TeaError + * @throws Exception + * @throws TeaUnableRetryError + * + * @return PutObjectTaggingResponse + */ + public function putObjectTagging($request, $runtime) + { + $request->validate(); + $runtime->validate(); + $_runtime = [ + 'timeouted' => 'retry', + 'readTimeout' => Utils::defaultNumber($runtime->readTimeout, $this->_readTimeout), + 'connectTimeout' => Utils::defaultNumber($runtime->connectTimeout, $this->_connectTimeout), + 'localAddr' => Utils::defaultString($runtime->localAddr, $this->_localAddr), + 'httpProxy' => Utils::defaultString($runtime->httpProxy, $this->_httpProxy), + 'httpsProxy' => Utils::defaultString($runtime->httpsProxy, $this->_httpsProxy), + 'noProxy' => Utils::defaultString($runtime->noProxy, $this->_noProxy), + 'socks5Proxy' => Utils::defaultString($runtime->socks5Proxy, $this->_socks5Proxy), + 'socks5NetWork' => Utils::defaultString($runtime->socks5NetWork, $this->_socks5NetWork), + 'maxIdleConns' => Utils::defaultNumber($runtime->maxIdleConns, $this->_maxIdleConns), + 'retry' => [ + 'retryable' => $runtime->autoretry, + 'maxAttempts' => Utils::defaultNumber($runtime->maxAttempts, 3), + ], + 'backoff' => [ + 'policy' => Utils::defaultString($runtime->backoffPolicy, 'no'), + 'period' => Utils::defaultNumber($runtime->backoffPeriod, 1), + ], + 'ignoreSSL' => $runtime->ignoreSSL, + ]; + $_lastRequest = null; + $_lastException = null; + $_now = time(); + $_retryTimes = 0; + while (Tea::allowRetry(@$_runtime['retry'], $_retryTimes, $_now)) { + if ($_retryTimes > 0) { + $_backoffTime = Tea::getBackoffTime(@$_runtime['backoff'], $_retryTimes); + if ($_backoffTime > 0) { + Tea::sleep($_backoffTime); + } + } + $_retryTimes = $_retryTimes + 1; + + try { + $_request = new Request(); + $accessKeyId = $this->_credential->getAccessKeyId(); + $accessKeySecret = $this->_credential->getAccessKeySecret(); + $token = $this->_credential->getSecurityToken(); + $reqBody = XML::toXML(Tea::merge($request->body)); + $_request->protocol = $this->_protocol; + $_request->method = 'PUT'; + $_request->pathname = '/' . $request->objectName . '?tagging'; + $_request->headers = [ + 'host' => OSSUtils::getHost($request->bucketName, $this->_regionId, $this->_endpoint, $this->_hostModel), + 'date' => Utils::getDateUTCString(), + 'user-agent' => $this->getUserAgent(), + ]; + if (!Utils::empty_($token)) { + $_request->headers['x-oss-security-token'] = $token; + } + $_request->body = $reqBody; + $_request->headers['authorization'] = OSSUtils::getSignature($_request, $request->bucketName, $accessKeyId, $accessKeySecret, $this->_signatureVersion, $this->_addtionalHeaders); + $_lastRequest = $_request; + $_response = Tea::send($_request, $_runtime); + $respMap = null; + $bodyStr = null; + if (Utils::is4xx($_response->statusCode) || Utils::is5xx($_response->statusCode)) { + $bodyStr = Utils::readAsString($_response->body); + $respMap = OSSUtils::getErrMessage($bodyStr); + + throw new TeaError([ + 'code' => @$respMap['Code'], + 'message' => @$respMap['Message'], + 'data' => [ + 'httpCode' => $_response->statusCode, + 'requestId' => @$respMap['RequestId'], + 'hostId' => @$respMap['HostId'], + ], + ]); + } + + return PutObjectTaggingResponse::fromMap(Tea::merge($_response->headers)); + } catch (Exception $e) { + if (!($e instanceof TeaError)) { + $e = new TeaError([], $e->getMessage(), $e->getCode(), $e); + } + if (Tea::isRetryable($e)) { + $_lastException = $e; + + continue; + } + + throw $e; + } + } + + throw new TeaUnableRetryError($_lastRequest, $_lastException); + } + + /** + * @param SelectObjectRequest $request + * @param RuntimeOptions $runtime + * + * @throws TeaError + * @throws Exception + * @throws TeaUnableRetryError + * + * @return SelectObjectResponse + */ + public function selectObject($request, $runtime) + { + $request->validate(); + $runtime->validate(); + $_runtime = [ + 'timeouted' => 'retry', + 'readTimeout' => Utils::defaultNumber($runtime->readTimeout, $this->_readTimeout), + 'connectTimeout' => Utils::defaultNumber($runtime->connectTimeout, $this->_connectTimeout), + 'localAddr' => Utils::defaultString($runtime->localAddr, $this->_localAddr), + 'httpProxy' => Utils::defaultString($runtime->httpProxy, $this->_httpProxy), + 'httpsProxy' => Utils::defaultString($runtime->httpsProxy, $this->_httpsProxy), + 'noProxy' => Utils::defaultString($runtime->noProxy, $this->_noProxy), + 'socks5Proxy' => Utils::defaultString($runtime->socks5Proxy, $this->_socks5Proxy), + 'socks5NetWork' => Utils::defaultString($runtime->socks5NetWork, $this->_socks5NetWork), + 'maxIdleConns' => Utils::defaultNumber($runtime->maxIdleConns, $this->_maxIdleConns), + 'retry' => [ + 'retryable' => $runtime->autoretry, + 'maxAttempts' => Utils::defaultNumber($runtime->maxAttempts, 3), + ], + 'backoff' => [ + 'policy' => Utils::defaultString($runtime->backoffPolicy, 'no'), + 'period' => Utils::defaultNumber($runtime->backoffPeriod, 1), + ], + 'ignoreSSL' => $runtime->ignoreSSL, + ]; + $_lastRequest = null; + $_lastException = null; + $_now = time(); + $_retryTimes = 0; + while (Tea::allowRetry(@$_runtime['retry'], $_retryTimes, $_now)) { + if ($_retryTimes > 0) { + $_backoffTime = Tea::getBackoffTime(@$_runtime['backoff'], $_retryTimes); + if ($_backoffTime > 0) { + Tea::sleep($_backoffTime); + } + } + $_retryTimes = $_retryTimes + 1; + + try { + $_request = new Request(); + $accessKeyId = $this->_credential->getAccessKeyId(); + $accessKeySecret = $this->_credential->getAccessKeySecret(); + $token = $this->_credential->getSecurityToken(); + $reqBody = XML::toXML(Tea::merge($request->body)); + $_request->protocol = $this->_protocol; + $_request->method = 'POST'; + $_request->pathname = '/' . $request->objectName . ''; + $_request->headers = [ + 'host' => OSSUtils::getHost($request->bucketName, $this->_regionId, $this->_endpoint, $this->_hostModel), + 'date' => Utils::getDateUTCString(), + 'user-agent' => $this->getUserAgent(), + ]; + if (!Utils::empty_($token)) { + $_request->headers['x-oss-security-token'] = $token; + } + $_request->query = Utils::stringifyMapValue(Tea::merge($request->filter)); + $_request->body = $reqBody; + $_request->headers['authorization'] = OSSUtils::getSignature($_request, $request->bucketName, $accessKeyId, $accessKeySecret, $this->_signatureVersion, $this->_addtionalHeaders); + $_lastRequest = $_request; + $_response = Tea::send($_request, $_runtime); + $respMap = null; + $bodyStr = null; + if (Utils::is4xx($_response->statusCode) || Utils::is5xx($_response->statusCode)) { + $bodyStr = Utils::readAsString($_response->body); + $respMap = OSSUtils::getErrMessage($bodyStr); + + throw new TeaError([ + 'code' => @$respMap['Code'], + 'message' => @$respMap['Message'], + 'data' => [ + 'httpCode' => $_response->statusCode, + 'requestId' => @$respMap['RequestId'], + 'hostId' => @$respMap['HostId'], + ], + ]); + } + + return SelectObjectResponse::fromMap(Tea::merge($_response->headers)); + } catch (Exception $e) { + if (!($e instanceof TeaError)) { + $e = new TeaError([], $e->getMessage(), $e->getCode(), $e); + } + if (Tea::isRetryable($e)) { + $_lastException = $e; + + continue; + } + + throw $e; + } + } + + throw new TeaUnableRetryError($_lastRequest, $_lastException); + } + + /** + * @param PutBucketCORSRequest $request + * @param RuntimeOptions $runtime + * + * @throws TeaError + * @throws Exception + * @throws TeaUnableRetryError + * + * @return PutBucketCORSResponse + */ + public function putBucketCORS($request, $runtime) + { + $request->validate(); + $runtime->validate(); + $_runtime = [ + 'timeouted' => 'retry', + 'readTimeout' => Utils::defaultNumber($runtime->readTimeout, $this->_readTimeout), + 'connectTimeout' => Utils::defaultNumber($runtime->connectTimeout, $this->_connectTimeout), + 'localAddr' => Utils::defaultString($runtime->localAddr, $this->_localAddr), + 'httpProxy' => Utils::defaultString($runtime->httpProxy, $this->_httpProxy), + 'httpsProxy' => Utils::defaultString($runtime->httpsProxy, $this->_httpsProxy), + 'noProxy' => Utils::defaultString($runtime->noProxy, $this->_noProxy), + 'socks5Proxy' => Utils::defaultString($runtime->socks5Proxy, $this->_socks5Proxy), + 'socks5NetWork' => Utils::defaultString($runtime->socks5NetWork, $this->_socks5NetWork), + 'maxIdleConns' => Utils::defaultNumber($runtime->maxIdleConns, $this->_maxIdleConns), + 'retry' => [ + 'retryable' => $runtime->autoretry, + 'maxAttempts' => Utils::defaultNumber($runtime->maxAttempts, 3), + ], + 'backoff' => [ + 'policy' => Utils::defaultString($runtime->backoffPolicy, 'no'), + 'period' => Utils::defaultNumber($runtime->backoffPeriod, 1), + ], + 'ignoreSSL' => $runtime->ignoreSSL, + ]; + $_lastRequest = null; + $_lastException = null; + $_now = time(); + $_retryTimes = 0; + while (Tea::allowRetry(@$_runtime['retry'], $_retryTimes, $_now)) { + if ($_retryTimes > 0) { + $_backoffTime = Tea::getBackoffTime(@$_runtime['backoff'], $_retryTimes); + if ($_backoffTime > 0) { + Tea::sleep($_backoffTime); + } + } + $_retryTimes = $_retryTimes + 1; + + try { + $_request = new Request(); + $accessKeyId = $this->_credential->getAccessKeyId(); + $accessKeySecret = $this->_credential->getAccessKeySecret(); + $token = $this->_credential->getSecurityToken(); + $reqBody = XML::toXML(Tea::merge($request->body)); + $_request->protocol = $this->_protocol; + $_request->method = 'PUT'; + $_request->pathname = '/?cors'; + $_request->headers = [ + 'host' => OSSUtils::getHost($request->bucketName, $this->_regionId, $this->_endpoint, $this->_hostModel), + 'date' => Utils::getDateUTCString(), + 'user-agent' => $this->getUserAgent(), + ]; + if (!Utils::empty_($token)) { + $_request->headers['x-oss-security-token'] = $token; + } + $_request->body = $reqBody; + $_request->headers['authorization'] = OSSUtils::getSignature($_request, $request->bucketName, $accessKeyId, $accessKeySecret, $this->_signatureVersion, $this->_addtionalHeaders); + $_lastRequest = $_request; + $_response = Tea::send($_request, $_runtime); + $respMap = null; + $bodyStr = null; + if (Utils::is4xx($_response->statusCode) || Utils::is5xx($_response->statusCode)) { + $bodyStr = Utils::readAsString($_response->body); + $respMap = OSSUtils::getErrMessage($bodyStr); + + throw new TeaError([ + 'code' => @$respMap['Code'], + 'message' => @$respMap['Message'], + 'data' => [ + 'httpCode' => $_response->statusCode, + 'requestId' => @$respMap['RequestId'], + 'hostId' => @$respMap['HostId'], + ], + ]); + } + + return PutBucketCORSResponse::fromMap(Tea::merge($_response->headers)); + } catch (Exception $e) { + if (!($e instanceof TeaError)) { + $e = new TeaError([], $e->getMessage(), $e->getCode(), $e); + } + if (Tea::isRetryable($e)) { + $_lastException = $e; + + continue; + } + + throw $e; + } + } + + throw new TeaUnableRetryError($_lastRequest, $_lastException); + } + + /** + * @param PutBucketRequest $request + * @param RuntimeOptions $runtime + * + * @throws TeaError + * @throws Exception + * @throws TeaUnableRetryError + * + * @return PutBucketResponse + */ + public function putBucket($request, $runtime) + { + $request->validate(); + $runtime->validate(); + $_runtime = [ + 'timeouted' => 'retry', + 'readTimeout' => Utils::defaultNumber($runtime->readTimeout, $this->_readTimeout), + 'connectTimeout' => Utils::defaultNumber($runtime->connectTimeout, $this->_connectTimeout), + 'localAddr' => Utils::defaultString($runtime->localAddr, $this->_localAddr), + 'httpProxy' => Utils::defaultString($runtime->httpProxy, $this->_httpProxy), + 'httpsProxy' => Utils::defaultString($runtime->httpsProxy, $this->_httpsProxy), + 'noProxy' => Utils::defaultString($runtime->noProxy, $this->_noProxy), + 'socks5Proxy' => Utils::defaultString($runtime->socks5Proxy, $this->_socks5Proxy), + 'socks5NetWork' => Utils::defaultString($runtime->socks5NetWork, $this->_socks5NetWork), + 'maxIdleConns' => Utils::defaultNumber($runtime->maxIdleConns, $this->_maxIdleConns), + 'retry' => [ + 'retryable' => $runtime->autoretry, + 'maxAttempts' => Utils::defaultNumber($runtime->maxAttempts, 3), + ], + 'backoff' => [ + 'policy' => Utils::defaultString($runtime->backoffPolicy, 'no'), + 'period' => Utils::defaultNumber($runtime->backoffPeriod, 1), + ], + 'ignoreSSL' => $runtime->ignoreSSL, + ]; + $_lastRequest = null; + $_lastException = null; + $_now = time(); + $_retryTimes = 0; + while (Tea::allowRetry(@$_runtime['retry'], $_retryTimes, $_now)) { + if ($_retryTimes > 0) { + $_backoffTime = Tea::getBackoffTime(@$_runtime['backoff'], $_retryTimes); + if ($_backoffTime > 0) { + Tea::sleep($_backoffTime); + } + } + $_retryTimes = $_retryTimes + 1; + + try { + $_request = new Request(); + $accessKeyId = $this->_credential->getAccessKeyId(); + $accessKeySecret = $this->_credential->getAccessKeySecret(); + $token = $this->_credential->getSecurityToken(); + $reqBody = XML::toXML(Tea::merge($request->body)); + $_request->protocol = $this->_protocol; + $_request->method = 'PUT'; + $_request->pathname = '/'; + $_request->headers = Tea::merge([ + 'host' => OSSUtils::getHost($request->bucketName, $this->_regionId, $this->_endpoint, $this->_hostModel), + 'date' => Utils::getDateUTCString(), + 'user-agent' => $this->getUserAgent(), + ], Utils::stringifyMapValue(Tea::merge($request->header))); + if (!Utils::empty_($token)) { + $_request->headers['x-oss-security-token'] = $token; + } + $_request->body = $reqBody; + $_request->headers['authorization'] = OSSUtils::getSignature($_request, $request->bucketName, $accessKeyId, $accessKeySecret, $this->_signatureVersion, $this->_addtionalHeaders); + $_lastRequest = $_request; + $_response = Tea::send($_request, $_runtime); + $respMap = null; + $bodyStr = null; + if (Utils::is4xx($_response->statusCode) || Utils::is5xx($_response->statusCode)) { + $bodyStr = Utils::readAsString($_response->body); + $respMap = OSSUtils::getErrMessage($bodyStr); + + throw new TeaError([ + 'code' => @$respMap['Code'], + 'message' => @$respMap['Message'], + 'data' => [ + 'httpCode' => $_response->statusCode, + 'requestId' => @$respMap['RequestId'], + 'hostId' => @$respMap['HostId'], + ], + ]); + } + + return PutBucketResponse::fromMap(Tea::merge($_response->headers)); + } catch (Exception $e) { + if (!($e instanceof TeaError)) { + $e = new TeaError([], $e->getMessage(), $e->getCode(), $e); + } + if (Tea::isRetryable($e)) { + $_lastException = $e; + + continue; + } + + throw $e; + } + } + + throw new TeaUnableRetryError($_lastRequest, $_lastException); + } + + /** + * @param ListMultipartUploadsRequest $request + * @param RuntimeOptions $runtime + * + * @throws TeaError + * @throws Exception + * @throws TeaUnableRetryError + * + * @return ListMultipartUploadsResponse + */ + public function listMultipartUploads($request, $runtime) + { + $request->validate(); + $runtime->validate(); + $_runtime = [ + 'timeouted' => 'retry', + 'readTimeout' => Utils::defaultNumber($runtime->readTimeout, $this->_readTimeout), + 'connectTimeout' => Utils::defaultNumber($runtime->connectTimeout, $this->_connectTimeout), + 'localAddr' => Utils::defaultString($runtime->localAddr, $this->_localAddr), + 'httpProxy' => Utils::defaultString($runtime->httpProxy, $this->_httpProxy), + 'httpsProxy' => Utils::defaultString($runtime->httpsProxy, $this->_httpsProxy), + 'noProxy' => Utils::defaultString($runtime->noProxy, $this->_noProxy), + 'socks5Proxy' => Utils::defaultString($runtime->socks5Proxy, $this->_socks5Proxy), + 'socks5NetWork' => Utils::defaultString($runtime->socks5NetWork, $this->_socks5NetWork), + 'maxIdleConns' => Utils::defaultNumber($runtime->maxIdleConns, $this->_maxIdleConns), + 'retry' => [ + 'retryable' => $runtime->autoretry, + 'maxAttempts' => Utils::defaultNumber($runtime->maxAttempts, 3), + ], + 'backoff' => [ + 'policy' => Utils::defaultString($runtime->backoffPolicy, 'no'), + 'period' => Utils::defaultNumber($runtime->backoffPeriod, 1), + ], + 'ignoreSSL' => $runtime->ignoreSSL, + ]; + $_lastRequest = null; + $_lastException = null; + $_now = time(); + $_retryTimes = 0; + while (Tea::allowRetry(@$_runtime['retry'], $_retryTimes, $_now)) { + if ($_retryTimes > 0) { + $_backoffTime = Tea::getBackoffTime(@$_runtime['backoff'], $_retryTimes); + if ($_backoffTime > 0) { + Tea::sleep($_backoffTime); + } + } + $_retryTimes = $_retryTimes + 1; + + try { + $_request = new Request(); + $accessKeyId = $this->_credential->getAccessKeyId(); + $accessKeySecret = $this->_credential->getAccessKeySecret(); + $token = $this->_credential->getSecurityToken(); + $_request->protocol = $this->_protocol; + $_request->method = 'GET'; + $_request->pathname = '/?uploads'; + $_request->headers = [ + 'host' => OSSUtils::getHost($request->bucketName, $this->_regionId, $this->_endpoint, $this->_hostModel), + 'date' => Utils::getDateUTCString(), + 'user-agent' => $this->getUserAgent(), + ]; + if (!Utils::empty_($token)) { + $_request->headers['x-oss-security-token'] = $token; + } + $_request->query = Utils::stringifyMapValue(Tea::merge($request->filter)); + $_request->headers['authorization'] = OSSUtils::getSignature($_request, $request->bucketName, $accessKeyId, $accessKeySecret, $this->_signatureVersion, $this->_addtionalHeaders); + $_lastRequest = $_request; + $_response = Tea::send($_request, $_runtime); + $respMap = null; + $bodyStr = null; + if (Utils::is4xx($_response->statusCode) || Utils::is5xx($_response->statusCode)) { + $bodyStr = Utils::readAsString($_response->body); + $respMap = OSSUtils::getErrMessage($bodyStr); + + throw new TeaError([ + 'code' => @$respMap['Code'], + 'message' => @$respMap['Message'], + 'data' => [ + 'httpCode' => $_response->statusCode, + 'requestId' => @$respMap['RequestId'], + 'hostId' => @$respMap['HostId'], + ], + ]); + } + $bodyStr = Utils::readAsString($_response->body); + $respMap = XML::parseXml($bodyStr, ListMultipartUploadsResponse::class); + + return ListMultipartUploadsResponse::fromMap(Tea::merge([ + 'ListMultipartUploadsResult' => @$respMap['ListMultipartUploadsResult'], + ], $_response->headers)); + } catch (Exception $e) { + if (!($e instanceof TeaError)) { + $e = new TeaError([], $e->getMessage(), $e->getCode(), $e); + } + if (Tea::isRetryable($e)) { + $_lastException = $e; + + continue; + } + + throw $e; + } + } + + throw new TeaUnableRetryError($_lastRequest, $_lastException); + } + + /** + * @param GetBucketRequestPaymentRequest $request + * @param RuntimeOptions $runtime + * + * @throws TeaError + * @throws Exception + * @throws TeaUnableRetryError + * + * @return GetBucketRequestPaymentResponse + */ + public function getBucketRequestPayment($request, $runtime) + { + $request->validate(); + $runtime->validate(); + $_runtime = [ + 'timeouted' => 'retry', + 'readTimeout' => Utils::defaultNumber($runtime->readTimeout, $this->_readTimeout), + 'connectTimeout' => Utils::defaultNumber($runtime->connectTimeout, $this->_connectTimeout), + 'localAddr' => Utils::defaultString($runtime->localAddr, $this->_localAddr), + 'httpProxy' => Utils::defaultString($runtime->httpProxy, $this->_httpProxy), + 'httpsProxy' => Utils::defaultString($runtime->httpsProxy, $this->_httpsProxy), + 'noProxy' => Utils::defaultString($runtime->noProxy, $this->_noProxy), + 'socks5Proxy' => Utils::defaultString($runtime->socks5Proxy, $this->_socks5Proxy), + 'socks5NetWork' => Utils::defaultString($runtime->socks5NetWork, $this->_socks5NetWork), + 'maxIdleConns' => Utils::defaultNumber($runtime->maxIdleConns, $this->_maxIdleConns), + 'retry' => [ + 'retryable' => $runtime->autoretry, + 'maxAttempts' => Utils::defaultNumber($runtime->maxAttempts, 3), + ], + 'backoff' => [ + 'policy' => Utils::defaultString($runtime->backoffPolicy, 'no'), + 'period' => Utils::defaultNumber($runtime->backoffPeriod, 1), + ], + 'ignoreSSL' => $runtime->ignoreSSL, + ]; + $_lastRequest = null; + $_lastException = null; + $_now = time(); + $_retryTimes = 0; + while (Tea::allowRetry(@$_runtime['retry'], $_retryTimes, $_now)) { + if ($_retryTimes > 0) { + $_backoffTime = Tea::getBackoffTime(@$_runtime['backoff'], $_retryTimes); + if ($_backoffTime > 0) { + Tea::sleep($_backoffTime); + } + } + $_retryTimes = $_retryTimes + 1; + + try { + $_request = new Request(); + $accessKeyId = $this->_credential->getAccessKeyId(); + $accessKeySecret = $this->_credential->getAccessKeySecret(); + $token = $this->_credential->getSecurityToken(); + $_request->protocol = $this->_protocol; + $_request->method = 'GET'; + $_request->pathname = '/?requestPayment'; + $_request->headers = [ + 'host' => OSSUtils::getHost($request->bucketName, $this->_regionId, $this->_endpoint, $this->_hostModel), + 'date' => Utils::getDateUTCString(), + 'user-agent' => $this->getUserAgent(), + ]; + if (!Utils::empty_($token)) { + $_request->headers['x-oss-security-token'] = $token; + } + $_request->headers['authorization'] = OSSUtils::getSignature($_request, $request->bucketName, $accessKeyId, $accessKeySecret, $this->_signatureVersion, $this->_addtionalHeaders); + $_lastRequest = $_request; + $_response = Tea::send($_request, $_runtime); + $respMap = null; + $bodyStr = null; + if (Utils::is4xx($_response->statusCode) || Utils::is5xx($_response->statusCode)) { + $bodyStr = Utils::readAsString($_response->body); + $respMap = OSSUtils::getErrMessage($bodyStr); + + throw new TeaError([ + 'code' => @$respMap['Code'], + 'message' => @$respMap['Message'], + 'data' => [ + 'httpCode' => $_response->statusCode, + 'requestId' => @$respMap['RequestId'], + 'hostId' => @$respMap['HostId'], + ], + ]); + } + $bodyStr = Utils::readAsString($_response->body); + $respMap = XML::parseXml($bodyStr, GetBucketRequestPaymentResponse::class); + + return GetBucketRequestPaymentResponse::fromMap(Tea::merge([ + 'RequestPaymentConfiguration' => @$respMap['RequestPaymentConfiguration'], + ], $_response->headers)); + } catch (Exception $e) { + if (!($e instanceof TeaError)) { + $e = new TeaError([], $e->getMessage(), $e->getCode(), $e); + } + if (Tea::isRetryable($e)) { + $_lastException = $e; + + continue; + } + + throw $e; + } + } + + throw new TeaUnableRetryError($_lastRequest, $_lastException); + } + + /** + * @param GetBucketEncryptionRequest $request + * @param RuntimeOptions $runtime + * + * @throws TeaError + * @throws Exception + * @throws TeaUnableRetryError + * + * @return GetBucketEncryptionResponse + */ + public function getBucketEncryption($request, $runtime) + { + $request->validate(); + $runtime->validate(); + $_runtime = [ + 'timeouted' => 'retry', + 'readTimeout' => Utils::defaultNumber($runtime->readTimeout, $this->_readTimeout), + 'connectTimeout' => Utils::defaultNumber($runtime->connectTimeout, $this->_connectTimeout), + 'localAddr' => Utils::defaultString($runtime->localAddr, $this->_localAddr), + 'httpProxy' => Utils::defaultString($runtime->httpProxy, $this->_httpProxy), + 'httpsProxy' => Utils::defaultString($runtime->httpsProxy, $this->_httpsProxy), + 'noProxy' => Utils::defaultString($runtime->noProxy, $this->_noProxy), + 'socks5Proxy' => Utils::defaultString($runtime->socks5Proxy, $this->_socks5Proxy), + 'socks5NetWork' => Utils::defaultString($runtime->socks5NetWork, $this->_socks5NetWork), + 'maxIdleConns' => Utils::defaultNumber($runtime->maxIdleConns, $this->_maxIdleConns), + 'retry' => [ + 'retryable' => $runtime->autoretry, + 'maxAttempts' => Utils::defaultNumber($runtime->maxAttempts, 3), + ], + 'backoff' => [ + 'policy' => Utils::defaultString($runtime->backoffPolicy, 'no'), + 'period' => Utils::defaultNumber($runtime->backoffPeriod, 1), + ], + 'ignoreSSL' => $runtime->ignoreSSL, + ]; + $_lastRequest = null; + $_lastException = null; + $_now = time(); + $_retryTimes = 0; + while (Tea::allowRetry(@$_runtime['retry'], $_retryTimes, $_now)) { + if ($_retryTimes > 0) { + $_backoffTime = Tea::getBackoffTime(@$_runtime['backoff'], $_retryTimes); + if ($_backoffTime > 0) { + Tea::sleep($_backoffTime); + } + } + $_retryTimes = $_retryTimes + 1; + + try { + $_request = new Request(); + $accessKeyId = $this->_credential->getAccessKeyId(); + $accessKeySecret = $this->_credential->getAccessKeySecret(); + $token = $this->_credential->getSecurityToken(); + $_request->protocol = $this->_protocol; + $_request->method = 'GET'; + $_request->pathname = '/?encryption'; + $_request->headers = [ + 'host' => OSSUtils::getHost($request->bucketName, $this->_regionId, $this->_endpoint, $this->_hostModel), + 'date' => Utils::getDateUTCString(), + 'user-agent' => $this->getUserAgent(), + ]; + if (!Utils::empty_($token)) { + $_request->headers['x-oss-security-token'] = $token; + } + $_request->headers['authorization'] = OSSUtils::getSignature($_request, $request->bucketName, $accessKeyId, $accessKeySecret, $this->_signatureVersion, $this->_addtionalHeaders); + $_lastRequest = $_request; + $_response = Tea::send($_request, $_runtime); + $respMap = null; + $bodyStr = null; + if (Utils::is4xx($_response->statusCode) || Utils::is5xx($_response->statusCode)) { + $bodyStr = Utils::readAsString($_response->body); + $respMap = OSSUtils::getErrMessage($bodyStr); + + throw new TeaError([ + 'code' => @$respMap['Code'], + 'message' => @$respMap['Message'], + 'data' => [ + 'httpCode' => $_response->statusCode, + 'requestId' => @$respMap['RequestId'], + 'hostId' => @$respMap['HostId'], + ], + ]); + } + $bodyStr = Utils::readAsString($_response->body); + $respMap = XML::parseXml($bodyStr, GetBucketEncryptionResponse::class); + + return GetBucketEncryptionResponse::fromMap(Tea::merge([ + 'ServerSideEncryptionRule' => @$respMap['ServerSideEncryptionRule'], + ], $_response->headers)); + } catch (Exception $e) { + if (!($e instanceof TeaError)) { + $e = new TeaError([], $e->getMessage(), $e->getCode(), $e); + } + if (Tea::isRetryable($e)) { + $_lastException = $e; + + continue; + } + + throw $e; + } + } + + throw new TeaUnableRetryError($_lastRequest, $_lastException); + } + + /** + * @param GetBucketTagsRequest $request + * @param RuntimeOptions $runtime + * + * @throws TeaError + * @throws Exception + * @throws TeaUnableRetryError + * + * @return GetBucketTagsResponse + */ + public function getBucketTags($request, $runtime) + { + $request->validate(); + $runtime->validate(); + $_runtime = [ + 'timeouted' => 'retry', + 'readTimeout' => Utils::defaultNumber($runtime->readTimeout, $this->_readTimeout), + 'connectTimeout' => Utils::defaultNumber($runtime->connectTimeout, $this->_connectTimeout), + 'localAddr' => Utils::defaultString($runtime->localAddr, $this->_localAddr), + 'httpProxy' => Utils::defaultString($runtime->httpProxy, $this->_httpProxy), + 'httpsProxy' => Utils::defaultString($runtime->httpsProxy, $this->_httpsProxy), + 'noProxy' => Utils::defaultString($runtime->noProxy, $this->_noProxy), + 'socks5Proxy' => Utils::defaultString($runtime->socks5Proxy, $this->_socks5Proxy), + 'socks5NetWork' => Utils::defaultString($runtime->socks5NetWork, $this->_socks5NetWork), + 'maxIdleConns' => Utils::defaultNumber($runtime->maxIdleConns, $this->_maxIdleConns), + 'retry' => [ + 'retryable' => $runtime->autoretry, + 'maxAttempts' => Utils::defaultNumber($runtime->maxAttempts, 3), + ], + 'backoff' => [ + 'policy' => Utils::defaultString($runtime->backoffPolicy, 'no'), + 'period' => Utils::defaultNumber($runtime->backoffPeriod, 1), + ], + 'ignoreSSL' => $runtime->ignoreSSL, + ]; + $_lastRequest = null; + $_lastException = null; + $_now = time(); + $_retryTimes = 0; + while (Tea::allowRetry(@$_runtime['retry'], $_retryTimes, $_now)) { + if ($_retryTimes > 0) { + $_backoffTime = Tea::getBackoffTime(@$_runtime['backoff'], $_retryTimes); + if ($_backoffTime > 0) { + Tea::sleep($_backoffTime); + } + } + $_retryTimes = $_retryTimes + 1; + + try { + $_request = new Request(); + $accessKeyId = $this->_credential->getAccessKeyId(); + $accessKeySecret = $this->_credential->getAccessKeySecret(); + $token = $this->_credential->getSecurityToken(); + $_request->protocol = $this->_protocol; + $_request->method = 'GET'; + $_request->pathname = '/?tagging'; + $_request->headers = [ + 'host' => OSSUtils::getHost($request->bucketName, $this->_regionId, $this->_endpoint, $this->_hostModel), + 'date' => Utils::getDateUTCString(), + 'user-agent' => $this->getUserAgent(), + ]; + if (!Utils::empty_($token)) { + $_request->headers['x-oss-security-token'] = $token; + } + $_request->headers['authorization'] = OSSUtils::getSignature($_request, $request->bucketName, $accessKeyId, $accessKeySecret, $this->_signatureVersion, $this->_addtionalHeaders); + $_lastRequest = $_request; + $_response = Tea::send($_request, $_runtime); + $respMap = null; + $bodyStr = null; + if (Utils::is4xx($_response->statusCode) || Utils::is5xx($_response->statusCode)) { + $bodyStr = Utils::readAsString($_response->body); + $respMap = OSSUtils::getErrMessage($bodyStr); + + throw new TeaError([ + 'code' => @$respMap['Code'], + 'message' => @$respMap['Message'], + 'data' => [ + 'httpCode' => $_response->statusCode, + 'requestId' => @$respMap['RequestId'], + 'hostId' => @$respMap['HostId'], + ], + ]); + } + $bodyStr = Utils::readAsString($_response->body); + $respMap = XML::parseXml($bodyStr, GetBucketTagsResponse::class); + + return GetBucketTagsResponse::fromMap(Tea::merge([ + 'Tagging' => @$respMap['Tagging'], + ], $_response->headers)); + } catch (Exception $e) { + if (!($e instanceof TeaError)) { + $e = new TeaError([], $e->getMessage(), $e->getCode(), $e); + } + if (Tea::isRetryable($e)) { + $_lastException = $e; + + continue; + } + + throw $e; + } + } + + throw new TeaUnableRetryError($_lastRequest, $_lastException); + } + + /** + * @param GetServiceRequest $request + * @param RuntimeOptions $runtime + * + * @throws TeaError + * @throws Exception + * @throws TeaUnableRetryError + * + * @return GetServiceResponse + */ + public function getService($request, $runtime) + { + $request->validate(); + $runtime->validate(); + $_runtime = [ + 'timeouted' => 'retry', + 'readTimeout' => Utils::defaultNumber($runtime->readTimeout, $this->_readTimeout), + 'connectTimeout' => Utils::defaultNumber($runtime->connectTimeout, $this->_connectTimeout), + 'localAddr' => Utils::defaultString($runtime->localAddr, $this->_localAddr), + 'httpProxy' => Utils::defaultString($runtime->httpProxy, $this->_httpProxy), + 'httpsProxy' => Utils::defaultString($runtime->httpsProxy, $this->_httpsProxy), + 'noProxy' => Utils::defaultString($runtime->noProxy, $this->_noProxy), + 'socks5Proxy' => Utils::defaultString($runtime->socks5Proxy, $this->_socks5Proxy), + 'socks5NetWork' => Utils::defaultString($runtime->socks5NetWork, $this->_socks5NetWork), + 'maxIdleConns' => Utils::defaultNumber($runtime->maxIdleConns, $this->_maxIdleConns), + 'retry' => [ + 'retryable' => $runtime->autoretry, + 'maxAttempts' => Utils::defaultNumber($runtime->maxAttempts, 3), + ], + 'backoff' => [ + 'policy' => Utils::defaultString($runtime->backoffPolicy, 'no'), + 'period' => Utils::defaultNumber($runtime->backoffPeriod, 1), + ], + 'ignoreSSL' => $runtime->ignoreSSL, + ]; + $_lastRequest = null; + $_lastException = null; + $_now = time(); + $_retryTimes = 0; + while (Tea::allowRetry(@$_runtime['retry'], $_retryTimes, $_now)) { + if ($_retryTimes > 0) { + $_backoffTime = Tea::getBackoffTime(@$_runtime['backoff'], $_retryTimes); + if ($_backoffTime > 0) { + Tea::sleep($_backoffTime); + } + } + $_retryTimes = $_retryTimes + 1; + + try { + $_request = new Request(); + $accessKeyId = $this->_credential->getAccessKeyId(); + $accessKeySecret = $this->_credential->getAccessKeySecret(); + $token = $this->_credential->getSecurityToken(); + $_request->protocol = $this->_protocol; + $_request->method = 'GET'; + $_request->pathname = '/'; + $_request->headers = [ + 'host' => OSSUtils::getHost('', $this->_regionId, $this->_endpoint, $this->_hostModel), + 'date' => Utils::getDateUTCString(), + 'user-agent' => $this->getUserAgent(), + ]; + if (!Utils::empty_($token)) { + $_request->headers['x-oss-security-token'] = $token; + } + $_request->query = Utils::stringifyMapValue(Tea::merge($request->filter)); + $_request->headers['authorization'] = OSSUtils::getSignature($_request, '', $accessKeyId, $accessKeySecret, $this->_signatureVersion, $this->_addtionalHeaders); + $_lastRequest = $_request; + $_response = Tea::send($_request, $_runtime); + $respMap = null; + $bodyStr = null; + if (Utils::is4xx($_response->statusCode) || Utils::is5xx($_response->statusCode)) { + $bodyStr = Utils::readAsString($_response->body); + $respMap = OSSUtils::getErrMessage($bodyStr); + + throw new TeaError([ + 'code' => @$respMap['Code'], + 'message' => @$respMap['Message'], + 'data' => [ + 'httpCode' => $_response->statusCode, + 'requestId' => @$respMap['RequestId'], + 'hostId' => @$respMap['HostId'], + ], + ]); + } + $bodyStr = Utils::readAsString($_response->body); + $respMap = XML::parseXml($bodyStr, GetServiceResponse::class); + + return GetServiceResponse::fromMap(Tea::merge([ + 'ListAllMyBucketsResult' => @$respMap['ListAllMyBucketsResult'], + ], $_response->headers)); + } catch (Exception $e) { + if (!($e instanceof TeaError)) { + $e = new TeaError([], $e->getMessage(), $e->getCode(), $e); + } + if (Tea::isRetryable($e)) { + $_lastException = $e; + + continue; + } + + throw $e; + } + } + + throw new TeaUnableRetryError($_lastRequest, $_lastException); + } + + /** + * @param DeleteBucketEncryptionRequest $request + * @param RuntimeOptions $runtime + * + * @throws TeaError + * @throws Exception + * @throws TeaUnableRetryError + * + * @return DeleteBucketEncryptionResponse + */ + public function deleteBucketEncryption($request, $runtime) + { + $request->validate(); + $runtime->validate(); + $_runtime = [ + 'timeouted' => 'retry', + 'readTimeout' => Utils::defaultNumber($runtime->readTimeout, $this->_readTimeout), + 'connectTimeout' => Utils::defaultNumber($runtime->connectTimeout, $this->_connectTimeout), + 'localAddr' => Utils::defaultString($runtime->localAddr, $this->_localAddr), + 'httpProxy' => Utils::defaultString($runtime->httpProxy, $this->_httpProxy), + 'httpsProxy' => Utils::defaultString($runtime->httpsProxy, $this->_httpsProxy), + 'noProxy' => Utils::defaultString($runtime->noProxy, $this->_noProxy), + 'socks5Proxy' => Utils::defaultString($runtime->socks5Proxy, $this->_socks5Proxy), + 'socks5NetWork' => Utils::defaultString($runtime->socks5NetWork, $this->_socks5NetWork), + 'maxIdleConns' => Utils::defaultNumber($runtime->maxIdleConns, $this->_maxIdleConns), + 'retry' => [ + 'retryable' => $runtime->autoretry, + 'maxAttempts' => Utils::defaultNumber($runtime->maxAttempts, 3), + ], + 'backoff' => [ + 'policy' => Utils::defaultString($runtime->backoffPolicy, 'no'), + 'period' => Utils::defaultNumber($runtime->backoffPeriod, 1), + ], + 'ignoreSSL' => $runtime->ignoreSSL, + ]; + $_lastRequest = null; + $_lastException = null; + $_now = time(); + $_retryTimes = 0; + while (Tea::allowRetry(@$_runtime['retry'], $_retryTimes, $_now)) { + if ($_retryTimes > 0) { + $_backoffTime = Tea::getBackoffTime(@$_runtime['backoff'], $_retryTimes); + if ($_backoffTime > 0) { + Tea::sleep($_backoffTime); + } + } + $_retryTimes = $_retryTimes + 1; + + try { + $_request = new Request(); + $accessKeyId = $this->_credential->getAccessKeyId(); + $accessKeySecret = $this->_credential->getAccessKeySecret(); + $token = $this->_credential->getSecurityToken(); + $_request->protocol = $this->_protocol; + $_request->method = 'DELETE'; + $_request->pathname = '/?encryption'; + $_request->headers = [ + 'host' => OSSUtils::getHost($request->bucketName, $this->_regionId, $this->_endpoint, $this->_hostModel), + 'date' => Utils::getDateUTCString(), + 'user-agent' => $this->getUserAgent(), + ]; + if (!Utils::empty_($token)) { + $_request->headers['x-oss-security-token'] = $token; + } + $_request->headers['authorization'] = OSSUtils::getSignature($_request, $request->bucketName, $accessKeyId, $accessKeySecret, $this->_signatureVersion, $this->_addtionalHeaders); + $_lastRequest = $_request; + $_response = Tea::send($_request, $_runtime); + $respMap = null; + $bodyStr = null; + if (Utils::is4xx($_response->statusCode) || Utils::is5xx($_response->statusCode)) { + $bodyStr = Utils::readAsString($_response->body); + $respMap = OSSUtils::getErrMessage($bodyStr); + + throw new TeaError([ + 'code' => @$respMap['Code'], + 'message' => @$respMap['Message'], + 'data' => [ + 'httpCode' => $_response->statusCode, + 'requestId' => @$respMap['RequestId'], + 'hostId' => @$respMap['HostId'], + ], + ]); + } + + return DeleteBucketEncryptionResponse::fromMap(Tea::merge($_response->headers)); + } catch (Exception $e) { + if (!($e instanceof TeaError)) { + $e = new TeaError([], $e->getMessage(), $e->getCode(), $e); + } + if (Tea::isRetryable($e)) { + $_lastException = $e; + + continue; + } + + throw $e; + } + } + + throw new TeaUnableRetryError($_lastRequest, $_lastException); + } + + /** + * @param DeleteBucketTagsRequest $request + * @param RuntimeOptions $runtime + * + * @throws TeaError + * @throws Exception + * @throws TeaUnableRetryError + * + * @return DeleteBucketTagsResponse + */ + public function deleteBucketTags($request, $runtime) + { + $request->validate(); + $runtime->validate(); + $_runtime = [ + 'timeouted' => 'retry', + 'readTimeout' => Utils::defaultNumber($runtime->readTimeout, $this->_readTimeout), + 'connectTimeout' => Utils::defaultNumber($runtime->connectTimeout, $this->_connectTimeout), + 'localAddr' => Utils::defaultString($runtime->localAddr, $this->_localAddr), + 'httpProxy' => Utils::defaultString($runtime->httpProxy, $this->_httpProxy), + 'httpsProxy' => Utils::defaultString($runtime->httpsProxy, $this->_httpsProxy), + 'noProxy' => Utils::defaultString($runtime->noProxy, $this->_noProxy), + 'socks5Proxy' => Utils::defaultString($runtime->socks5Proxy, $this->_socks5Proxy), + 'socks5NetWork' => Utils::defaultString($runtime->socks5NetWork, $this->_socks5NetWork), + 'maxIdleConns' => Utils::defaultNumber($runtime->maxIdleConns, $this->_maxIdleConns), + 'retry' => [ + 'retryable' => $runtime->autoretry, + 'maxAttempts' => Utils::defaultNumber($runtime->maxAttempts, 3), + ], + 'backoff' => [ + 'policy' => Utils::defaultString($runtime->backoffPolicy, 'no'), + 'period' => Utils::defaultNumber($runtime->backoffPeriod, 1), + ], + 'ignoreSSL' => $runtime->ignoreSSL, + ]; + $_lastRequest = null; + $_lastException = null; + $_now = time(); + $_retryTimes = 0; + while (Tea::allowRetry(@$_runtime['retry'], $_retryTimes, $_now)) { + if ($_retryTimes > 0) { + $_backoffTime = Tea::getBackoffTime(@$_runtime['backoff'], $_retryTimes); + if ($_backoffTime > 0) { + Tea::sleep($_backoffTime); + } + } + $_retryTimes = $_retryTimes + 1; + + try { + $_request = new Request(); + $accessKeyId = $this->_credential->getAccessKeyId(); + $accessKeySecret = $this->_credential->getAccessKeySecret(); + $token = $this->_credential->getSecurityToken(); + $_request->protocol = $this->_protocol; + $_request->method = 'DELETE'; + $_request->pathname = '/'; + $_request->headers = [ + 'host' => OSSUtils::getHost($request->bucketName, $this->_regionId, $this->_endpoint, $this->_hostModel), + 'date' => Utils::getDateUTCString(), + 'user-agent' => $this->getUserAgent(), + ]; + if (!Utils::empty_($token)) { + $_request->headers['x-oss-security-token'] = $token; + } + $_request->query = Utils::stringifyMapValue(Tea::merge($request->filter)); + $_request->headers['authorization'] = OSSUtils::getSignature($_request, $request->bucketName, $accessKeyId, $accessKeySecret, $this->_signatureVersion, $this->_addtionalHeaders); + $_lastRequest = $_request; + $_response = Tea::send($_request, $_runtime); + $respMap = null; + $bodyStr = null; + if (Utils::is4xx($_response->statusCode) || Utils::is5xx($_response->statusCode)) { + $bodyStr = Utils::readAsString($_response->body); + $respMap = OSSUtils::getErrMessage($bodyStr); + + throw new TeaError([ + 'code' => @$respMap['Code'], + 'message' => @$respMap['Message'], + 'data' => [ + 'httpCode' => $_response->statusCode, + 'requestId' => @$respMap['RequestId'], + 'hostId' => @$respMap['HostId'], + ], + ]); + } + + return DeleteBucketTagsResponse::fromMap(Tea::merge($_response->headers)); + } catch (Exception $e) { + if (!($e instanceof TeaError)) { + $e = new TeaError([], $e->getMessage(), $e->getCode(), $e); + } + if (Tea::isRetryable($e)) { + $_lastException = $e; + + continue; + } + + throw $e; + } + } + + throw new TeaUnableRetryError($_lastRequest, $_lastException); + } + + /** + * @param GetBucketWebsiteRequest $request + * @param RuntimeOptions $runtime + * + * @throws TeaError + * @throws Exception + * @throws TeaUnableRetryError + * + * @return GetBucketWebsiteResponse + */ + public function getBucketWebsite($request, $runtime) + { + $request->validate(); + $runtime->validate(); + $_runtime = [ + 'timeouted' => 'retry', + 'readTimeout' => Utils::defaultNumber($runtime->readTimeout, $this->_readTimeout), + 'connectTimeout' => Utils::defaultNumber($runtime->connectTimeout, $this->_connectTimeout), + 'localAddr' => Utils::defaultString($runtime->localAddr, $this->_localAddr), + 'httpProxy' => Utils::defaultString($runtime->httpProxy, $this->_httpProxy), + 'httpsProxy' => Utils::defaultString($runtime->httpsProxy, $this->_httpsProxy), + 'noProxy' => Utils::defaultString($runtime->noProxy, $this->_noProxy), + 'socks5Proxy' => Utils::defaultString($runtime->socks5Proxy, $this->_socks5Proxy), + 'socks5NetWork' => Utils::defaultString($runtime->socks5NetWork, $this->_socks5NetWork), + 'maxIdleConns' => Utils::defaultNumber($runtime->maxIdleConns, $this->_maxIdleConns), + 'retry' => [ + 'retryable' => $runtime->autoretry, + 'maxAttempts' => Utils::defaultNumber($runtime->maxAttempts, 3), + ], + 'backoff' => [ + 'policy' => Utils::defaultString($runtime->backoffPolicy, 'no'), + 'period' => Utils::defaultNumber($runtime->backoffPeriod, 1), + ], + 'ignoreSSL' => $runtime->ignoreSSL, + ]; + $_lastRequest = null; + $_lastException = null; + $_now = time(); + $_retryTimes = 0; + while (Tea::allowRetry(@$_runtime['retry'], $_retryTimes, $_now)) { + if ($_retryTimes > 0) { + $_backoffTime = Tea::getBackoffTime(@$_runtime['backoff'], $_retryTimes); + if ($_backoffTime > 0) { + Tea::sleep($_backoffTime); + } + } + $_retryTimes = $_retryTimes + 1; + + try { + $_request = new Request(); + $accessKeyId = $this->_credential->getAccessKeyId(); + $accessKeySecret = $this->_credential->getAccessKeySecret(); + $token = $this->_credential->getSecurityToken(); + $_request->protocol = $this->_protocol; + $_request->method = 'GET'; + $_request->pathname = '/?website'; + $_request->headers = [ + 'host' => OSSUtils::getHost($request->bucketName, $this->_regionId, $this->_endpoint, $this->_hostModel), + 'date' => Utils::getDateUTCString(), + 'user-agent' => $this->getUserAgent(), + ]; + if (!Utils::empty_($token)) { + $_request->headers['x-oss-security-token'] = $token; + } + $_request->headers['authorization'] = OSSUtils::getSignature($_request, $request->bucketName, $accessKeyId, $accessKeySecret, $this->_signatureVersion, $this->_addtionalHeaders); + $_lastRequest = $_request; + $_response = Tea::send($_request, $_runtime); + $respMap = null; + $bodyStr = null; + if (Utils::is4xx($_response->statusCode) || Utils::is5xx($_response->statusCode)) { + $bodyStr = Utils::readAsString($_response->body); + $respMap = OSSUtils::getErrMessage($bodyStr); + + throw new TeaError([ + 'code' => @$respMap['Code'], + 'message' => @$respMap['Message'], + 'data' => [ + 'httpCode' => $_response->statusCode, + 'requestId' => @$respMap['RequestId'], + 'hostId' => @$respMap['HostId'], + ], + ]); + } + $bodyStr = Utils::readAsString($_response->body); + $respMap = XML::parseXml($bodyStr, GetBucketWebsiteResponse::class); + + return GetBucketWebsiteResponse::fromMap(Tea::merge([ + 'WebsiteConfiguration' => @$respMap['WebsiteConfiguration'], + ], $_response->headers)); + } catch (Exception $e) { + if (!($e instanceof TeaError)) { + $e = new TeaError([], $e->getMessage(), $e->getCode(), $e); + } + if (Tea::isRetryable($e)) { + $_lastException = $e; + + continue; + } + + throw $e; + } + } + + throw new TeaUnableRetryError($_lastRequest, $_lastException); + } + + /** + * @param DeleteLiveChannelRequest $request + * @param RuntimeOptions $runtime + * + * @throws TeaError + * @throws Exception + * @throws TeaUnableRetryError + * + * @return DeleteLiveChannelResponse + */ + public function deleteLiveChannel($request, $runtime) + { + $request->validate(); + $runtime->validate(); + $_runtime = [ + 'timeouted' => 'retry', + 'readTimeout' => Utils::defaultNumber($runtime->readTimeout, $this->_readTimeout), + 'connectTimeout' => Utils::defaultNumber($runtime->connectTimeout, $this->_connectTimeout), + 'localAddr' => Utils::defaultString($runtime->localAddr, $this->_localAddr), + 'httpProxy' => Utils::defaultString($runtime->httpProxy, $this->_httpProxy), + 'httpsProxy' => Utils::defaultString($runtime->httpsProxy, $this->_httpsProxy), + 'noProxy' => Utils::defaultString($runtime->noProxy, $this->_noProxy), + 'socks5Proxy' => Utils::defaultString($runtime->socks5Proxy, $this->_socks5Proxy), + 'socks5NetWork' => Utils::defaultString($runtime->socks5NetWork, $this->_socks5NetWork), + 'maxIdleConns' => Utils::defaultNumber($runtime->maxIdleConns, $this->_maxIdleConns), + 'retry' => [ + 'retryable' => $runtime->autoretry, + 'maxAttempts' => Utils::defaultNumber($runtime->maxAttempts, 3), + ], + 'backoff' => [ + 'policy' => Utils::defaultString($runtime->backoffPolicy, 'no'), + 'period' => Utils::defaultNumber($runtime->backoffPeriod, 1), + ], + 'ignoreSSL' => $runtime->ignoreSSL, + ]; + $_lastRequest = null; + $_lastException = null; + $_now = time(); + $_retryTimes = 0; + while (Tea::allowRetry(@$_runtime['retry'], $_retryTimes, $_now)) { + if ($_retryTimes > 0) { + $_backoffTime = Tea::getBackoffTime(@$_runtime['backoff'], $_retryTimes); + if ($_backoffTime > 0) { + Tea::sleep($_backoffTime); + } + } + $_retryTimes = $_retryTimes + 1; + + try { + $_request = new Request(); + $accessKeyId = $this->_credential->getAccessKeyId(); + $accessKeySecret = $this->_credential->getAccessKeySecret(); + $token = $this->_credential->getSecurityToken(); + $_request->protocol = $this->_protocol; + $_request->method = 'DELETE'; + $_request->pathname = '/' . $request->channelName . '?live'; + $_request->headers = [ + 'host' => OSSUtils::getHost($request->bucketName, $this->_regionId, $this->_endpoint, $this->_hostModel), + 'date' => Utils::getDateUTCString(), + 'user-agent' => $this->getUserAgent(), + ]; + if (!Utils::empty_($token)) { + $_request->headers['x-oss-security-token'] = $token; + } + $_request->headers['authorization'] = OSSUtils::getSignature($_request, $request->bucketName, $accessKeyId, $accessKeySecret, $this->_signatureVersion, $this->_addtionalHeaders); + $_lastRequest = $_request; + $_response = Tea::send($_request, $_runtime); + $respMap = null; + $bodyStr = null; + if (Utils::is4xx($_response->statusCode) || Utils::is5xx($_response->statusCode)) { + $bodyStr = Utils::readAsString($_response->body); + $respMap = OSSUtils::getErrMessage($bodyStr); + + throw new TeaError([ + 'code' => @$respMap['Code'], + 'message' => @$respMap['Message'], + 'data' => [ + 'httpCode' => $_response->statusCode, + 'requestId' => @$respMap['RequestId'], + 'hostId' => @$respMap['HostId'], + ], + ]); + } + + return DeleteLiveChannelResponse::fromMap(Tea::merge($_response->headers)); + } catch (Exception $e) { + if (!($e instanceof TeaError)) { + $e = new TeaError([], $e->getMessage(), $e->getCode(), $e); + } + if (Tea::isRetryable($e)) { + $_lastException = $e; + + continue; + } + + throw $e; + } + } + + throw new TeaUnableRetryError($_lastRequest, $_lastException); + } + + /** + * @param GetBucketLocationRequest $request + * @param RuntimeOptions $runtime + * + * @throws TeaError + * @throws Exception + * @throws TeaUnableRetryError + * + * @return GetBucketLocationResponse + */ + public function getBucketLocation($request, $runtime) + { + $request->validate(); + $runtime->validate(); + $_runtime = [ + 'timeouted' => 'retry', + 'readTimeout' => Utils::defaultNumber($runtime->readTimeout, $this->_readTimeout), + 'connectTimeout' => Utils::defaultNumber($runtime->connectTimeout, $this->_connectTimeout), + 'localAddr' => Utils::defaultString($runtime->localAddr, $this->_localAddr), + 'httpProxy' => Utils::defaultString($runtime->httpProxy, $this->_httpProxy), + 'httpsProxy' => Utils::defaultString($runtime->httpsProxy, $this->_httpsProxy), + 'noProxy' => Utils::defaultString($runtime->noProxy, $this->_noProxy), + 'socks5Proxy' => Utils::defaultString($runtime->socks5Proxy, $this->_socks5Proxy), + 'socks5NetWork' => Utils::defaultString($runtime->socks5NetWork, $this->_socks5NetWork), + 'maxIdleConns' => Utils::defaultNumber($runtime->maxIdleConns, $this->_maxIdleConns), + 'retry' => [ + 'retryable' => $runtime->autoretry, + 'maxAttempts' => Utils::defaultNumber($runtime->maxAttempts, 3), + ], + 'backoff' => [ + 'policy' => Utils::defaultString($runtime->backoffPolicy, 'no'), + 'period' => Utils::defaultNumber($runtime->backoffPeriod, 1), + ], + 'ignoreSSL' => $runtime->ignoreSSL, + ]; + $_lastRequest = null; + $_lastException = null; + $_now = time(); + $_retryTimes = 0; + while (Tea::allowRetry(@$_runtime['retry'], $_retryTimes, $_now)) { + if ($_retryTimes > 0) { + $_backoffTime = Tea::getBackoffTime(@$_runtime['backoff'], $_retryTimes); + if ($_backoffTime > 0) { + Tea::sleep($_backoffTime); + } + } + $_retryTimes = $_retryTimes + 1; + + try { + $_request = new Request(); + $accessKeyId = $this->_credential->getAccessKeyId(); + $accessKeySecret = $this->_credential->getAccessKeySecret(); + $token = $this->_credential->getSecurityToken(); + $_request->protocol = $this->_protocol; + $_request->method = 'GET'; + $_request->pathname = '/?location'; + $_request->headers = [ + 'host' => OSSUtils::getHost($request->bucketName, $this->_regionId, $this->_endpoint, $this->_hostModel), + 'date' => Utils::getDateUTCString(), + 'user-agent' => $this->getUserAgent(), + ]; + if (!Utils::empty_($token)) { + $_request->headers['x-oss-security-token'] = $token; + } + $_request->headers['authorization'] = OSSUtils::getSignature($_request, $request->bucketName, $accessKeyId, $accessKeySecret, $this->_signatureVersion, $this->_addtionalHeaders); + $_lastRequest = $_request; + $_response = Tea::send($_request, $_runtime); + $respMap = null; + $bodyStr = null; + if (Utils::is4xx($_response->statusCode) || Utils::is5xx($_response->statusCode)) { + $bodyStr = Utils::readAsString($_response->body); + $respMap = OSSUtils::getErrMessage($bodyStr); + + throw new TeaError([ + 'code' => @$respMap['Code'], + 'message' => @$respMap['Message'], + 'data' => [ + 'httpCode' => $_response->statusCode, + 'requestId' => @$respMap['RequestId'], + 'hostId' => @$respMap['HostId'], + ], + ]); + } + $bodyStr = Utils::readAsString($_response->body); + $respMap = XML::parseXml($bodyStr, GetBucketLocationResponse::class); + + return GetBucketLocationResponse::fromMap(Tea::merge([ + 'LocationConstraint' => @$respMap['LocationConstraint'], + ], $_response->headers)); + } catch (Exception $e) { + if (!($e instanceof TeaError)) { + $e = new TeaError([], $e->getMessage(), $e->getCode(), $e); + } + if (Tea::isRetryable($e)) { + $_lastException = $e; + + continue; + } + + throw $e; + } + } + + throw new TeaUnableRetryError($_lastRequest, $_lastException); + } + + /** + * @param ListLiveChannelRequest $request + * @param RuntimeOptions $runtime + * + * @throws TeaError + * @throws Exception + * @throws TeaUnableRetryError + * + * @return ListLiveChannelResponse + */ + public function listLiveChannel($request, $runtime) + { + $request->validate(); + $runtime->validate(); + $_runtime = [ + 'timeouted' => 'retry', + 'readTimeout' => Utils::defaultNumber($runtime->readTimeout, $this->_readTimeout), + 'connectTimeout' => Utils::defaultNumber($runtime->connectTimeout, $this->_connectTimeout), + 'localAddr' => Utils::defaultString($runtime->localAddr, $this->_localAddr), + 'httpProxy' => Utils::defaultString($runtime->httpProxy, $this->_httpProxy), + 'httpsProxy' => Utils::defaultString($runtime->httpsProxy, $this->_httpsProxy), + 'noProxy' => Utils::defaultString($runtime->noProxy, $this->_noProxy), + 'socks5Proxy' => Utils::defaultString($runtime->socks5Proxy, $this->_socks5Proxy), + 'socks5NetWork' => Utils::defaultString($runtime->socks5NetWork, $this->_socks5NetWork), + 'maxIdleConns' => Utils::defaultNumber($runtime->maxIdleConns, $this->_maxIdleConns), + 'retry' => [ + 'retryable' => $runtime->autoretry, + 'maxAttempts' => Utils::defaultNumber($runtime->maxAttempts, 3), + ], + 'backoff' => [ + 'policy' => Utils::defaultString($runtime->backoffPolicy, 'no'), + 'period' => Utils::defaultNumber($runtime->backoffPeriod, 1), + ], + 'ignoreSSL' => $runtime->ignoreSSL, + ]; + $_lastRequest = null; + $_lastException = null; + $_now = time(); + $_retryTimes = 0; + while (Tea::allowRetry(@$_runtime['retry'], $_retryTimes, $_now)) { + if ($_retryTimes > 0) { + $_backoffTime = Tea::getBackoffTime(@$_runtime['backoff'], $_retryTimes); + if ($_backoffTime > 0) { + Tea::sleep($_backoffTime); + } + } + $_retryTimes = $_retryTimes + 1; + + try { + $_request = new Request(); + $accessKeyId = $this->_credential->getAccessKeyId(); + $accessKeySecret = $this->_credential->getAccessKeySecret(); + $token = $this->_credential->getSecurityToken(); + $_request->protocol = $this->_protocol; + $_request->method = 'GET'; + $_request->pathname = '/?live'; + $_request->headers = [ + 'host' => OSSUtils::getHost($request->bucketName, $this->_regionId, $this->_endpoint, $this->_hostModel), + 'date' => Utils::getDateUTCString(), + 'user-agent' => $this->getUserAgent(), + ]; + if (!Utils::empty_($token)) { + $_request->headers['x-oss-security-token'] = $token; + } + $_request->query = Utils::stringifyMapValue(Tea::merge($request->filter)); + $_request->headers['authorization'] = OSSUtils::getSignature($_request, $request->bucketName, $accessKeyId, $accessKeySecret, $this->_signatureVersion, $this->_addtionalHeaders); + $_lastRequest = $_request; + $_response = Tea::send($_request, $_runtime); + $respMap = null; + $bodyStr = null; + if (Utils::is4xx($_response->statusCode) || Utils::is5xx($_response->statusCode)) { + $bodyStr = Utils::readAsString($_response->body); + $respMap = OSSUtils::getErrMessage($bodyStr); + + throw new TeaError([ + 'code' => @$respMap['Code'], + 'message' => @$respMap['Message'], + 'data' => [ + 'httpCode' => $_response->statusCode, + 'requestId' => @$respMap['RequestId'], + 'hostId' => @$respMap['HostId'], + ], + ]); + } + $bodyStr = Utils::readAsString($_response->body); + $respMap = XML::parseXml($bodyStr, ListLiveChannelResponse::class); + + return ListLiveChannelResponse::fromMap(Tea::merge([ + 'ListLiveChannelResult' => @$respMap['ListLiveChannelResult'], + ], $_response->headers)); + } catch (Exception $e) { + if (!($e instanceof TeaError)) { + $e = new TeaError([], $e->getMessage(), $e->getCode(), $e); + } + if (Tea::isRetryable($e)) { + $_lastException = $e; + + continue; + } + + throw $e; + } + } + + throw new TeaUnableRetryError($_lastRequest, $_lastException); + } + + /** + * @param GetObjectMetaRequest $request + * @param RuntimeOptions $runtime + * + * @throws TeaError + * @throws Exception + * @throws TeaUnableRetryError + * + * @return GetObjectMetaResponse + */ + public function getObjectMeta($request, $runtime) + { + $request->validate(); + $runtime->validate(); + $_runtime = [ + 'timeouted' => 'retry', + 'readTimeout' => Utils::defaultNumber($runtime->readTimeout, $this->_readTimeout), + 'connectTimeout' => Utils::defaultNumber($runtime->connectTimeout, $this->_connectTimeout), + 'localAddr' => Utils::defaultString($runtime->localAddr, $this->_localAddr), + 'httpProxy' => Utils::defaultString($runtime->httpProxy, $this->_httpProxy), + 'httpsProxy' => Utils::defaultString($runtime->httpsProxy, $this->_httpsProxy), + 'noProxy' => Utils::defaultString($runtime->noProxy, $this->_noProxy), + 'socks5Proxy' => Utils::defaultString($runtime->socks5Proxy, $this->_socks5Proxy), + 'socks5NetWork' => Utils::defaultString($runtime->socks5NetWork, $this->_socks5NetWork), + 'maxIdleConns' => Utils::defaultNumber($runtime->maxIdleConns, $this->_maxIdleConns), + 'retry' => [ + 'retryable' => $runtime->autoretry, + 'maxAttempts' => Utils::defaultNumber($runtime->maxAttempts, 3), + ], + 'backoff' => [ + 'policy' => Utils::defaultString($runtime->backoffPolicy, 'no'), + 'period' => Utils::defaultNumber($runtime->backoffPeriod, 1), + ], + 'ignoreSSL' => $runtime->ignoreSSL, + ]; + $_lastRequest = null; + $_lastException = null; + $_now = time(); + $_retryTimes = 0; + while (Tea::allowRetry(@$_runtime['retry'], $_retryTimes, $_now)) { + if ($_retryTimes > 0) { + $_backoffTime = Tea::getBackoffTime(@$_runtime['backoff'], $_retryTimes); + if ($_backoffTime > 0) { + Tea::sleep($_backoffTime); + } + } + $_retryTimes = $_retryTimes + 1; + + try { + $_request = new Request(); + $accessKeyId = $this->_credential->getAccessKeyId(); + $accessKeySecret = $this->_credential->getAccessKeySecret(); + $token = $this->_credential->getSecurityToken(); + $_request->protocol = $this->_protocol; + $_request->method = 'HEAD'; + $_request->pathname = '/' . $request->objectName . '?objectMeta'; + $_request->headers = [ + 'host' => OSSUtils::getHost($request->bucketName, $this->_regionId, $this->_endpoint, $this->_hostModel), + 'date' => Utils::getDateUTCString(), + 'user-agent' => $this->getUserAgent(), + ]; + if (!Utils::empty_($token)) { + $_request->headers['x-oss-security-token'] = $token; + } + $_request->headers['authorization'] = OSSUtils::getSignature($_request, $request->bucketName, $accessKeyId, $accessKeySecret, $this->_signatureVersion, $this->_addtionalHeaders); + $_lastRequest = $_request; + $_response = Tea::send($_request, $_runtime); + $respMap = null; + $bodyStr = null; + if (Utils::is4xx($_response->statusCode) || Utils::is5xx($_response->statusCode)) { + $bodyStr = Utils::readAsString($_response->body); + $respMap = OSSUtils::getErrMessage($bodyStr); + + throw new TeaError([ + 'code' => @$respMap['Code'], + 'message' => @$respMap['Message'], + 'data' => [ + 'httpCode' => $_response->statusCode, + 'requestId' => @$respMap['RequestId'], + 'hostId' => @$respMap['HostId'], + ], + ]); + } + + return GetObjectMetaResponse::fromMap(Tea::merge($_response->headers)); + } catch (Exception $e) { + if (!($e instanceof TeaError)) { + $e = new TeaError([], $e->getMessage(), $e->getCode(), $e); + } + if (Tea::isRetryable($e)) { + $_lastException = $e; + + continue; + } + + throw $e; + } + } + + throw new TeaUnableRetryError($_lastRequest, $_lastException); + } + + /** + * @param GetBucketAclRequest $request + * @param RuntimeOptions $runtime + * + * @throws TeaError + * @throws Exception + * @throws TeaUnableRetryError + * + * @return GetBucketAclResponse + */ + public function getBucketAcl($request, $runtime) + { + $request->validate(); + $runtime->validate(); + $_runtime = [ + 'timeouted' => 'retry', + 'readTimeout' => Utils::defaultNumber($runtime->readTimeout, $this->_readTimeout), + 'connectTimeout' => Utils::defaultNumber($runtime->connectTimeout, $this->_connectTimeout), + 'localAddr' => Utils::defaultString($runtime->localAddr, $this->_localAddr), + 'httpProxy' => Utils::defaultString($runtime->httpProxy, $this->_httpProxy), + 'httpsProxy' => Utils::defaultString($runtime->httpsProxy, $this->_httpsProxy), + 'noProxy' => Utils::defaultString($runtime->noProxy, $this->_noProxy), + 'socks5Proxy' => Utils::defaultString($runtime->socks5Proxy, $this->_socks5Proxy), + 'socks5NetWork' => Utils::defaultString($runtime->socks5NetWork, $this->_socks5NetWork), + 'maxIdleConns' => Utils::defaultNumber($runtime->maxIdleConns, $this->_maxIdleConns), + 'retry' => [ + 'retryable' => $runtime->autoretry, + 'maxAttempts' => Utils::defaultNumber($runtime->maxAttempts, 3), + ], + 'backoff' => [ + 'policy' => Utils::defaultString($runtime->backoffPolicy, 'no'), + 'period' => Utils::defaultNumber($runtime->backoffPeriod, 1), + ], + 'ignoreSSL' => $runtime->ignoreSSL, + ]; + $_lastRequest = null; + $_lastException = null; + $_now = time(); + $_retryTimes = 0; + while (Tea::allowRetry(@$_runtime['retry'], $_retryTimes, $_now)) { + if ($_retryTimes > 0) { + $_backoffTime = Tea::getBackoffTime(@$_runtime['backoff'], $_retryTimes); + if ($_backoffTime > 0) { + Tea::sleep($_backoffTime); + } + } + $_retryTimes = $_retryTimes + 1; + + try { + $_request = new Request(); + $accessKeyId = $this->_credential->getAccessKeyId(); + $accessKeySecret = $this->_credential->getAccessKeySecret(); + $token = $this->_credential->getSecurityToken(); + $_request->protocol = $this->_protocol; + $_request->method = 'GET'; + $_request->pathname = '/?acl'; + $_request->headers = [ + 'host' => OSSUtils::getHost($request->bucketName, $this->_regionId, $this->_endpoint, $this->_hostModel), + 'date' => Utils::getDateUTCString(), + 'user-agent' => $this->getUserAgent(), + ]; + if (!Utils::empty_($token)) { + $_request->headers['x-oss-security-token'] = $token; + } + $_request->headers['authorization'] = OSSUtils::getSignature($_request, $request->bucketName, $accessKeyId, $accessKeySecret, $this->_signatureVersion, $this->_addtionalHeaders); + $_lastRequest = $_request; + $_response = Tea::send($_request, $_runtime); + $respMap = null; + $bodyStr = null; + if (Utils::is4xx($_response->statusCode) || Utils::is5xx($_response->statusCode)) { + $bodyStr = Utils::readAsString($_response->body); + $respMap = OSSUtils::getErrMessage($bodyStr); + + throw new TeaError([ + 'code' => @$respMap['Code'], + 'message' => @$respMap['Message'], + 'data' => [ + 'httpCode' => $_response->statusCode, + 'requestId' => @$respMap['RequestId'], + 'hostId' => @$respMap['HostId'], + ], + ]); + } + $bodyStr = Utils::readAsString($_response->body); + $respMap = XML::parseXml($bodyStr, GetBucketAclResponse::class); + + return GetBucketAclResponse::fromMap(Tea::merge([ + 'AccessControlPolicy' => @$respMap['AccessControlPolicy'], + ], $_response->headers)); + } catch (Exception $e) { + if (!($e instanceof TeaError)) { + $e = new TeaError([], $e->getMessage(), $e->getCode(), $e); + } + if (Tea::isRetryable($e)) { + $_lastException = $e; + + continue; + } + + throw $e; + } + } + + throw new TeaUnableRetryError($_lastRequest, $_lastException); + } + + /** + * @param ListPartsRequest $request + * @param RuntimeOptions $runtime + * + * @throws TeaError + * @throws Exception + * @throws TeaUnableRetryError + * + * @return ListPartsResponse + */ + public function listParts($request, $runtime) + { + $request->validate(); + $runtime->validate(); + $_runtime = [ + 'timeouted' => 'retry', + 'readTimeout' => Utils::defaultNumber($runtime->readTimeout, $this->_readTimeout), + 'connectTimeout' => Utils::defaultNumber($runtime->connectTimeout, $this->_connectTimeout), + 'localAddr' => Utils::defaultString($runtime->localAddr, $this->_localAddr), + 'httpProxy' => Utils::defaultString($runtime->httpProxy, $this->_httpProxy), + 'httpsProxy' => Utils::defaultString($runtime->httpsProxy, $this->_httpsProxy), + 'noProxy' => Utils::defaultString($runtime->noProxy, $this->_noProxy), + 'socks5Proxy' => Utils::defaultString($runtime->socks5Proxy, $this->_socks5Proxy), + 'socks5NetWork' => Utils::defaultString($runtime->socks5NetWork, $this->_socks5NetWork), + 'maxIdleConns' => Utils::defaultNumber($runtime->maxIdleConns, $this->_maxIdleConns), + 'retry' => [ + 'retryable' => $runtime->autoretry, + 'maxAttempts' => Utils::defaultNumber($runtime->maxAttempts, 3), + ], + 'backoff' => [ + 'policy' => Utils::defaultString($runtime->backoffPolicy, 'no'), + 'period' => Utils::defaultNumber($runtime->backoffPeriod, 1), + ], + 'ignoreSSL' => $runtime->ignoreSSL, + ]; + $_lastRequest = null; + $_lastException = null; + $_now = time(); + $_retryTimes = 0; + while (Tea::allowRetry(@$_runtime['retry'], $_retryTimes, $_now)) { + if ($_retryTimes > 0) { + $_backoffTime = Tea::getBackoffTime(@$_runtime['backoff'], $_retryTimes); + if ($_backoffTime > 0) { + Tea::sleep($_backoffTime); + } + } + $_retryTimes = $_retryTimes + 1; + + try { + $_request = new Request(); + $accessKeyId = $this->_credential->getAccessKeyId(); + $accessKeySecret = $this->_credential->getAccessKeySecret(); + $token = $this->_credential->getSecurityToken(); + $_request->protocol = $this->_protocol; + $_request->method = 'GET'; + $_request->pathname = '/' . $request->objectName . ''; + $_request->headers = [ + 'host' => OSSUtils::getHost($request->bucketName, $this->_regionId, $this->_endpoint, $this->_hostModel), + 'date' => Utils::getDateUTCString(), + 'user-agent' => $this->getUserAgent(), + ]; + if (!Utils::empty_($token)) { + $_request->headers['x-oss-security-token'] = $token; + } + $_request->query = Utils::stringifyMapValue(Tea::merge($request->filter)); + $_request->headers['authorization'] = OSSUtils::getSignature($_request, $request->bucketName, $accessKeyId, $accessKeySecret, $this->_signatureVersion, $this->_addtionalHeaders); + $_lastRequest = $_request; + $_response = Tea::send($_request, $_runtime); + $respMap = null; + $bodyStr = null; + if (Utils::is4xx($_response->statusCode) || Utils::is5xx($_response->statusCode)) { + $bodyStr = Utils::readAsString($_response->body); + $respMap = OSSUtils::getErrMessage($bodyStr); + + throw new TeaError([ + 'code' => @$respMap['Code'], + 'message' => @$respMap['Message'], + 'data' => [ + 'httpCode' => $_response->statusCode, + 'requestId' => @$respMap['RequestId'], + 'hostId' => @$respMap['HostId'], + ], + ]); + } + $bodyStr = Utils::readAsString($_response->body); + $respMap = XML::parseXml($bodyStr, ListPartsResponse::class); + + return ListPartsResponse::fromMap(Tea::merge([ + 'ListPartsResult' => @$respMap['ListPartsResult'], + ], $_response->headers)); + } catch (Exception $e) { + if (!($e instanceof TeaError)) { + $e = new TeaError([], $e->getMessage(), $e->getCode(), $e); + } + if (Tea::isRetryable($e)) { + $_lastException = $e; + + continue; + } + + throw $e; + } + } + + throw new TeaUnableRetryError($_lastRequest, $_lastException); + } + + /** + * @param GetLiveChannelHistoryRequest $request + * @param RuntimeOptions $runtime + * + * @throws TeaError + * @throws Exception + * @throws TeaUnableRetryError + * + * @return GetLiveChannelHistoryResponse + */ + public function getLiveChannelHistory($request, $runtime) + { + $request->validate(); + $runtime->validate(); + $_runtime = [ + 'timeouted' => 'retry', + 'readTimeout' => Utils::defaultNumber($runtime->readTimeout, $this->_readTimeout), + 'connectTimeout' => Utils::defaultNumber($runtime->connectTimeout, $this->_connectTimeout), + 'localAddr' => Utils::defaultString($runtime->localAddr, $this->_localAddr), + 'httpProxy' => Utils::defaultString($runtime->httpProxy, $this->_httpProxy), + 'httpsProxy' => Utils::defaultString($runtime->httpsProxy, $this->_httpsProxy), + 'noProxy' => Utils::defaultString($runtime->noProxy, $this->_noProxy), + 'socks5Proxy' => Utils::defaultString($runtime->socks5Proxy, $this->_socks5Proxy), + 'socks5NetWork' => Utils::defaultString($runtime->socks5NetWork, $this->_socks5NetWork), + 'maxIdleConns' => Utils::defaultNumber($runtime->maxIdleConns, $this->_maxIdleConns), + 'retry' => [ + 'retryable' => $runtime->autoretry, + 'maxAttempts' => Utils::defaultNumber($runtime->maxAttempts, 3), + ], + 'backoff' => [ + 'policy' => Utils::defaultString($runtime->backoffPolicy, 'no'), + 'period' => Utils::defaultNumber($runtime->backoffPeriod, 1), + ], + 'ignoreSSL' => $runtime->ignoreSSL, + ]; + $_lastRequest = null; + $_lastException = null; + $_now = time(); + $_retryTimes = 0; + while (Tea::allowRetry(@$_runtime['retry'], $_retryTimes, $_now)) { + if ($_retryTimes > 0) { + $_backoffTime = Tea::getBackoffTime(@$_runtime['backoff'], $_retryTimes); + if ($_backoffTime > 0) { + Tea::sleep($_backoffTime); + } + } + $_retryTimes = $_retryTimes + 1; + + try { + $_request = new Request(); + $accessKeyId = $this->_credential->getAccessKeyId(); + $accessKeySecret = $this->_credential->getAccessKeySecret(); + $token = $this->_credential->getSecurityToken(); + $_request->protocol = $this->_protocol; + $_request->method = 'GET'; + $_request->pathname = '/' . $request->channelName . '?live'; + $_request->headers = [ + 'host' => OSSUtils::getHost($request->bucketName, $this->_regionId, $this->_endpoint, $this->_hostModel), + 'date' => Utils::getDateUTCString(), + 'user-agent' => $this->getUserAgent(), + ]; + if (!Utils::empty_($token)) { + $_request->headers['x-oss-security-token'] = $token; + } + $_request->query = Utils::stringifyMapValue(Tea::merge($request->filter)); + $_request->headers['authorization'] = OSSUtils::getSignature($_request, $request->bucketName, $accessKeyId, $accessKeySecret, $this->_signatureVersion, $this->_addtionalHeaders); + $_lastRequest = $_request; + $_response = Tea::send($_request, $_runtime); + $respMap = null; + $bodyStr = null; + if (Utils::is4xx($_response->statusCode) || Utils::is5xx($_response->statusCode)) { + $bodyStr = Utils::readAsString($_response->body); + $respMap = OSSUtils::getErrMessage($bodyStr); + + throw new TeaError([ + 'code' => @$respMap['Code'], + 'message' => @$respMap['Message'], + 'data' => [ + 'httpCode' => $_response->statusCode, + 'requestId' => @$respMap['RequestId'], + 'hostId' => @$respMap['HostId'], + ], + ]); + } + $bodyStr = Utils::readAsString($_response->body); + $respMap = XML::parseXml($bodyStr, GetLiveChannelHistoryResponse::class); + + return GetLiveChannelHistoryResponse::fromMap(Tea::merge([ + 'LiveChannelHistory' => @$respMap['LiveChannelHistory'], + ], $_response->headers)); + } catch (Exception $e) { + if (!($e instanceof TeaError)) { + $e = new TeaError([], $e->getMessage(), $e->getCode(), $e); + } + if (Tea::isRetryable($e)) { + $_lastException = $e; + + continue; + } + + throw $e; + } + } + + throw new TeaUnableRetryError($_lastRequest, $_lastException); + } + + /** + * @param GetBucketRequest $request + * @param RuntimeOptions $runtime + * + * @throws TeaError + * @throws Exception + * @throws TeaUnableRetryError + * + * @return GetBucketResponse + */ + public function getBucket($request, $runtime) + { + $request->validate(); + $runtime->validate(); + $_runtime = [ + 'timeouted' => 'retry', + 'readTimeout' => Utils::defaultNumber($runtime->readTimeout, $this->_readTimeout), + 'connectTimeout' => Utils::defaultNumber($runtime->connectTimeout, $this->_connectTimeout), + 'localAddr' => Utils::defaultString($runtime->localAddr, $this->_localAddr), + 'httpProxy' => Utils::defaultString($runtime->httpProxy, $this->_httpProxy), + 'httpsProxy' => Utils::defaultString($runtime->httpsProxy, $this->_httpsProxy), + 'noProxy' => Utils::defaultString($runtime->noProxy, $this->_noProxy), + 'socks5Proxy' => Utils::defaultString($runtime->socks5Proxy, $this->_socks5Proxy), + 'socks5NetWork' => Utils::defaultString($runtime->socks5NetWork, $this->_socks5NetWork), + 'maxIdleConns' => Utils::defaultNumber($runtime->maxIdleConns, $this->_maxIdleConns), + 'retry' => [ + 'retryable' => $runtime->autoretry, + 'maxAttempts' => Utils::defaultNumber($runtime->maxAttempts, 3), + ], + 'backoff' => [ + 'policy' => Utils::defaultString($runtime->backoffPolicy, 'no'), + 'period' => Utils::defaultNumber($runtime->backoffPeriod, 1), + ], + 'ignoreSSL' => $runtime->ignoreSSL, + ]; + $_lastRequest = null; + $_lastException = null; + $_now = time(); + $_retryTimes = 0; + while (Tea::allowRetry(@$_runtime['retry'], $_retryTimes, $_now)) { + if ($_retryTimes > 0) { + $_backoffTime = Tea::getBackoffTime(@$_runtime['backoff'], $_retryTimes); + if ($_backoffTime > 0) { + Tea::sleep($_backoffTime); + } + } + $_retryTimes = $_retryTimes + 1; + + try { + $_request = new Request(); + $accessKeyId = $this->_credential->getAccessKeyId(); + $accessKeySecret = $this->_credential->getAccessKeySecret(); + $token = $this->_credential->getSecurityToken(); + $_request->protocol = $this->_protocol; + $_request->method = 'GET'; + $_request->pathname = '/'; + $_request->headers = [ + 'host' => OSSUtils::getHost($request->bucketName, $this->_regionId, $this->_endpoint, $this->_hostModel), + 'date' => Utils::getDateUTCString(), + 'user-agent' => $this->getUserAgent(), + ]; + if (!Utils::empty_($token)) { + $_request->headers['x-oss-security-token'] = $token; + } + $_request->query = Utils::stringifyMapValue(Tea::merge($request->filter)); + $_request->headers['authorization'] = OSSUtils::getSignature($_request, $request->bucketName, $accessKeyId, $accessKeySecret, $this->_signatureVersion, $this->_addtionalHeaders); + $_lastRequest = $_request; + $_response = Tea::send($_request, $_runtime); + $respMap = null; + $bodyStr = null; + if (Utils::is4xx($_response->statusCode) || Utils::is5xx($_response->statusCode)) { + $bodyStr = Utils::readAsString($_response->body); + $respMap = OSSUtils::getErrMessage($bodyStr); + + throw new TeaError([ + 'code' => @$respMap['Code'], + 'message' => @$respMap['Message'], + 'data' => [ + 'httpCode' => $_response->statusCode, + 'requestId' => @$respMap['RequestId'], + 'hostId' => @$respMap['HostId'], + ], + ]); + } + $bodyStr = Utils::readAsString($_response->body); + $respMap = XML::parseXml($bodyStr, GetBucketResponse::class); + + return GetBucketResponse::fromMap(Tea::merge([ + 'ListBucketResult' => @$respMap['ListBucketResult'], + ], $_response->headers)); + } catch (Exception $e) { + if (!($e instanceof TeaError)) { + $e = new TeaError([], $e->getMessage(), $e->getCode(), $e); + } + if (Tea::isRetryable($e)) { + $_lastException = $e; + + continue; + } + + throw $e; + } + } + + throw new TeaUnableRetryError($_lastRequest, $_lastException); + } + + /** + * @param GetLiveChannelInfoRequest $request + * @param RuntimeOptions $runtime + * + * @throws TeaError + * @throws Exception + * @throws TeaUnableRetryError + * + * @return GetLiveChannelInfoResponse + */ + public function getLiveChannelInfo($request, $runtime) + { + $request->validate(); + $runtime->validate(); + $_runtime = [ + 'timeouted' => 'retry', + 'readTimeout' => Utils::defaultNumber($runtime->readTimeout, $this->_readTimeout), + 'connectTimeout' => Utils::defaultNumber($runtime->connectTimeout, $this->_connectTimeout), + 'localAddr' => Utils::defaultString($runtime->localAddr, $this->_localAddr), + 'httpProxy' => Utils::defaultString($runtime->httpProxy, $this->_httpProxy), + 'httpsProxy' => Utils::defaultString($runtime->httpsProxy, $this->_httpsProxy), + 'noProxy' => Utils::defaultString($runtime->noProxy, $this->_noProxy), + 'socks5Proxy' => Utils::defaultString($runtime->socks5Proxy, $this->_socks5Proxy), + 'socks5NetWork' => Utils::defaultString($runtime->socks5NetWork, $this->_socks5NetWork), + 'maxIdleConns' => Utils::defaultNumber($runtime->maxIdleConns, $this->_maxIdleConns), + 'retry' => [ + 'retryable' => $runtime->autoretry, + 'maxAttempts' => Utils::defaultNumber($runtime->maxAttempts, 3), + ], + 'backoff' => [ + 'policy' => Utils::defaultString($runtime->backoffPolicy, 'no'), + 'period' => Utils::defaultNumber($runtime->backoffPeriod, 1), + ], + 'ignoreSSL' => $runtime->ignoreSSL, + ]; + $_lastRequest = null; + $_lastException = null; + $_now = time(); + $_retryTimes = 0; + while (Tea::allowRetry(@$_runtime['retry'], $_retryTimes, $_now)) { + if ($_retryTimes > 0) { + $_backoffTime = Tea::getBackoffTime(@$_runtime['backoff'], $_retryTimes); + if ($_backoffTime > 0) { + Tea::sleep($_backoffTime); + } + } + $_retryTimes = $_retryTimes + 1; + + try { + $_request = new Request(); + $accessKeyId = $this->_credential->getAccessKeyId(); + $accessKeySecret = $this->_credential->getAccessKeySecret(); + $token = $this->_credential->getSecurityToken(); + $_request->protocol = $this->_protocol; + $_request->method = 'GET'; + $_request->pathname = '/' . $request->channelName . '?live'; + $_request->headers = [ + 'host' => OSSUtils::getHost($request->bucketName, $this->_regionId, $this->_endpoint, $this->_hostModel), + 'date' => Utils::getDateUTCString(), + 'user-agent' => $this->getUserAgent(), + ]; + if (!Utils::empty_($token)) { + $_request->headers['x-oss-security-token'] = $token; + } + $_request->headers['authorization'] = OSSUtils::getSignature($_request, $request->bucketName, $accessKeyId, $accessKeySecret, $this->_signatureVersion, $this->_addtionalHeaders); + $_lastRequest = $_request; + $_response = Tea::send($_request, $_runtime); + $respMap = null; + $bodyStr = null; + if (Utils::is4xx($_response->statusCode) || Utils::is5xx($_response->statusCode)) { + $bodyStr = Utils::readAsString($_response->body); + $respMap = OSSUtils::getErrMessage($bodyStr); + + throw new TeaError([ + 'code' => @$respMap['Code'], + 'message' => @$respMap['Message'], + 'data' => [ + 'httpCode' => $_response->statusCode, + 'requestId' => @$respMap['RequestId'], + 'hostId' => @$respMap['HostId'], + ], + ]); + } + $bodyStr = Utils::readAsString($_response->body); + $respMap = XML::parseXml($bodyStr, GetLiveChannelInfoResponse::class); + + return GetLiveChannelInfoResponse::fromMap(Tea::merge([ + 'LiveChannelConfiguration' => @$respMap['LiveChannelConfiguration'], + ], $_response->headers)); + } catch (Exception $e) { + if (!($e instanceof TeaError)) { + $e = new TeaError([], $e->getMessage(), $e->getCode(), $e); + } + if (Tea::isRetryable($e)) { + $_lastException = $e; + + continue; + } + + throw $e; + } + } + + throw new TeaUnableRetryError($_lastRequest, $_lastException); + } + + /** + * @param GetLiveChannelStatRequest $request + * @param RuntimeOptions $runtime + * + * @throws TeaError + * @throws Exception + * @throws TeaUnableRetryError + * + * @return GetLiveChannelStatResponse + */ + public function getLiveChannelStat($request, $runtime) + { + $request->validate(); + $runtime->validate(); + $_runtime = [ + 'timeouted' => 'retry', + 'readTimeout' => Utils::defaultNumber($runtime->readTimeout, $this->_readTimeout), + 'connectTimeout' => Utils::defaultNumber($runtime->connectTimeout, $this->_connectTimeout), + 'localAddr' => Utils::defaultString($runtime->localAddr, $this->_localAddr), + 'httpProxy' => Utils::defaultString($runtime->httpProxy, $this->_httpProxy), + 'httpsProxy' => Utils::defaultString($runtime->httpsProxy, $this->_httpsProxy), + 'noProxy' => Utils::defaultString($runtime->noProxy, $this->_noProxy), + 'socks5Proxy' => Utils::defaultString($runtime->socks5Proxy, $this->_socks5Proxy), + 'socks5NetWork' => Utils::defaultString($runtime->socks5NetWork, $this->_socks5NetWork), + 'maxIdleConns' => Utils::defaultNumber($runtime->maxIdleConns, $this->_maxIdleConns), + 'retry' => [ + 'retryable' => $runtime->autoretry, + 'maxAttempts' => Utils::defaultNumber($runtime->maxAttempts, 3), + ], + 'backoff' => [ + 'policy' => Utils::defaultString($runtime->backoffPolicy, 'no'), + 'period' => Utils::defaultNumber($runtime->backoffPeriod, 1), + ], + 'ignoreSSL' => $runtime->ignoreSSL, + ]; + $_lastRequest = null; + $_lastException = null; + $_now = time(); + $_retryTimes = 0; + while (Tea::allowRetry(@$_runtime['retry'], $_retryTimes, $_now)) { + if ($_retryTimes > 0) { + $_backoffTime = Tea::getBackoffTime(@$_runtime['backoff'], $_retryTimes); + if ($_backoffTime > 0) { + Tea::sleep($_backoffTime); + } + } + $_retryTimes = $_retryTimes + 1; + + try { + $_request = new Request(); + $accessKeyId = $this->_credential->getAccessKeyId(); + $accessKeySecret = $this->_credential->getAccessKeySecret(); + $token = $this->_credential->getSecurityToken(); + $_request->protocol = $this->_protocol; + $_request->method = 'GET'; + $_request->pathname = '/' . $request->channelName . '?live'; + $_request->headers = [ + 'host' => OSSUtils::getHost($request->bucketName, $this->_regionId, $this->_endpoint, $this->_hostModel), + 'date' => Utils::getDateUTCString(), + 'user-agent' => $this->getUserAgent(), + ]; + if (!Utils::empty_($token)) { + $_request->headers['x-oss-security-token'] = $token; + } + $_request->query = Utils::stringifyMapValue(Tea::merge($request->filter)); + $_request->headers['authorization'] = OSSUtils::getSignature($_request, $request->bucketName, $accessKeyId, $accessKeySecret, $this->_signatureVersion, $this->_addtionalHeaders); + $_lastRequest = $_request; + $_response = Tea::send($_request, $_runtime); + $respMap = null; + $bodyStr = null; + if (Utils::is4xx($_response->statusCode) || Utils::is5xx($_response->statusCode)) { + $bodyStr = Utils::readAsString($_response->body); + $respMap = OSSUtils::getErrMessage($bodyStr); + + throw new TeaError([ + 'code' => @$respMap['Code'], + 'message' => @$respMap['Message'], + 'data' => [ + 'httpCode' => $_response->statusCode, + 'requestId' => @$respMap['RequestId'], + 'hostId' => @$respMap['HostId'], + ], + ]); + } + $bodyStr = Utils::readAsString($_response->body); + $respMap = XML::parseXml($bodyStr, GetLiveChannelStatResponse::class); + + return GetLiveChannelStatResponse::fromMap(Tea::merge([ + 'LiveChannelStat' => @$respMap['LiveChannelStat'], + ], $_response->headers)); + } catch (Exception $e) { + if (!($e instanceof TeaError)) { + $e = new TeaError([], $e->getMessage(), $e->getCode(), $e); + } + if (Tea::isRetryable($e)) { + $_lastException = $e; + + continue; + } + + throw $e; + } + } + + throw new TeaUnableRetryError($_lastRequest, $_lastException); + } + + /** + * @param DeleteObjectRequest $request + * @param RuntimeOptions $runtime + * + * @throws TeaError + * @throws Exception + * @throws TeaUnableRetryError + * + * @return DeleteObjectResponse + */ + public function deleteObject($request, $runtime) + { + $request->validate(); + $runtime->validate(); + $_runtime = [ + 'timeouted' => 'retry', + 'readTimeout' => Utils::defaultNumber($runtime->readTimeout, $this->_readTimeout), + 'connectTimeout' => Utils::defaultNumber($runtime->connectTimeout, $this->_connectTimeout), + 'localAddr' => Utils::defaultString($runtime->localAddr, $this->_localAddr), + 'httpProxy' => Utils::defaultString($runtime->httpProxy, $this->_httpProxy), + 'httpsProxy' => Utils::defaultString($runtime->httpsProxy, $this->_httpsProxy), + 'noProxy' => Utils::defaultString($runtime->noProxy, $this->_noProxy), + 'socks5Proxy' => Utils::defaultString($runtime->socks5Proxy, $this->_socks5Proxy), + 'socks5NetWork' => Utils::defaultString($runtime->socks5NetWork, $this->_socks5NetWork), + 'maxIdleConns' => Utils::defaultNumber($runtime->maxIdleConns, $this->_maxIdleConns), + 'retry' => [ + 'retryable' => $runtime->autoretry, + 'maxAttempts' => Utils::defaultNumber($runtime->maxAttempts, 3), + ], + 'backoff' => [ + 'policy' => Utils::defaultString($runtime->backoffPolicy, 'no'), + 'period' => Utils::defaultNumber($runtime->backoffPeriod, 1), + ], + 'ignoreSSL' => $runtime->ignoreSSL, + ]; + $_lastRequest = null; + $_lastException = null; + $_now = time(); + $_retryTimes = 0; + while (Tea::allowRetry(@$_runtime['retry'], $_retryTimes, $_now)) { + if ($_retryTimes > 0) { + $_backoffTime = Tea::getBackoffTime(@$_runtime['backoff'], $_retryTimes); + if ($_backoffTime > 0) { + Tea::sleep($_backoffTime); + } + } + $_retryTimes = $_retryTimes + 1; + + try { + $_request = new Request(); + $accessKeyId = $this->_credential->getAccessKeyId(); + $accessKeySecret = $this->_credential->getAccessKeySecret(); + $token = $this->_credential->getSecurityToken(); + $_request->protocol = $this->_protocol; + $_request->method = 'DELETE'; + $_request->pathname = '/' . $request->objectName . ''; + $_request->headers = [ + 'host' => OSSUtils::getHost($request->bucketName, $this->_regionId, $this->_endpoint, $this->_hostModel), + 'date' => Utils::getDateUTCString(), + 'user-agent' => $this->getUserAgent(), + ]; + if (!Utils::empty_($token)) { + $_request->headers['x-oss-security-token'] = $token; + } + $_request->headers['authorization'] = OSSUtils::getSignature($_request, $request->bucketName, $accessKeyId, $accessKeySecret, $this->_signatureVersion, $this->_addtionalHeaders); + $_lastRequest = $_request; + $_response = Tea::send($_request, $_runtime); + $respMap = null; + $bodyStr = null; + if (Utils::is4xx($_response->statusCode) || Utils::is5xx($_response->statusCode)) { + $bodyStr = Utils::readAsString($_response->body); + $respMap = OSSUtils::getErrMessage($bodyStr); + + throw new TeaError([ + 'code' => @$respMap['Code'], + 'message' => @$respMap['Message'], + 'data' => [ + 'httpCode' => $_response->statusCode, + 'requestId' => @$respMap['RequestId'], + 'hostId' => @$respMap['HostId'], + ], + ]); + } + + return DeleteObjectResponse::fromMap(Tea::merge($_response->headers)); + } catch (Exception $e) { + if (!($e instanceof TeaError)) { + $e = new TeaError([], $e->getMessage(), $e->getCode(), $e); + } + if (Tea::isRetryable($e)) { + $_lastException = $e; + + continue; + } + + throw $e; + } + } + + throw new TeaUnableRetryError($_lastRequest, $_lastException); + } + + /** + * @param AbortMultipartUploadRequest $request + * @param RuntimeOptions $runtime + * + * @throws TeaError + * @throws Exception + * @throws TeaUnableRetryError + * + * @return AbortMultipartUploadResponse + */ + public function abortMultipartUpload($request, $runtime) + { + $request->validate(); + $runtime->validate(); + $_runtime = [ + 'timeouted' => 'retry', + 'readTimeout' => Utils::defaultNumber($runtime->readTimeout, $this->_readTimeout), + 'connectTimeout' => Utils::defaultNumber($runtime->connectTimeout, $this->_connectTimeout), + 'localAddr' => Utils::defaultString($runtime->localAddr, $this->_localAddr), + 'httpProxy' => Utils::defaultString($runtime->httpProxy, $this->_httpProxy), + 'httpsProxy' => Utils::defaultString($runtime->httpsProxy, $this->_httpsProxy), + 'noProxy' => Utils::defaultString($runtime->noProxy, $this->_noProxy), + 'socks5Proxy' => Utils::defaultString($runtime->socks5Proxy, $this->_socks5Proxy), + 'socks5NetWork' => Utils::defaultString($runtime->socks5NetWork, $this->_socks5NetWork), + 'maxIdleConns' => Utils::defaultNumber($runtime->maxIdleConns, $this->_maxIdleConns), + 'retry' => [ + 'retryable' => $runtime->autoretry, + 'maxAttempts' => Utils::defaultNumber($runtime->maxAttempts, 3), + ], + 'backoff' => [ + 'policy' => Utils::defaultString($runtime->backoffPolicy, 'no'), + 'period' => Utils::defaultNumber($runtime->backoffPeriod, 1), + ], + 'ignoreSSL' => $runtime->ignoreSSL, + ]; + $_lastRequest = null; + $_lastException = null; + $_now = time(); + $_retryTimes = 0; + while (Tea::allowRetry(@$_runtime['retry'], $_retryTimes, $_now)) { + if ($_retryTimes > 0) { + $_backoffTime = Tea::getBackoffTime(@$_runtime['backoff'], $_retryTimes); + if ($_backoffTime > 0) { + Tea::sleep($_backoffTime); + } + } + $_retryTimes = $_retryTimes + 1; + + try { + $_request = new Request(); + $accessKeyId = $this->_credential->getAccessKeyId(); + $accessKeySecret = $this->_credential->getAccessKeySecret(); + $token = $this->_credential->getSecurityToken(); + $_request->protocol = $this->_protocol; + $_request->method = 'DELETE'; + $_request->pathname = '/' . $request->objectName . ''; + $_request->headers = [ + 'host' => OSSUtils::getHost($request->bucketName, $this->_regionId, $this->_endpoint, $this->_hostModel), + 'date' => Utils::getDateUTCString(), + 'user-agent' => $this->getUserAgent(), + ]; + if (!Utils::empty_($token)) { + $_request->headers['x-oss-security-token'] = $token; + } + $_request->query = Utils::stringifyMapValue(Tea::merge($request->filter)); + $_request->headers['authorization'] = OSSUtils::getSignature($_request, $request->bucketName, $accessKeyId, $accessKeySecret, $this->_signatureVersion, $this->_addtionalHeaders); + $_lastRequest = $_request; + $_response = Tea::send($_request, $_runtime); + $respMap = null; + $bodyStr = null; + if (Utils::is4xx($_response->statusCode) || Utils::is5xx($_response->statusCode)) { + $bodyStr = Utils::readAsString($_response->body); + $respMap = OSSUtils::getErrMessage($bodyStr); + + throw new TeaError([ + 'code' => @$respMap['Code'], + 'message' => @$respMap['Message'], + 'data' => [ + 'httpCode' => $_response->statusCode, + 'requestId' => @$respMap['RequestId'], + 'hostId' => @$respMap['HostId'], + ], + ]); + } + + return AbortMultipartUploadResponse::fromMap(Tea::merge($_response->headers)); + } catch (Exception $e) { + if (!($e instanceof TeaError)) { + $e = new TeaError([], $e->getMessage(), $e->getCode(), $e); + } + if (Tea::isRetryable($e)) { + $_lastException = $e; + + continue; + } + + throw $e; + } + } + + throw new TeaUnableRetryError($_lastRequest, $_lastException); + } + + /** + * @param AppendObjectRequest $request + * @param RuntimeOptions $runtime + * + * @throws TeaError + * @throws Exception + * @throws TeaUnableRetryError + * + * @return AppendObjectResponse + */ + public function appendObject($request, $runtime) + { + $request->validate(); + $runtime->validate(); + $_runtime = [ + 'timeouted' => 'retry', + 'readTimeout' => Utils::defaultNumber($runtime->readTimeout, $this->_readTimeout), + 'connectTimeout' => Utils::defaultNumber($runtime->connectTimeout, $this->_connectTimeout), + 'localAddr' => Utils::defaultString($runtime->localAddr, $this->_localAddr), + 'httpProxy' => Utils::defaultString($runtime->httpProxy, $this->_httpProxy), + 'httpsProxy' => Utils::defaultString($runtime->httpsProxy, $this->_httpsProxy), + 'noProxy' => Utils::defaultString($runtime->noProxy, $this->_noProxy), + 'socks5Proxy' => Utils::defaultString($runtime->socks5Proxy, $this->_socks5Proxy), + 'socks5NetWork' => Utils::defaultString($runtime->socks5NetWork, $this->_socks5NetWork), + 'maxIdleConns' => Utils::defaultNumber($runtime->maxIdleConns, $this->_maxIdleConns), + 'retry' => [ + 'retryable' => $runtime->autoretry, + 'maxAttempts' => Utils::defaultNumber($runtime->maxAttempts, 3), + ], + 'backoff' => [ + 'policy' => Utils::defaultString($runtime->backoffPolicy, 'no'), + 'period' => Utils::defaultNumber($runtime->backoffPeriod, 1), + ], + 'ignoreSSL' => $runtime->ignoreSSL, + ]; + $_lastRequest = null; + $_lastException = null; + $_now = time(); + $_retryTimes = 0; + while (Tea::allowRetry(@$_runtime['retry'], $_retryTimes, $_now)) { + if ($_retryTimes > 0) { + $_backoffTime = Tea::getBackoffTime(@$_runtime['backoff'], $_retryTimes); + if ($_backoffTime > 0) { + Tea::sleep($_backoffTime); + } + } + $_retryTimes = $_retryTimes + 1; + + try { + $_request = new Request(); + $ctx = []; + $accessKeyId = $this->_credential->getAccessKeyId(); + $accessKeySecret = $this->_credential->getAccessKeySecret(); + $token = $this->_credential->getSecurityToken(); + $_request->protocol = $this->_protocol; + $_request->method = 'POST'; + $_request->pathname = '/' . $request->objectName . '?append'; + $_request->headers = Tea::merge([ + 'host' => OSSUtils::getHost($request->bucketName, $this->_regionId, $this->_endpoint, $this->_hostModel), + 'date' => Utils::getDateUTCString(), + 'user-agent' => $this->getUserAgent(), + ], Utils::stringifyMapValue(Tea::merge($request->header)), OSSUtils::parseMeta($request->userMeta, 'x-oss-meta-')); + if (!Utils::empty_($token)) { + $_request->headers['x-oss-security-token'] = $token; + } + $_request->query = Utils::stringifyMapValue(Tea::merge($request->filter)); + $_request->body = OSSUtils::inject($request->body, $ctx); + if (!Utils::isUnset($request->header) && !Utils::empty_($request->header->contentType)) { + $_request->headers['content-type'] = $request->header->contentType; + } else { + $_request->headers['content-type'] = OSSUtils::getContentType($request->objectName); + } + $_request->headers['authorization'] = OSSUtils::getSignature($_request, $request->bucketName, $accessKeyId, $accessKeySecret, $this->_signatureVersion, $this->_addtionalHeaders); + $_lastRequest = $_request; + $_response = Tea::send($_request, $_runtime); + $respMap = null; + $bodyStr = null; + if (Utils::is4xx($_response->statusCode) || Utils::is5xx($_response->statusCode)) { + $bodyStr = Utils::readAsString($_response->body); + $respMap = OSSUtils::getErrMessage($bodyStr); + + throw new TeaError([ + 'code' => @$respMap['Code'], + 'message' => @$respMap['Message'], + 'data' => [ + 'httpCode' => $_response->statusCode, + 'requestId' => @$respMap['RequestId'], + 'hostId' => @$respMap['HostId'], + ], + ]); + } + if ($this->_isEnableCrc && !Utils::equalString(@$ctx['crc'], @$_response->headers['x-oss-hash-crc64ecma'])) { + throw new TeaError([ + 'code' => 'CrcNotMatched', + 'data' => [ + 'clientCrc' => @$ctx['crc'], + 'serverCrc' => @$_response->headers['x-oss-hash-crc64ecma'], + ], + ]); + } + if ($this->_isEnableMD5 && !Utils::equalString(@$ctx['md5'], @$_response->headers['content-md5'])) { + throw new TeaError([ + 'code' => 'MD5NotMatched', + 'data' => [ + 'clientMD5' => @$ctx['md5'], + 'serverMD5' => @$_response->headers['content-md5'], + ], + ]); + } + + return AppendObjectResponse::fromMap(Tea::merge($_response->headers)); + } catch (Exception $e) { + if (!($e instanceof TeaError)) { + $e = new TeaError([], $e->getMessage(), $e->getCode(), $e); + } + if (Tea::isRetryable($e)) { + $_lastException = $e; + + continue; + } + + throw $e; + } + } + + throw new TeaUnableRetryError($_lastRequest, $_lastException); + } + + /** + * @param UploadPartCopyRequest $request + * @param RuntimeOptions $runtime + * + * @throws TeaError + * @throws Exception + * @throws TeaUnableRetryError + * + * @return UploadPartCopyResponse + */ + public function uploadPartCopy($request, $runtime) + { + $request->validate(); + $runtime->validate(); + $_runtime = [ + 'timeouted' => 'retry', + 'readTimeout' => Utils::defaultNumber($runtime->readTimeout, $this->_readTimeout), + 'connectTimeout' => Utils::defaultNumber($runtime->connectTimeout, $this->_connectTimeout), + 'localAddr' => Utils::defaultString($runtime->localAddr, $this->_localAddr), + 'httpProxy' => Utils::defaultString($runtime->httpProxy, $this->_httpProxy), + 'httpsProxy' => Utils::defaultString($runtime->httpsProxy, $this->_httpsProxy), + 'noProxy' => Utils::defaultString($runtime->noProxy, $this->_noProxy), + 'socks5Proxy' => Utils::defaultString($runtime->socks5Proxy, $this->_socks5Proxy), + 'socks5NetWork' => Utils::defaultString($runtime->socks5NetWork, $this->_socks5NetWork), + 'maxIdleConns' => Utils::defaultNumber($runtime->maxIdleConns, $this->_maxIdleConns), + 'retry' => [ + 'retryable' => $runtime->autoretry, + 'maxAttempts' => Utils::defaultNumber($runtime->maxAttempts, 3), + ], + 'backoff' => [ + 'policy' => Utils::defaultString($runtime->backoffPolicy, 'no'), + 'period' => Utils::defaultNumber($runtime->backoffPeriod, 1), + ], + 'ignoreSSL' => $runtime->ignoreSSL, + ]; + $_lastRequest = null; + $_lastException = null; + $_now = time(); + $_retryTimes = 0; + while (Tea::allowRetry(@$_runtime['retry'], $_retryTimes, $_now)) { + if ($_retryTimes > 0) { + $_backoffTime = Tea::getBackoffTime(@$_runtime['backoff'], $_retryTimes); + if ($_backoffTime > 0) { + Tea::sleep($_backoffTime); + } + } + $_retryTimes = $_retryTimes + 1; + + try { + $_request = new Request(); + $accessKeyId = $this->_credential->getAccessKeyId(); + $accessKeySecret = $this->_credential->getAccessKeySecret(); + $token = $this->_credential->getSecurityToken(); + $_request->protocol = $this->_protocol; + $_request->method = 'PUT'; + $_request->pathname = '/' . $request->objectName . ''; + $_request->headers = Tea::merge([ + 'host' => OSSUtils::getHost($request->bucketName, $this->_regionId, $this->_endpoint, $this->_hostModel), + 'date' => Utils::getDateUTCString(), + 'user-agent' => $this->getUserAgent(), + ], Utils::stringifyMapValue(Tea::merge($request->header))); + if (!Utils::empty_($token)) { + $_request->headers['x-oss-security-token'] = $token; + } + $_request->query = Utils::stringifyMapValue(Tea::merge($request->filter)); + $_request->headers['authorization'] = OSSUtils::getSignature($_request, $request->bucketName, $accessKeyId, $accessKeySecret, $this->_signatureVersion, $this->_addtionalHeaders); + $_lastRequest = $_request; + $_response = Tea::send($_request, $_runtime); + $respMap = null; + $bodyStr = null; + if (Utils::is4xx($_response->statusCode) || Utils::is5xx($_response->statusCode)) { + $bodyStr = Utils::readAsString($_response->body); + $respMap = OSSUtils::getErrMessage($bodyStr); + + throw new TeaError([ + 'code' => @$respMap['Code'], + 'message' => @$respMap['Message'], + 'data' => [ + 'httpCode' => $_response->statusCode, + 'requestId' => @$respMap['RequestId'], + 'hostId' => @$respMap['HostId'], + ], + ]); + } + $bodyStr = Utils::readAsString($_response->body); + $respMap = XML::parseXml($bodyStr, UploadPartCopyResponse::class); + + return UploadPartCopyResponse::fromMap(Tea::merge([ + 'CopyPartResult' => @$respMap['CopyPartResult'], + ], $_response->headers)); + } catch (Exception $e) { + if (!($e instanceof TeaError)) { + $e = new TeaError([], $e->getMessage(), $e->getCode(), $e); + } + if (Tea::isRetryable($e)) { + $_lastException = $e; + + continue; + } + + throw $e; + } + } + + throw new TeaUnableRetryError($_lastRequest, $_lastException); + } + + /** + * @param GetVodPlaylistRequest $request + * @param RuntimeOptions $runtime + * + * @throws TeaError + * @throws Exception + * @throws TeaUnableRetryError + * + * @return GetVodPlaylistResponse + */ + public function getVodPlaylist($request, $runtime) + { + $request->validate(); + $runtime->validate(); + $_runtime = [ + 'timeouted' => 'retry', + 'readTimeout' => Utils::defaultNumber($runtime->readTimeout, $this->_readTimeout), + 'connectTimeout' => Utils::defaultNumber($runtime->connectTimeout, $this->_connectTimeout), + 'localAddr' => Utils::defaultString($runtime->localAddr, $this->_localAddr), + 'httpProxy' => Utils::defaultString($runtime->httpProxy, $this->_httpProxy), + 'httpsProxy' => Utils::defaultString($runtime->httpsProxy, $this->_httpsProxy), + 'noProxy' => Utils::defaultString($runtime->noProxy, $this->_noProxy), + 'socks5Proxy' => Utils::defaultString($runtime->socks5Proxy, $this->_socks5Proxy), + 'socks5NetWork' => Utils::defaultString($runtime->socks5NetWork, $this->_socks5NetWork), + 'maxIdleConns' => Utils::defaultNumber($runtime->maxIdleConns, $this->_maxIdleConns), + 'retry' => [ + 'retryable' => $runtime->autoretry, + 'maxAttempts' => Utils::defaultNumber($runtime->maxAttempts, 3), + ], + 'backoff' => [ + 'policy' => Utils::defaultString($runtime->backoffPolicy, 'no'), + 'period' => Utils::defaultNumber($runtime->backoffPeriod, 1), + ], + 'ignoreSSL' => $runtime->ignoreSSL, + ]; + $_lastRequest = null; + $_lastException = null; + $_now = time(); + $_retryTimes = 0; + while (Tea::allowRetry(@$_runtime['retry'], $_retryTimes, $_now)) { + if ($_retryTimes > 0) { + $_backoffTime = Tea::getBackoffTime(@$_runtime['backoff'], $_retryTimes); + if ($_backoffTime > 0) { + Tea::sleep($_backoffTime); + } + } + $_retryTimes = $_retryTimes + 1; + + try { + $_request = new Request(); + $accessKeyId = $this->_credential->getAccessKeyId(); + $accessKeySecret = $this->_credential->getAccessKeySecret(); + $token = $this->_credential->getSecurityToken(); + $_request->protocol = $this->_protocol; + $_request->method = 'GET'; + $_request->pathname = '/' . $request->channelName . '?vod'; + $_request->headers = [ + 'host' => OSSUtils::getHost($request->bucketName, $this->_regionId, $this->_endpoint, $this->_hostModel), + 'date' => Utils::getDateUTCString(), + 'user-agent' => $this->getUserAgent(), + ]; + if (!Utils::empty_($token)) { + $_request->headers['x-oss-security-token'] = $token; + } + $_request->query = Utils::stringifyMapValue(Tea::merge($request->filter)); + $_request->headers['authorization'] = OSSUtils::getSignature($_request, $request->bucketName, $accessKeyId, $accessKeySecret, $this->_signatureVersion, $this->_addtionalHeaders); + $_lastRequest = $_request; + $_response = Tea::send($_request, $_runtime); + $respMap = null; + $bodyStr = null; + if (Utils::is4xx($_response->statusCode) || Utils::is5xx($_response->statusCode)) { + $bodyStr = Utils::readAsString($_response->body); + $respMap = OSSUtils::getErrMessage($bodyStr); + + throw new TeaError([ + 'code' => @$respMap['Code'], + 'message' => @$respMap['Message'], + 'data' => [ + 'httpCode' => $_response->statusCode, + 'requestId' => @$respMap['RequestId'], + 'hostId' => @$respMap['HostId'], + ], + ]); + } + + return GetVodPlaylistResponse::fromMap(Tea::merge($_response->headers)); + } catch (Exception $e) { + if (!($e instanceof TeaError)) { + $e = new TeaError([], $e->getMessage(), $e->getCode(), $e); + } + if (Tea::isRetryable($e)) { + $_lastException = $e; + + continue; + } + + throw $e; + } + } + + throw new TeaUnableRetryError($_lastRequest, $_lastException); + } + + /** + * @param DeleteBucketCORSRequest $request + * @param RuntimeOptions $runtime + * + * @throws TeaError + * @throws Exception + * @throws TeaUnableRetryError + * + * @return DeleteBucketCORSResponse + */ + public function deleteBucketCORS($request, $runtime) + { + $request->validate(); + $runtime->validate(); + $_runtime = [ + 'timeouted' => 'retry', + 'readTimeout' => Utils::defaultNumber($runtime->readTimeout, $this->_readTimeout), + 'connectTimeout' => Utils::defaultNumber($runtime->connectTimeout, $this->_connectTimeout), + 'localAddr' => Utils::defaultString($runtime->localAddr, $this->_localAddr), + 'httpProxy' => Utils::defaultString($runtime->httpProxy, $this->_httpProxy), + 'httpsProxy' => Utils::defaultString($runtime->httpsProxy, $this->_httpsProxy), + 'noProxy' => Utils::defaultString($runtime->noProxy, $this->_noProxy), + 'socks5Proxy' => Utils::defaultString($runtime->socks5Proxy, $this->_socks5Proxy), + 'socks5NetWork' => Utils::defaultString($runtime->socks5NetWork, $this->_socks5NetWork), + 'maxIdleConns' => Utils::defaultNumber($runtime->maxIdleConns, $this->_maxIdleConns), + 'retry' => [ + 'retryable' => $runtime->autoretry, + 'maxAttempts' => Utils::defaultNumber($runtime->maxAttempts, 3), + ], + 'backoff' => [ + 'policy' => Utils::defaultString($runtime->backoffPolicy, 'no'), + 'period' => Utils::defaultNumber($runtime->backoffPeriod, 1), + ], + 'ignoreSSL' => $runtime->ignoreSSL, + ]; + $_lastRequest = null; + $_lastException = null; + $_now = time(); + $_retryTimes = 0; + while (Tea::allowRetry(@$_runtime['retry'], $_retryTimes, $_now)) { + if ($_retryTimes > 0) { + $_backoffTime = Tea::getBackoffTime(@$_runtime['backoff'], $_retryTimes); + if ($_backoffTime > 0) { + Tea::sleep($_backoffTime); + } + } + $_retryTimes = $_retryTimes + 1; + + try { + $_request = new Request(); + $accessKeyId = $this->_credential->getAccessKeyId(); + $accessKeySecret = $this->_credential->getAccessKeySecret(); + $token = $this->_credential->getSecurityToken(); + $_request->protocol = $this->_protocol; + $_request->method = 'DELETE'; + $_request->pathname = '/?cors'; + $_request->headers = [ + 'host' => OSSUtils::getHost($request->bucketName, $this->_regionId, $this->_endpoint, $this->_hostModel), + 'date' => Utils::getDateUTCString(), + 'user-agent' => $this->getUserAgent(), + ]; + if (!Utils::empty_($token)) { + $_request->headers['x-oss-security-token'] = $token; + } + $_request->headers['authorization'] = OSSUtils::getSignature($_request, $request->bucketName, $accessKeyId, $accessKeySecret, $this->_signatureVersion, $this->_addtionalHeaders); + $_lastRequest = $_request; + $_response = Tea::send($_request, $_runtime); + $respMap = null; + $bodyStr = null; + if (Utils::is4xx($_response->statusCode) || Utils::is5xx($_response->statusCode)) { + $bodyStr = Utils::readAsString($_response->body); + $respMap = OSSUtils::getErrMessage($bodyStr); + + throw new TeaError([ + 'code' => @$respMap['Code'], + 'message' => @$respMap['Message'], + 'data' => [ + 'httpCode' => $_response->statusCode, + 'requestId' => @$respMap['RequestId'], + 'hostId' => @$respMap['HostId'], + ], + ]); + } + + return DeleteBucketCORSResponse::fromMap(Tea::merge($_response->headers)); + } catch (Exception $e) { + if (!($e instanceof TeaError)) { + $e = new TeaError([], $e->getMessage(), $e->getCode(), $e); + } + if (Tea::isRetryable($e)) { + $_lastException = $e; + + continue; + } + + throw $e; + } + } + + throw new TeaUnableRetryError($_lastRequest, $_lastException); + } + + /** + * @param GetObjectRequest $request + * @param RuntimeOptions $runtime + * + * @throws TeaError + * @throws Exception + * @throws TeaUnableRetryError + * + * @return GetObjectResponse + */ + public function getObject($request, $runtime) + { + $request->validate(); + $runtime->validate(); + $_runtime = [ + 'timeouted' => 'retry', + 'readTimeout' => Utils::defaultNumber($runtime->readTimeout, $this->_readTimeout), + 'connectTimeout' => Utils::defaultNumber($runtime->connectTimeout, $this->_connectTimeout), + 'localAddr' => Utils::defaultString($runtime->localAddr, $this->_localAddr), + 'httpProxy' => Utils::defaultString($runtime->httpProxy, $this->_httpProxy), + 'httpsProxy' => Utils::defaultString($runtime->httpsProxy, $this->_httpsProxy), + 'noProxy' => Utils::defaultString($runtime->noProxy, $this->_noProxy), + 'socks5Proxy' => Utils::defaultString($runtime->socks5Proxy, $this->_socks5Proxy), + 'socks5NetWork' => Utils::defaultString($runtime->socks5NetWork, $this->_socks5NetWork), + 'maxIdleConns' => Utils::defaultNumber($runtime->maxIdleConns, $this->_maxIdleConns), + 'retry' => [ + 'retryable' => $runtime->autoretry, + 'maxAttempts' => Utils::defaultNumber($runtime->maxAttempts, 3), + ], + 'backoff' => [ + 'policy' => Utils::defaultString($runtime->backoffPolicy, 'no'), + 'period' => Utils::defaultNumber($runtime->backoffPeriod, 1), + ], + 'ignoreSSL' => $runtime->ignoreSSL, + ]; + $_lastRequest = null; + $_lastException = null; + $_now = time(); + $_retryTimes = 0; + while (Tea::allowRetry(@$_runtime['retry'], $_retryTimes, $_now)) { + if ($_retryTimes > 0) { + $_backoffTime = Tea::getBackoffTime(@$_runtime['backoff'], $_retryTimes); + if ($_backoffTime > 0) { + Tea::sleep($_backoffTime); + } + } + $_retryTimes = $_retryTimes + 1; + + try { + $_request = new Request(); + $accessKeyId = $this->_credential->getAccessKeyId(); + $accessKeySecret = $this->_credential->getAccessKeySecret(); + $token = $this->_credential->getSecurityToken(); + $_request->protocol = $this->_protocol; + $_request->method = 'GET'; + $_request->pathname = '/' . $request->objectName . ''; + $_request->headers = Tea::merge([ + 'host' => OSSUtils::getHost($request->bucketName, $this->_regionId, $this->_endpoint, $this->_hostModel), + 'date' => Utils::getDateUTCString(), + 'user-agent' => $this->getUserAgent(), + ], Utils::stringifyMapValue(Tea::merge($request->header))); + if (!Utils::empty_($token)) { + $_request->headers['x-oss-security-token'] = $token; + } + $_request->headers['authorization'] = OSSUtils::getSignature($_request, $request->bucketName, $accessKeyId, $accessKeySecret, $this->_signatureVersion, $this->_addtionalHeaders); + $_lastRequest = $_request; + $_response = Tea::send($_request, $_runtime); + $respMap = null; + $bodyStr = null; + if (Utils::is4xx($_response->statusCode) || Utils::is5xx($_response->statusCode)) { + $bodyStr = Utils::readAsString($_response->body); + $respMap = OSSUtils::getErrMessage($bodyStr); + + throw new TeaError([ + 'code' => @$respMap['Code'], + 'message' => @$respMap['Message'], + 'data' => [ + 'httpCode' => $_response->statusCode, + 'requestId' => @$respMap['RequestId'], + 'hostId' => @$respMap['HostId'], + ], + ]); + } + + return GetObjectResponse::fromMap(Tea::merge([ + 'body' => $_response->body, + ], $_response->headers)); + } catch (Exception $e) { + if (!($e instanceof TeaError)) { + $e = new TeaError([], $e->getMessage(), $e->getCode(), $e); + } + if (Tea::isRetryable($e)) { + $_lastException = $e; + + continue; + } + + throw $e; + } + } + + throw new TeaUnableRetryError($_lastRequest, $_lastException); + } + + /** + * @param UploadPartRequest $request + * @param RuntimeOptions $runtime + * + * @throws TeaError + * @throws Exception + * @throws TeaUnableRetryError + * + * @return UploadPartResponse + */ + public function uploadPart($request, $runtime) + { + $request->validate(); + $runtime->validate(); + $_runtime = [ + 'timeouted' => 'retry', + 'readTimeout' => Utils::defaultNumber($runtime->readTimeout, $this->_readTimeout), + 'connectTimeout' => Utils::defaultNumber($runtime->connectTimeout, $this->_connectTimeout), + 'localAddr' => Utils::defaultString($runtime->localAddr, $this->_localAddr), + 'httpProxy' => Utils::defaultString($runtime->httpProxy, $this->_httpProxy), + 'httpsProxy' => Utils::defaultString($runtime->httpsProxy, $this->_httpsProxy), + 'noProxy' => Utils::defaultString($runtime->noProxy, $this->_noProxy), + 'socks5Proxy' => Utils::defaultString($runtime->socks5Proxy, $this->_socks5Proxy), + 'socks5NetWork' => Utils::defaultString($runtime->socks5NetWork, $this->_socks5NetWork), + 'maxIdleConns' => Utils::defaultNumber($runtime->maxIdleConns, $this->_maxIdleConns), + 'retry' => [ + 'retryable' => $runtime->autoretry, + 'maxAttempts' => Utils::defaultNumber($runtime->maxAttempts, 3), + ], + 'backoff' => [ + 'policy' => Utils::defaultString($runtime->backoffPolicy, 'no'), + 'period' => Utils::defaultNumber($runtime->backoffPeriod, 1), + ], + 'ignoreSSL' => $runtime->ignoreSSL, + ]; + $_lastRequest = null; + $_lastException = null; + $_now = time(); + $_retryTimes = 0; + while (Tea::allowRetry(@$_runtime['retry'], $_retryTimes, $_now)) { + if ($_retryTimes > 0) { + $_backoffTime = Tea::getBackoffTime(@$_runtime['backoff'], $_retryTimes); + if ($_backoffTime > 0) { + Tea::sleep($_backoffTime); + } + } + $_retryTimes = $_retryTimes + 1; + + try { + $_request = new Request(); + $ctx = []; + $accessKeyId = $this->_credential->getAccessKeyId(); + $accessKeySecret = $this->_credential->getAccessKeySecret(); + $token = $this->_credential->getSecurityToken(); + $_request->protocol = $this->_protocol; + $_request->method = 'PUT'; + $_request->pathname = '/' . $request->objectName . ''; + $_request->headers = [ + 'host' => OSSUtils::getHost($request->bucketName, $this->_regionId, $this->_endpoint, $this->_hostModel), + 'date' => Utils::getDateUTCString(), + 'user-agent' => $this->getUserAgent(), + ]; + if (!Utils::empty_($token)) { + $_request->headers['x-oss-security-token'] = $token; + } + $_request->query = Utils::stringifyMapValue(Tea::merge($request->filter)); + $_request->body = OSSUtils::inject($request->body, $ctx); + $_request->headers['authorization'] = OSSUtils::getSignature($_request, $request->bucketName, $accessKeyId, $accessKeySecret, $this->_signatureVersion, $this->_addtionalHeaders); + $_lastRequest = $_request; + $_response = Tea::send($_request, $_runtime); + $respMap = null; + $bodyStr = null; + if (Utils::is4xx($_response->statusCode) || Utils::is5xx($_response->statusCode)) { + $bodyStr = Utils::readAsString($_response->body); + $respMap = OSSUtils::getErrMessage($bodyStr); + + throw new TeaError([ + 'code' => @$respMap['Code'], + 'message' => @$respMap['Message'], + 'data' => [ + 'httpCode' => $_response->statusCode, + 'requestId' => @$respMap['RequestId'], + 'hostId' => @$respMap['HostId'], + ], + ]); + } + if ($this->_isEnableCrc && !Utils::equalString(@$ctx['crc'], @$_response->headers['x-oss-hash-crc64ecma'])) { + throw new TeaError([ + 'code' => 'CrcNotMatched', + 'data' => [ + 'clientCrc' => @$ctx['crc'], + 'serverCrc' => @$_response->headers['x-oss-hash-crc64ecma'], + ], + ]); + } + if ($this->_isEnableMD5 && !Utils::equalString(@$ctx['md5'], @$_response->headers['content-md5'])) { + throw new TeaError([ + 'code' => 'MD5NotMatched', + 'data' => [ + 'clientMD5' => @$ctx['md5'], + 'serverMD5' => @$_response->headers['content-md5'], + ], + ]); + } + + return UploadPartResponse::fromMap(Tea::merge($_response->headers)); + } catch (Exception $e) { + if (!($e instanceof TeaError)) { + $e = new TeaError([], $e->getMessage(), $e->getCode(), $e); + } + if (Tea::isRetryable($e)) { + $_lastException = $e; + + continue; + } + + throw $e; + } + } + + throw new TeaUnableRetryError($_lastRequest, $_lastException); + } + + /** + * @param GetBucketCORSRequest $request + * @param RuntimeOptions $runtime + * + * @throws TeaError + * @throws Exception + * @throws TeaUnableRetryError + * + * @return GetBucketCORSResponse + */ + public function getBucketCORS($request, $runtime) + { + $request->validate(); + $runtime->validate(); + $_runtime = [ + 'timeouted' => 'retry', + 'readTimeout' => Utils::defaultNumber($runtime->readTimeout, $this->_readTimeout), + 'connectTimeout' => Utils::defaultNumber($runtime->connectTimeout, $this->_connectTimeout), + 'localAddr' => Utils::defaultString($runtime->localAddr, $this->_localAddr), + 'httpProxy' => Utils::defaultString($runtime->httpProxy, $this->_httpProxy), + 'httpsProxy' => Utils::defaultString($runtime->httpsProxy, $this->_httpsProxy), + 'noProxy' => Utils::defaultString($runtime->noProxy, $this->_noProxy), + 'socks5Proxy' => Utils::defaultString($runtime->socks5Proxy, $this->_socks5Proxy), + 'socks5NetWork' => Utils::defaultString($runtime->socks5NetWork, $this->_socks5NetWork), + 'maxIdleConns' => Utils::defaultNumber($runtime->maxIdleConns, $this->_maxIdleConns), + 'retry' => [ + 'retryable' => $runtime->autoretry, + 'maxAttempts' => Utils::defaultNumber($runtime->maxAttempts, 3), + ], + 'backoff' => [ + 'policy' => Utils::defaultString($runtime->backoffPolicy, 'no'), + 'period' => Utils::defaultNumber($runtime->backoffPeriod, 1), + ], + 'ignoreSSL' => $runtime->ignoreSSL, + ]; + $_lastRequest = null; + $_lastException = null; + $_now = time(); + $_retryTimes = 0; + while (Tea::allowRetry(@$_runtime['retry'], $_retryTimes, $_now)) { + if ($_retryTimes > 0) { + $_backoffTime = Tea::getBackoffTime(@$_runtime['backoff'], $_retryTimes); + if ($_backoffTime > 0) { + Tea::sleep($_backoffTime); + } + } + $_retryTimes = $_retryTimes + 1; + + try { + $_request = new Request(); + $accessKeyId = $this->_credential->getAccessKeyId(); + $accessKeySecret = $this->_credential->getAccessKeySecret(); + $token = $this->_credential->getSecurityToken(); + $_request->protocol = $this->_protocol; + $_request->method = 'GET'; + $_request->pathname = '/?cors'; + $_request->headers = [ + 'host' => OSSUtils::getHost($request->bucketName, $this->_regionId, $this->_endpoint, $this->_hostModel), + 'date' => Utils::getDateUTCString(), + 'user-agent' => $this->getUserAgent(), + ]; + if (!Utils::empty_($token)) { + $_request->headers['x-oss-security-token'] = $token; + } + $_request->headers['authorization'] = OSSUtils::getSignature($_request, $request->bucketName, $accessKeyId, $accessKeySecret, $this->_signatureVersion, $this->_addtionalHeaders); + $_lastRequest = $_request; + $_response = Tea::send($_request, $_runtime); + $respMap = null; + $bodyStr = null; + if (Utils::is4xx($_response->statusCode) || Utils::is5xx($_response->statusCode)) { + $bodyStr = Utils::readAsString($_response->body); + $respMap = OSSUtils::getErrMessage($bodyStr); + + throw new TeaError([ + 'code' => @$respMap['Code'], + 'message' => @$respMap['Message'], + 'data' => [ + 'httpCode' => $_response->statusCode, + 'requestId' => @$respMap['RequestId'], + 'hostId' => @$respMap['HostId'], + ], + ]); + } + $bodyStr = Utils::readAsString($_response->body); + $respMap = XML::parseXml($bodyStr, GetBucketCORSResponse::class); + + return GetBucketCORSResponse::fromMap(Tea::merge([ + 'CORSConfiguration' => @$respMap['CORSConfiguration'], + ], $_response->headers)); + } catch (Exception $e) { + if (!($e instanceof TeaError)) { + $e = new TeaError([], $e->getMessage(), $e->getCode(), $e); + } + if (Tea::isRetryable($e)) { + $_lastException = $e; + + continue; + } + + throw $e; + } + } + + throw new TeaUnableRetryError($_lastRequest, $_lastException); + } + + /** + * @param CopyObjectRequest $request + * @param RuntimeOptions $runtime + * + * @throws TeaError + * @throws Exception + * @throws TeaUnableRetryError + * + * @return CopyObjectResponse + */ + public function copyObject($request, $runtime) + { + $request->validate(); + $runtime->validate(); + $_runtime = [ + 'timeouted' => 'retry', + 'readTimeout' => Utils::defaultNumber($runtime->readTimeout, $this->_readTimeout), + 'connectTimeout' => Utils::defaultNumber($runtime->connectTimeout, $this->_connectTimeout), + 'localAddr' => Utils::defaultString($runtime->localAddr, $this->_localAddr), + 'httpProxy' => Utils::defaultString($runtime->httpProxy, $this->_httpProxy), + 'httpsProxy' => Utils::defaultString($runtime->httpsProxy, $this->_httpsProxy), + 'noProxy' => Utils::defaultString($runtime->noProxy, $this->_noProxy), + 'socks5Proxy' => Utils::defaultString($runtime->socks5Proxy, $this->_socks5Proxy), + 'socks5NetWork' => Utils::defaultString($runtime->socks5NetWork, $this->_socks5NetWork), + 'maxIdleConns' => Utils::defaultNumber($runtime->maxIdleConns, $this->_maxIdleConns), + 'retry' => [ + 'retryable' => $runtime->autoretry, + 'maxAttempts' => Utils::defaultNumber($runtime->maxAttempts, 3), + ], + 'backoff' => [ + 'policy' => Utils::defaultString($runtime->backoffPolicy, 'no'), + 'period' => Utils::defaultNumber($runtime->backoffPeriod, 1), + ], + 'ignoreSSL' => $runtime->ignoreSSL, + ]; + $_lastRequest = null; + $_lastException = null; + $_now = time(); + $_retryTimes = 0; + while (Tea::allowRetry(@$_runtime['retry'], $_retryTimes, $_now)) { + if ($_retryTimes > 0) { + $_backoffTime = Tea::getBackoffTime(@$_runtime['backoff'], $_retryTimes); + if ($_backoffTime > 0) { + Tea::sleep($_backoffTime); + } + } + $_retryTimes = $_retryTimes + 1; + + try { + $_request = new Request(); + $accessKeyId = $this->_credential->getAccessKeyId(); + $accessKeySecret = $this->_credential->getAccessKeySecret(); + $token = $this->_credential->getSecurityToken(); + $_request->protocol = $this->_protocol; + $_request->method = 'PUT'; + $_request->pathname = '/' . $request->destObjectName . ''; + $_request->headers = Tea::merge([ + 'host' => OSSUtils::getHost($request->bucketName, $this->_regionId, $this->_endpoint, $this->_hostModel), + 'date' => Utils::getDateUTCString(), + 'user-agent' => $this->getUserAgent(), + ], Utils::stringifyMapValue(Tea::merge($request->header))); + if (!Utils::empty_($token)) { + $_request->headers['x-oss-security-token'] = $token; + } + $_request->headers['x-oss-copy-source'] = OSSUtils::encode(@$_request->headers['x-oss-copy-source'], 'UrlEncode'); + $_request->headers['authorization'] = OSSUtils::getSignature($_request, $request->bucketName, $accessKeyId, $accessKeySecret, $this->_signatureVersion, $this->_addtionalHeaders); + $_lastRequest = $_request; + $_response = Tea::send($_request, $_runtime); + $respMap = null; + $bodyStr = null; + if (Utils::is4xx($_response->statusCode) || Utils::is5xx($_response->statusCode)) { + $bodyStr = Utils::readAsString($_response->body); + $respMap = OSSUtils::getErrMessage($bodyStr); + + throw new TeaError([ + 'code' => @$respMap['Code'], + 'message' => @$respMap['Message'], + 'data' => [ + 'httpCode' => $_response->statusCode, + 'requestId' => @$respMap['RequestId'], + 'hostId' => @$respMap['HostId'], + ], + ]); + } + $bodyStr = Utils::readAsString($_response->body); + $respMap = XML::parseXml($bodyStr, CopyObjectResponse::class); + + return CopyObjectResponse::fromMap(Tea::merge([ + 'CopyObjectResult' => @$respMap['CopyObjectResult'], + ], $_response->headers)); + } catch (Exception $e) { + if (!($e instanceof TeaError)) { + $e = new TeaError([], $e->getMessage(), $e->getCode(), $e); + } + if (Tea::isRetryable($e)) { + $_lastException = $e; + + continue; + } + + throw $e; + } + } + + throw new TeaUnableRetryError($_lastRequest, $_lastException); + } + + /** + * @param GetObjectTaggingRequest $request + * @param RuntimeOptions $runtime + * + * @throws TeaError + * @throws Exception + * @throws TeaUnableRetryError + * + * @return GetObjectTaggingResponse + */ + public function getObjectTagging($request, $runtime) + { + $request->validate(); + $runtime->validate(); + $_runtime = [ + 'timeouted' => 'retry', + 'readTimeout' => Utils::defaultNumber($runtime->readTimeout, $this->_readTimeout), + 'connectTimeout' => Utils::defaultNumber($runtime->connectTimeout, $this->_connectTimeout), + 'localAddr' => Utils::defaultString($runtime->localAddr, $this->_localAddr), + 'httpProxy' => Utils::defaultString($runtime->httpProxy, $this->_httpProxy), + 'httpsProxy' => Utils::defaultString($runtime->httpsProxy, $this->_httpsProxy), + 'noProxy' => Utils::defaultString($runtime->noProxy, $this->_noProxy), + 'socks5Proxy' => Utils::defaultString($runtime->socks5Proxy, $this->_socks5Proxy), + 'socks5NetWork' => Utils::defaultString($runtime->socks5NetWork, $this->_socks5NetWork), + 'maxIdleConns' => Utils::defaultNumber($runtime->maxIdleConns, $this->_maxIdleConns), + 'retry' => [ + 'retryable' => $runtime->autoretry, + 'maxAttempts' => Utils::defaultNumber($runtime->maxAttempts, 3), + ], + 'backoff' => [ + 'policy' => Utils::defaultString($runtime->backoffPolicy, 'no'), + 'period' => Utils::defaultNumber($runtime->backoffPeriod, 1), + ], + 'ignoreSSL' => $runtime->ignoreSSL, + ]; + $_lastRequest = null; + $_lastException = null; + $_now = time(); + $_retryTimes = 0; + while (Tea::allowRetry(@$_runtime['retry'], $_retryTimes, $_now)) { + if ($_retryTimes > 0) { + $_backoffTime = Tea::getBackoffTime(@$_runtime['backoff'], $_retryTimes); + if ($_backoffTime > 0) { + Tea::sleep($_backoffTime); + } + } + $_retryTimes = $_retryTimes + 1; + + try { + $_request = new Request(); + $accessKeyId = $this->_credential->getAccessKeyId(); + $accessKeySecret = $this->_credential->getAccessKeySecret(); + $token = $this->_credential->getSecurityToken(); + $_request->protocol = $this->_protocol; + $_request->method = 'GET'; + $_request->pathname = '/' . $request->objectName . '?tagging'; + $_request->headers = [ + 'host' => OSSUtils::getHost($request->bucketName, $this->_regionId, $this->_endpoint, $this->_hostModel), + 'date' => Utils::getDateUTCString(), + 'user-agent' => $this->getUserAgent(), + ]; + if (!Utils::empty_($token)) { + $_request->headers['x-oss-security-token'] = $token; + } + $_request->headers['authorization'] = OSSUtils::getSignature($_request, $request->bucketName, $accessKeyId, $accessKeySecret, $this->_signatureVersion, $this->_addtionalHeaders); + $_lastRequest = $_request; + $_response = Tea::send($_request, $_runtime); + $respMap = null; + $bodyStr = null; + if (Utils::is4xx($_response->statusCode) || Utils::is5xx($_response->statusCode)) { + $bodyStr = Utils::readAsString($_response->body); + $respMap = OSSUtils::getErrMessage($bodyStr); + + throw new TeaError([ + 'code' => @$respMap['Code'], + 'message' => @$respMap['Message'], + 'data' => [ + 'httpCode' => $_response->statusCode, + 'requestId' => @$respMap['RequestId'], + 'hostId' => @$respMap['HostId'], + ], + ]); + } + $bodyStr = Utils::readAsString($_response->body); + $respMap = XML::parseXml($bodyStr, GetObjectTaggingResponse::class); + + return GetObjectTaggingResponse::fromMap(Tea::merge([ + 'Tagging' => @$respMap['Tagging'], + ], $_response->headers)); + } catch (Exception $e) { + if (!($e instanceof TeaError)) { + $e = new TeaError([], $e->getMessage(), $e->getCode(), $e); + } + if (Tea::isRetryable($e)) { + $_lastException = $e; + + continue; + } + + throw $e; + } + } + + throw new TeaUnableRetryError($_lastRequest, $_lastException); + } + + /** + * @param DeleteBucketLifecycleRequest $request + * @param RuntimeOptions $runtime + * + * @throws TeaError + * @throws Exception + * @throws TeaUnableRetryError + * + * @return DeleteBucketLifecycleResponse + */ + public function deleteBucketLifecycle($request, $runtime) + { + $request->validate(); + $runtime->validate(); + $_runtime = [ + 'timeouted' => 'retry', + 'readTimeout' => Utils::defaultNumber($runtime->readTimeout, $this->_readTimeout), + 'connectTimeout' => Utils::defaultNumber($runtime->connectTimeout, $this->_connectTimeout), + 'localAddr' => Utils::defaultString($runtime->localAddr, $this->_localAddr), + 'httpProxy' => Utils::defaultString($runtime->httpProxy, $this->_httpProxy), + 'httpsProxy' => Utils::defaultString($runtime->httpsProxy, $this->_httpsProxy), + 'noProxy' => Utils::defaultString($runtime->noProxy, $this->_noProxy), + 'socks5Proxy' => Utils::defaultString($runtime->socks5Proxy, $this->_socks5Proxy), + 'socks5NetWork' => Utils::defaultString($runtime->socks5NetWork, $this->_socks5NetWork), + 'maxIdleConns' => Utils::defaultNumber($runtime->maxIdleConns, $this->_maxIdleConns), + 'retry' => [ + 'retryable' => $runtime->autoretry, + 'maxAttempts' => Utils::defaultNumber($runtime->maxAttempts, 3), + ], + 'backoff' => [ + 'policy' => Utils::defaultString($runtime->backoffPolicy, 'no'), + 'period' => Utils::defaultNumber($runtime->backoffPeriod, 1), + ], + 'ignoreSSL' => $runtime->ignoreSSL, + ]; + $_lastRequest = null; + $_lastException = null; + $_now = time(); + $_retryTimes = 0; + while (Tea::allowRetry(@$_runtime['retry'], $_retryTimes, $_now)) { + if ($_retryTimes > 0) { + $_backoffTime = Tea::getBackoffTime(@$_runtime['backoff'], $_retryTimes); + if ($_backoffTime > 0) { + Tea::sleep($_backoffTime); + } + } + $_retryTimes = $_retryTimes + 1; + + try { + $_request = new Request(); + $accessKeyId = $this->_credential->getAccessKeyId(); + $accessKeySecret = $this->_credential->getAccessKeySecret(); + $token = $this->_credential->getSecurityToken(); + $_request->protocol = $this->_protocol; + $_request->method = 'DELETE'; + $_request->pathname = '/?lifecycle'; + $_request->headers = [ + 'host' => OSSUtils::getHost($request->bucketName, $this->_regionId, $this->_endpoint, $this->_hostModel), + 'date' => Utils::getDateUTCString(), + 'user-agent' => $this->getUserAgent(), + ]; + if (!Utils::empty_($token)) { + $_request->headers['x-oss-security-token'] = $token; + } + $_request->headers['authorization'] = OSSUtils::getSignature($_request, $request->bucketName, $accessKeyId, $accessKeySecret, $this->_signatureVersion, $this->_addtionalHeaders); + $_lastRequest = $_request; + $_response = Tea::send($_request, $_runtime); + $respMap = null; + $bodyStr = null; + if (Utils::is4xx($_response->statusCode) || Utils::is5xx($_response->statusCode)) { + $bodyStr = Utils::readAsString($_response->body); + $respMap = OSSUtils::getErrMessage($bodyStr); + + throw new TeaError([ + 'code' => @$respMap['Code'], + 'message' => @$respMap['Message'], + 'data' => [ + 'httpCode' => $_response->statusCode, + 'requestId' => @$respMap['RequestId'], + 'hostId' => @$respMap['HostId'], + ], + ]); + } + + return DeleteBucketLifecycleResponse::fromMap(Tea::merge($_response->headers)); + } catch (Exception $e) { + if (!($e instanceof TeaError)) { + $e = new TeaError([], $e->getMessage(), $e->getCode(), $e); + } + if (Tea::isRetryable($e)) { + $_lastException = $e; + + continue; + } + + throw $e; + } + } + + throw new TeaUnableRetryError($_lastRequest, $_lastException); + } + + /** + * @param DeleteBucketLoggingRequest $request + * @param RuntimeOptions $runtime + * + * @throws TeaError + * @throws Exception + * @throws TeaUnableRetryError + * + * @return DeleteBucketLoggingResponse + */ + public function deleteBucketLogging($request, $runtime) + { + $request->validate(); + $runtime->validate(); + $_runtime = [ + 'timeouted' => 'retry', + 'readTimeout' => Utils::defaultNumber($runtime->readTimeout, $this->_readTimeout), + 'connectTimeout' => Utils::defaultNumber($runtime->connectTimeout, $this->_connectTimeout), + 'localAddr' => Utils::defaultString($runtime->localAddr, $this->_localAddr), + 'httpProxy' => Utils::defaultString($runtime->httpProxy, $this->_httpProxy), + 'httpsProxy' => Utils::defaultString($runtime->httpsProxy, $this->_httpsProxy), + 'noProxy' => Utils::defaultString($runtime->noProxy, $this->_noProxy), + 'socks5Proxy' => Utils::defaultString($runtime->socks5Proxy, $this->_socks5Proxy), + 'socks5NetWork' => Utils::defaultString($runtime->socks5NetWork, $this->_socks5NetWork), + 'maxIdleConns' => Utils::defaultNumber($runtime->maxIdleConns, $this->_maxIdleConns), + 'retry' => [ + 'retryable' => $runtime->autoretry, + 'maxAttempts' => Utils::defaultNumber($runtime->maxAttempts, 3), + ], + 'backoff' => [ + 'policy' => Utils::defaultString($runtime->backoffPolicy, 'no'), + 'period' => Utils::defaultNumber($runtime->backoffPeriod, 1), + ], + 'ignoreSSL' => $runtime->ignoreSSL, + ]; + $_lastRequest = null; + $_lastException = null; + $_now = time(); + $_retryTimes = 0; + while (Tea::allowRetry(@$_runtime['retry'], $_retryTimes, $_now)) { + if ($_retryTimes > 0) { + $_backoffTime = Tea::getBackoffTime(@$_runtime['backoff'], $_retryTimes); + if ($_backoffTime > 0) { + Tea::sleep($_backoffTime); + } + } + $_retryTimes = $_retryTimes + 1; + + try { + $_request = new Request(); + $accessKeyId = $this->_credential->getAccessKeyId(); + $accessKeySecret = $this->_credential->getAccessKeySecret(); + $token = $this->_credential->getSecurityToken(); + $_request->protocol = $this->_protocol; + $_request->method = 'DELETE'; + $_request->pathname = '/?logging'; + $_request->headers = [ + 'host' => OSSUtils::getHost($request->bucketName, $this->_regionId, $this->_endpoint, $this->_hostModel), + 'date' => Utils::getDateUTCString(), + 'user-agent' => $this->getUserAgent(), + ]; + if (!Utils::empty_($token)) { + $_request->headers['x-oss-security-token'] = $token; + } + $_request->headers['authorization'] = OSSUtils::getSignature($_request, $request->bucketName, $accessKeyId, $accessKeySecret, $this->_signatureVersion, $this->_addtionalHeaders); + $_lastRequest = $_request; + $_response = Tea::send($_request, $_runtime); + $respMap = null; + $bodyStr = null; + if (Utils::is4xx($_response->statusCode) || Utils::is5xx($_response->statusCode)) { + $bodyStr = Utils::readAsString($_response->body); + $respMap = OSSUtils::getErrMessage($bodyStr); + + throw new TeaError([ + 'code' => @$respMap['Code'], + 'message' => @$respMap['Message'], + 'data' => [ + 'httpCode' => $_response->statusCode, + 'requestId' => @$respMap['RequestId'], + 'hostId' => @$respMap['HostId'], + ], + ]); + } + + return DeleteBucketLoggingResponse::fromMap(Tea::merge($_response->headers)); + } catch (Exception $e) { + if (!($e instanceof TeaError)) { + $e = new TeaError([], $e->getMessage(), $e->getCode(), $e); + } + if (Tea::isRetryable($e)) { + $_lastException = $e; + + continue; + } + + throw $e; + } + } + + throw new TeaUnableRetryError($_lastRequest, $_lastException); + } + + /** + * @param DeleteBucketWebsiteRequest $request + * @param RuntimeOptions $runtime + * + * @throws TeaError + * @throws Exception + * @throws TeaUnableRetryError + * + * @return DeleteBucketWebsiteResponse + */ + public function deleteBucketWebsite($request, $runtime) + { + $request->validate(); + $runtime->validate(); + $_runtime = [ + 'timeouted' => 'retry', + 'readTimeout' => Utils::defaultNumber($runtime->readTimeout, $this->_readTimeout), + 'connectTimeout' => Utils::defaultNumber($runtime->connectTimeout, $this->_connectTimeout), + 'localAddr' => Utils::defaultString($runtime->localAddr, $this->_localAddr), + 'httpProxy' => Utils::defaultString($runtime->httpProxy, $this->_httpProxy), + 'httpsProxy' => Utils::defaultString($runtime->httpsProxy, $this->_httpsProxy), + 'noProxy' => Utils::defaultString($runtime->noProxy, $this->_noProxy), + 'socks5Proxy' => Utils::defaultString($runtime->socks5Proxy, $this->_socks5Proxy), + 'socks5NetWork' => Utils::defaultString($runtime->socks5NetWork, $this->_socks5NetWork), + 'maxIdleConns' => Utils::defaultNumber($runtime->maxIdleConns, $this->_maxIdleConns), + 'retry' => [ + 'retryable' => $runtime->autoretry, + 'maxAttempts' => Utils::defaultNumber($runtime->maxAttempts, 3), + ], + 'backoff' => [ + 'policy' => Utils::defaultString($runtime->backoffPolicy, 'no'), + 'period' => Utils::defaultNumber($runtime->backoffPeriod, 1), + ], + 'ignoreSSL' => $runtime->ignoreSSL, + ]; + $_lastRequest = null; + $_lastException = null; + $_now = time(); + $_retryTimes = 0; + while (Tea::allowRetry(@$_runtime['retry'], $_retryTimes, $_now)) { + if ($_retryTimes > 0) { + $_backoffTime = Tea::getBackoffTime(@$_runtime['backoff'], $_retryTimes); + if ($_backoffTime > 0) { + Tea::sleep($_backoffTime); + } + } + $_retryTimes = $_retryTimes + 1; + + try { + $_request = new Request(); + $accessKeyId = $this->_credential->getAccessKeyId(); + $accessKeySecret = $this->_credential->getAccessKeySecret(); + $token = $this->_credential->getSecurityToken(); + $_request->protocol = $this->_protocol; + $_request->method = 'DELETE'; + $_request->pathname = '/?website'; + $_request->headers = [ + 'host' => OSSUtils::getHost($request->bucketName, $this->_regionId, $this->_endpoint, $this->_hostModel), + 'date' => Utils::getDateUTCString(), + 'user-agent' => $this->getUserAgent(), + ]; + if (!Utils::empty_($token)) { + $_request->headers['x-oss-security-token'] = $token; + } + $_request->headers['authorization'] = OSSUtils::getSignature($_request, $request->bucketName, $accessKeyId, $accessKeySecret, $this->_signatureVersion, $this->_addtionalHeaders); + $_lastRequest = $_request; + $_response = Tea::send($_request, $_runtime); + $respMap = null; + $bodyStr = null; + if (Utils::is4xx($_response->statusCode) || Utils::is5xx($_response->statusCode)) { + $bodyStr = Utils::readAsString($_response->body); + $respMap = OSSUtils::getErrMessage($bodyStr); + + throw new TeaError([ + 'code' => @$respMap['Code'], + 'message' => @$respMap['Message'], + 'data' => [ + 'httpCode' => $_response->statusCode, + 'requestId' => @$respMap['RequestId'], + 'hostId' => @$respMap['HostId'], + ], + ]); + } + + return DeleteBucketWebsiteResponse::fromMap(Tea::merge($_response->headers)); + } catch (Exception $e) { + if (!($e instanceof TeaError)) { + $e = new TeaError([], $e->getMessage(), $e->getCode(), $e); + } + if (Tea::isRetryable($e)) { + $_lastException = $e; + + continue; + } + + throw $e; + } + } + + throw new TeaUnableRetryError($_lastRequest, $_lastException); + } + + /** + * @param GetSymlinkRequest $request + * @param RuntimeOptions $runtime + * + * @throws TeaError + * @throws Exception + * @throws TeaUnableRetryError + * + * @return GetSymlinkResponse + */ + public function getSymlink($request, $runtime) + { + $request->validate(); + $runtime->validate(); + $_runtime = [ + 'timeouted' => 'retry', + 'readTimeout' => Utils::defaultNumber($runtime->readTimeout, $this->_readTimeout), + 'connectTimeout' => Utils::defaultNumber($runtime->connectTimeout, $this->_connectTimeout), + 'localAddr' => Utils::defaultString($runtime->localAddr, $this->_localAddr), + 'httpProxy' => Utils::defaultString($runtime->httpProxy, $this->_httpProxy), + 'httpsProxy' => Utils::defaultString($runtime->httpsProxy, $this->_httpsProxy), + 'noProxy' => Utils::defaultString($runtime->noProxy, $this->_noProxy), + 'socks5Proxy' => Utils::defaultString($runtime->socks5Proxy, $this->_socks5Proxy), + 'socks5NetWork' => Utils::defaultString($runtime->socks5NetWork, $this->_socks5NetWork), + 'maxIdleConns' => Utils::defaultNumber($runtime->maxIdleConns, $this->_maxIdleConns), + 'retry' => [ + 'retryable' => $runtime->autoretry, + 'maxAttempts' => Utils::defaultNumber($runtime->maxAttempts, 3), + ], + 'backoff' => [ + 'policy' => Utils::defaultString($runtime->backoffPolicy, 'no'), + 'period' => Utils::defaultNumber($runtime->backoffPeriod, 1), + ], + 'ignoreSSL' => $runtime->ignoreSSL, + ]; + $_lastRequest = null; + $_lastException = null; + $_now = time(); + $_retryTimes = 0; + while (Tea::allowRetry(@$_runtime['retry'], $_retryTimes, $_now)) { + if ($_retryTimes > 0) { + $_backoffTime = Tea::getBackoffTime(@$_runtime['backoff'], $_retryTimes); + if ($_backoffTime > 0) { + Tea::sleep($_backoffTime); + } + } + $_retryTimes = $_retryTimes + 1; + + try { + $_request = new Request(); + $accessKeyId = $this->_credential->getAccessKeyId(); + $accessKeySecret = $this->_credential->getAccessKeySecret(); + $token = $this->_credential->getSecurityToken(); + $_request->protocol = $this->_protocol; + $_request->method = 'GET'; + $_request->pathname = '/' . $request->objectName . '?symlink'; + $_request->headers = [ + 'host' => OSSUtils::getHost($request->bucketName, $this->_regionId, $this->_endpoint, $this->_hostModel), + 'date' => Utils::getDateUTCString(), + 'user-agent' => $this->getUserAgent(), + ]; + if (!Utils::empty_($token)) { + $_request->headers['x-oss-security-token'] = $token; + } + $_request->headers['authorization'] = OSSUtils::getSignature($_request, $request->bucketName, $accessKeyId, $accessKeySecret, $this->_signatureVersion, $this->_addtionalHeaders); + $_lastRequest = $_request; + $_response = Tea::send($_request, $_runtime); + $respMap = null; + $bodyStr = null; + if (Utils::is4xx($_response->statusCode) || Utils::is5xx($_response->statusCode)) { + $bodyStr = Utils::readAsString($_response->body); + $respMap = OSSUtils::getErrMessage($bodyStr); + + throw new TeaError([ + 'code' => @$respMap['Code'], + 'message' => @$respMap['Message'], + 'data' => [ + 'httpCode' => $_response->statusCode, + 'requestId' => @$respMap['RequestId'], + 'hostId' => @$respMap['HostId'], + ], + ]); + } + + return GetSymlinkResponse::fromMap(Tea::merge($_response->headers)); + } catch (Exception $e) { + if (!($e instanceof TeaError)) { + $e = new TeaError([], $e->getMessage(), $e->getCode(), $e); + } + if (Tea::isRetryable($e)) { + $_lastException = $e; + + continue; + } + + throw $e; + } + } + + throw new TeaUnableRetryError($_lastRequest, $_lastException); + } + + /** + * @param GetBucketLifecycleRequest $request + * @param RuntimeOptions $runtime + * + * @throws TeaError + * @throws Exception + * @throws TeaUnableRetryError + * + * @return GetBucketLifecycleResponse + */ + public function getBucketLifecycle($request, $runtime) + { + $request->validate(); + $runtime->validate(); + $_runtime = [ + 'timeouted' => 'retry', + 'readTimeout' => Utils::defaultNumber($runtime->readTimeout, $this->_readTimeout), + 'connectTimeout' => Utils::defaultNumber($runtime->connectTimeout, $this->_connectTimeout), + 'localAddr' => Utils::defaultString($runtime->localAddr, $this->_localAddr), + 'httpProxy' => Utils::defaultString($runtime->httpProxy, $this->_httpProxy), + 'httpsProxy' => Utils::defaultString($runtime->httpsProxy, $this->_httpsProxy), + 'noProxy' => Utils::defaultString($runtime->noProxy, $this->_noProxy), + 'socks5Proxy' => Utils::defaultString($runtime->socks5Proxy, $this->_socks5Proxy), + 'socks5NetWork' => Utils::defaultString($runtime->socks5NetWork, $this->_socks5NetWork), + 'maxIdleConns' => Utils::defaultNumber($runtime->maxIdleConns, $this->_maxIdleConns), + 'retry' => [ + 'retryable' => $runtime->autoretry, + 'maxAttempts' => Utils::defaultNumber($runtime->maxAttempts, 3), + ], + 'backoff' => [ + 'policy' => Utils::defaultString($runtime->backoffPolicy, 'no'), + 'period' => Utils::defaultNumber($runtime->backoffPeriod, 1), + ], + 'ignoreSSL' => $runtime->ignoreSSL, + ]; + $_lastRequest = null; + $_lastException = null; + $_now = time(); + $_retryTimes = 0; + while (Tea::allowRetry(@$_runtime['retry'], $_retryTimes, $_now)) { + if ($_retryTimes > 0) { + $_backoffTime = Tea::getBackoffTime(@$_runtime['backoff'], $_retryTimes); + if ($_backoffTime > 0) { + Tea::sleep($_backoffTime); + } + } + $_retryTimes = $_retryTimes + 1; + + try { + $_request = new Request(); + $accessKeyId = $this->_credential->getAccessKeyId(); + $accessKeySecret = $this->_credential->getAccessKeySecret(); + $token = $this->_credential->getSecurityToken(); + $_request->protocol = $this->_protocol; + $_request->method = 'GET'; + $_request->pathname = '/?lifecycle'; + $_request->headers = [ + 'host' => OSSUtils::getHost($request->bucketName, $this->_regionId, $this->_endpoint, $this->_hostModel), + 'date' => Utils::getDateUTCString(), + 'user-agent' => $this->getUserAgent(), + ]; + if (!Utils::empty_($token)) { + $_request->headers['x-oss-security-token'] = $token; + } + $_request->headers['authorization'] = OSSUtils::getSignature($_request, $request->bucketName, $accessKeyId, $accessKeySecret, $this->_signatureVersion, $this->_addtionalHeaders); + $_lastRequest = $_request; + $_response = Tea::send($_request, $_runtime); + $respMap = null; + $bodyStr = null; + if (Utils::is4xx($_response->statusCode) || Utils::is5xx($_response->statusCode)) { + $bodyStr = Utils::readAsString($_response->body); + $respMap = OSSUtils::getErrMessage($bodyStr); + + throw new TeaError([ + 'code' => @$respMap['Code'], + 'message' => @$respMap['Message'], + 'data' => [ + 'httpCode' => $_response->statusCode, + 'requestId' => @$respMap['RequestId'], + 'hostId' => @$respMap['HostId'], + ], + ]); + } + $bodyStr = Utils::readAsString($_response->body); + $respMap = XML::parseXml($bodyStr, GetBucketLifecycleResponse::class); + + return GetBucketLifecycleResponse::fromMap(Tea::merge([ + 'LifecycleConfiguration' => @$respMap['LifecycleConfiguration'], + ], $_response->headers)); + } catch (Exception $e) { + if (!($e instanceof TeaError)) { + $e = new TeaError([], $e->getMessage(), $e->getCode(), $e); + } + if (Tea::isRetryable($e)) { + $_lastException = $e; + + continue; + } + + throw $e; + } + } + + throw new TeaUnableRetryError($_lastRequest, $_lastException); + } + + /** + * @param PutSymlinkRequest $request + * @param RuntimeOptions $runtime + * + * @throws TeaError + * @throws Exception + * @throws TeaUnableRetryError + * + * @return PutSymlinkResponse + */ + public function putSymlink($request, $runtime) + { + $request->validate(); + $runtime->validate(); + $_runtime = [ + 'timeouted' => 'retry', + 'readTimeout' => Utils::defaultNumber($runtime->readTimeout, $this->_readTimeout), + 'connectTimeout' => Utils::defaultNumber($runtime->connectTimeout, $this->_connectTimeout), + 'localAddr' => Utils::defaultString($runtime->localAddr, $this->_localAddr), + 'httpProxy' => Utils::defaultString($runtime->httpProxy, $this->_httpProxy), + 'httpsProxy' => Utils::defaultString($runtime->httpsProxy, $this->_httpsProxy), + 'noProxy' => Utils::defaultString($runtime->noProxy, $this->_noProxy), + 'socks5Proxy' => Utils::defaultString($runtime->socks5Proxy, $this->_socks5Proxy), + 'socks5NetWork' => Utils::defaultString($runtime->socks5NetWork, $this->_socks5NetWork), + 'maxIdleConns' => Utils::defaultNumber($runtime->maxIdleConns, $this->_maxIdleConns), + 'retry' => [ + 'retryable' => $runtime->autoretry, + 'maxAttempts' => Utils::defaultNumber($runtime->maxAttempts, 3), + ], + 'backoff' => [ + 'policy' => Utils::defaultString($runtime->backoffPolicy, 'no'), + 'period' => Utils::defaultNumber($runtime->backoffPeriod, 1), + ], + 'ignoreSSL' => $runtime->ignoreSSL, + ]; + $_lastRequest = null; + $_lastException = null; + $_now = time(); + $_retryTimes = 0; + while (Tea::allowRetry(@$_runtime['retry'], $_retryTimes, $_now)) { + if ($_retryTimes > 0) { + $_backoffTime = Tea::getBackoffTime(@$_runtime['backoff'], $_retryTimes); + if ($_backoffTime > 0) { + Tea::sleep($_backoffTime); + } + } + $_retryTimes = $_retryTimes + 1; + + try { + $_request = new Request(); + $accessKeyId = $this->_credential->getAccessKeyId(); + $accessKeySecret = $this->_credential->getAccessKeySecret(); + $token = $this->_credential->getSecurityToken(); + $_request->protocol = $this->_protocol; + $_request->method = 'PUT'; + $_request->pathname = '/' . $request->objectName . '?symlink'; + $_request->headers = Tea::merge([ + 'host' => OSSUtils::getHost($request->bucketName, $this->_regionId, $this->_endpoint, $this->_hostModel), + 'date' => Utils::getDateUTCString(), + 'user-agent' => $this->getUserAgent(), + ], Utils::stringifyMapValue(Tea::merge($request->header))); + if (!Utils::empty_($token)) { + $_request->headers['x-oss-security-token'] = $token; + } + $_request->headers['authorization'] = OSSUtils::getSignature($_request, $request->bucketName, $accessKeyId, $accessKeySecret, $this->_signatureVersion, $this->_addtionalHeaders); + $_lastRequest = $_request; + $_response = Tea::send($_request, $_runtime); + $respMap = null; + $bodyStr = null; + if (Utils::is4xx($_response->statusCode) || Utils::is5xx($_response->statusCode)) { + $bodyStr = Utils::readAsString($_response->body); + $respMap = OSSUtils::getErrMessage($bodyStr); + + throw new TeaError([ + 'code' => @$respMap['Code'], + 'message' => @$respMap['Message'], + 'data' => [ + 'httpCode' => $_response->statusCode, + 'requestId' => @$respMap['RequestId'], + 'hostId' => @$respMap['HostId'], + ], + ]); + } + + return PutSymlinkResponse::fromMap(Tea::merge($_response->headers)); + } catch (Exception $e) { + if (!($e instanceof TeaError)) { + $e = new TeaError([], $e->getMessage(), $e->getCode(), $e); + } + if (Tea::isRetryable($e)) { + $_lastException = $e; + + continue; + } + + throw $e; + } + } + + throw new TeaUnableRetryError($_lastRequest, $_lastException); + } + + /** + * @param GetBucketRefererRequest $request + * @param RuntimeOptions $runtime + * + * @throws TeaError + * @throws Exception + * @throws TeaUnableRetryError + * + * @return GetBucketRefererResponse + */ + public function getBucketReferer($request, $runtime) + { + $request->validate(); + $runtime->validate(); + $_runtime = [ + 'timeouted' => 'retry', + 'readTimeout' => Utils::defaultNumber($runtime->readTimeout, $this->_readTimeout), + 'connectTimeout' => Utils::defaultNumber($runtime->connectTimeout, $this->_connectTimeout), + 'localAddr' => Utils::defaultString($runtime->localAddr, $this->_localAddr), + 'httpProxy' => Utils::defaultString($runtime->httpProxy, $this->_httpProxy), + 'httpsProxy' => Utils::defaultString($runtime->httpsProxy, $this->_httpsProxy), + 'noProxy' => Utils::defaultString($runtime->noProxy, $this->_noProxy), + 'socks5Proxy' => Utils::defaultString($runtime->socks5Proxy, $this->_socks5Proxy), + 'socks5NetWork' => Utils::defaultString($runtime->socks5NetWork, $this->_socks5NetWork), + 'maxIdleConns' => Utils::defaultNumber($runtime->maxIdleConns, $this->_maxIdleConns), + 'retry' => [ + 'retryable' => $runtime->autoretry, + 'maxAttempts' => Utils::defaultNumber($runtime->maxAttempts, 3), + ], + 'backoff' => [ + 'policy' => Utils::defaultString($runtime->backoffPolicy, 'no'), + 'period' => Utils::defaultNumber($runtime->backoffPeriod, 1), + ], + 'ignoreSSL' => $runtime->ignoreSSL, + ]; + $_lastRequest = null; + $_lastException = null; + $_now = time(); + $_retryTimes = 0; + while (Tea::allowRetry(@$_runtime['retry'], $_retryTimes, $_now)) { + if ($_retryTimes > 0) { + $_backoffTime = Tea::getBackoffTime(@$_runtime['backoff'], $_retryTimes); + if ($_backoffTime > 0) { + Tea::sleep($_backoffTime); + } + } + $_retryTimes = $_retryTimes + 1; + + try { + $_request = new Request(); + $accessKeyId = $this->_credential->getAccessKeyId(); + $accessKeySecret = $this->_credential->getAccessKeySecret(); + $token = $this->_credential->getSecurityToken(); + $_request->protocol = $this->_protocol; + $_request->method = 'GET'; + $_request->pathname = '/?referer'; + $_request->headers = [ + 'host' => OSSUtils::getHost($request->bucketName, $this->_regionId, $this->_endpoint, $this->_hostModel), + 'date' => Utils::getDateUTCString(), + 'user-agent' => $this->getUserAgent(), + ]; + if (!Utils::empty_($token)) { + $_request->headers['x-oss-security-token'] = $token; + } + $_request->headers['authorization'] = OSSUtils::getSignature($_request, $request->bucketName, $accessKeyId, $accessKeySecret, $this->_signatureVersion, $this->_addtionalHeaders); + $_lastRequest = $_request; + $_response = Tea::send($_request, $_runtime); + $respMap = null; + $bodyStr = null; + if (Utils::is4xx($_response->statusCode) || Utils::is5xx($_response->statusCode)) { + $bodyStr = Utils::readAsString($_response->body); + $respMap = OSSUtils::getErrMessage($bodyStr); + + throw new TeaError([ + 'code' => @$respMap['Code'], + 'message' => @$respMap['Message'], + 'data' => [ + 'httpCode' => $_response->statusCode, + 'requestId' => @$respMap['RequestId'], + 'hostId' => @$respMap['HostId'], + ], + ]); + } + $bodyStr = Utils::readAsString($_response->body); + $respMap = XML::parseXml($bodyStr, GetBucketRefererResponse::class); + + return GetBucketRefererResponse::fromMap(Tea::merge([ + 'RefererConfiguration' => @$respMap['RefererConfiguration'], + ], $_response->headers)); + } catch (Exception $e) { + if (!($e instanceof TeaError)) { + $e = new TeaError([], $e->getMessage(), $e->getCode(), $e); + } + if (Tea::isRetryable($e)) { + $_lastException = $e; + + continue; + } + + throw $e; + } + } + + throw new TeaUnableRetryError($_lastRequest, $_lastException); + } + + /** + * @param CallbackRequest $request + * @param RuntimeOptions $runtime + * + * @throws TeaError + * @throws Exception + * @throws TeaUnableRetryError + * + * @return CallbackResponse + */ + public function callback($request, $runtime) + { + $request->validate(); + $runtime->validate(); + $_runtime = [ + 'timeouted' => 'retry', + 'readTimeout' => Utils::defaultNumber($runtime->readTimeout, $this->_readTimeout), + 'connectTimeout' => Utils::defaultNumber($runtime->connectTimeout, $this->_connectTimeout), + 'localAddr' => Utils::defaultString($runtime->localAddr, $this->_localAddr), + 'httpProxy' => Utils::defaultString($runtime->httpProxy, $this->_httpProxy), + 'httpsProxy' => Utils::defaultString($runtime->httpsProxy, $this->_httpsProxy), + 'noProxy' => Utils::defaultString($runtime->noProxy, $this->_noProxy), + 'socks5Proxy' => Utils::defaultString($runtime->socks5Proxy, $this->_socks5Proxy), + 'socks5NetWork' => Utils::defaultString($runtime->socks5NetWork, $this->_socks5NetWork), + 'maxIdleConns' => Utils::defaultNumber($runtime->maxIdleConns, $this->_maxIdleConns), + 'retry' => [ + 'retryable' => $runtime->autoretry, + 'maxAttempts' => Utils::defaultNumber($runtime->maxAttempts, 3), + ], + 'backoff' => [ + 'policy' => Utils::defaultString($runtime->backoffPolicy, 'no'), + 'period' => Utils::defaultNumber($runtime->backoffPeriod, 1), + ], + 'ignoreSSL' => $runtime->ignoreSSL, + ]; + $_lastRequest = null; + $_lastException = null; + $_now = time(); + $_retryTimes = 0; + while (Tea::allowRetry(@$_runtime['retry'], $_retryTimes, $_now)) { + if ($_retryTimes > 0) { + $_backoffTime = Tea::getBackoffTime(@$_runtime['backoff'], $_retryTimes); + if ($_backoffTime > 0) { + Tea::sleep($_backoffTime); + } + } + $_retryTimes = $_retryTimes + 1; + + try { + $_request = new Request(); + $accessKeyId = $this->_credential->getAccessKeyId(); + $accessKeySecret = $this->_credential->getAccessKeySecret(); + $token = $this->_credential->getSecurityToken(); + $_request->protocol = $this->_protocol; + $_request->method = 'GET'; + $_request->pathname = '/'; + $_request->headers = [ + 'host' => OSSUtils::getHost($request->bucketName, $this->_regionId, $this->_endpoint, $this->_hostModel), + 'date' => Utils::getDateUTCString(), + 'user-agent' => $this->getUserAgent(), + ]; + if (!Utils::empty_($token)) { + $_request->headers['x-oss-security-token'] = $token; + } + $_request->headers['authorization'] = OSSUtils::getSignature($_request, $request->bucketName, $accessKeyId, $accessKeySecret, $this->_signatureVersion, $this->_addtionalHeaders); + $_lastRequest = $_request; + $_response = Tea::send($_request, $_runtime); + $respMap = null; + $bodyStr = null; + if (Utils::is4xx($_response->statusCode) || Utils::is5xx($_response->statusCode)) { + $bodyStr = Utils::readAsString($_response->body); + $respMap = OSSUtils::getErrMessage($bodyStr); + + throw new TeaError([ + 'code' => @$respMap['Code'], + 'message' => @$respMap['Message'], + 'data' => [ + 'httpCode' => $_response->statusCode, + 'requestId' => @$respMap['RequestId'], + 'hostId' => @$respMap['HostId'], + ], + ]); + } + + return CallbackResponse::fromMap(Tea::merge($_response->headers)); + } catch (Exception $e) { + if (!($e instanceof TeaError)) { + $e = new TeaError([], $e->getMessage(), $e->getCode(), $e); + } + if (Tea::isRetryable($e)) { + $_lastException = $e; + + continue; + } + + throw $e; + } + } + + throw new TeaUnableRetryError($_lastRequest, $_lastException); + } + + /** + * @param GetBucketLoggingRequest $request + * @param RuntimeOptions $runtime + * + * @throws TeaError + * @throws Exception + * @throws TeaUnableRetryError + * + * @return GetBucketLoggingResponse + */ + public function getBucketLogging($request, $runtime) + { + $request->validate(); + $runtime->validate(); + $_runtime = [ + 'timeouted' => 'retry', + 'readTimeout' => Utils::defaultNumber($runtime->readTimeout, $this->_readTimeout), + 'connectTimeout' => Utils::defaultNumber($runtime->connectTimeout, $this->_connectTimeout), + 'localAddr' => Utils::defaultString($runtime->localAddr, $this->_localAddr), + 'httpProxy' => Utils::defaultString($runtime->httpProxy, $this->_httpProxy), + 'httpsProxy' => Utils::defaultString($runtime->httpsProxy, $this->_httpsProxy), + 'noProxy' => Utils::defaultString($runtime->noProxy, $this->_noProxy), + 'socks5Proxy' => Utils::defaultString($runtime->socks5Proxy, $this->_socks5Proxy), + 'socks5NetWork' => Utils::defaultString($runtime->socks5NetWork, $this->_socks5NetWork), + 'maxIdleConns' => Utils::defaultNumber($runtime->maxIdleConns, $this->_maxIdleConns), + 'retry' => [ + 'retryable' => $runtime->autoretry, + 'maxAttempts' => Utils::defaultNumber($runtime->maxAttempts, 3), + ], + 'backoff' => [ + 'policy' => Utils::defaultString($runtime->backoffPolicy, 'no'), + 'period' => Utils::defaultNumber($runtime->backoffPeriod, 1), + ], + 'ignoreSSL' => $runtime->ignoreSSL, + ]; + $_lastRequest = null; + $_lastException = null; + $_now = time(); + $_retryTimes = 0; + while (Tea::allowRetry(@$_runtime['retry'], $_retryTimes, $_now)) { + if ($_retryTimes > 0) { + $_backoffTime = Tea::getBackoffTime(@$_runtime['backoff'], $_retryTimes); + if ($_backoffTime > 0) { + Tea::sleep($_backoffTime); + } + } + $_retryTimes = $_retryTimes + 1; + + try { + $_request = new Request(); + $accessKeyId = $this->_credential->getAccessKeyId(); + $accessKeySecret = $this->_credential->getAccessKeySecret(); + $token = $this->_credential->getSecurityToken(); + $_request->protocol = $this->_protocol; + $_request->method = 'GET'; + $_request->pathname = '/?logging'; + $_request->headers = [ + 'host' => OSSUtils::getHost($request->bucketName, $this->_regionId, $this->_endpoint, $this->_hostModel), + 'date' => Utils::getDateUTCString(), + 'user-agent' => $this->getUserAgent(), + ]; + if (!Utils::empty_($token)) { + $_request->headers['x-oss-security-token'] = $token; + } + $_request->headers['authorization'] = OSSUtils::getSignature($_request, $request->bucketName, $accessKeyId, $accessKeySecret, $this->_signatureVersion, $this->_addtionalHeaders); + $_lastRequest = $_request; + $_response = Tea::send($_request, $_runtime); + $respMap = null; + $bodyStr = null; + if (Utils::is4xx($_response->statusCode) || Utils::is5xx($_response->statusCode)) { + $bodyStr = Utils::readAsString($_response->body); + $respMap = OSSUtils::getErrMessage($bodyStr); + + throw new TeaError([ + 'code' => @$respMap['Code'], + 'message' => @$respMap['Message'], + 'data' => [ + 'httpCode' => $_response->statusCode, + 'requestId' => @$respMap['RequestId'], + 'hostId' => @$respMap['HostId'], + ], + ]); + } + $bodyStr = Utils::readAsString($_response->body); + $respMap = XML::parseXml($bodyStr, GetBucketLoggingResponse::class); + + return GetBucketLoggingResponse::fromMap(Tea::merge([ + 'BucketLoggingStatus' => @$respMap['BucketLoggingStatus'], + ], $_response->headers)); + } catch (Exception $e) { + if (!($e instanceof TeaError)) { + $e = new TeaError([], $e->getMessage(), $e->getCode(), $e); + } + if (Tea::isRetryable($e)) { + $_lastException = $e; + + continue; + } + + throw $e; + } + } + + throw new TeaUnableRetryError($_lastRequest, $_lastException); + } + + /** + * @param PutObjectAclRequest $request + * @param RuntimeOptions $runtime + * + * @throws TeaError + * @throws Exception + * @throws TeaUnableRetryError + * + * @return PutObjectAclResponse + */ + public function putObjectAcl($request, $runtime) + { + $request->validate(); + $runtime->validate(); + $_runtime = [ + 'timeouted' => 'retry', + 'readTimeout' => Utils::defaultNumber($runtime->readTimeout, $this->_readTimeout), + 'connectTimeout' => Utils::defaultNumber($runtime->connectTimeout, $this->_connectTimeout), + 'localAddr' => Utils::defaultString($runtime->localAddr, $this->_localAddr), + 'httpProxy' => Utils::defaultString($runtime->httpProxy, $this->_httpProxy), + 'httpsProxy' => Utils::defaultString($runtime->httpsProxy, $this->_httpsProxy), + 'noProxy' => Utils::defaultString($runtime->noProxy, $this->_noProxy), + 'socks5Proxy' => Utils::defaultString($runtime->socks5Proxy, $this->_socks5Proxy), + 'socks5NetWork' => Utils::defaultString($runtime->socks5NetWork, $this->_socks5NetWork), + 'maxIdleConns' => Utils::defaultNumber($runtime->maxIdleConns, $this->_maxIdleConns), + 'retry' => [ + 'retryable' => $runtime->autoretry, + 'maxAttempts' => Utils::defaultNumber($runtime->maxAttempts, 3), + ], + 'backoff' => [ + 'policy' => Utils::defaultString($runtime->backoffPolicy, 'no'), + 'period' => Utils::defaultNumber($runtime->backoffPeriod, 1), + ], + 'ignoreSSL' => $runtime->ignoreSSL, + ]; + $_lastRequest = null; + $_lastException = null; + $_now = time(); + $_retryTimes = 0; + while (Tea::allowRetry(@$_runtime['retry'], $_retryTimes, $_now)) { + if ($_retryTimes > 0) { + $_backoffTime = Tea::getBackoffTime(@$_runtime['backoff'], $_retryTimes); + if ($_backoffTime > 0) { + Tea::sleep($_backoffTime); + } + } + $_retryTimes = $_retryTimes + 1; + + try { + $_request = new Request(); + $accessKeyId = $this->_credential->getAccessKeyId(); + $accessKeySecret = $this->_credential->getAccessKeySecret(); + $token = $this->_credential->getSecurityToken(); + $_request->protocol = $this->_protocol; + $_request->method = 'PUT'; + $_request->pathname = '/' . $request->objectName . '?acl'; + $_request->headers = Tea::merge([ + 'host' => OSSUtils::getHost($request->bucketName, $this->_regionId, $this->_endpoint, $this->_hostModel), + 'date' => Utils::getDateUTCString(), + 'user-agent' => $this->getUserAgent(), + ], Utils::stringifyMapValue(Tea::merge($request->header))); + if (!Utils::empty_($token)) { + $_request->headers['x-oss-security-token'] = $token; + } + $_request->headers['authorization'] = OSSUtils::getSignature($_request, $request->bucketName, $accessKeyId, $accessKeySecret, $this->_signatureVersion, $this->_addtionalHeaders); + $_lastRequest = $_request; + $_response = Tea::send($_request, $_runtime); + $respMap = null; + $bodyStr = null; + if (Utils::is4xx($_response->statusCode) || Utils::is5xx($_response->statusCode)) { + $bodyStr = Utils::readAsString($_response->body); + $respMap = OSSUtils::getErrMessage($bodyStr); + + throw new TeaError([ + 'code' => @$respMap['Code'], + 'message' => @$respMap['Message'], + 'data' => [ + 'httpCode' => $_response->statusCode, + 'requestId' => @$respMap['RequestId'], + 'hostId' => @$respMap['HostId'], + ], + ]); + } + + return PutObjectAclResponse::fromMap(Tea::merge($_response->headers)); + } catch (Exception $e) { + if (!($e instanceof TeaError)) { + $e = new TeaError([], $e->getMessage(), $e->getCode(), $e); + } + if (Tea::isRetryable($e)) { + $_lastException = $e; + + continue; + } + + throw $e; + } + } + + throw new TeaUnableRetryError($_lastRequest, $_lastException); + } + + /** + * @param GetBucketInfoRequest $request + * @param RuntimeOptions $runtime + * + * @throws TeaError + * @throws Exception + * @throws TeaUnableRetryError + * + * @return GetBucketInfoResponse + */ + public function getBucketInfo($request, $runtime) + { + $request->validate(); + $runtime->validate(); + $_runtime = [ + 'timeouted' => 'retry', + 'readTimeout' => Utils::defaultNumber($runtime->readTimeout, $this->_readTimeout), + 'connectTimeout' => Utils::defaultNumber($runtime->connectTimeout, $this->_connectTimeout), + 'localAddr' => Utils::defaultString($runtime->localAddr, $this->_localAddr), + 'httpProxy' => Utils::defaultString($runtime->httpProxy, $this->_httpProxy), + 'httpsProxy' => Utils::defaultString($runtime->httpsProxy, $this->_httpsProxy), + 'noProxy' => Utils::defaultString($runtime->noProxy, $this->_noProxy), + 'socks5Proxy' => Utils::defaultString($runtime->socks5Proxy, $this->_socks5Proxy), + 'socks5NetWork' => Utils::defaultString($runtime->socks5NetWork, $this->_socks5NetWork), + 'maxIdleConns' => Utils::defaultNumber($runtime->maxIdleConns, $this->_maxIdleConns), + 'retry' => [ + 'retryable' => $runtime->autoretry, + 'maxAttempts' => Utils::defaultNumber($runtime->maxAttempts, 3), + ], + 'backoff' => [ + 'policy' => Utils::defaultString($runtime->backoffPolicy, 'no'), + 'period' => Utils::defaultNumber($runtime->backoffPeriod, 1), + ], + 'ignoreSSL' => $runtime->ignoreSSL, + ]; + $_lastRequest = null; + $_lastException = null; + $_now = time(); + $_retryTimes = 0; + while (Tea::allowRetry(@$_runtime['retry'], $_retryTimes, $_now)) { + if ($_retryTimes > 0) { + $_backoffTime = Tea::getBackoffTime(@$_runtime['backoff'], $_retryTimes); + if ($_backoffTime > 0) { + Tea::sleep($_backoffTime); + } + } + $_retryTimes = $_retryTimes + 1; + + try { + $_request = new Request(); + $accessKeyId = $this->_credential->getAccessKeyId(); + $accessKeySecret = $this->_credential->getAccessKeySecret(); + $token = $this->_credential->getSecurityToken(); + $_request->protocol = $this->_protocol; + $_request->method = 'GET'; + $_request->pathname = '/?bucketInfo'; + $_request->headers = [ + 'host' => OSSUtils::getHost($request->bucketName, $this->_regionId, $this->_endpoint, $this->_hostModel), + 'date' => Utils::getDateUTCString(), + 'user-agent' => $this->getUserAgent(), + ]; + if (!Utils::empty_($token)) { + $_request->headers['x-oss-security-token'] = $token; + } + $_request->headers['authorization'] = OSSUtils::getSignature($_request, $request->bucketName, $accessKeyId, $accessKeySecret, $this->_signatureVersion, $this->_addtionalHeaders); + $_lastRequest = $_request; + $_response = Tea::send($_request, $_runtime); + $respMap = null; + $bodyStr = null; + if (Utils::is4xx($_response->statusCode) || Utils::is5xx($_response->statusCode)) { + $bodyStr = Utils::readAsString($_response->body); + $respMap = OSSUtils::getErrMessage($bodyStr); + + throw new TeaError([ + 'code' => @$respMap['Code'], + 'message' => @$respMap['Message'], + 'data' => [ + 'httpCode' => $_response->statusCode, + 'requestId' => @$respMap['RequestId'], + 'hostId' => @$respMap['HostId'], + ], + ]); + } + $bodyStr = Utils::readAsString($_response->body); + $respMap = XML::parseXml($bodyStr, GetBucketInfoResponse::class); + + return GetBucketInfoResponse::fromMap(Tea::merge([ + 'BucketInfo' => @$respMap['BucketInfo'], + ], $_response->headers)); + } catch (Exception $e) { + if (!($e instanceof TeaError)) { + $e = new TeaError([], $e->getMessage(), $e->getCode(), $e); + } + if (Tea::isRetryable($e)) { + $_lastException = $e; + + continue; + } + + throw $e; + } + } + + throw new TeaUnableRetryError($_lastRequest, $_lastException); + } + + /** + * @param PutLiveChannelStatusRequest $request + * @param RuntimeOptions $runtime + * + * @throws TeaError + * @throws Exception + * @throws TeaUnableRetryError + * + * @return PutLiveChannelStatusResponse + */ + public function putLiveChannelStatus($request, $runtime) + { + $request->validate(); + $runtime->validate(); + $_runtime = [ + 'timeouted' => 'retry', + 'readTimeout' => Utils::defaultNumber($runtime->readTimeout, $this->_readTimeout), + 'connectTimeout' => Utils::defaultNumber($runtime->connectTimeout, $this->_connectTimeout), + 'localAddr' => Utils::defaultString($runtime->localAddr, $this->_localAddr), + 'httpProxy' => Utils::defaultString($runtime->httpProxy, $this->_httpProxy), + 'httpsProxy' => Utils::defaultString($runtime->httpsProxy, $this->_httpsProxy), + 'noProxy' => Utils::defaultString($runtime->noProxy, $this->_noProxy), + 'socks5Proxy' => Utils::defaultString($runtime->socks5Proxy, $this->_socks5Proxy), + 'socks5NetWork' => Utils::defaultString($runtime->socks5NetWork, $this->_socks5NetWork), + 'maxIdleConns' => Utils::defaultNumber($runtime->maxIdleConns, $this->_maxIdleConns), + 'retry' => [ + 'retryable' => $runtime->autoretry, + 'maxAttempts' => Utils::defaultNumber($runtime->maxAttempts, 3), + ], + 'backoff' => [ + 'policy' => Utils::defaultString($runtime->backoffPolicy, 'no'), + 'period' => Utils::defaultNumber($runtime->backoffPeriod, 1), + ], + 'ignoreSSL' => $runtime->ignoreSSL, + ]; + $_lastRequest = null; + $_lastException = null; + $_now = time(); + $_retryTimes = 0; + while (Tea::allowRetry(@$_runtime['retry'], $_retryTimes, $_now)) { + if ($_retryTimes > 0) { + $_backoffTime = Tea::getBackoffTime(@$_runtime['backoff'], $_retryTimes); + if ($_backoffTime > 0) { + Tea::sleep($_backoffTime); + } + } + $_retryTimes = $_retryTimes + 1; + + try { + $_request = new Request(); + $accessKeyId = $this->_credential->getAccessKeyId(); + $accessKeySecret = $this->_credential->getAccessKeySecret(); + $token = $this->_credential->getSecurityToken(); + $_request->protocol = $this->_protocol; + $_request->method = 'PUT'; + $_request->pathname = '/' . $request->channelName . '?live'; + $_request->headers = [ + 'host' => OSSUtils::getHost($request->bucketName, $this->_regionId, $this->_endpoint, $this->_hostModel), + 'date' => Utils::getDateUTCString(), + 'user-agent' => $this->getUserAgent(), + ]; + if (!Utils::empty_($token)) { + $_request->headers['x-oss-security-token'] = $token; + } + $_request->query = Utils::stringifyMapValue(Tea::merge($request->filter)); + $_request->headers['authorization'] = OSSUtils::getSignature($_request, $request->bucketName, $accessKeyId, $accessKeySecret, $this->_signatureVersion, $this->_addtionalHeaders); + $_lastRequest = $_request; + $_response = Tea::send($_request, $_runtime); + $respMap = null; + $bodyStr = null; + if (Utils::is4xx($_response->statusCode) || Utils::is5xx($_response->statusCode)) { + $bodyStr = Utils::readAsString($_response->body); + $respMap = OSSUtils::getErrMessage($bodyStr); + + throw new TeaError([ + 'code' => @$respMap['Code'], + 'message' => @$respMap['Message'], + 'data' => [ + 'httpCode' => $_response->statusCode, + 'requestId' => @$respMap['RequestId'], + 'hostId' => @$respMap['HostId'], + ], + ]); + } + + return PutLiveChannelStatusResponse::fromMap(Tea::merge($_response->headers)); + } catch (Exception $e) { + if (!($e instanceof TeaError)) { + $e = new TeaError([], $e->getMessage(), $e->getCode(), $e); + } + if (Tea::isRetryable($e)) { + $_lastException = $e; + + continue; + } + + throw $e; + } + } + + throw new TeaUnableRetryError($_lastRequest, $_lastException); + } + + /** + * @param InitiateMultipartUploadRequest $request + * @param RuntimeOptions $runtime + * + * @throws TeaError + * @throws Exception + * @throws TeaUnableRetryError + * + * @return InitiateMultipartUploadResponse + */ + public function initiateMultipartUpload($request, $runtime) + { + $request->validate(); + $runtime->validate(); + $_runtime = [ + 'timeouted' => 'retry', + 'readTimeout' => Utils::defaultNumber($runtime->readTimeout, $this->_readTimeout), + 'connectTimeout' => Utils::defaultNumber($runtime->connectTimeout, $this->_connectTimeout), + 'localAddr' => Utils::defaultString($runtime->localAddr, $this->_localAddr), + 'httpProxy' => Utils::defaultString($runtime->httpProxy, $this->_httpProxy), + 'httpsProxy' => Utils::defaultString($runtime->httpsProxy, $this->_httpsProxy), + 'noProxy' => Utils::defaultString($runtime->noProxy, $this->_noProxy), + 'socks5Proxy' => Utils::defaultString($runtime->socks5Proxy, $this->_socks5Proxy), + 'socks5NetWork' => Utils::defaultString($runtime->socks5NetWork, $this->_socks5NetWork), + 'maxIdleConns' => Utils::defaultNumber($runtime->maxIdleConns, $this->_maxIdleConns), + 'retry' => [ + 'retryable' => $runtime->autoretry, + 'maxAttempts' => Utils::defaultNumber($runtime->maxAttempts, 3), + ], + 'backoff' => [ + 'policy' => Utils::defaultString($runtime->backoffPolicy, 'no'), + 'period' => Utils::defaultNumber($runtime->backoffPeriod, 1), + ], + 'ignoreSSL' => $runtime->ignoreSSL, + ]; + $_lastRequest = null; + $_lastException = null; + $_now = time(); + $_retryTimes = 0; + while (Tea::allowRetry(@$_runtime['retry'], $_retryTimes, $_now)) { + if ($_retryTimes > 0) { + $_backoffTime = Tea::getBackoffTime(@$_runtime['backoff'], $_retryTimes); + if ($_backoffTime > 0) { + Tea::sleep($_backoffTime); + } + } + $_retryTimes = $_retryTimes + 1; + + try { + $_request = new Request(); + $accessKeyId = $this->_credential->getAccessKeyId(); + $accessKeySecret = $this->_credential->getAccessKeySecret(); + $token = $this->_credential->getSecurityToken(); + $_request->protocol = $this->_protocol; + $_request->method = 'POST'; + $_request->pathname = '/' . $request->objectName . '?uploads'; + $_request->headers = Tea::merge([ + 'host' => OSSUtils::getHost($request->bucketName, $this->_regionId, $this->_endpoint, $this->_hostModel), + 'date' => Utils::getDateUTCString(), + 'user-agent' => $this->getUserAgent(), + ], Utils::stringifyMapValue(Tea::merge($request->header))); + if (!Utils::empty_($token)) { + $_request->headers['x-oss-security-token'] = $token; + } + $_request->query = Utils::stringifyMapValue(Tea::merge($request->filter)); + if (!Utils::isUnset($request->header) && !Utils::empty_($request->header->contentType)) { + $_request->headers['content-type'] = $request->header->contentType; + } else { + $_request->headers['content-type'] = OSSUtils::getContentType($request->objectName); + } + $_request->headers['authorization'] = OSSUtils::getSignature($_request, $request->bucketName, $accessKeyId, $accessKeySecret, $this->_signatureVersion, $this->_addtionalHeaders); + $_lastRequest = $_request; + $_response = Tea::send($_request, $_runtime); + $respMap = null; + $bodyStr = null; + if (Utils::is4xx($_response->statusCode) || Utils::is5xx($_response->statusCode)) { + $bodyStr = Utils::readAsString($_response->body); + $respMap = OSSUtils::getErrMessage($bodyStr); + + throw new TeaError([ + 'code' => @$respMap['Code'], + 'message' => @$respMap['Message'], + 'data' => [ + 'httpCode' => $_response->statusCode, + 'requestId' => @$respMap['RequestId'], + 'hostId' => @$respMap['HostId'], + ], + ]); + } + $bodyStr = Utils::readAsString($_response->body); + $respMap = XML::parseXml($bodyStr, InitiateMultipartUploadResponse::class); + + return InitiateMultipartUploadResponse::fromMap(Tea::merge([ + 'InitiateMultipartUploadResult' => @$respMap['InitiateMultipartUploadResult'], + ], $_response->headers)); + } catch (Exception $e) { + if (!($e instanceof TeaError)) { + $e = new TeaError([], $e->getMessage(), $e->getCode(), $e); + } + if (Tea::isRetryable($e)) { + $_lastException = $e; + + continue; + } + + throw $e; + } + } + + throw new TeaUnableRetryError($_lastRequest, $_lastException); + } + + /** + * @param OptionObjectRequest $request + * @param RuntimeOptions $runtime + * + * @throws TeaError + * @throws Exception + * @throws TeaUnableRetryError + * + * @return OptionObjectResponse + */ + public function optionObject($request, $runtime) + { + $request->validate(); + $runtime->validate(); + $_runtime = [ + 'timeouted' => 'retry', + 'readTimeout' => Utils::defaultNumber($runtime->readTimeout, $this->_readTimeout), + 'connectTimeout' => Utils::defaultNumber($runtime->connectTimeout, $this->_connectTimeout), + 'localAddr' => Utils::defaultString($runtime->localAddr, $this->_localAddr), + 'httpProxy' => Utils::defaultString($runtime->httpProxy, $this->_httpProxy), + 'httpsProxy' => Utils::defaultString($runtime->httpsProxy, $this->_httpsProxy), + 'noProxy' => Utils::defaultString($runtime->noProxy, $this->_noProxy), + 'socks5Proxy' => Utils::defaultString($runtime->socks5Proxy, $this->_socks5Proxy), + 'socks5NetWork' => Utils::defaultString($runtime->socks5NetWork, $this->_socks5NetWork), + 'maxIdleConns' => Utils::defaultNumber($runtime->maxIdleConns, $this->_maxIdleConns), + 'retry' => [ + 'retryable' => $runtime->autoretry, + 'maxAttempts' => Utils::defaultNumber($runtime->maxAttempts, 3), + ], + 'backoff' => [ + 'policy' => Utils::defaultString($runtime->backoffPolicy, 'no'), + 'period' => Utils::defaultNumber($runtime->backoffPeriod, 1), + ], + 'ignoreSSL' => $runtime->ignoreSSL, + ]; + $_lastRequest = null; + $_lastException = null; + $_now = time(); + $_retryTimes = 0; + while (Tea::allowRetry(@$_runtime['retry'], $_retryTimes, $_now)) { + if ($_retryTimes > 0) { + $_backoffTime = Tea::getBackoffTime(@$_runtime['backoff'], $_retryTimes); + if ($_backoffTime > 0) { + Tea::sleep($_backoffTime); + } + } + $_retryTimes = $_retryTimes + 1; + + try { + $_request = new Request(); + $accessKeyId = $this->_credential->getAccessKeyId(); + $accessKeySecret = $this->_credential->getAccessKeySecret(); + $token = $this->_credential->getSecurityToken(); + $_request->protocol = $this->_protocol; + $_request->method = 'OPTIONS'; + $_request->pathname = '/' . $request->objectName . ''; + $_request->headers = Tea::merge([ + 'host' => OSSUtils::getHost($request->bucketName, $this->_regionId, $this->_endpoint, $this->_hostModel), + 'date' => Utils::getDateUTCString(), + 'user-agent' => $this->getUserAgent(), + ], Utils::stringifyMapValue(Tea::merge($request->header))); + if (!Utils::empty_($token)) { + $_request->headers['x-oss-security-token'] = $token; + } + $_request->headers['authorization'] = OSSUtils::getSignature($_request, $request->bucketName, $accessKeyId, $accessKeySecret, $this->_signatureVersion, $this->_addtionalHeaders); + $_lastRequest = $_request; + $_response = Tea::send($_request, $_runtime); + $respMap = null; + $bodyStr = null; + if (Utils::is4xx($_response->statusCode) || Utils::is5xx($_response->statusCode)) { + $bodyStr = Utils::readAsString($_response->body); + $respMap = OSSUtils::getErrMessage($bodyStr); + + throw new TeaError([ + 'code' => @$respMap['Code'], + 'message' => @$respMap['Message'], + 'data' => [ + 'httpCode' => $_response->statusCode, + 'requestId' => @$respMap['RequestId'], + 'hostId' => @$respMap['HostId'], + ], + ]); + } + + return OptionObjectResponse::fromMap(Tea::merge($_response->headers)); + } catch (Exception $e) { + if (!($e instanceof TeaError)) { + $e = new TeaError([], $e->getMessage(), $e->getCode(), $e); + } + if (Tea::isRetryable($e)) { + $_lastException = $e; + + continue; + } + + throw $e; + } + } + + throw new TeaUnableRetryError($_lastRequest, $_lastException); + } + + /** + * @param PostVodPlaylistRequest $request + * @param RuntimeOptions $runtime + * + * @throws TeaError + * @throws Exception + * @throws TeaUnableRetryError + * + * @return PostVodPlaylistResponse + */ + public function postVodPlaylist($request, $runtime) + { + $request->validate(); + $runtime->validate(); + $_runtime = [ + 'timeouted' => 'retry', + 'readTimeout' => Utils::defaultNumber($runtime->readTimeout, $this->_readTimeout), + 'connectTimeout' => Utils::defaultNumber($runtime->connectTimeout, $this->_connectTimeout), + 'localAddr' => Utils::defaultString($runtime->localAddr, $this->_localAddr), + 'httpProxy' => Utils::defaultString($runtime->httpProxy, $this->_httpProxy), + 'httpsProxy' => Utils::defaultString($runtime->httpsProxy, $this->_httpsProxy), + 'noProxy' => Utils::defaultString($runtime->noProxy, $this->_noProxy), + 'socks5Proxy' => Utils::defaultString($runtime->socks5Proxy, $this->_socks5Proxy), + 'socks5NetWork' => Utils::defaultString($runtime->socks5NetWork, $this->_socks5NetWork), + 'maxIdleConns' => Utils::defaultNumber($runtime->maxIdleConns, $this->_maxIdleConns), + 'retry' => [ + 'retryable' => $runtime->autoretry, + 'maxAttempts' => Utils::defaultNumber($runtime->maxAttempts, 3), + ], + 'backoff' => [ + 'policy' => Utils::defaultString($runtime->backoffPolicy, 'no'), + 'period' => Utils::defaultNumber($runtime->backoffPeriod, 1), + ], + 'ignoreSSL' => $runtime->ignoreSSL, + ]; + $_lastRequest = null; + $_lastException = null; + $_now = time(); + $_retryTimes = 0; + while (Tea::allowRetry(@$_runtime['retry'], $_retryTimes, $_now)) { + if ($_retryTimes > 0) { + $_backoffTime = Tea::getBackoffTime(@$_runtime['backoff'], $_retryTimes); + if ($_backoffTime > 0) { + Tea::sleep($_backoffTime); + } + } + $_retryTimes = $_retryTimes + 1; + + try { + $_request = new Request(); + $accessKeyId = $this->_credential->getAccessKeyId(); + $accessKeySecret = $this->_credential->getAccessKeySecret(); + $token = $this->_credential->getSecurityToken(); + $_request->protocol = $this->_protocol; + $_request->method = 'POST'; + $_request->pathname = '/' . $request->channelName . '/' . $request->playlistName . '?vod'; + $_request->headers = [ + 'host' => OSSUtils::getHost($request->bucketName, $this->_regionId, $this->_endpoint, $this->_hostModel), + 'date' => Utils::getDateUTCString(), + 'user-agent' => $this->getUserAgent(), + ]; + if (!Utils::empty_($token)) { + $_request->headers['x-oss-security-token'] = $token; + } + $_request->query = Utils::stringifyMapValue(Tea::merge($request->filter)); + $_request->headers['authorization'] = OSSUtils::getSignature($_request, $request->bucketName, $accessKeyId, $accessKeySecret, $this->_signatureVersion, $this->_addtionalHeaders); + $_lastRequest = $_request; + $_response = Tea::send($_request, $_runtime); + $respMap = null; + $bodyStr = null; + if (Utils::is4xx($_response->statusCode) || Utils::is5xx($_response->statusCode)) { + $bodyStr = Utils::readAsString($_response->body); + $respMap = OSSUtils::getErrMessage($bodyStr); + + throw new TeaError([ + 'code' => @$respMap['Code'], + 'message' => @$respMap['Message'], + 'data' => [ + 'httpCode' => $_response->statusCode, + 'requestId' => @$respMap['RequestId'], + 'hostId' => @$respMap['HostId'], + ], + ]); + } + + return PostVodPlaylistResponse::fromMap(Tea::merge($_response->headers)); + } catch (Exception $e) { + if (!($e instanceof TeaError)) { + $e = new TeaError([], $e->getMessage(), $e->getCode(), $e); + } + if (Tea::isRetryable($e)) { + $_lastException = $e; + + continue; + } + + throw $e; + } + } + + throw new TeaUnableRetryError($_lastRequest, $_lastException); + } + + /** + * @param PostObjectRequest $request + * @param RuntimeOptions $runtime + * + * @throws TeaError + * @throws Exception + * @throws TeaUnableRetryError + * + * @return PostObjectResponse + */ + public function postObject($request, $runtime) + { + $request->validate(); + $runtime->validate(); + $_runtime = [ + 'timeouted' => 'retry', + 'readTimeout' => Utils::defaultNumber($runtime->readTimeout, $this->_readTimeout), + 'connectTimeout' => Utils::defaultNumber($runtime->connectTimeout, $this->_connectTimeout), + 'httpProxy' => Utils::defaultString($runtime->httpProxy, $this->_httpProxy), + 'httpsProxy' => Utils::defaultString($runtime->httpsProxy, $this->_httpsProxy), + 'noProxy' => Utils::defaultString($runtime->noProxy, $this->_noProxy), + 'maxIdleConns' => Utils::defaultNumber($runtime->maxIdleConns, $this->_maxIdleConns), + 'retry' => [ + 'retryable' => $runtime->autoretry, + 'maxAttempts' => Utils::defaultNumber($runtime->maxAttempts, 3), + ], + 'backoff' => [ + 'policy' => Utils::defaultString($runtime->backoffPolicy, 'no'), + 'period' => Utils::defaultNumber($runtime->backoffPeriod, 1), + ], + 'ignoreSSL' => $runtime->ignoreSSL, + ]; + $_lastRequest = null; + $_lastException = null; + $_now = time(); + $_retryTimes = 0; + while (Tea::allowRetry(@$_runtime['retry'], $_retryTimes, $_now)) { + if ($_retryTimes > 0) { + $_backoffTime = Tea::getBackoffTime(@$_runtime['backoff'], $_retryTimes); + if ($_backoffTime > 0) { + Tea::sleep($_backoffTime); + } + } + $_retryTimes = $_retryTimes + 1; + + try { + $_request = new Request(); + $boundary = FileForm::getBoundary(); + $_request->protocol = $this->_protocol; + $_request->method = 'POST'; + $_request->pathname = '/'; + $_request->headers = [ + 'host' => OSSUtils::getHost($request->bucketName, $this->_regionId, $this->_endpoint, $this->_hostModel), + 'date' => Utils::getDateUTCString(), + 'user-agent' => $this->getUserAgent(), + ]; + $_request->headers['content-type'] = 'multipart/form-data; boundary=' . $boundary . ''; + $form = Tea::merge([ + 'OSSAccessKeyId' => $request->header->accessKeyId, + 'policy' => $request->header->policy, + 'Signature' => $request->header->signature, + 'key' => $request->header->key, + 'success_action_status' => $request->header->successActionStatus, + 'file' => $request->header->file, + ], OSSUtils::toMeta($request->header->userMeta, 'x-oss-meta-')); + $_request->body = FileForm::toFileForm($form, $boundary); + $_lastRequest = $_request; + $_response = Tea::send($_request, $_runtime); + $respMap = null; + $bodyStr = Utils::readAsString($_response->body); + if (Utils::is4xx($_response->statusCode) || Utils::is5xx($_response->statusCode)) { + $respMap = OSSUtils::getErrMessage($bodyStr); + + throw new TeaError([ + 'code' => @$respMap['Code'], + 'message' => @$respMap['Message'], + 'data' => [ + 'httpCode' => $_response->statusCode, + 'requestId' => @$respMap['RequestId'], + 'hostId' => @$respMap['HostId'], + ], + ]); + } + $respMap = XML::parseXml($bodyStr, PostObjectResponse::class); + + return PostObjectResponse::fromMap(Tea::merge($respMap)); + } catch (Exception $e) { + if (!($e instanceof TeaError)) { + $e = new TeaError([], $e->getMessage(), $e->getCode(), $e); + } + if (Tea::isRetryable($e)) { + $_lastException = $e; + + continue; + } + + throw $e; + } + } + + throw new TeaUnableRetryError($_lastRequest, $_lastException); + } + + /** + * @param HeadObjectRequest $request + * @param RuntimeOptions $runtime + * + * @throws TeaError + * @throws Exception + * @throws TeaUnableRetryError + * + * @return HeadObjectResponse + */ + public function headObject($request, $runtime) + { + $request->validate(); + $runtime->validate(); + $_runtime = [ + 'timeouted' => 'retry', + 'readTimeout' => Utils::defaultNumber($runtime->readTimeout, $this->_readTimeout), + 'connectTimeout' => Utils::defaultNumber($runtime->connectTimeout, $this->_connectTimeout), + 'localAddr' => Utils::defaultString($runtime->localAddr, $this->_localAddr), + 'httpProxy' => Utils::defaultString($runtime->httpProxy, $this->_httpProxy), + 'httpsProxy' => Utils::defaultString($runtime->httpsProxy, $this->_httpsProxy), + 'noProxy' => Utils::defaultString($runtime->noProxy, $this->_noProxy), + 'socks5Proxy' => Utils::defaultString($runtime->socks5Proxy, $this->_socks5Proxy), + 'socks5NetWork' => Utils::defaultString($runtime->socks5NetWork, $this->_socks5NetWork), + 'maxIdleConns' => Utils::defaultNumber($runtime->maxIdleConns, $this->_maxIdleConns), + 'retry' => [ + 'retryable' => $runtime->autoretry, + 'maxAttempts' => Utils::defaultNumber($runtime->maxAttempts, 3), + ], + 'backoff' => [ + 'policy' => Utils::defaultString($runtime->backoffPolicy, 'no'), + 'period' => Utils::defaultNumber($runtime->backoffPeriod, 1), + ], + 'ignoreSSL' => $runtime->ignoreSSL, + ]; + $_lastRequest = null; + $_lastException = null; + $_now = time(); + $_retryTimes = 0; + while (Tea::allowRetry(@$_runtime['retry'], $_retryTimes, $_now)) { + if ($_retryTimes > 0) { + $_backoffTime = Tea::getBackoffTime(@$_runtime['backoff'], $_retryTimes); + if ($_backoffTime > 0) { + Tea::sleep($_backoffTime); + } + } + $_retryTimes = $_retryTimes + 1; + + try { + $_request = new Request(); + $accessKeyId = $this->_credential->getAccessKeyId(); + $accessKeySecret = $this->_credential->getAccessKeySecret(); + $token = $this->_credential->getSecurityToken(); + $_request->protocol = $this->_protocol; + $_request->method = 'HEAD'; + $_request->pathname = '/' . $request->objectName . ''; + $_request->headers = Tea::merge([ + 'host' => OSSUtils::getHost($request->bucketName, $this->_regionId, $this->_endpoint, $this->_hostModel), + 'date' => Utils::getDateUTCString(), + 'user-agent' => $this->getUserAgent(), + ], Utils::stringifyMapValue(Tea::merge($request->header))); + if (!Utils::empty_($token)) { + $_request->headers['x-oss-security-token'] = $token; + } + $_request->headers['authorization'] = OSSUtils::getSignature($_request, $request->bucketName, $accessKeyId, $accessKeySecret, $this->_signatureVersion, $this->_addtionalHeaders); + $_lastRequest = $_request; + $_response = Tea::send($_request, $_runtime); + $respMap = null; + $bodyStr = null; + if (Utils::is4xx($_response->statusCode) || Utils::is5xx($_response->statusCode)) { + $bodyStr = Utils::readAsString($_response->body); + $respMap = OSSUtils::getErrMessage($bodyStr); + + throw new TeaError([ + 'code' => @$respMap['Code'], + 'message' => @$respMap['Message'], + 'data' => [ + 'httpCode' => $_response->statusCode, + 'requestId' => @$respMap['RequestId'], + 'hostId' => @$respMap['HostId'], + ], + ]); + } + + return HeadObjectResponse::fromMap(Tea::merge([ + 'usermeta' => OSSUtils::toMeta($_response->headers, 'x-oss-meta-'), + ], $_response->headers)); + } catch (Exception $e) { + if (!($e instanceof TeaError)) { + $e = new TeaError([], $e->getMessage(), $e->getCode(), $e); + } + if (Tea::isRetryable($e)) { + $_lastException = $e; + + continue; + } + + throw $e; + } + } + + throw new TeaUnableRetryError($_lastRequest, $_lastException); + } + + /** + * @param DeleteObjectTaggingRequest $request + * @param RuntimeOptions $runtime + * + * @throws TeaError + * @throws Exception + * @throws TeaUnableRetryError + * + * @return DeleteObjectTaggingResponse + */ + public function deleteObjectTagging($request, $runtime) + { + $request->validate(); + $runtime->validate(); + $_runtime = [ + 'timeouted' => 'retry', + 'readTimeout' => Utils::defaultNumber($runtime->readTimeout, $this->_readTimeout), + 'connectTimeout' => Utils::defaultNumber($runtime->connectTimeout, $this->_connectTimeout), + 'localAddr' => Utils::defaultString($runtime->localAddr, $this->_localAddr), + 'httpProxy' => Utils::defaultString($runtime->httpProxy, $this->_httpProxy), + 'httpsProxy' => Utils::defaultString($runtime->httpsProxy, $this->_httpsProxy), + 'noProxy' => Utils::defaultString($runtime->noProxy, $this->_noProxy), + 'socks5Proxy' => Utils::defaultString($runtime->socks5Proxy, $this->_socks5Proxy), + 'socks5NetWork' => Utils::defaultString($runtime->socks5NetWork, $this->_socks5NetWork), + 'maxIdleConns' => Utils::defaultNumber($runtime->maxIdleConns, $this->_maxIdleConns), + 'retry' => [ + 'retryable' => $runtime->autoretry, + 'maxAttempts' => Utils::defaultNumber($runtime->maxAttempts, 3), + ], + 'backoff' => [ + 'policy' => Utils::defaultString($runtime->backoffPolicy, 'no'), + 'period' => Utils::defaultNumber($runtime->backoffPeriod, 1), + ], + 'ignoreSSL' => $runtime->ignoreSSL, + ]; + $_lastRequest = null; + $_lastException = null; + $_now = time(); + $_retryTimes = 0; + while (Tea::allowRetry(@$_runtime['retry'], $_retryTimes, $_now)) { + if ($_retryTimes > 0) { + $_backoffTime = Tea::getBackoffTime(@$_runtime['backoff'], $_retryTimes); + if ($_backoffTime > 0) { + Tea::sleep($_backoffTime); + } + } + $_retryTimes = $_retryTimes + 1; + + try { + $_request = new Request(); + $accessKeyId = $this->_credential->getAccessKeyId(); + $accessKeySecret = $this->_credential->getAccessKeySecret(); + $token = $this->_credential->getSecurityToken(); + $_request->protocol = $this->_protocol; + $_request->method = 'DELETE'; + $_request->pathname = '/' . $request->objectName . '?tagging'; + $_request->headers = [ + 'host' => OSSUtils::getHost($request->bucketName, $this->_regionId, $this->_endpoint, $this->_hostModel), + 'date' => Utils::getDateUTCString(), + 'user-agent' => $this->getUserAgent(), + ]; + if (!Utils::empty_($token)) { + $_request->headers['x-oss-security-token'] = $token; + } + $_request->headers['authorization'] = OSSUtils::getSignature($_request, $request->bucketName, $accessKeyId, $accessKeySecret, $this->_signatureVersion, $this->_addtionalHeaders); + $_lastRequest = $_request; + $_response = Tea::send($_request, $_runtime); + $respMap = null; + $bodyStr = null; + if (Utils::is4xx($_response->statusCode) || Utils::is5xx($_response->statusCode)) { + $bodyStr = Utils::readAsString($_response->body); + $respMap = OSSUtils::getErrMessage($bodyStr); + + throw new TeaError([ + 'code' => @$respMap['Code'], + 'message' => @$respMap['Message'], + 'data' => [ + 'httpCode' => $_response->statusCode, + 'requestId' => @$respMap['RequestId'], + 'hostId' => @$respMap['HostId'], + ], + ]); + } + + return DeleteObjectTaggingResponse::fromMap(Tea::merge($_response->headers)); + } catch (Exception $e) { + if (!($e instanceof TeaError)) { + $e = new TeaError([], $e->getMessage(), $e->getCode(), $e); + } + if (Tea::isRetryable($e)) { + $_lastException = $e; + + continue; + } + + throw $e; + } + } + + throw new TeaUnableRetryError($_lastRequest, $_lastException); + } + + /** + * @param RestoreObjectRequest $request + * @param RuntimeOptions $runtime + * + * @throws TeaError + * @throws Exception + * @throws TeaUnableRetryError + * + * @return RestoreObjectResponse + */ + public function restoreObject($request, $runtime) + { + $request->validate(); + $runtime->validate(); + $_runtime = [ + 'timeouted' => 'retry', + 'readTimeout' => Utils::defaultNumber($runtime->readTimeout, $this->_readTimeout), + 'connectTimeout' => Utils::defaultNumber($runtime->connectTimeout, $this->_connectTimeout), + 'localAddr' => Utils::defaultString($runtime->localAddr, $this->_localAddr), + 'httpProxy' => Utils::defaultString($runtime->httpProxy, $this->_httpProxy), + 'httpsProxy' => Utils::defaultString($runtime->httpsProxy, $this->_httpsProxy), + 'noProxy' => Utils::defaultString($runtime->noProxy, $this->_noProxy), + 'socks5Proxy' => Utils::defaultString($runtime->socks5Proxy, $this->_socks5Proxy), + 'socks5NetWork' => Utils::defaultString($runtime->socks5NetWork, $this->_socks5NetWork), + 'maxIdleConns' => Utils::defaultNumber($runtime->maxIdleConns, $this->_maxIdleConns), + 'retry' => [ + 'retryable' => $runtime->autoretry, + 'maxAttempts' => Utils::defaultNumber($runtime->maxAttempts, 3), + ], + 'backoff' => [ + 'policy' => Utils::defaultString($runtime->backoffPolicy, 'no'), + 'period' => Utils::defaultNumber($runtime->backoffPeriod, 1), + ], + 'ignoreSSL' => $runtime->ignoreSSL, + ]; + $_lastRequest = null; + $_lastException = null; + $_now = time(); + $_retryTimes = 0; + while (Tea::allowRetry(@$_runtime['retry'], $_retryTimes, $_now)) { + if ($_retryTimes > 0) { + $_backoffTime = Tea::getBackoffTime(@$_runtime['backoff'], $_retryTimes); + if ($_backoffTime > 0) { + Tea::sleep($_backoffTime); + } + } + $_retryTimes = $_retryTimes + 1; + + try { + $_request = new Request(); + $accessKeyId = $this->_credential->getAccessKeyId(); + $accessKeySecret = $this->_credential->getAccessKeySecret(); + $token = $this->_credential->getSecurityToken(); + $_request->protocol = $this->_protocol; + $_request->method = 'POST'; + $_request->pathname = '/' . $request->objectName . '?restore'; + $_request->headers = [ + 'host' => OSSUtils::getHost($request->bucketName, $this->_regionId, $this->_endpoint, $this->_hostModel), + 'date' => Utils::getDateUTCString(), + 'user-agent' => $this->getUserAgent(), + ]; + if (!Utils::empty_($token)) { + $_request->headers['x-oss-security-token'] = $token; + } + $_request->headers['authorization'] = OSSUtils::getSignature($_request, $request->bucketName, $accessKeyId, $accessKeySecret, $this->_signatureVersion, $this->_addtionalHeaders); + $_lastRequest = $_request; + $_response = Tea::send($_request, $_runtime); + $respMap = null; + $bodyStr = null; + if (Utils::is4xx($_response->statusCode) || Utils::is5xx($_response->statusCode)) { + $bodyStr = Utils::readAsString($_response->body); + $respMap = OSSUtils::getErrMessage($bodyStr); + + throw new TeaError([ + 'code' => @$respMap['Code'], + 'message' => @$respMap['Message'], + 'data' => [ + 'httpCode' => $_response->statusCode, + 'requestId' => @$respMap['RequestId'], + 'hostId' => @$respMap['HostId'], + ], + ]); + } + + return RestoreObjectResponse::fromMap(Tea::merge($_response->headers)); + } catch (Exception $e) { + if (!($e instanceof TeaError)) { + $e = new TeaError([], $e->getMessage(), $e->getCode(), $e); + } + if (Tea::isRetryable($e)) { + $_lastException = $e; + + continue; + } + + throw $e; + } + } + + throw new TeaUnableRetryError($_lastRequest, $_lastException); + } + + /** + * @param GetObjectAclRequest $request + * @param RuntimeOptions $runtime + * + * @throws TeaError + * @throws Exception + * @throws TeaUnableRetryError + * + * @return GetObjectAclResponse + */ + public function getObjectAcl($request, $runtime) + { + $request->validate(); + $runtime->validate(); + $_runtime = [ + 'timeouted' => 'retry', + 'readTimeout' => Utils::defaultNumber($runtime->readTimeout, $this->_readTimeout), + 'connectTimeout' => Utils::defaultNumber($runtime->connectTimeout, $this->_connectTimeout), + 'localAddr' => Utils::defaultString($runtime->localAddr, $this->_localAddr), + 'httpProxy' => Utils::defaultString($runtime->httpProxy, $this->_httpProxy), + 'httpsProxy' => Utils::defaultString($runtime->httpsProxy, $this->_httpsProxy), + 'noProxy' => Utils::defaultString($runtime->noProxy, $this->_noProxy), + 'socks5Proxy' => Utils::defaultString($runtime->socks5Proxy, $this->_socks5Proxy), + 'socks5NetWork' => Utils::defaultString($runtime->socks5NetWork, $this->_socks5NetWork), + 'maxIdleConns' => Utils::defaultNumber($runtime->maxIdleConns, $this->_maxIdleConns), + 'retry' => [ + 'retryable' => $runtime->autoretry, + 'maxAttempts' => Utils::defaultNumber($runtime->maxAttempts, 3), + ], + 'backoff' => [ + 'policy' => Utils::defaultString($runtime->backoffPolicy, 'no'), + 'period' => Utils::defaultNumber($runtime->backoffPeriod, 1), + ], + 'ignoreSSL' => $runtime->ignoreSSL, + ]; + $_lastRequest = null; + $_lastException = null; + $_now = time(); + $_retryTimes = 0; + while (Tea::allowRetry(@$_runtime['retry'], $_retryTimes, $_now)) { + if ($_retryTimes > 0) { + $_backoffTime = Tea::getBackoffTime(@$_runtime['backoff'], $_retryTimes); + if ($_backoffTime > 0) { + Tea::sleep($_backoffTime); + } + } + $_retryTimes = $_retryTimes + 1; + + try { + $_request = new Request(); + $accessKeyId = $this->_credential->getAccessKeyId(); + $accessKeySecret = $this->_credential->getAccessKeySecret(); + $token = $this->_credential->getSecurityToken(); + $_request->protocol = $this->_protocol; + $_request->method = 'GET'; + $_request->pathname = '/' . $request->objectName . '?acl'; + $_request->headers = [ + 'host' => OSSUtils::getHost($request->bucketName, $this->_regionId, $this->_endpoint, $this->_hostModel), + 'date' => Utils::getDateUTCString(), + 'user-agent' => $this->getUserAgent(), + ]; + if (!Utils::empty_($token)) { + $_request->headers['x-oss-security-token'] = $token; + } + $_request->headers['authorization'] = OSSUtils::getSignature($_request, $request->bucketName, $accessKeyId, $accessKeySecret, $this->_signatureVersion, $this->_addtionalHeaders); + $_lastRequest = $_request; + $_response = Tea::send($_request, $_runtime); + $respMap = null; + $bodyStr = null; + if (Utils::is4xx($_response->statusCode) || Utils::is5xx($_response->statusCode)) { + $bodyStr = Utils::readAsString($_response->body); + $respMap = OSSUtils::getErrMessage($bodyStr); + + throw new TeaError([ + 'code' => @$respMap['Code'], + 'message' => @$respMap['Message'], + 'data' => [ + 'httpCode' => $_response->statusCode, + 'requestId' => @$respMap['RequestId'], + 'hostId' => @$respMap['HostId'], + ], + ]); + } + $bodyStr = Utils::readAsString($_response->body); + $respMap = XML::parseXml($bodyStr, GetObjectAclResponse::class); + + return GetObjectAclResponse::fromMap(Tea::merge([ + 'AccessControlPolicy' => @$respMap['AccessControlPolicy'], + ], $_response->headers)); + } catch (Exception $e) { + if (!($e instanceof TeaError)) { + $e = new TeaError([], $e->getMessage(), $e->getCode(), $e); + } + if (Tea::isRetryable($e)) { + $_lastException = $e; + + continue; + } + + throw $e; + } + } + + throw new TeaUnableRetryError($_lastRequest, $_lastException); + } + + /** + * @param PutBucketAclRequest $request + * @param RuntimeOptions $runtime + * + * @throws TeaError + * @throws Exception + * @throws TeaUnableRetryError + * + * @return PutBucketAclResponse + */ + public function putBucketAcl($request, $runtime) + { + $request->validate(); + $runtime->validate(); + $_runtime = [ + 'timeouted' => 'retry', + 'readTimeout' => Utils::defaultNumber($runtime->readTimeout, $this->_readTimeout), + 'connectTimeout' => Utils::defaultNumber($runtime->connectTimeout, $this->_connectTimeout), + 'localAddr' => Utils::defaultString($runtime->localAddr, $this->_localAddr), + 'httpProxy' => Utils::defaultString($runtime->httpProxy, $this->_httpProxy), + 'httpsProxy' => Utils::defaultString($runtime->httpsProxy, $this->_httpsProxy), + 'noProxy' => Utils::defaultString($runtime->noProxy, $this->_noProxy), + 'socks5Proxy' => Utils::defaultString($runtime->socks5Proxy, $this->_socks5Proxy), + 'socks5NetWork' => Utils::defaultString($runtime->socks5NetWork, $this->_socks5NetWork), + 'maxIdleConns' => Utils::defaultNumber($runtime->maxIdleConns, $this->_maxIdleConns), + 'retry' => [ + 'retryable' => $runtime->autoretry, + 'maxAttempts' => Utils::defaultNumber($runtime->maxAttempts, 3), + ], + 'backoff' => [ + 'policy' => Utils::defaultString($runtime->backoffPolicy, 'no'), + 'period' => Utils::defaultNumber($runtime->backoffPeriod, 1), + ], + 'ignoreSSL' => $runtime->ignoreSSL, + ]; + $_lastRequest = null; + $_lastException = null; + $_now = time(); + $_retryTimes = 0; + while (Tea::allowRetry(@$_runtime['retry'], $_retryTimes, $_now)) { + if ($_retryTimes > 0) { + $_backoffTime = Tea::getBackoffTime(@$_runtime['backoff'], $_retryTimes); + if ($_backoffTime > 0) { + Tea::sleep($_backoffTime); + } + } + $_retryTimes = $_retryTimes + 1; + + try { + $_request = new Request(); + $accessKeyId = $this->_credential->getAccessKeyId(); + $accessKeySecret = $this->_credential->getAccessKeySecret(); + $token = $this->_credential->getSecurityToken(); + $_request->protocol = $this->_protocol; + $_request->method = 'PUT'; + $_request->pathname = '/?acl'; + $_request->headers = Tea::merge([ + 'host' => OSSUtils::getHost($request->bucketName, $this->_regionId, $this->_endpoint, $this->_hostModel), + 'date' => Utils::getDateUTCString(), + 'user-agent' => $this->getUserAgent(), + ], Utils::stringifyMapValue(Tea::merge($request->header))); + if (!Utils::empty_($token)) { + $_request->headers['x-oss-security-token'] = $token; + } + $_request->headers['authorization'] = OSSUtils::getSignature($_request, $request->bucketName, $accessKeyId, $accessKeySecret, $this->_signatureVersion, $this->_addtionalHeaders); + $_lastRequest = $_request; + $_response = Tea::send($_request, $_runtime); + $respMap = null; + $bodyStr = null; + if (Utils::is4xx($_response->statusCode) || Utils::is5xx($_response->statusCode)) { + $bodyStr = Utils::readAsString($_response->body); + $respMap = OSSUtils::getErrMessage($bodyStr); + + throw new TeaError([ + 'code' => @$respMap['Code'], + 'message' => @$respMap['Message'], + 'data' => [ + 'httpCode' => $_response->statusCode, + 'requestId' => @$respMap['RequestId'], + 'hostId' => @$respMap['HostId'], + ], + ]); + } + + return PutBucketAclResponse::fromMap(Tea::merge($_response->headers)); + } catch (Exception $e) { + if (!($e instanceof TeaError)) { + $e = new TeaError([], $e->getMessage(), $e->getCode(), $e); + } + if (Tea::isRetryable($e)) { + $_lastException = $e; + + continue; + } + + throw $e; + } + } + + throw new TeaUnableRetryError($_lastRequest, $_lastException); + } + + /** + * @param DeleteBucketRequest $request + * @param RuntimeOptions $runtime + * + * @throws TeaError + * @throws Exception + * @throws TeaUnableRetryError + * + * @return DeleteBucketResponse + */ + public function deleteBucket($request, $runtime) + { + $request->validate(); + $runtime->validate(); + $_runtime = [ + 'timeouted' => 'retry', + 'readTimeout' => Utils::defaultNumber($runtime->readTimeout, $this->_readTimeout), + 'connectTimeout' => Utils::defaultNumber($runtime->connectTimeout, $this->_connectTimeout), + 'localAddr' => Utils::defaultString($runtime->localAddr, $this->_localAddr), + 'httpProxy' => Utils::defaultString($runtime->httpProxy, $this->_httpProxy), + 'httpsProxy' => Utils::defaultString($runtime->httpsProxy, $this->_httpsProxy), + 'noProxy' => Utils::defaultString($runtime->noProxy, $this->_noProxy), + 'socks5Proxy' => Utils::defaultString($runtime->socks5Proxy, $this->_socks5Proxy), + 'socks5NetWork' => Utils::defaultString($runtime->socks5NetWork, $this->_socks5NetWork), + 'maxIdleConns' => Utils::defaultNumber($runtime->maxIdleConns, $this->_maxIdleConns), + 'retry' => [ + 'retryable' => $runtime->autoretry, + 'maxAttempts' => Utils::defaultNumber($runtime->maxAttempts, 3), + ], + 'backoff' => [ + 'policy' => Utils::defaultString($runtime->backoffPolicy, 'no'), + 'period' => Utils::defaultNumber($runtime->backoffPeriod, 1), + ], + 'ignoreSSL' => $runtime->ignoreSSL, + ]; + $_lastRequest = null; + $_lastException = null; + $_now = time(); + $_retryTimes = 0; + while (Tea::allowRetry(@$_runtime['retry'], $_retryTimes, $_now)) { + if ($_retryTimes > 0) { + $_backoffTime = Tea::getBackoffTime(@$_runtime['backoff'], $_retryTimes); + if ($_backoffTime > 0) { + Tea::sleep($_backoffTime); + } + } + $_retryTimes = $_retryTimes + 1; + + try { + $_request = new Request(); + $accessKeyId = $this->_credential->getAccessKeyId(); + $accessKeySecret = $this->_credential->getAccessKeySecret(); + $token = $this->_credential->getSecurityToken(); + $_request->protocol = $this->_protocol; + $_request->method = 'DELETE'; + $_request->pathname = '/'; + $_request->headers = [ + 'host' => OSSUtils::getHost($request->bucketName, $this->_regionId, $this->_endpoint, $this->_hostModel), + 'date' => Utils::getDateUTCString(), + 'user-agent' => $this->getUserAgent(), + ]; + if (!Utils::empty_($token)) { + $_request->headers['x-oss-security-token'] = $token; + } + $_request->headers['authorization'] = OSSUtils::getSignature($_request, $request->bucketName, $accessKeyId, $accessKeySecret, $this->_signatureVersion, $this->_addtionalHeaders); + $_lastRequest = $_request; + $_response = Tea::send($_request, $_runtime); + $respMap = null; + $bodyStr = null; + if (Utils::is4xx($_response->statusCode) || Utils::is5xx($_response->statusCode)) { + $bodyStr = Utils::readAsString($_response->body); + $respMap = OSSUtils::getErrMessage($bodyStr); + + throw new TeaError([ + 'code' => @$respMap['Code'], + 'message' => @$respMap['Message'], + 'data' => [ + 'httpCode' => $_response->statusCode, + 'requestId' => @$respMap['RequestId'], + 'hostId' => @$respMap['HostId'], + ], + ]); + } + + return DeleteBucketResponse::fromMap(Tea::merge($_response->headers)); + } catch (Exception $e) { + if (!($e instanceof TeaError)) { + $e = new TeaError([], $e->getMessage(), $e->getCode(), $e); + } + if (Tea::isRetryable($e)) { + $_lastException = $e; + + continue; + } + + throw $e; + } + } + + throw new TeaUnableRetryError($_lastRequest, $_lastException); + } + + /** + * @param PutObjectRequest $request + * @param RuntimeOptions $runtime + * + * @throws TeaError + * @throws Exception + * @throws TeaUnableRetryError + * + * @return PutObjectResponse + */ + public function putObject($request, $runtime) + { + $request->validate(); + $runtime->validate(); + $_runtime = [ + 'timeouted' => 'retry', + 'readTimeout' => Utils::defaultNumber($runtime->readTimeout, $this->_readTimeout), + 'connectTimeout' => Utils::defaultNumber($runtime->connectTimeout, $this->_connectTimeout), + 'localAddr' => Utils::defaultString($runtime->localAddr, $this->_localAddr), + 'httpProxy' => Utils::defaultString($runtime->httpProxy, $this->_httpProxy), + 'httpsProxy' => Utils::defaultString($runtime->httpsProxy, $this->_httpsProxy), + 'noProxy' => Utils::defaultString($runtime->noProxy, $this->_noProxy), + 'socks5Proxy' => Utils::defaultString($runtime->socks5Proxy, $this->_socks5Proxy), + 'socks5NetWork' => Utils::defaultString($runtime->socks5NetWork, $this->_socks5NetWork), + 'maxIdleConns' => Utils::defaultNumber($runtime->maxIdleConns, $this->_maxIdleConns), + 'retry' => [ + 'retryable' => $runtime->autoretry, + 'maxAttempts' => Utils::defaultNumber($runtime->maxAttempts, 3), + ], + 'backoff' => [ + 'policy' => Utils::defaultString($runtime->backoffPolicy, 'no'), + 'period' => Utils::defaultNumber($runtime->backoffPeriod, 1), + ], + 'ignoreSSL' => $runtime->ignoreSSL, + ]; + $_lastRequest = null; + $_lastException = null; + $_now = time(); + $_retryTimes = 0; + while (Tea::allowRetry(@$_runtime['retry'], $_retryTimes, $_now)) { + if ($_retryTimes > 0) { + $_backoffTime = Tea::getBackoffTime(@$_runtime['backoff'], $_retryTimes); + if ($_backoffTime > 0) { + Tea::sleep($_backoffTime); + } + } + $_retryTimes = $_retryTimes + 1; + + try { + $_request = new Request(); + $ctx = []; + $accessKeyId = $this->_credential->getAccessKeyId(); + $accessKeySecret = $this->_credential->getAccessKeySecret(); + $token = $this->_credential->getSecurityToken(); + $_request->protocol = $this->_protocol; + $_request->method = 'PUT'; + $_request->pathname = '/' . $request->objectName . ''; + $_request->headers = Tea::merge([ + 'host' => OSSUtils::getHost($request->bucketName, $this->_regionId, $this->_endpoint, $this->_hostModel), + 'date' => Utils::getDateUTCString(), + 'user-agent' => $this->getUserAgent(), + ], Utils::stringifyMapValue(Tea::merge($request->header)), OSSUtils::parseMeta($request->userMeta, 'x-oss-meta-')); + if (!Utils::empty_($token)) { + $_request->headers['x-oss-security-token'] = $token; + } + $_request->body = OSSUtils::inject($request->body, $ctx); + if (!Utils::isUnset($request->header) && !Utils::empty_($request->header->contentType)) { + $_request->headers['content-type'] = $request->header->contentType; + } else { + $_request->headers['content-type'] = OSSUtils::getContentType($request->objectName); + } + $_request->headers['authorization'] = OSSUtils::getSignature($_request, $request->bucketName, $accessKeyId, $accessKeySecret, $this->_signatureVersion, $this->_addtionalHeaders); + $_lastRequest = $_request; + $_response = Tea::send($_request, $_runtime); + $respMap = null; + $bodyStr = null; + if (Utils::is4xx($_response->statusCode) || Utils::is5xx($_response->statusCode)) { + $bodyStr = Utils::readAsString($_response->body); + $respMap = OSSUtils::getErrMessage($bodyStr); + + throw new TeaError([ + 'code' => @$respMap['Code'], + 'message' => @$respMap['Message'], + 'data' => [ + 'httpCode' => $_response->statusCode, + 'requestId' => @$respMap['RequestId'], + 'hostId' => @$respMap['HostId'], + ], + ]); + } + if ($this->_isEnableCrc && !Utils::equalString(@$ctx['crc'], @$_response->headers['x-oss-hash-crc64ecma'])) { + throw new TeaError([ + 'code' => 'CrcNotMatched', + 'data' => [ + 'clientCrc' => @$ctx['crc'], + 'serverCrc' => @$_response->headers['x-oss-hash-crc64ecma'], + ], + ]); + } + if ($this->_isEnableMD5 && !Utils::equalString(@$ctx['md5'], @$_response->headers['content-md5'])) { + throw new TeaError([ + 'code' => 'MD5NotMatched', + 'data' => [ + 'clientMD5' => @$ctx['md5'], + 'serverMD5' => @$_response->headers['content-md5'], + ], + ]); + } + + return PutObjectResponse::fromMap(Tea::merge($_response->headers)); + } catch (Exception $e) { + if (!($e instanceof TeaError)) { + $e = new TeaError([], $e->getMessage(), $e->getCode(), $e); + } + if (Tea::isRetryable($e)) { + $_lastException = $e; + + continue; + } + + throw $e; + } + } + + throw new TeaUnableRetryError($_lastRequest, $_lastException); + } + + /** + * @param string $userAgent + */ + public function setUserAgent($userAgent) + { + $this->_userAgent = $userAgent; + } + + /** + * @param string $userAgent + */ + public function appendUserAgent($userAgent) + { + $this->_userAgent = '' . $this->_userAgent . ' ' . $userAgent . ''; + } + + /** + * @return string + */ + public function getUserAgent() + { + return Utils::getUserAgent($this->_userAgent); + } + + /** + * @return string + */ + public function getAccessKeyId() + { + if (Utils::isUnset($this->_credential)) { + return ''; + } + + return $this->_credential->getAccessKeyId(); + } + + /** + * @return string + */ + public function getAccessKeySecret() + { + if (Utils::isUnset($this->_credential)) { + return ''; + } + + return $this->_credential->getAccessKeySecret(); + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/AbortMultipartUploadRequest.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/AbortMultipartUploadRequest.php new file mode 100644 index 00000000..20fbc366 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/AbortMultipartUploadRequest.php @@ -0,0 +1,82 @@ + 'BucketName', + 'objectName' => 'ObjectName', + 'filter' => 'Filter', + ]; + + public function validate() + { + Model::validateRequired('bucketName', $this->bucketName, true); + Model::validateRequired('objectName', $this->objectName, true); + Model::validateRequired('filter', $this->filter, true); + Model::validatePattern('bucketName', $this->bucketName, '[a-zA-Z0-9-_]+'); + } + + public function toMap() + { + $res = []; + if (null !== $this->bucketName) { + $res['BucketName'] = $this->bucketName; + } + if (null !== $this->objectName) { + $res['ObjectName'] = $this->objectName; + } + if (null !== $this->filter) { + $res['Filter'] = null !== $this->filter ? $this->filter->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return AbortMultipartUploadRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['BucketName'])) { + $model->bucketName = $map['BucketName']; + } + if (isset($map['ObjectName'])) { + $model->objectName = $map['ObjectName']; + } + if (isset($map['Filter'])) { + $model->filter = filter::fromMap($map['Filter']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/AbortMultipartUploadRequest/filter.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/AbortMultipartUploadRequest/filter.php new file mode 100644 index 00000000..e82ddcf5 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/AbortMultipartUploadRequest/filter.php @@ -0,0 +1,50 @@ + 'uploadId', + ]; + + public function validate() + { + Model::validateRequired('uploadId', $this->uploadId, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->uploadId) { + $res['uploadId'] = $this->uploadId; + } + + return $res; + } + + /** + * @param array $map + * + * @return filter + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['uploadId'])) { + $model->uploadId = $map['uploadId']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/AbortMultipartUploadResponse.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/AbortMultipartUploadResponse.php new file mode 100644 index 00000000..f6184003 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/AbortMultipartUploadResponse.php @@ -0,0 +1,50 @@ + 'x-oss-request-id', + ]; + + public function validate() + { + Model::validateRequired('requestId', $this->requestId, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->requestId) { + $res['x-oss-request-id'] = $this->requestId; + } + + return $res; + } + + /** + * @param array $map + * + * @return AbortMultipartUploadResponse + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['x-oss-request-id'])) { + $model->requestId = $map['x-oss-request-id']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/AppendObjectRequest.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/AppendObjectRequest.php new file mode 100644 index 00000000..b916a2bf --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/AppendObjectRequest.php @@ -0,0 +1,126 @@ + 'BucketName', + 'objectName' => 'ObjectName', + 'userMeta' => 'UserMeta', + 'body' => 'body', + 'filter' => 'Filter', + 'header' => 'Header', + ]; + + public function validate() + { + Model::validateRequired('bucketName', $this->bucketName, true); + Model::validateRequired('objectName', $this->objectName, true); + Model::validateRequired('filter', $this->filter, true); + Model::validatePattern('bucketName', $this->bucketName, '[a-zA-Z0-9-_]+'); + } + + public function toMap() + { + $res = []; + if (null !== $this->bucketName) { + $res['BucketName'] = $this->bucketName; + } + if (null !== $this->objectName) { + $res['ObjectName'] = $this->objectName; + } + if (null !== $this->userMeta) { + $res['UserMeta'] = $this->userMeta; + } + if (null !== $this->body) { + $res['body'] = $this->body; + } + if (null !== $this->filter) { + $res['Filter'] = null !== $this->filter ? $this->filter->toMap() : null; + } + if (null !== $this->header) { + $res['Header'] = null !== $this->header ? $this->header->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return AppendObjectRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['BucketName'])) { + $model->bucketName = $map['BucketName']; + } + if (isset($map['ObjectName'])) { + $model->objectName = $map['ObjectName']; + } + if (isset($map['UserMeta'])) { + $model->userMeta = $map['UserMeta']; + } + if (isset($map['body'])) { + $model->body = $map['body']; + } + if (isset($map['Filter'])) { + $model->filter = filter::fromMap($map['Filter']); + } + if (isset($map['Header'])) { + $model->header = header::fromMap($map['Header']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/AppendObjectRequest/filter.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/AppendObjectRequest/filter.php new file mode 100644 index 00000000..50f7a538 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/AppendObjectRequest/filter.php @@ -0,0 +1,50 @@ + 'position', + ]; + + public function validate() + { + Model::validateRequired('position', $this->position, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->position) { + $res['position'] = $this->position; + } + + return $res; + } + + /** + * @param array $map + * + * @return filter + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['position'])) { + $model->position = $map['position']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/AppendObjectRequest/header.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/AppendObjectRequest/header.php new file mode 100644 index 00000000..51aab290 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/AppendObjectRequest/header.php @@ -0,0 +1,161 @@ + 'Cache-Control', + 'contentDisposition' => 'Content-Disposition', + 'contentEncoding' => 'Content-Encoding', + 'contentMD5' => 'Content-MD5', + 'expires' => 'Expires', + 'serverSideEncryption' => 'x-oss-server-side-encryption', + 'objectAcl' => 'x-oss-object-acl', + 'storageClass' => 'x-oss-storage-class', + 'contentType' => 'content-type', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->cacheControl) { + $res['Cache-Control'] = $this->cacheControl; + } + if (null !== $this->contentDisposition) { + $res['Content-Disposition'] = $this->contentDisposition; + } + if (null !== $this->contentEncoding) { + $res['Content-Encoding'] = $this->contentEncoding; + } + if (null !== $this->contentMD5) { + $res['Content-MD5'] = $this->contentMD5; + } + if (null !== $this->expires) { + $res['Expires'] = $this->expires; + } + if (null !== $this->serverSideEncryption) { + $res['x-oss-server-side-encryption'] = $this->serverSideEncryption; + } + if (null !== $this->objectAcl) { + $res['x-oss-object-acl'] = $this->objectAcl; + } + if (null !== $this->storageClass) { + $res['x-oss-storage-class'] = $this->storageClass; + } + if (null !== $this->contentType) { + $res['content-type'] = $this->contentType; + } + + return $res; + } + + /** + * @param array $map + * + * @return header + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Cache-Control'])) { + $model->cacheControl = $map['Cache-Control']; + } + if (isset($map['Content-Disposition'])) { + $model->contentDisposition = $map['Content-Disposition']; + } + if (isset($map['Content-Encoding'])) { + $model->contentEncoding = $map['Content-Encoding']; + } + if (isset($map['Content-MD5'])) { + $model->contentMD5 = $map['Content-MD5']; + } + if (isset($map['Expires'])) { + $model->expires = $map['Expires']; + } + if (isset($map['x-oss-server-side-encryption'])) { + $model->serverSideEncryption = $map['x-oss-server-side-encryption']; + } + if (isset($map['x-oss-object-acl'])) { + $model->objectAcl = $map['x-oss-object-acl']; + } + if (isset($map['x-oss-storage-class'])) { + $model->storageClass = $map['x-oss-storage-class']; + } + if (isset($map['content-type'])) { + $model->contentType = $map['content-type']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/AppendObjectResponse.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/AppendObjectResponse.php new file mode 100644 index 00000000..7d768867 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/AppendObjectResponse.php @@ -0,0 +1,80 @@ + 'x-oss-request-id', + 'nextAppendPosition' => 'x-oss-next-append-position', + 'hashCrc64ecma' => 'x-oss-hash-crc64ecma', + ]; + + public function validate() + { + Model::validateRequired('requestId', $this->requestId, true); + Model::validateRequired('nextAppendPosition', $this->nextAppendPosition, true); + Model::validateRequired('hashCrc64ecma', $this->hashCrc64ecma, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->requestId) { + $res['x-oss-request-id'] = $this->requestId; + } + if (null !== $this->nextAppendPosition) { + $res['x-oss-next-append-position'] = $this->nextAppendPosition; + } + if (null !== $this->hashCrc64ecma) { + $res['x-oss-hash-crc64ecma'] = $this->hashCrc64ecma; + } + + return $res; + } + + /** + * @param array $map + * + * @return AppendObjectResponse + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['x-oss-request-id'])) { + $model->requestId = $map['x-oss-request-id']; + } + if (isset($map['x-oss-next-append-position'])) { + $model->nextAppendPosition = $map['x-oss-next-append-position']; + } + if (isset($map['x-oss-hash-crc64ecma'])) { + $model->hashCrc64ecma = $map['x-oss-hash-crc64ecma']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/CallbackRequest.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/CallbackRequest.php new file mode 100644 index 00000000..2ff92f7b --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/CallbackRequest.php @@ -0,0 +1,51 @@ + 'BucketName', + ]; + + public function validate() + { + Model::validateRequired('bucketName', $this->bucketName, true); + Model::validatePattern('bucketName', $this->bucketName, '[a-zA-Z0-9-_]+'); + } + + public function toMap() + { + $res = []; + if (null !== $this->bucketName) { + $res['BucketName'] = $this->bucketName; + } + + return $res; + } + + /** + * @param array $map + * + * @return CallbackRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['BucketName'])) { + $model->bucketName = $map['BucketName']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/CallbackResponse.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/CallbackResponse.php new file mode 100644 index 00000000..d458ca5e --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/CallbackResponse.php @@ -0,0 +1,50 @@ + 'x-oss-request-id', + ]; + + public function validate() + { + Model::validateRequired('requestId', $this->requestId, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->requestId) { + $res['x-oss-request-id'] = $this->requestId; + } + + return $res; + } + + /** + * @param array $map + * + * @return CallbackResponse + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['x-oss-request-id'])) { + $model->requestId = $map['x-oss-request-id']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/CompleteMultipartUploadRequest.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/CompleteMultipartUploadRequest.php new file mode 100644 index 00000000..90d25e2f --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/CompleteMultipartUploadRequest.php @@ -0,0 +1,97 @@ + 'BucketName', + 'objectName' => 'ObjectName', + 'filter' => 'Filter', + 'body' => 'Body', + ]; + + public function validate() + { + Model::validateRequired('bucketName', $this->bucketName, true); + Model::validateRequired('objectName', $this->objectName, true); + Model::validateRequired('filter', $this->filter, true); + Model::validatePattern('bucketName', $this->bucketName, '[a-zA-Z0-9-_]+'); + } + + public function toMap() + { + $res = []; + if (null !== $this->bucketName) { + $res['BucketName'] = $this->bucketName; + } + if (null !== $this->objectName) { + $res['ObjectName'] = $this->objectName; + } + if (null !== $this->filter) { + $res['Filter'] = null !== $this->filter ? $this->filter->toMap() : null; + } + if (null !== $this->body) { + $res['Body'] = null !== $this->body ? $this->body->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return CompleteMultipartUploadRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['BucketName'])) { + $model->bucketName = $map['BucketName']; + } + if (isset($map['ObjectName'])) { + $model->objectName = $map['ObjectName']; + } + if (isset($map['Filter'])) { + $model->filter = filter::fromMap($map['Filter']); + } + if (isset($map['Body'])) { + $model->body = body::fromMap($map['Body']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/CompleteMultipartUploadRequest/body.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/CompleteMultipartUploadRequest/body.php new file mode 100644 index 00000000..75ed6d5f --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/CompleteMultipartUploadRequest/body.php @@ -0,0 +1,51 @@ + 'CompleteMultipartUpload', + ]; + + public function validate() + { + Model::validateRequired('completeMultipartUpload', $this->completeMultipartUpload, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->completeMultipartUpload) { + $res['CompleteMultipartUpload'] = null !== $this->completeMultipartUpload ? $this->completeMultipartUpload->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return body + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['CompleteMultipartUpload'])) { + $model->completeMultipartUpload = completeMultipartUpload::fromMap($map['CompleteMultipartUpload']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/CompleteMultipartUploadRequest/body/completeMultipartUpload.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/CompleteMultipartUploadRequest/body/completeMultipartUpload.php new file mode 100644 index 00000000..30a591ff --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/CompleteMultipartUploadRequest/body/completeMultipartUpload.php @@ -0,0 +1,62 @@ + 'Part', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->part) { + $res['Part'] = []; + if (null !== $this->part && \is_array($this->part)) { + $n = 0; + foreach ($this->part as $item) { + $res['Part'][$n++] = null !== $item ? $item->toMap() : $item; + } + } + } + + return $res; + } + + /** + * @param array $map + * + * @return completeMultipartUpload + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Part'])) { + if (!empty($map['Part'])) { + $model->part = []; + $n = 0; + foreach ($map['Part'] as $item) { + $model->part[$n++] = null !== $item ? part::fromMap($item) : $item; + } + } + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/CompleteMultipartUploadRequest/body/completeMultipartUpload/part.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/CompleteMultipartUploadRequest/body/completeMultipartUpload/part.php new file mode 100644 index 00000000..76e5d2b8 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/CompleteMultipartUploadRequest/body/completeMultipartUpload/part.php @@ -0,0 +1,63 @@ + 'PartNumber', + 'eTag' => 'ETag', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->partNumber) { + $res['PartNumber'] = $this->partNumber; + } + if (null !== $this->eTag) { + $res['ETag'] = $this->eTag; + } + + return $res; + } + + /** + * @param array $map + * + * @return part + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['PartNumber'])) { + $model->partNumber = $map['PartNumber']; + } + if (isset($map['ETag'])) { + $model->eTag = $map['ETag']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/CompleteMultipartUploadRequest/filter.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/CompleteMultipartUploadRequest/filter.php new file mode 100644 index 00000000..49c156f3 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/CompleteMultipartUploadRequest/filter.php @@ -0,0 +1,64 @@ + 'uploadId', + 'encodingType' => 'Encoding-type', + ]; + + public function validate() + { + Model::validateRequired('uploadId', $this->uploadId, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->uploadId) { + $res['uploadId'] = $this->uploadId; + } + if (null !== $this->encodingType) { + $res['Encoding-type'] = $this->encodingType; + } + + return $res; + } + + /** + * @param array $map + * + * @return filter + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['uploadId'])) { + $model->uploadId = $map['uploadId']; + } + if (isset($map['Encoding-type'])) { + $model->encodingType = $map['Encoding-type']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/CompleteMultipartUploadResponse.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/CompleteMultipartUploadResponse.php new file mode 100644 index 00000000..4274b81b --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/CompleteMultipartUploadResponse.php @@ -0,0 +1,66 @@ + 'x-oss-request-id', + 'completeMultipartUploadResult' => 'CompleteMultipartUploadResult', + ]; + + public function validate() + { + Model::validateRequired('requestId', $this->requestId, true); + Model::validateRequired('completeMultipartUploadResult', $this->completeMultipartUploadResult, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->requestId) { + $res['x-oss-request-id'] = $this->requestId; + } + if (null !== $this->completeMultipartUploadResult) { + $res['CompleteMultipartUploadResult'] = null !== $this->completeMultipartUploadResult ? $this->completeMultipartUploadResult->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return CompleteMultipartUploadResponse + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['x-oss-request-id'])) { + $model->requestId = $map['x-oss-request-id']; + } + if (isset($map['CompleteMultipartUploadResult'])) { + $model->completeMultipartUploadResult = completeMultipartUploadResult::fromMap($map['CompleteMultipartUploadResult']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/CompleteMultipartUploadResponse/completeMultipartUploadResult.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/CompleteMultipartUploadResponse/completeMultipartUploadResult.php new file mode 100644 index 00000000..ece6c6f5 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/CompleteMultipartUploadResponse/completeMultipartUploadResult.php @@ -0,0 +1,105 @@ + 'Bucket', + 'eTag' => 'ETag', + 'location' => 'Location', + 'key' => 'Key', + 'encodingType' => 'EncodingType', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->bucket) { + $res['Bucket'] = $this->bucket; + } + if (null !== $this->eTag) { + $res['ETag'] = $this->eTag; + } + if (null !== $this->location) { + $res['Location'] = $this->location; + } + if (null !== $this->key) { + $res['Key'] = $this->key; + } + if (null !== $this->encodingType) { + $res['EncodingType'] = $this->encodingType; + } + + return $res; + } + + /** + * @param array $map + * + * @return completeMultipartUploadResult + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Bucket'])) { + $model->bucket = $map['Bucket']; + } + if (isset($map['ETag'])) { + $model->eTag = $map['ETag']; + } + if (isset($map['Location'])) { + $model->location = $map['Location']; + } + if (isset($map['Key'])) { + $model->key = $map['Key']; + } + if (isset($map['EncodingType'])) { + $model->encodingType = $map['EncodingType']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/Config.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/Config.php new file mode 100644 index 00000000..93b26d58 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/Config.php @@ -0,0 +1,223 @@ +accessKeyId, true); + Model::validateRequired('accessKeySecret', $this->accessKeySecret, true); + Model::validatePattern('regionId', $this->regionId, '[a-zA-Z0-9-_]+'); + } + + public function toMap() + { + $res = []; + if (null !== $this->type) { + $res['type'] = $this->type; + } + if (null !== $this->securityToken) { + $res['securityToken'] = $this->securityToken; + } + if (null !== $this->accessKeyId) { + $res['accessKeyId'] = $this->accessKeyId; + } + if (null !== $this->accessKeySecret) { + $res['accessKeySecret'] = $this->accessKeySecret; + } + if (null !== $this->endpoint) { + $res['endpoint'] = $this->endpoint; + } + if (null !== $this->protocol) { + $res['protocol'] = $this->protocol; + } + if (null !== $this->regionId) { + $res['regionId'] = $this->regionId; + } + if (null !== $this->userAgent) { + $res['userAgent'] = $this->userAgent; + } + if (null !== $this->hostModel) { + $res['hostModel'] = $this->hostModel; + } + if (null !== $this->signatureVersion) { + $res['signatureVersion'] = $this->signatureVersion; + } + if (null !== $this->isEnableMD5) { + $res['isEnableMD5'] = $this->isEnableMD5; + } + if (null !== $this->isEnableCrc) { + $res['isEnableCrc'] = $this->isEnableCrc; + } + if (null !== $this->readTimeout) { + $res['readTimeout'] = $this->readTimeout; + } + if (null !== $this->connectTimeout) { + $res['connectTimeout'] = $this->connectTimeout; + } + if (null !== $this->localAddr) { + $res['localAddr'] = $this->localAddr; + } + if (null !== $this->httpProxy) { + $res['httpProxy'] = $this->httpProxy; + } + if (null !== $this->httpsProxy) { + $res['httpsProxy'] = $this->httpsProxy; + } + if (null !== $this->noProxy) { + $res['noProxy'] = $this->noProxy; + } + if (null !== $this->socks5Proxy) { + $res['socks5Proxy'] = $this->socks5Proxy; + } + if (null !== $this->socks5NetWork) { + $res['socks5NetWork'] = $this->socks5NetWork; + } + if (null !== $this->maxIdleConns) { + $res['maxIdleConns'] = $this->maxIdleConns; + } + if (null !== $this->addtionalHeaders) { + $res['addtionalHeaders'] = $this->addtionalHeaders; + } + + return $res; + } + + /** + * @param array $map + * + * @return Config + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['type'])) { + $model->type = $map['type']; + } + if (isset($map['securityToken'])) { + $model->securityToken = $map['securityToken']; + } + if (isset($map['accessKeyId'])) { + $model->accessKeyId = $map['accessKeyId']; + } + if (isset($map['accessKeySecret'])) { + $model->accessKeySecret = $map['accessKeySecret']; + } + if (isset($map['endpoint'])) { + $model->endpoint = $map['endpoint']; + } + if (isset($map['protocol'])) { + $model->protocol = $map['protocol']; + } + if (isset($map['regionId'])) { + $model->regionId = $map['regionId']; + } + if (isset($map['userAgent'])) { + $model->userAgent = $map['userAgent']; + } + if (isset($map['hostModel'])) { + $model->hostModel = $map['hostModel']; + } + if (isset($map['signatureVersion'])) { + $model->signatureVersion = $map['signatureVersion']; + } + if (isset($map['isEnableMD5'])) { + $model->isEnableMD5 = $map['isEnableMD5']; + } + if (isset($map['isEnableCrc'])) { + $model->isEnableCrc = $map['isEnableCrc']; + } + if (isset($map['readTimeout'])) { + $model->readTimeout = $map['readTimeout']; + } + if (isset($map['connectTimeout'])) { + $model->connectTimeout = $map['connectTimeout']; + } + if (isset($map['localAddr'])) { + $model->localAddr = $map['localAddr']; + } + if (isset($map['httpProxy'])) { + $model->httpProxy = $map['httpProxy']; + } + if (isset($map['httpsProxy'])) { + $model->httpsProxy = $map['httpsProxy']; + } + if (isset($map['noProxy'])) { + $model->noProxy = $map['noProxy']; + } + if (isset($map['socks5Proxy'])) { + $model->socks5Proxy = $map['socks5Proxy']; + } + if (isset($map['socks5NetWork'])) { + $model->socks5NetWork = $map['socks5NetWork']; + } + if (isset($map['maxIdleConns'])) { + $model->maxIdleConns = $map['maxIdleConns']; + } + if (isset($map['addtionalHeaders'])) { + if (!empty($map['addtionalHeaders'])) { + $model->addtionalHeaders = $map['addtionalHeaders']; + } + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/CopyObjectRequest.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/CopyObjectRequest.php new file mode 100644 index 00000000..c0a085db --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/CopyObjectRequest.php @@ -0,0 +1,82 @@ + 'BucketName', + 'destObjectName' => 'DestObjectName', + 'header' => 'Header', + ]; + + public function validate() + { + Model::validateRequired('bucketName', $this->bucketName, true); + Model::validateRequired('destObjectName', $this->destObjectName, true); + Model::validateRequired('header', $this->header, true); + Model::validatePattern('bucketName', $this->bucketName, '[a-zA-Z0-9-_]+'); + } + + public function toMap() + { + $res = []; + if (null !== $this->bucketName) { + $res['BucketName'] = $this->bucketName; + } + if (null !== $this->destObjectName) { + $res['DestObjectName'] = $this->destObjectName; + } + if (null !== $this->header) { + $res['Header'] = null !== $this->header ? $this->header->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return CopyObjectRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['BucketName'])) { + $model->bucketName = $map['BucketName']; + } + if (isset($map['DestObjectName'])) { + $model->destObjectName = $map['DestObjectName']; + } + if (isset($map['Header'])) { + $model->header = header::fromMap($map['Header']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/CopyObjectRequest/header.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/CopyObjectRequest/header.php new file mode 100644 index 00000000..ed3d126b --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/CopyObjectRequest/header.php @@ -0,0 +1,204 @@ + 'x-oss-copy-source', + 'copySourceIfMatch' => 'x-oss-copy-source-if-match', + 'copySourceIfNoneMatch' => 'x-oss-copy-source-if-none-match', + 'copySourceIfUnmodifiedSince' => 'x-oss-copy-source-if-unmodified-since', + 'copySourceIfModifiedSince' => 'x-oss-copy-source-if-modified-since', + 'metadataDirective' => 'x-oss-metadata-directive', + 'serverSideEncryption' => 'x-oss-server-side-encryption', + 'serverSideEncryptionKeyId' => 'x-oss-server-side-encryption-key-id', + 'objectAcl' => 'x-oss-object-acl', + 'storageClass' => 'x-oss-storage-class', + 'tagging' => 'x-oss-tagging', + 'taggingDirective' => 'x-oss-tagging-directive', + ]; + + public function validate() + { + Model::validateRequired('copySource', $this->copySource, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->copySource) { + $res['x-oss-copy-source'] = $this->copySource; + } + if (null !== $this->copySourceIfMatch) { + $res['x-oss-copy-source-if-match'] = $this->copySourceIfMatch; + } + if (null !== $this->copySourceIfNoneMatch) { + $res['x-oss-copy-source-if-none-match'] = $this->copySourceIfNoneMatch; + } + if (null !== $this->copySourceIfUnmodifiedSince) { + $res['x-oss-copy-source-if-unmodified-since'] = $this->copySourceIfUnmodifiedSince; + } + if (null !== $this->copySourceIfModifiedSince) { + $res['x-oss-copy-source-if-modified-since'] = $this->copySourceIfModifiedSince; + } + if (null !== $this->metadataDirective) { + $res['x-oss-metadata-directive'] = $this->metadataDirective; + } + if (null !== $this->serverSideEncryption) { + $res['x-oss-server-side-encryption'] = $this->serverSideEncryption; + } + if (null !== $this->serverSideEncryptionKeyId) { + $res['x-oss-server-side-encryption-key-id'] = $this->serverSideEncryptionKeyId; + } + if (null !== $this->objectAcl) { + $res['x-oss-object-acl'] = $this->objectAcl; + } + if (null !== $this->storageClass) { + $res['x-oss-storage-class'] = $this->storageClass; + } + if (null !== $this->tagging) { + $res['x-oss-tagging'] = $this->tagging; + } + if (null !== $this->taggingDirective) { + $res['x-oss-tagging-directive'] = $this->taggingDirective; + } + + return $res; + } + + /** + * @param array $map + * + * @return header + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['x-oss-copy-source'])) { + $model->copySource = $map['x-oss-copy-source']; + } + if (isset($map['x-oss-copy-source-if-match'])) { + $model->copySourceIfMatch = $map['x-oss-copy-source-if-match']; + } + if (isset($map['x-oss-copy-source-if-none-match'])) { + $model->copySourceIfNoneMatch = $map['x-oss-copy-source-if-none-match']; + } + if (isset($map['x-oss-copy-source-if-unmodified-since'])) { + $model->copySourceIfUnmodifiedSince = $map['x-oss-copy-source-if-unmodified-since']; + } + if (isset($map['x-oss-copy-source-if-modified-since'])) { + $model->copySourceIfModifiedSince = $map['x-oss-copy-source-if-modified-since']; + } + if (isset($map['x-oss-metadata-directive'])) { + $model->metadataDirective = $map['x-oss-metadata-directive']; + } + if (isset($map['x-oss-server-side-encryption'])) { + $model->serverSideEncryption = $map['x-oss-server-side-encryption']; + } + if (isset($map['x-oss-server-side-encryption-key-id'])) { + $model->serverSideEncryptionKeyId = $map['x-oss-server-side-encryption-key-id']; + } + if (isset($map['x-oss-object-acl'])) { + $model->objectAcl = $map['x-oss-object-acl']; + } + if (isset($map['x-oss-storage-class'])) { + $model->storageClass = $map['x-oss-storage-class']; + } + if (isset($map['x-oss-tagging'])) { + $model->tagging = $map['x-oss-tagging']; + } + if (isset($map['x-oss-tagging-directive'])) { + $model->taggingDirective = $map['x-oss-tagging-directive']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/CopyObjectResponse.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/CopyObjectResponse.php new file mode 100644 index 00000000..7348bfdc --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/CopyObjectResponse.php @@ -0,0 +1,66 @@ + 'x-oss-request-id', + 'copyObjectResult' => 'CopyObjectResult', + ]; + + public function validate() + { + Model::validateRequired('requestId', $this->requestId, true); + Model::validateRequired('copyObjectResult', $this->copyObjectResult, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->requestId) { + $res['x-oss-request-id'] = $this->requestId; + } + if (null !== $this->copyObjectResult) { + $res['CopyObjectResult'] = null !== $this->copyObjectResult ? $this->copyObjectResult->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return CopyObjectResponse + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['x-oss-request-id'])) { + $model->requestId = $map['x-oss-request-id']; + } + if (isset($map['CopyObjectResult'])) { + $model->copyObjectResult = copyObjectResult::fromMap($map['CopyObjectResult']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/CopyObjectResponse/copyObjectResult.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/CopyObjectResponse/copyObjectResult.php new file mode 100644 index 00000000..dd77d956 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/CopyObjectResponse/copyObjectResult.php @@ -0,0 +1,63 @@ + 'LastModified', + 'eTag' => 'ETag', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->lastModified) { + $res['LastModified'] = $this->lastModified; + } + if (null !== $this->eTag) { + $res['ETag'] = $this->eTag; + } + + return $res; + } + + /** + * @param array $map + * + * @return copyObjectResult + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['LastModified'])) { + $model->lastModified = $map['LastModified']; + } + if (isset($map['ETag'])) { + $model->eTag = $map['ETag']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteBucketCORSRequest.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteBucketCORSRequest.php new file mode 100644 index 00000000..947cdae6 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteBucketCORSRequest.php @@ -0,0 +1,51 @@ + 'BucketName', + ]; + + public function validate() + { + Model::validateRequired('bucketName', $this->bucketName, true); + Model::validatePattern('bucketName', $this->bucketName, '[a-zA-Z0-9-_]+'); + } + + public function toMap() + { + $res = []; + if (null !== $this->bucketName) { + $res['BucketName'] = $this->bucketName; + } + + return $res; + } + + /** + * @param array $map + * + * @return DeleteBucketCORSRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['BucketName'])) { + $model->bucketName = $map['BucketName']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteBucketCORSResponse.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteBucketCORSResponse.php new file mode 100644 index 00000000..6b6516ef --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteBucketCORSResponse.php @@ -0,0 +1,50 @@ + 'x-oss-request-id', + ]; + + public function validate() + { + Model::validateRequired('requestId', $this->requestId, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->requestId) { + $res['x-oss-request-id'] = $this->requestId; + } + + return $res; + } + + /** + * @param array $map + * + * @return DeleteBucketCORSResponse + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['x-oss-request-id'])) { + $model->requestId = $map['x-oss-request-id']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteBucketEncryptionRequest.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteBucketEncryptionRequest.php new file mode 100644 index 00000000..9c180e18 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteBucketEncryptionRequest.php @@ -0,0 +1,51 @@ + 'BucketName', + ]; + + public function validate() + { + Model::validateRequired('bucketName', $this->bucketName, true); + Model::validatePattern('bucketName', $this->bucketName, '[a-zA-Z0-9-_]+'); + } + + public function toMap() + { + $res = []; + if (null !== $this->bucketName) { + $res['BucketName'] = $this->bucketName; + } + + return $res; + } + + /** + * @param array $map + * + * @return DeleteBucketEncryptionRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['BucketName'])) { + $model->bucketName = $map['BucketName']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteBucketEncryptionResponse.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteBucketEncryptionResponse.php new file mode 100644 index 00000000..81ddf0e8 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteBucketEncryptionResponse.php @@ -0,0 +1,50 @@ + 'x-oss-request-id', + ]; + + public function validate() + { + Model::validateRequired('requestId', $this->requestId, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->requestId) { + $res['x-oss-request-id'] = $this->requestId; + } + + return $res; + } + + /** + * @param array $map + * + * @return DeleteBucketEncryptionResponse + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['x-oss-request-id'])) { + $model->requestId = $map['x-oss-request-id']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteBucketLifecycleRequest.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteBucketLifecycleRequest.php new file mode 100644 index 00000000..ca16a47e --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteBucketLifecycleRequest.php @@ -0,0 +1,51 @@ + 'BucketName', + ]; + + public function validate() + { + Model::validateRequired('bucketName', $this->bucketName, true); + Model::validatePattern('bucketName', $this->bucketName, '[a-zA-Z0-9-_]+'); + } + + public function toMap() + { + $res = []; + if (null !== $this->bucketName) { + $res['BucketName'] = $this->bucketName; + } + + return $res; + } + + /** + * @param array $map + * + * @return DeleteBucketLifecycleRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['BucketName'])) { + $model->bucketName = $map['BucketName']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteBucketLifecycleResponse.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteBucketLifecycleResponse.php new file mode 100644 index 00000000..eebd3172 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteBucketLifecycleResponse.php @@ -0,0 +1,50 @@ + 'x-oss-request-id', + ]; + + public function validate() + { + Model::validateRequired('requestId', $this->requestId, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->requestId) { + $res['x-oss-request-id'] = $this->requestId; + } + + return $res; + } + + /** + * @param array $map + * + * @return DeleteBucketLifecycleResponse + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['x-oss-request-id'])) { + $model->requestId = $map['x-oss-request-id']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteBucketLoggingRequest.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteBucketLoggingRequest.php new file mode 100644 index 00000000..201dfbb0 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteBucketLoggingRequest.php @@ -0,0 +1,51 @@ + 'BucketName', + ]; + + public function validate() + { + Model::validateRequired('bucketName', $this->bucketName, true); + Model::validatePattern('bucketName', $this->bucketName, '[a-zA-Z0-9-_]+'); + } + + public function toMap() + { + $res = []; + if (null !== $this->bucketName) { + $res['BucketName'] = $this->bucketName; + } + + return $res; + } + + /** + * @param array $map + * + * @return DeleteBucketLoggingRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['BucketName'])) { + $model->bucketName = $map['BucketName']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteBucketLoggingResponse.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteBucketLoggingResponse.php new file mode 100644 index 00000000..60ceb9c5 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteBucketLoggingResponse.php @@ -0,0 +1,50 @@ + 'x-oss-request-id', + ]; + + public function validate() + { + Model::validateRequired('requestId', $this->requestId, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->requestId) { + $res['x-oss-request-id'] = $this->requestId; + } + + return $res; + } + + /** + * @param array $map + * + * @return DeleteBucketLoggingResponse + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['x-oss-request-id'])) { + $model->requestId = $map['x-oss-request-id']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteBucketRequest.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteBucketRequest.php new file mode 100644 index 00000000..b0283539 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteBucketRequest.php @@ -0,0 +1,51 @@ + 'BucketName', + ]; + + public function validate() + { + Model::validateRequired('bucketName', $this->bucketName, true); + Model::validatePattern('bucketName', $this->bucketName, '[a-zA-Z0-9-_]+'); + } + + public function toMap() + { + $res = []; + if (null !== $this->bucketName) { + $res['BucketName'] = $this->bucketName; + } + + return $res; + } + + /** + * @param array $map + * + * @return DeleteBucketRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['BucketName'])) { + $model->bucketName = $map['BucketName']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteBucketResponse.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteBucketResponse.php new file mode 100644 index 00000000..204eafdb --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteBucketResponse.php @@ -0,0 +1,50 @@ + 'x-oss-request-id', + ]; + + public function validate() + { + Model::validateRequired('requestId', $this->requestId, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->requestId) { + $res['x-oss-request-id'] = $this->requestId; + } + + return $res; + } + + /** + * @param array $map + * + * @return DeleteBucketResponse + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['x-oss-request-id'])) { + $model->requestId = $map['x-oss-request-id']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteBucketTagsRequest.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteBucketTagsRequest.php new file mode 100644 index 00000000..b0ed35f0 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteBucketTagsRequest.php @@ -0,0 +1,67 @@ + 'BucketName', + 'filter' => 'Filter', + ]; + + public function validate() + { + Model::validateRequired('bucketName', $this->bucketName, true); + Model::validateRequired('filter', $this->filter, true); + Model::validatePattern('bucketName', $this->bucketName, '[a-zA-Z0-9-_]+'); + } + + public function toMap() + { + $res = []; + if (null !== $this->bucketName) { + $res['BucketName'] = $this->bucketName; + } + if (null !== $this->filter) { + $res['Filter'] = null !== $this->filter ? $this->filter->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return DeleteBucketTagsRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['BucketName'])) { + $model->bucketName = $map['BucketName']; + } + if (isset($map['Filter'])) { + $model->filter = filter::fromMap($map['Filter']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteBucketTagsRequest/filter.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteBucketTagsRequest/filter.php new file mode 100644 index 00000000..8bb196c5 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteBucketTagsRequest/filter.php @@ -0,0 +1,50 @@ + 'tagging', + ]; + + public function validate() + { + Model::validateRequired('tagging', $this->tagging, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->tagging) { + $res['tagging'] = $this->tagging; + } + + return $res; + } + + /** + * @param array $map + * + * @return filter + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['tagging'])) { + $model->tagging = $map['tagging']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteBucketTagsResponse.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteBucketTagsResponse.php new file mode 100644 index 00000000..0ba6adc8 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteBucketTagsResponse.php @@ -0,0 +1,50 @@ + 'x-oss-request-id', + ]; + + public function validate() + { + Model::validateRequired('requestId', $this->requestId, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->requestId) { + $res['x-oss-request-id'] = $this->requestId; + } + + return $res; + } + + /** + * @param array $map + * + * @return DeleteBucketTagsResponse + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['x-oss-request-id'])) { + $model->requestId = $map['x-oss-request-id']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteBucketWebsiteRequest.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteBucketWebsiteRequest.php new file mode 100644 index 00000000..04659af2 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteBucketWebsiteRequest.php @@ -0,0 +1,51 @@ + 'BucketName', + ]; + + public function validate() + { + Model::validateRequired('bucketName', $this->bucketName, true); + Model::validatePattern('bucketName', $this->bucketName, '[a-zA-Z0-9-_]+'); + } + + public function toMap() + { + $res = []; + if (null !== $this->bucketName) { + $res['BucketName'] = $this->bucketName; + } + + return $res; + } + + /** + * @param array $map + * + * @return DeleteBucketWebsiteRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['BucketName'])) { + $model->bucketName = $map['BucketName']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteBucketWebsiteResponse.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteBucketWebsiteResponse.php new file mode 100644 index 00000000..d8ebc54f --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteBucketWebsiteResponse.php @@ -0,0 +1,50 @@ + 'x-oss-request-id', + ]; + + public function validate() + { + Model::validateRequired('requestId', $this->requestId, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->requestId) { + $res['x-oss-request-id'] = $this->requestId; + } + + return $res; + } + + /** + * @param array $map + * + * @return DeleteBucketWebsiteResponse + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['x-oss-request-id'])) { + $model->requestId = $map['x-oss-request-id']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteLiveChannelRequest.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteLiveChannelRequest.php new file mode 100644 index 00000000..205f700c --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteLiveChannelRequest.php @@ -0,0 +1,66 @@ + 'BucketName', + 'channelName' => 'ChannelName', + ]; + + public function validate() + { + Model::validateRequired('bucketName', $this->bucketName, true); + Model::validateRequired('channelName', $this->channelName, true); + Model::validatePattern('bucketName', $this->bucketName, '[a-zA-Z0-9-_]+'); + } + + public function toMap() + { + $res = []; + if (null !== $this->bucketName) { + $res['BucketName'] = $this->bucketName; + } + if (null !== $this->channelName) { + $res['ChannelName'] = $this->channelName; + } + + return $res; + } + + /** + * @param array $map + * + * @return DeleteLiveChannelRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['BucketName'])) { + $model->bucketName = $map['BucketName']; + } + if (isset($map['ChannelName'])) { + $model->channelName = $map['ChannelName']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteLiveChannelResponse.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteLiveChannelResponse.php new file mode 100644 index 00000000..e462a405 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteLiveChannelResponse.php @@ -0,0 +1,50 @@ + 'x-oss-request-id', + ]; + + public function validate() + { + Model::validateRequired('requestId', $this->requestId, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->requestId) { + $res['x-oss-request-id'] = $this->requestId; + } + + return $res; + } + + /** + * @param array $map + * + * @return DeleteLiveChannelResponse + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['x-oss-request-id'])) { + $model->requestId = $map['x-oss-request-id']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteMultipleObjectsRequest.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteMultipleObjectsRequest.php new file mode 100644 index 00000000..3b8c0855 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteMultipleObjectsRequest.php @@ -0,0 +1,82 @@ + 'BucketName', + 'body' => 'Body', + 'header' => 'Header', + ]; + + public function validate() + { + Model::validateRequired('bucketName', $this->bucketName, true); + Model::validateRequired('header', $this->header, true); + Model::validatePattern('bucketName', $this->bucketName, '[a-zA-Z0-9-_]+'); + } + + public function toMap() + { + $res = []; + if (null !== $this->bucketName) { + $res['BucketName'] = $this->bucketName; + } + if (null !== $this->body) { + $res['Body'] = null !== $this->body ? $this->body->toMap() : null; + } + if (null !== $this->header) { + $res['Header'] = null !== $this->header ? $this->header->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return DeleteMultipleObjectsRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['BucketName'])) { + $model->bucketName = $map['BucketName']; + } + if (isset($map['Body'])) { + $model->body = body::fromMap($map['Body']); + } + if (isset($map['Header'])) { + $model->header = header::fromMap($map['Header']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteMultipleObjectsRequest/body.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteMultipleObjectsRequest/body.php new file mode 100644 index 00000000..0deee716 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteMultipleObjectsRequest/body.php @@ -0,0 +1,51 @@ + 'Delete', + ]; + + public function validate() + { + Model::validateRequired('delete', $this->delete, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->delete) { + $res['Delete'] = null !== $this->delete ? $this->delete->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return body + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Delete'])) { + $model->delete = delete::fromMap($map['Delete']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteMultipleObjectsRequest/body/delete.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteMultipleObjectsRequest/body/delete.php new file mode 100644 index 00000000..840fc89c --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteMultipleObjectsRequest/body/delete.php @@ -0,0 +1,76 @@ + 'Object', + 'quiet' => 'Quiet', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->object) { + $res['Object'] = []; + if (null !== $this->object && \is_array($this->object)) { + $n = 0; + foreach ($this->object as $item) { + $res['Object'][$n++] = null !== $item ? $item->toMap() : $item; + } + } + } + if (null !== $this->quiet) { + $res['Quiet'] = $this->quiet; + } + + return $res; + } + + /** + * @param array $map + * + * @return delete + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Object'])) { + if (!empty($map['Object'])) { + $model->object = []; + $n = 0; + foreach ($map['Object'] as $item) { + $model->object[$n++] = null !== $item ? object::fromMap($item) : $item; + } + } + } + if (isset($map['Quiet'])) { + $model->quiet = $map['Quiet']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteMultipleObjectsRequest/body/delete/object.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteMultipleObjectsRequest/body/delete/object.php new file mode 100644 index 00000000..cad453ec --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteMultipleObjectsRequest/body/delete/object.php @@ -0,0 +1,49 @@ + 'Key', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->key) { + $res['Key'] = $this->key; + } + + return $res; + } + + /** + * @param array $map + * + * @return object + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Key'])) { + $model->key = $map['Key']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteMultipleObjectsRequest/header.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteMultipleObjectsRequest/header.php new file mode 100644 index 00000000..dbc3abcc --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteMultipleObjectsRequest/header.php @@ -0,0 +1,79 @@ + 'Encoding-type', + 'contentLength' => 'Content-Length', + 'contentMD5' => 'Content-MD5', + ]; + + public function validate() + { + Model::validateRequired('contentLength', $this->contentLength, true); + Model::validateRequired('contentMD5', $this->contentMD5, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->encodingType) { + $res['Encoding-type'] = $this->encodingType; + } + if (null !== $this->contentLength) { + $res['Content-Length'] = $this->contentLength; + } + if (null !== $this->contentMD5) { + $res['Content-MD5'] = $this->contentMD5; + } + + return $res; + } + + /** + * @param array $map + * + * @return header + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Encoding-type'])) { + $model->encodingType = $map['Encoding-type']; + } + if (isset($map['Content-Length'])) { + $model->contentLength = $map['Content-Length']; + } + if (isset($map['Content-MD5'])) { + $model->contentMD5 = $map['Content-MD5']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteMultipleObjectsResponse.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteMultipleObjectsResponse.php new file mode 100644 index 00000000..78d0921a --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteMultipleObjectsResponse.php @@ -0,0 +1,66 @@ + 'x-oss-request-id', + 'deleteResult' => 'DeleteResult', + ]; + + public function validate() + { + Model::validateRequired('requestId', $this->requestId, true); + Model::validateRequired('deleteResult', $this->deleteResult, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->requestId) { + $res['x-oss-request-id'] = $this->requestId; + } + if (null !== $this->deleteResult) { + $res['DeleteResult'] = null !== $this->deleteResult ? $this->deleteResult->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return DeleteMultipleObjectsResponse + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['x-oss-request-id'])) { + $model->requestId = $map['x-oss-request-id']; + } + if (isset($map['DeleteResult'])) { + $model->deleteResult = deleteResult::fromMap($map['DeleteResult']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteMultipleObjectsResponse/deleteResult.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteMultipleObjectsResponse/deleteResult.php new file mode 100644 index 00000000..bd6881e2 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteMultipleObjectsResponse/deleteResult.php @@ -0,0 +1,90 @@ + 'Quiet', + 'encodingType' => 'EncodingType', + 'deleted' => 'Deleted', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->quiet) { + $res['Quiet'] = $this->quiet; + } + if (null !== $this->encodingType) { + $res['EncodingType'] = $this->encodingType; + } + if (null !== $this->deleted) { + $res['Deleted'] = []; + if (null !== $this->deleted && \is_array($this->deleted)) { + $n = 0; + foreach ($this->deleted as $item) { + $res['Deleted'][$n++] = null !== $item ? $item->toMap() : $item; + } + } + } + + return $res; + } + + /** + * @param array $map + * + * @return deleteResult + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Quiet'])) { + $model->quiet = $map['Quiet']; + } + if (isset($map['EncodingType'])) { + $model->encodingType = $map['EncodingType']; + } + if (isset($map['Deleted'])) { + if (!empty($map['Deleted'])) { + $model->deleted = []; + $n = 0; + foreach ($map['Deleted'] as $item) { + $model->deleted[$n++] = null !== $item ? deleted::fromMap($item) : $item; + } + } + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteMultipleObjectsResponse/deleteResult/deleted.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteMultipleObjectsResponse/deleteResult/deleted.php new file mode 100644 index 00000000..0a7cadbf --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteMultipleObjectsResponse/deleteResult/deleted.php @@ -0,0 +1,49 @@ + 'Key', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->key) { + $res['Key'] = $this->key; + } + + return $res; + } + + /** + * @param array $map + * + * @return deleted + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Key'])) { + $model->key = $map['Key']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteObjectRequest.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteObjectRequest.php new file mode 100644 index 00000000..2337b980 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteObjectRequest.php @@ -0,0 +1,66 @@ + 'BucketName', + 'objectName' => 'ObjectName', + ]; + + public function validate() + { + Model::validateRequired('bucketName', $this->bucketName, true); + Model::validateRequired('objectName', $this->objectName, true); + Model::validatePattern('bucketName', $this->bucketName, '[a-zA-Z0-9-_]+'); + } + + public function toMap() + { + $res = []; + if (null !== $this->bucketName) { + $res['BucketName'] = $this->bucketName; + } + if (null !== $this->objectName) { + $res['ObjectName'] = $this->objectName; + } + + return $res; + } + + /** + * @param array $map + * + * @return DeleteObjectRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['BucketName'])) { + $model->bucketName = $map['BucketName']; + } + if (isset($map['ObjectName'])) { + $model->objectName = $map['ObjectName']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteObjectResponse.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteObjectResponse.php new file mode 100644 index 00000000..1f73a0a5 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteObjectResponse.php @@ -0,0 +1,50 @@ + 'x-oss-request-id', + ]; + + public function validate() + { + Model::validateRequired('requestId', $this->requestId, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->requestId) { + $res['x-oss-request-id'] = $this->requestId; + } + + return $res; + } + + /** + * @param array $map + * + * @return DeleteObjectResponse + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['x-oss-request-id'])) { + $model->requestId = $map['x-oss-request-id']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteObjectTaggingRequest.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteObjectTaggingRequest.php new file mode 100644 index 00000000..f10f4dfe --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteObjectTaggingRequest.php @@ -0,0 +1,66 @@ + 'BucketName', + 'objectName' => 'ObjectName', + ]; + + public function validate() + { + Model::validateRequired('bucketName', $this->bucketName, true); + Model::validateRequired('objectName', $this->objectName, true); + Model::validatePattern('bucketName', $this->bucketName, '[a-zA-Z0-9-_]+'); + } + + public function toMap() + { + $res = []; + if (null !== $this->bucketName) { + $res['BucketName'] = $this->bucketName; + } + if (null !== $this->objectName) { + $res['ObjectName'] = $this->objectName; + } + + return $res; + } + + /** + * @param array $map + * + * @return DeleteObjectTaggingRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['BucketName'])) { + $model->bucketName = $map['BucketName']; + } + if (isset($map['ObjectName'])) { + $model->objectName = $map['ObjectName']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteObjectTaggingResponse.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteObjectTaggingResponse.php new file mode 100644 index 00000000..584d72ba --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/DeleteObjectTaggingResponse.php @@ -0,0 +1,50 @@ + 'x-oss-request-id', + ]; + + public function validate() + { + Model::validateRequired('requestId', $this->requestId, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->requestId) { + $res['x-oss-request-id'] = $this->requestId; + } + + return $res; + } + + /** + * @param array $map + * + * @return DeleteObjectTaggingResponse + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['x-oss-request-id'])) { + $model->requestId = $map['x-oss-request-id']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketAclRequest.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketAclRequest.php new file mode 100644 index 00000000..85987681 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketAclRequest.php @@ -0,0 +1,51 @@ + 'BucketName', + ]; + + public function validate() + { + Model::validateRequired('bucketName', $this->bucketName, true); + Model::validatePattern('bucketName', $this->bucketName, '[a-zA-Z0-9-_]+'); + } + + public function toMap() + { + $res = []; + if (null !== $this->bucketName) { + $res['BucketName'] = $this->bucketName; + } + + return $res; + } + + /** + * @param array $map + * + * @return GetBucketAclRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['BucketName'])) { + $model->bucketName = $map['BucketName']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketAclResponse.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketAclResponse.php new file mode 100644 index 00000000..62d2a5c0 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketAclResponse.php @@ -0,0 +1,66 @@ + 'x-oss-request-id', + 'accessControlPolicy' => 'AccessControlPolicy', + ]; + + public function validate() + { + Model::validateRequired('requestId', $this->requestId, true); + Model::validateRequired('accessControlPolicy', $this->accessControlPolicy, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->requestId) { + $res['x-oss-request-id'] = $this->requestId; + } + if (null !== $this->accessControlPolicy) { + $res['AccessControlPolicy'] = null !== $this->accessControlPolicy ? $this->accessControlPolicy->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return GetBucketAclResponse + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['x-oss-request-id'])) { + $model->requestId = $map['x-oss-request-id']; + } + if (isset($map['AccessControlPolicy'])) { + $model->accessControlPolicy = accessControlPolicy::fromMap($map['AccessControlPolicy']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketAclResponse/accessControlPolicy.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketAclResponse/accessControlPolicy.php new file mode 100644 index 00000000..2ca986c6 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketAclResponse/accessControlPolicy.php @@ -0,0 +1,67 @@ + 'Owner', + 'accessControlList' => 'AccessControlList', + ]; + + public function validate() + { + Model::validateRequired('owner', $this->owner, true); + Model::validateRequired('accessControlList', $this->accessControlList, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->owner) { + $res['Owner'] = null !== $this->owner ? $this->owner->toMap() : null; + } + if (null !== $this->accessControlList) { + $res['AccessControlList'] = null !== $this->accessControlList ? $this->accessControlList->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return accessControlPolicy + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Owner'])) { + $model->owner = owner::fromMap($map['Owner']); + } + if (isset($map['AccessControlList'])) { + $model->accessControlList = accessControlList::fromMap($map['AccessControlList']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketAclResponse/accessControlPolicy/accessControlList.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketAclResponse/accessControlPolicy/accessControlList.php new file mode 100644 index 00000000..fe4281e7 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketAclResponse/accessControlPolicy/accessControlList.php @@ -0,0 +1,49 @@ + 'Grant', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->grant) { + $res['Grant'] = $this->grant; + } + + return $res; + } + + /** + * @param array $map + * + * @return accessControlList + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Grant'])) { + $model->grant = $map['Grant']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketAclResponse/accessControlPolicy/owner.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketAclResponse/accessControlPolicy/owner.php new file mode 100644 index 00000000..70a08c2a --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketAclResponse/accessControlPolicy/owner.php @@ -0,0 +1,63 @@ + 'ID', + 'displayName' => 'DisplayName', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->iD) { + $res['ID'] = $this->iD; + } + if (null !== $this->displayName) { + $res['DisplayName'] = $this->displayName; + } + + return $res; + } + + /** + * @param array $map + * + * @return owner + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['ID'])) { + $model->iD = $map['ID']; + } + if (isset($map['DisplayName'])) { + $model->displayName = $map['DisplayName']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketCORSRequest.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketCORSRequest.php new file mode 100644 index 00000000..f6687195 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketCORSRequest.php @@ -0,0 +1,51 @@ + 'BucketName', + ]; + + public function validate() + { + Model::validateRequired('bucketName', $this->bucketName, true); + Model::validatePattern('bucketName', $this->bucketName, '[a-zA-Z0-9-_]+'); + } + + public function toMap() + { + $res = []; + if (null !== $this->bucketName) { + $res['BucketName'] = $this->bucketName; + } + + return $res; + } + + /** + * @param array $map + * + * @return GetBucketCORSRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['BucketName'])) { + $model->bucketName = $map['BucketName']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketCORSResponse.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketCORSResponse.php new file mode 100644 index 00000000..2f724d79 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketCORSResponse.php @@ -0,0 +1,66 @@ + 'x-oss-request-id', + 'cORSConfiguration' => 'CORSConfiguration', + ]; + + public function validate() + { + Model::validateRequired('requestId', $this->requestId, true); + Model::validateRequired('cORSConfiguration', $this->cORSConfiguration, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->requestId) { + $res['x-oss-request-id'] = $this->requestId; + } + if (null !== $this->cORSConfiguration) { + $res['CORSConfiguration'] = null !== $this->cORSConfiguration ? $this->cORSConfiguration->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return GetBucketCORSResponse + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['x-oss-request-id'])) { + $model->requestId = $map['x-oss-request-id']; + } + if (isset($map['CORSConfiguration'])) { + $model->cORSConfiguration = cORSConfiguration::fromMap($map['CORSConfiguration']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketCORSResponse/cORSConfiguration.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketCORSResponse/cORSConfiguration.php new file mode 100644 index 00000000..eb85cf8b --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketCORSResponse/cORSConfiguration.php @@ -0,0 +1,62 @@ + 'CORSRule', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->cORSRule) { + $res['CORSRule'] = []; + if (null !== $this->cORSRule && \is_array($this->cORSRule)) { + $n = 0; + foreach ($this->cORSRule as $item) { + $res['CORSRule'][$n++] = null !== $item ? $item->toMap() : $item; + } + } + } + + return $res; + } + + /** + * @param array $map + * + * @return cORSConfiguration + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['CORSRule'])) { + if (!empty($map['CORSRule'])) { + $model->cORSRule = []; + $n = 0; + foreach ($map['CORSRule'] as $item) { + $model->cORSRule[$n++] = null !== $item ? cORSRule::fromMap($item) : $item; + } + } + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketCORSResponse/cORSConfiguration/cORSRule.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketCORSResponse/cORSConfiguration/cORSRule.php new file mode 100644 index 00000000..85c6d080 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketCORSResponse/cORSConfiguration/cORSRule.php @@ -0,0 +1,49 @@ + 'MaxAgeSeconds', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->maxAgeSeconds) { + $res['MaxAgeSeconds'] = $this->maxAgeSeconds; + } + + return $res; + } + + /** + * @param array $map + * + * @return cORSRule + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['MaxAgeSeconds'])) { + $model->maxAgeSeconds = $map['MaxAgeSeconds']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketEncryptionRequest.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketEncryptionRequest.php new file mode 100644 index 00000000..603bbfe7 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketEncryptionRequest.php @@ -0,0 +1,51 @@ + 'BucketName', + ]; + + public function validate() + { + Model::validateRequired('bucketName', $this->bucketName, true); + Model::validatePattern('bucketName', $this->bucketName, '[a-zA-Z0-9-_]+'); + } + + public function toMap() + { + $res = []; + if (null !== $this->bucketName) { + $res['BucketName'] = $this->bucketName; + } + + return $res; + } + + /** + * @param array $map + * + * @return GetBucketEncryptionRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['BucketName'])) { + $model->bucketName = $map['BucketName']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketEncryptionResponse.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketEncryptionResponse.php new file mode 100644 index 00000000..fe50abe3 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketEncryptionResponse.php @@ -0,0 +1,66 @@ + 'x-oss-request-id', + 'serverSideEncryptionRule' => 'ServerSideEncryptionRule', + ]; + + public function validate() + { + Model::validateRequired('requestId', $this->requestId, true); + Model::validateRequired('serverSideEncryptionRule', $this->serverSideEncryptionRule, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->requestId) { + $res['x-oss-request-id'] = $this->requestId; + } + if (null !== $this->serverSideEncryptionRule) { + $res['ServerSideEncryptionRule'] = null !== $this->serverSideEncryptionRule ? $this->serverSideEncryptionRule->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return GetBucketEncryptionResponse + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['x-oss-request-id'])) { + $model->requestId = $map['x-oss-request-id']; + } + if (isset($map['ServerSideEncryptionRule'])) { + $model->serverSideEncryptionRule = serverSideEncryptionRule::fromMap($map['ServerSideEncryptionRule']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketEncryptionResponse/serverSideEncryptionRule.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketEncryptionResponse/serverSideEncryptionRule.php new file mode 100644 index 00000000..f07502cf --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketEncryptionResponse/serverSideEncryptionRule.php @@ -0,0 +1,51 @@ + 'ApplyServerSideEncryptionByDefault', + ]; + + public function validate() + { + Model::validateRequired('applyServerSideEncryptionByDefault', $this->applyServerSideEncryptionByDefault, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->applyServerSideEncryptionByDefault) { + $res['ApplyServerSideEncryptionByDefault'] = null !== $this->applyServerSideEncryptionByDefault ? $this->applyServerSideEncryptionByDefault->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return serverSideEncryptionRule + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['ApplyServerSideEncryptionByDefault'])) { + $model->applyServerSideEncryptionByDefault = applyServerSideEncryptionByDefault::fromMap($map['ApplyServerSideEncryptionByDefault']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketEncryptionResponse/serverSideEncryptionRule/applyServerSideEncryptionByDefault.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketEncryptionResponse/serverSideEncryptionRule/applyServerSideEncryptionByDefault.php new file mode 100644 index 00000000..5d269b60 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketEncryptionResponse/serverSideEncryptionRule/applyServerSideEncryptionByDefault.php @@ -0,0 +1,63 @@ + 'SSEAlgorithm', + 'kMSMasterKeyID' => 'KMSMasterKeyID', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->sSEAlgorithm) { + $res['SSEAlgorithm'] = $this->sSEAlgorithm; + } + if (null !== $this->kMSMasterKeyID) { + $res['KMSMasterKeyID'] = $this->kMSMasterKeyID; + } + + return $res; + } + + /** + * @param array $map + * + * @return applyServerSideEncryptionByDefault + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['SSEAlgorithm'])) { + $model->sSEAlgorithm = $map['SSEAlgorithm']; + } + if (isset($map['KMSMasterKeyID'])) { + $model->kMSMasterKeyID = $map['KMSMasterKeyID']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketInfoRequest.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketInfoRequest.php new file mode 100644 index 00000000..f534eca6 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketInfoRequest.php @@ -0,0 +1,51 @@ + 'BucketName', + ]; + + public function validate() + { + Model::validateRequired('bucketName', $this->bucketName, true); + Model::validatePattern('bucketName', $this->bucketName, '[a-zA-Z0-9-_]+'); + } + + public function toMap() + { + $res = []; + if (null !== $this->bucketName) { + $res['BucketName'] = $this->bucketName; + } + + return $res; + } + + /** + * @param array $map + * + * @return GetBucketInfoRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['BucketName'])) { + $model->bucketName = $map['BucketName']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketInfoResponse.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketInfoResponse.php new file mode 100644 index 00000000..0ebaa9de --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketInfoResponse.php @@ -0,0 +1,66 @@ + 'x-oss-request-id', + 'bucketInfo' => 'BucketInfo', + ]; + + public function validate() + { + Model::validateRequired('requestId', $this->requestId, true); + Model::validateRequired('bucketInfo', $this->bucketInfo, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->requestId) { + $res['x-oss-request-id'] = $this->requestId; + } + if (null !== $this->bucketInfo) { + $res['BucketInfo'] = null !== $this->bucketInfo ? $this->bucketInfo->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return GetBucketInfoResponse + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['x-oss-request-id'])) { + $model->requestId = $map['x-oss-request-id']; + } + if (isset($map['BucketInfo'])) { + $model->bucketInfo = bucketInfo::fromMap($map['BucketInfo']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketInfoResponse/bucketInfo.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketInfoResponse/bucketInfo.php new file mode 100644 index 00000000..df158464 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketInfoResponse/bucketInfo.php @@ -0,0 +1,51 @@ + 'Bucket', + ]; + + public function validate() + { + Model::validateRequired('bucket', $this->bucket, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->bucket) { + $res['Bucket'] = null !== $this->bucket ? $this->bucket->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return bucketInfo + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Bucket'])) { + $model->bucket = bucket::fromMap($map['Bucket']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketInfoResponse/bucketInfo/bucket.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketInfoResponse/bucketInfo/bucket.php new file mode 100644 index 00000000..622bcf8f --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketInfoResponse/bucketInfo/bucket.php @@ -0,0 +1,179 @@ + 'CreationDate', + 'extranetEndpoint' => 'ExtranetEndpoint', + 'intranetEndpoint' => 'IntranetEndpoint', + 'location' => 'Location', + 'name' => 'Name', + 'dataRedundancyType' => 'DataRedundancyType', + 'storageClass' => 'StorageClass', + 'comment' => 'Comment', + 'owner' => 'Owner', + 'accessControlList' => 'AccessControlList', + ]; + + public function validate() + { + Model::validateRequired('owner', $this->owner, true); + Model::validateRequired('accessControlList', $this->accessControlList, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->creationDate) { + $res['CreationDate'] = $this->creationDate; + } + if (null !== $this->extranetEndpoint) { + $res['ExtranetEndpoint'] = $this->extranetEndpoint; + } + if (null !== $this->intranetEndpoint) { + $res['IntranetEndpoint'] = $this->intranetEndpoint; + } + if (null !== $this->location) { + $res['Location'] = $this->location; + } + if (null !== $this->name) { + $res['Name'] = $this->name; + } + if (null !== $this->dataRedundancyType) { + $res['DataRedundancyType'] = $this->dataRedundancyType; + } + if (null !== $this->storageClass) { + $res['StorageClass'] = $this->storageClass; + } + if (null !== $this->comment) { + $res['Comment'] = $this->comment; + } + if (null !== $this->owner) { + $res['Owner'] = null !== $this->owner ? $this->owner->toMap() : null; + } + if (null !== $this->accessControlList) { + $res['AccessControlList'] = null !== $this->accessControlList ? $this->accessControlList->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return bucket + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['CreationDate'])) { + $model->creationDate = $map['CreationDate']; + } + if (isset($map['ExtranetEndpoint'])) { + $model->extranetEndpoint = $map['ExtranetEndpoint']; + } + if (isset($map['IntranetEndpoint'])) { + $model->intranetEndpoint = $map['IntranetEndpoint']; + } + if (isset($map['Location'])) { + $model->location = $map['Location']; + } + if (isset($map['Name'])) { + $model->name = $map['Name']; + } + if (isset($map['DataRedundancyType'])) { + $model->dataRedundancyType = $map['DataRedundancyType']; + } + if (isset($map['StorageClass'])) { + $model->storageClass = $map['StorageClass']; + } + if (isset($map['Comment'])) { + $model->comment = $map['Comment']; + } + if (isset($map['Owner'])) { + $model->owner = owner::fromMap($map['Owner']); + } + if (isset($map['AccessControlList'])) { + $model->accessControlList = accessControlList::fromMap($map['AccessControlList']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketInfoResponse/bucketInfo/bucket/accessControlList.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketInfoResponse/bucketInfo/bucket/accessControlList.php new file mode 100644 index 00000000..b2b6e16b --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketInfoResponse/bucketInfo/bucket/accessControlList.php @@ -0,0 +1,49 @@ + 'Grant', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->grant) { + $res['Grant'] = $this->grant; + } + + return $res; + } + + /** + * @param array $map + * + * @return accessControlList + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Grant'])) { + $model->grant = $map['Grant']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketInfoResponse/bucketInfo/bucket/owner.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketInfoResponse/bucketInfo/bucket/owner.php new file mode 100644 index 00000000..f24cfdf2 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketInfoResponse/bucketInfo/bucket/owner.php @@ -0,0 +1,63 @@ + 'ID', + 'displayName' => 'DisplayName', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->iD) { + $res['ID'] = $this->iD; + } + if (null !== $this->displayName) { + $res['DisplayName'] = $this->displayName; + } + + return $res; + } + + /** + * @param array $map + * + * @return owner + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['ID'])) { + $model->iD = $map['ID']; + } + if (isset($map['DisplayName'])) { + $model->displayName = $map['DisplayName']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketLifecycleRequest.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketLifecycleRequest.php new file mode 100644 index 00000000..175033bf --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketLifecycleRequest.php @@ -0,0 +1,51 @@ + 'BucketName', + ]; + + public function validate() + { + Model::validateRequired('bucketName', $this->bucketName, true); + Model::validatePattern('bucketName', $this->bucketName, '[a-zA-Z0-9-_]+'); + } + + public function toMap() + { + $res = []; + if (null !== $this->bucketName) { + $res['BucketName'] = $this->bucketName; + } + + return $res; + } + + /** + * @param array $map + * + * @return GetBucketLifecycleRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['BucketName'])) { + $model->bucketName = $map['BucketName']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketLifecycleResponse.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketLifecycleResponse.php new file mode 100644 index 00000000..313f89cc --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketLifecycleResponse.php @@ -0,0 +1,66 @@ + 'x-oss-request-id', + 'lifecycleConfiguration' => 'LifecycleConfiguration', + ]; + + public function validate() + { + Model::validateRequired('requestId', $this->requestId, true); + Model::validateRequired('lifecycleConfiguration', $this->lifecycleConfiguration, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->requestId) { + $res['x-oss-request-id'] = $this->requestId; + } + if (null !== $this->lifecycleConfiguration) { + $res['LifecycleConfiguration'] = null !== $this->lifecycleConfiguration ? $this->lifecycleConfiguration->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return GetBucketLifecycleResponse + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['x-oss-request-id'])) { + $model->requestId = $map['x-oss-request-id']; + } + if (isset($map['LifecycleConfiguration'])) { + $model->lifecycleConfiguration = lifecycleConfiguration::fromMap($map['LifecycleConfiguration']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketLifecycleResponse/lifecycleConfiguration.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketLifecycleResponse/lifecycleConfiguration.php new file mode 100644 index 00000000..6518e5f2 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketLifecycleResponse/lifecycleConfiguration.php @@ -0,0 +1,62 @@ + 'Rule', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->rule) { + $res['Rule'] = []; + if (null !== $this->rule && \is_array($this->rule)) { + $n = 0; + foreach ($this->rule as $item) { + $res['Rule'][$n++] = null !== $item ? $item->toMap() : $item; + } + } + } + + return $res; + } + + /** + * @param array $map + * + * @return lifecycleConfiguration + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Rule'])) { + if (!empty($map['Rule'])) { + $model->rule = []; + $n = 0; + foreach ($map['Rule'] as $item) { + $model->rule[$n++] = null !== $item ? rule::fromMap($item) : $item; + } + } + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketLifecycleResponse/lifecycleConfiguration/rule.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketLifecycleResponse/lifecycleConfiguration/rule.php new file mode 100644 index 00000000..ee1574bc --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketLifecycleResponse/lifecycleConfiguration/rule.php @@ -0,0 +1,141 @@ + 'ID', + 'prefix' => 'Prefix', + 'status' => 'Status', + 'expiration' => 'Expiration', + 'transition' => 'Transition', + 'abortMultipartUpload' => 'AbortMultipartUpload', + 'tag' => 'Tag', + ]; + + public function validate() + { + Model::validateRequired('expiration', $this->expiration, true); + Model::validateRequired('transition', $this->transition, true); + Model::validateRequired('abortMultipartUpload', $this->abortMultipartUpload, true); + Model::validateRequired('tag', $this->tag, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->iD) { + $res['ID'] = $this->iD; + } + if (null !== $this->prefix) { + $res['Prefix'] = $this->prefix; + } + if (null !== $this->status) { + $res['Status'] = $this->status; + } + if (null !== $this->expiration) { + $res['Expiration'] = null !== $this->expiration ? $this->expiration->toMap() : null; + } + if (null !== $this->transition) { + $res['Transition'] = null !== $this->transition ? $this->transition->toMap() : null; + } + if (null !== $this->abortMultipartUpload) { + $res['AbortMultipartUpload'] = null !== $this->abortMultipartUpload ? $this->abortMultipartUpload->toMap() : null; + } + if (null !== $this->tag) { + $res['Tag'] = null !== $this->tag ? $this->tag->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return rule + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['ID'])) { + $model->iD = $map['ID']; + } + if (isset($map['Prefix'])) { + $model->prefix = $map['Prefix']; + } + if (isset($map['Status'])) { + $model->status = $map['Status']; + } + if (isset($map['Expiration'])) { + $model->expiration = expiration::fromMap($map['Expiration']); + } + if (isset($map['Transition'])) { + $model->transition = transition::fromMap($map['Transition']); + } + if (isset($map['AbortMultipartUpload'])) { + $model->abortMultipartUpload = abortMultipartUpload::fromMap($map['AbortMultipartUpload']); + } + if (isset($map['Tag'])) { + $model->tag = tag::fromMap($map['Tag']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketLifecycleResponse/lifecycleConfiguration/rule/abortMultipartUpload.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketLifecycleResponse/lifecycleConfiguration/rule/abortMultipartUpload.php new file mode 100644 index 00000000..4f571826 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketLifecycleResponse/lifecycleConfiguration/rule/abortMultipartUpload.php @@ -0,0 +1,63 @@ + 'Days', + 'createdBeforeDate' => 'CreatedBeforeDate', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->days) { + $res['Days'] = $this->days; + } + if (null !== $this->createdBeforeDate) { + $res['CreatedBeforeDate'] = $this->createdBeforeDate; + } + + return $res; + } + + /** + * @param array $map + * + * @return abortMultipartUpload + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Days'])) { + $model->days = $map['Days']; + } + if (isset($map['CreatedBeforeDate'])) { + $model->createdBeforeDate = $map['CreatedBeforeDate']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketLifecycleResponse/lifecycleConfiguration/rule/expiration.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketLifecycleResponse/lifecycleConfiguration/rule/expiration.php new file mode 100644 index 00000000..f13edfd7 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketLifecycleResponse/lifecycleConfiguration/rule/expiration.php @@ -0,0 +1,63 @@ + 'Days', + 'createdBeforeDate' => 'CreatedBeforeDate', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->days) { + $res['Days'] = $this->days; + } + if (null !== $this->createdBeforeDate) { + $res['CreatedBeforeDate'] = $this->createdBeforeDate; + } + + return $res; + } + + /** + * @param array $map + * + * @return expiration + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Days'])) { + $model->days = $map['Days']; + } + if (isset($map['CreatedBeforeDate'])) { + $model->createdBeforeDate = $map['CreatedBeforeDate']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketLifecycleResponse/lifecycleConfiguration/rule/tag.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketLifecycleResponse/lifecycleConfiguration/rule/tag.php new file mode 100644 index 00000000..fd39ff7f --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketLifecycleResponse/lifecycleConfiguration/rule/tag.php @@ -0,0 +1,63 @@ + 'Key', + 'value' => 'Value', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->key) { + $res['Key'] = $this->key; + } + if (null !== $this->value) { + $res['Value'] = $this->value; + } + + return $res; + } + + /** + * @param array $map + * + * @return tag + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Key'])) { + $model->key = $map['Key']; + } + if (isset($map['Value'])) { + $model->value = $map['Value']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketLifecycleResponse/lifecycleConfiguration/rule/transition.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketLifecycleResponse/lifecycleConfiguration/rule/transition.php new file mode 100644 index 00000000..b692c0ed --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketLifecycleResponse/lifecycleConfiguration/rule/transition.php @@ -0,0 +1,63 @@ + 'Days', + 'storageClass' => 'StorageClass', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->days) { + $res['Days'] = $this->days; + } + if (null !== $this->storageClass) { + $res['StorageClass'] = $this->storageClass; + } + + return $res; + } + + /** + * @param array $map + * + * @return transition + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Days'])) { + $model->days = $map['Days']; + } + if (isset($map['StorageClass'])) { + $model->storageClass = $map['StorageClass']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketLocationRequest.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketLocationRequest.php new file mode 100644 index 00000000..f71bbc72 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketLocationRequest.php @@ -0,0 +1,51 @@ + 'BucketName', + ]; + + public function validate() + { + Model::validateRequired('bucketName', $this->bucketName, true); + Model::validatePattern('bucketName', $this->bucketName, '[a-zA-Z0-9-_]+'); + } + + public function toMap() + { + $res = []; + if (null !== $this->bucketName) { + $res['BucketName'] = $this->bucketName; + } + + return $res; + } + + /** + * @param array $map + * + * @return GetBucketLocationRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['BucketName'])) { + $model->bucketName = $map['BucketName']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketLocationResponse.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketLocationResponse.php new file mode 100644 index 00000000..4a1ed5f3 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketLocationResponse.php @@ -0,0 +1,65 @@ + 'x-oss-request-id', + 'locationConstraint' => 'LocationConstraint', + ]; + + public function validate() + { + Model::validateRequired('requestId', $this->requestId, true); + Model::validateRequired('locationConstraint', $this->locationConstraint, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->requestId) { + $res['x-oss-request-id'] = $this->requestId; + } + if (null !== $this->locationConstraint) { + $res['LocationConstraint'] = $this->locationConstraint; + } + + return $res; + } + + /** + * @param array $map + * + * @return GetBucketLocationResponse + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['x-oss-request-id'])) { + $model->requestId = $map['x-oss-request-id']; + } + if (isset($map['LocationConstraint'])) { + $model->locationConstraint = $map['LocationConstraint']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketLoggingRequest.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketLoggingRequest.php new file mode 100644 index 00000000..e82ee283 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketLoggingRequest.php @@ -0,0 +1,51 @@ + 'BucketName', + ]; + + public function validate() + { + Model::validateRequired('bucketName', $this->bucketName, true); + Model::validatePattern('bucketName', $this->bucketName, '[a-zA-Z0-9-_]+'); + } + + public function toMap() + { + $res = []; + if (null !== $this->bucketName) { + $res['BucketName'] = $this->bucketName; + } + + return $res; + } + + /** + * @param array $map + * + * @return GetBucketLoggingRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['BucketName'])) { + $model->bucketName = $map['BucketName']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketLoggingResponse.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketLoggingResponse.php new file mode 100644 index 00000000..1eb6e118 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketLoggingResponse.php @@ -0,0 +1,66 @@ + 'x-oss-request-id', + 'bucketLoggingStatus' => 'BucketLoggingStatus', + ]; + + public function validate() + { + Model::validateRequired('requestId', $this->requestId, true); + Model::validateRequired('bucketLoggingStatus', $this->bucketLoggingStatus, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->requestId) { + $res['x-oss-request-id'] = $this->requestId; + } + if (null !== $this->bucketLoggingStatus) { + $res['BucketLoggingStatus'] = null !== $this->bucketLoggingStatus ? $this->bucketLoggingStatus->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return GetBucketLoggingResponse + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['x-oss-request-id'])) { + $model->requestId = $map['x-oss-request-id']; + } + if (isset($map['BucketLoggingStatus'])) { + $model->bucketLoggingStatus = bucketLoggingStatus::fromMap($map['BucketLoggingStatus']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketLoggingResponse/bucketLoggingStatus.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketLoggingResponse/bucketLoggingStatus.php new file mode 100644 index 00000000..c279b9ab --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketLoggingResponse/bucketLoggingStatus.php @@ -0,0 +1,51 @@ + 'LoggingEnabled', + ]; + + public function validate() + { + Model::validateRequired('loggingEnabled', $this->loggingEnabled, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->loggingEnabled) { + $res['LoggingEnabled'] = null !== $this->loggingEnabled ? $this->loggingEnabled->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return bucketLoggingStatus + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['LoggingEnabled'])) { + $model->loggingEnabled = loggingEnabled::fromMap($map['LoggingEnabled']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketLoggingResponse/bucketLoggingStatus/loggingEnabled.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketLoggingResponse/bucketLoggingStatus/loggingEnabled.php new file mode 100644 index 00000000..98fe44e9 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketLoggingResponse/bucketLoggingStatus/loggingEnabled.php @@ -0,0 +1,63 @@ + 'TargetBucket', + 'targetPrefix' => 'TargetPrefix', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->targetBucket) { + $res['TargetBucket'] = $this->targetBucket; + } + if (null !== $this->targetPrefix) { + $res['TargetPrefix'] = $this->targetPrefix; + } + + return $res; + } + + /** + * @param array $map + * + * @return loggingEnabled + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['TargetBucket'])) { + $model->targetBucket = $map['TargetBucket']; + } + if (isset($map['TargetPrefix'])) { + $model->targetPrefix = $map['TargetPrefix']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketRefererRequest.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketRefererRequest.php new file mode 100644 index 00000000..f6a9865a --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketRefererRequest.php @@ -0,0 +1,51 @@ + 'BucketName', + ]; + + public function validate() + { + Model::validateRequired('bucketName', $this->bucketName, true); + Model::validatePattern('bucketName', $this->bucketName, '[a-zA-Z0-9-_]+'); + } + + public function toMap() + { + $res = []; + if (null !== $this->bucketName) { + $res['BucketName'] = $this->bucketName; + } + + return $res; + } + + /** + * @param array $map + * + * @return GetBucketRefererRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['BucketName'])) { + $model->bucketName = $map['BucketName']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketRefererResponse.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketRefererResponse.php new file mode 100644 index 00000000..f9336b67 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketRefererResponse.php @@ -0,0 +1,66 @@ + 'x-oss-request-id', + 'refererConfiguration' => 'RefererConfiguration', + ]; + + public function validate() + { + Model::validateRequired('requestId', $this->requestId, true); + Model::validateRequired('refererConfiguration', $this->refererConfiguration, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->requestId) { + $res['x-oss-request-id'] = $this->requestId; + } + if (null !== $this->refererConfiguration) { + $res['RefererConfiguration'] = null !== $this->refererConfiguration ? $this->refererConfiguration->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return GetBucketRefererResponse + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['x-oss-request-id'])) { + $model->requestId = $map['x-oss-request-id']; + } + if (isset($map['RefererConfiguration'])) { + $model->refererConfiguration = refererConfiguration::fromMap($map['RefererConfiguration']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketRefererResponse/refererConfiguration.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketRefererResponse/refererConfiguration.php new file mode 100644 index 00000000..78118348 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketRefererResponse/refererConfiguration.php @@ -0,0 +1,65 @@ + 'AllowEmptyReferer', + 'refererList' => 'RefererList', + ]; + + public function validate() + { + Model::validateRequired('refererList', $this->refererList, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->allowEmptyReferer) { + $res['AllowEmptyReferer'] = $this->allowEmptyReferer; + } + if (null !== $this->refererList) { + $res['RefererList'] = null !== $this->refererList ? $this->refererList->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return refererConfiguration + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['AllowEmptyReferer'])) { + $model->allowEmptyReferer = $map['AllowEmptyReferer']; + } + if (isset($map['RefererList'])) { + $model->refererList = refererList::fromMap($map['RefererList']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketRefererResponse/refererConfiguration/refererList.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketRefererResponse/refererConfiguration/refererList.php new file mode 100644 index 00000000..a5aa2dd2 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketRefererResponse/refererConfiguration/refererList.php @@ -0,0 +1,51 @@ + 'Referer', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->referer) { + $res['Referer'] = $this->referer; + } + + return $res; + } + + /** + * @param array $map + * + * @return refererList + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Referer'])) { + if (!empty($map['Referer'])) { + $model->referer = $map['Referer']; + } + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketRequest.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketRequest.php new file mode 100644 index 00000000..16ef25f0 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketRequest.php @@ -0,0 +1,66 @@ + 'BucketName', + 'filter' => 'Filter', + ]; + + public function validate() + { + Model::validateRequired('bucketName', $this->bucketName, true); + Model::validatePattern('bucketName', $this->bucketName, '[a-zA-Z0-9-_]+'); + } + + public function toMap() + { + $res = []; + if (null !== $this->bucketName) { + $res['BucketName'] = $this->bucketName; + } + if (null !== $this->filter) { + $res['Filter'] = null !== $this->filter ? $this->filter->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return GetBucketRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['BucketName'])) { + $model->bucketName = $map['BucketName']; + } + if (isset($map['Filter'])) { + $model->filter = filter::fromMap($map['Filter']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketRequest/filter.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketRequest/filter.php new file mode 100644 index 00000000..a7b8017c --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketRequest/filter.php @@ -0,0 +1,105 @@ + 'delimiter', + 'marker' => 'marker', + 'maxKeys' => 'max-keys', + 'prefix' => 'prefix', + 'encodingType' => 'encoding-type', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->delimiter) { + $res['delimiter'] = $this->delimiter; + } + if (null !== $this->marker) { + $res['marker'] = $this->marker; + } + if (null !== $this->maxKeys) { + $res['max-keys'] = $this->maxKeys; + } + if (null !== $this->prefix) { + $res['prefix'] = $this->prefix; + } + if (null !== $this->encodingType) { + $res['encoding-type'] = $this->encodingType; + } + + return $res; + } + + /** + * @param array $map + * + * @return filter + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['delimiter'])) { + $model->delimiter = $map['delimiter']; + } + if (isset($map['marker'])) { + $model->marker = $map['marker']; + } + if (isset($map['max-keys'])) { + $model->maxKeys = $map['max-keys']; + } + if (isset($map['prefix'])) { + $model->prefix = $map['prefix']; + } + if (isset($map['encoding-type'])) { + $model->encodingType = $map['encoding-type']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketRequestPaymentRequest.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketRequestPaymentRequest.php new file mode 100644 index 00000000..45a04423 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketRequestPaymentRequest.php @@ -0,0 +1,51 @@ + 'BucketName', + ]; + + public function validate() + { + Model::validateRequired('bucketName', $this->bucketName, true); + Model::validatePattern('bucketName', $this->bucketName, '[a-zA-Z0-9-_]+'); + } + + public function toMap() + { + $res = []; + if (null !== $this->bucketName) { + $res['BucketName'] = $this->bucketName; + } + + return $res; + } + + /** + * @param array $map + * + * @return GetBucketRequestPaymentRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['BucketName'])) { + $model->bucketName = $map['BucketName']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketRequestPaymentResponse.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketRequestPaymentResponse.php new file mode 100644 index 00000000..822fd45f --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketRequestPaymentResponse.php @@ -0,0 +1,66 @@ + 'x-oss-request-id', + 'requestPaymentConfiguration' => 'RequestPaymentConfiguration', + ]; + + public function validate() + { + Model::validateRequired('requestId', $this->requestId, true); + Model::validateRequired('requestPaymentConfiguration', $this->requestPaymentConfiguration, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->requestId) { + $res['x-oss-request-id'] = $this->requestId; + } + if (null !== $this->requestPaymentConfiguration) { + $res['RequestPaymentConfiguration'] = null !== $this->requestPaymentConfiguration ? $this->requestPaymentConfiguration->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return GetBucketRequestPaymentResponse + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['x-oss-request-id'])) { + $model->requestId = $map['x-oss-request-id']; + } + if (isset($map['RequestPaymentConfiguration'])) { + $model->requestPaymentConfiguration = requestPaymentConfiguration::fromMap($map['RequestPaymentConfiguration']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketRequestPaymentResponse/requestPaymentConfiguration.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketRequestPaymentResponse/requestPaymentConfiguration.php new file mode 100644 index 00000000..53ebd92c --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketRequestPaymentResponse/requestPaymentConfiguration.php @@ -0,0 +1,49 @@ + 'Payer', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->payer) { + $res['Payer'] = $this->payer; + } + + return $res; + } + + /** + * @param array $map + * + * @return requestPaymentConfiguration + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Payer'])) { + $model->payer = $map['Payer']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketResponse.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketResponse.php new file mode 100644 index 00000000..2c190fbb --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketResponse.php @@ -0,0 +1,66 @@ + 'x-oss-request-id', + 'listBucketResult' => 'ListBucketResult', + ]; + + public function validate() + { + Model::validateRequired('requestId', $this->requestId, true); + Model::validateRequired('listBucketResult', $this->listBucketResult, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->requestId) { + $res['x-oss-request-id'] = $this->requestId; + } + if (null !== $this->listBucketResult) { + $res['ListBucketResult'] = null !== $this->listBucketResult ? $this->listBucketResult->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return GetBucketResponse + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['x-oss-request-id'])) { + $model->requestId = $map['x-oss-request-id']; + } + if (isset($map['ListBucketResult'])) { + $model->listBucketResult = listBucketResult::fromMap($map['ListBucketResult']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketResponse/listBucketResult.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketResponse/listBucketResult.php new file mode 100644 index 00000000..be82a552 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketResponse/listBucketResult.php @@ -0,0 +1,174 @@ + 'Name', + 'prefix' => 'Prefix', + 'marker' => 'Marker', + 'maxKeys' => 'MaxKeys', + 'delimiter' => 'Delimiter', + 'isTruncated' => 'IsTruncated', + 'encodingType' => 'EncodingType', + 'commonPrefixes' => 'CommonPrefixes', + 'contents' => 'Contents', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->name) { + $res['Name'] = $this->name; + } + if (null !== $this->prefix) { + $res['Prefix'] = $this->prefix; + } + if (null !== $this->marker) { + $res['Marker'] = $this->marker; + } + if (null !== $this->maxKeys) { + $res['MaxKeys'] = $this->maxKeys; + } + if (null !== $this->delimiter) { + $res['Delimiter'] = $this->delimiter; + } + if (null !== $this->isTruncated) { + $res['IsTruncated'] = $this->isTruncated; + } + if (null !== $this->encodingType) { + $res['EncodingType'] = $this->encodingType; + } + if (null !== $this->commonPrefixes) { + $res['CommonPrefixes'] = $this->commonPrefixes; + } + if (null !== $this->contents) { + $res['Contents'] = []; + if (null !== $this->contents && \is_array($this->contents)) { + $n = 0; + foreach ($this->contents as $item) { + $res['Contents'][$n++] = null !== $item ? $item->toMap() : $item; + } + } + } + + return $res; + } + + /** + * @param array $map + * + * @return listBucketResult + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Name'])) { + $model->name = $map['Name']; + } + if (isset($map['Prefix'])) { + $model->prefix = $map['Prefix']; + } + if (isset($map['Marker'])) { + $model->marker = $map['Marker']; + } + if (isset($map['MaxKeys'])) { + $model->maxKeys = $map['MaxKeys']; + } + if (isset($map['Delimiter'])) { + $model->delimiter = $map['Delimiter']; + } + if (isset($map['IsTruncated'])) { + $model->isTruncated = $map['IsTruncated']; + } + if (isset($map['EncodingType'])) { + $model->encodingType = $map['EncodingType']; + } + if (isset($map['CommonPrefixes'])) { + $model->commonPrefixes = $map['CommonPrefixes']; + } + if (isset($map['Contents'])) { + if (!empty($map['Contents'])) { + $model->contents = []; + $n = 0; + foreach ($map['Contents'] as $item) { + $model->contents[$n++] = null !== $item ? contents::fromMap($item) : $item; + } + } + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketResponse/listBucketResult/contents.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketResponse/listBucketResult/contents.php new file mode 100644 index 00000000..adc61cd3 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketResponse/listBucketResult/contents.php @@ -0,0 +1,121 @@ + 'Key', + 'eTag' => 'ETag', + 'lastModified' => 'LastModified', + 'size' => 'Size', + 'storageClass' => 'StorageClass', + 'owner' => 'Owner', + ]; + + public function validate() + { + Model::validateRequired('owner', $this->owner, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->key) { + $res['Key'] = $this->key; + } + if (null !== $this->eTag) { + $res['ETag'] = $this->eTag; + } + if (null !== $this->lastModified) { + $res['LastModified'] = $this->lastModified; + } + if (null !== $this->size) { + $res['Size'] = $this->size; + } + if (null !== $this->storageClass) { + $res['StorageClass'] = $this->storageClass; + } + if (null !== $this->owner) { + $res['Owner'] = null !== $this->owner ? $this->owner->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return contents + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Key'])) { + $model->key = $map['Key']; + } + if (isset($map['ETag'])) { + $model->eTag = $map['ETag']; + } + if (isset($map['LastModified'])) { + $model->lastModified = $map['LastModified']; + } + if (isset($map['Size'])) { + $model->size = $map['Size']; + } + if (isset($map['StorageClass'])) { + $model->storageClass = $map['StorageClass']; + } + if (isset($map['Owner'])) { + $model->owner = owner::fromMap($map['Owner']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketResponse/listBucketResult/contents/owner.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketResponse/listBucketResult/contents/owner.php new file mode 100644 index 00000000..a478e6a0 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketResponse/listBucketResult/contents/owner.php @@ -0,0 +1,63 @@ + 'ID', + 'displayName' => 'DisplayName', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->iD) { + $res['ID'] = $this->iD; + } + if (null !== $this->displayName) { + $res['DisplayName'] = $this->displayName; + } + + return $res; + } + + /** + * @param array $map + * + * @return owner + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['ID'])) { + $model->iD = $map['ID']; + } + if (isset($map['DisplayName'])) { + $model->displayName = $map['DisplayName']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketTagsRequest.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketTagsRequest.php new file mode 100644 index 00000000..a74fff56 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketTagsRequest.php @@ -0,0 +1,51 @@ + 'BucketName', + ]; + + public function validate() + { + Model::validateRequired('bucketName', $this->bucketName, true); + Model::validatePattern('bucketName', $this->bucketName, '[a-zA-Z0-9-_]+'); + } + + public function toMap() + { + $res = []; + if (null !== $this->bucketName) { + $res['BucketName'] = $this->bucketName; + } + + return $res; + } + + /** + * @param array $map + * + * @return GetBucketTagsRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['BucketName'])) { + $model->bucketName = $map['BucketName']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketTagsResponse.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketTagsResponse.php new file mode 100644 index 00000000..7e1a3651 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketTagsResponse.php @@ -0,0 +1,66 @@ + 'x-oss-request-id', + 'tagging' => 'Tagging', + ]; + + public function validate() + { + Model::validateRequired('requestId', $this->requestId, true); + Model::validateRequired('tagging', $this->tagging, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->requestId) { + $res['x-oss-request-id'] = $this->requestId; + } + if (null !== $this->tagging) { + $res['Tagging'] = null !== $this->tagging ? $this->tagging->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return GetBucketTagsResponse + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['x-oss-request-id'])) { + $model->requestId = $map['x-oss-request-id']; + } + if (isset($map['Tagging'])) { + $model->tagging = tagging::fromMap($map['Tagging']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketTagsResponse/tagging.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketTagsResponse/tagging.php new file mode 100644 index 00000000..560f964a --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketTagsResponse/tagging.php @@ -0,0 +1,51 @@ + 'TagSet', + ]; + + public function validate() + { + Model::validateRequired('tagSet', $this->tagSet, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->tagSet) { + $res['TagSet'] = null !== $this->tagSet ? $this->tagSet->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return tagging + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['TagSet'])) { + $model->tagSet = tagSet::fromMap($map['TagSet']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketTagsResponse/tagging/tagSet.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketTagsResponse/tagging/tagSet.php new file mode 100644 index 00000000..55c6fe03 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketTagsResponse/tagging/tagSet.php @@ -0,0 +1,62 @@ + 'Tag', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->tag) { + $res['Tag'] = []; + if (null !== $this->tag && \is_array($this->tag)) { + $n = 0; + foreach ($this->tag as $item) { + $res['Tag'][$n++] = null !== $item ? $item->toMap() : $item; + } + } + } + + return $res; + } + + /** + * @param array $map + * + * @return tagSet + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Tag'])) { + if (!empty($map['Tag'])) { + $model->tag = []; + $n = 0; + foreach ($map['Tag'] as $item) { + $model->tag[$n++] = null !== $item ? tag::fromMap($item) : $item; + } + } + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketTagsResponse/tagging/tagSet/tag.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketTagsResponse/tagging/tagSet/tag.php new file mode 100644 index 00000000..fefc7f6e --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketTagsResponse/tagging/tagSet/tag.php @@ -0,0 +1,63 @@ + 'Key', + 'value' => 'Value', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->key) { + $res['Key'] = $this->key; + } + if (null !== $this->value) { + $res['Value'] = $this->value; + } + + return $res; + } + + /** + * @param array $map + * + * @return tag + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Key'])) { + $model->key = $map['Key']; + } + if (isset($map['Value'])) { + $model->value = $map['Value']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketWebsiteRequest.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketWebsiteRequest.php new file mode 100644 index 00000000..fd597c28 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketWebsiteRequest.php @@ -0,0 +1,51 @@ + 'BucketName', + ]; + + public function validate() + { + Model::validateRequired('bucketName', $this->bucketName, true); + Model::validatePattern('bucketName', $this->bucketName, '[a-zA-Z0-9-_]+'); + } + + public function toMap() + { + $res = []; + if (null !== $this->bucketName) { + $res['BucketName'] = $this->bucketName; + } + + return $res; + } + + /** + * @param array $map + * + * @return GetBucketWebsiteRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['BucketName'])) { + $model->bucketName = $map['BucketName']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketWebsiteResponse.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketWebsiteResponse.php new file mode 100644 index 00000000..d6e47e83 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketWebsiteResponse.php @@ -0,0 +1,66 @@ + 'x-oss-request-id', + 'websiteConfiguration' => 'WebsiteConfiguration', + ]; + + public function validate() + { + Model::validateRequired('requestId', $this->requestId, true); + Model::validateRequired('websiteConfiguration', $this->websiteConfiguration, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->requestId) { + $res['x-oss-request-id'] = $this->requestId; + } + if (null !== $this->websiteConfiguration) { + $res['WebsiteConfiguration'] = null !== $this->websiteConfiguration ? $this->websiteConfiguration->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return GetBucketWebsiteResponse + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['x-oss-request-id'])) { + $model->requestId = $map['x-oss-request-id']; + } + if (isset($map['WebsiteConfiguration'])) { + $model->websiteConfiguration = websiteConfiguration::fromMap($map['WebsiteConfiguration']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketWebsiteResponse/websiteConfiguration.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketWebsiteResponse/websiteConfiguration.php new file mode 100644 index 00000000..388f7ac6 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketWebsiteResponse/websiteConfiguration.php @@ -0,0 +1,83 @@ + 'IndexDocument', + 'errorDocument' => 'ErrorDocument', + 'routingRules' => 'RoutingRules', + ]; + + public function validate() + { + Model::validateRequired('indexDocument', $this->indexDocument, true); + Model::validateRequired('errorDocument', $this->errorDocument, true); + Model::validateRequired('routingRules', $this->routingRules, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->indexDocument) { + $res['IndexDocument'] = null !== $this->indexDocument ? $this->indexDocument->toMap() : null; + } + if (null !== $this->errorDocument) { + $res['ErrorDocument'] = null !== $this->errorDocument ? $this->errorDocument->toMap() : null; + } + if (null !== $this->routingRules) { + $res['RoutingRules'] = null !== $this->routingRules ? $this->routingRules->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return websiteConfiguration + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['IndexDocument'])) { + $model->indexDocument = indexDocument::fromMap($map['IndexDocument']); + } + if (isset($map['ErrorDocument'])) { + $model->errorDocument = errorDocument::fromMap($map['ErrorDocument']); + } + if (isset($map['RoutingRules'])) { + $model->routingRules = routingRules::fromMap($map['RoutingRules']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketWebsiteResponse/websiteConfiguration/errorDocument.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketWebsiteResponse/websiteConfiguration/errorDocument.php new file mode 100644 index 00000000..252ab02c --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketWebsiteResponse/websiteConfiguration/errorDocument.php @@ -0,0 +1,49 @@ + 'Key', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->key) { + $res['Key'] = $this->key; + } + + return $res; + } + + /** + * @param array $map + * + * @return errorDocument + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Key'])) { + $model->key = $map['Key']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketWebsiteResponse/websiteConfiguration/indexDocument.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketWebsiteResponse/websiteConfiguration/indexDocument.php new file mode 100644 index 00000000..a6fab03e --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketWebsiteResponse/websiteConfiguration/indexDocument.php @@ -0,0 +1,49 @@ + 'Suffix', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->suffix) { + $res['Suffix'] = $this->suffix; + } + + return $res; + } + + /** + * @param array $map + * + * @return indexDocument + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Suffix'])) { + $model->suffix = $map['Suffix']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketWebsiteResponse/websiteConfiguration/routingRules.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketWebsiteResponse/websiteConfiguration/routingRules.php new file mode 100644 index 00000000..91daa034 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketWebsiteResponse/websiteConfiguration/routingRules.php @@ -0,0 +1,62 @@ + 'RoutingRule', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->routingRule) { + $res['RoutingRule'] = []; + if (null !== $this->routingRule && \is_array($this->routingRule)) { + $n = 0; + foreach ($this->routingRule as $item) { + $res['RoutingRule'][$n++] = null !== $item ? $item->toMap() : $item; + } + } + } + + return $res; + } + + /** + * @param array $map + * + * @return routingRules + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['RoutingRule'])) { + if (!empty($map['RoutingRule'])) { + $model->routingRule = []; + $n = 0; + foreach ($map['RoutingRule'] as $item) { + $model->routingRule[$n++] = null !== $item ? routingRule::fromMap($item) : $item; + } + } + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketWebsiteResponse/websiteConfiguration/routingRules/routingRule.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketWebsiteResponse/websiteConfiguration/routingRules/routingRule.php new file mode 100644 index 00000000..f80f90d8 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketWebsiteResponse/websiteConfiguration/routingRules/routingRule.php @@ -0,0 +1,81 @@ + 'RuleNumber', + 'condition' => 'Condition', + 'redirect' => 'Redirect', + ]; + + public function validate() + { + Model::validateRequired('condition', $this->condition, true); + Model::validateRequired('redirect', $this->redirect, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->ruleNumber) { + $res['RuleNumber'] = $this->ruleNumber; + } + if (null !== $this->condition) { + $res['Condition'] = null !== $this->condition ? $this->condition->toMap() : null; + } + if (null !== $this->redirect) { + $res['Redirect'] = null !== $this->redirect ? $this->redirect->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return routingRule + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['RuleNumber'])) { + $model->ruleNumber = $map['RuleNumber']; + } + if (isset($map['Condition'])) { + $model->condition = condition::fromMap($map['Condition']); + } + if (isset($map['Redirect'])) { + $model->redirect = redirect::fromMap($map['Redirect']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketWebsiteResponse/websiteConfiguration/routingRules/routingRule/condition.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketWebsiteResponse/websiteConfiguration/routingRules/routingRule/condition.php new file mode 100644 index 00000000..fbabd934 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketWebsiteResponse/websiteConfiguration/routingRules/routingRule/condition.php @@ -0,0 +1,79 @@ + 'KeyPrefixEquals', + 'httpErrorCodeReturnedEquals' => 'HttpErrorCodeReturnedEquals', + 'includeHeader' => 'IncludeHeader', + ]; + + public function validate() + { + Model::validateRequired('includeHeader', $this->includeHeader, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->keyPrefixEquals) { + $res['KeyPrefixEquals'] = $this->keyPrefixEquals; + } + if (null !== $this->httpErrorCodeReturnedEquals) { + $res['HttpErrorCodeReturnedEquals'] = $this->httpErrorCodeReturnedEquals; + } + if (null !== $this->includeHeader) { + $res['IncludeHeader'] = null !== $this->includeHeader ? $this->includeHeader->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return condition + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['KeyPrefixEquals'])) { + $model->keyPrefixEquals = $map['KeyPrefixEquals']; + } + if (isset($map['HttpErrorCodeReturnedEquals'])) { + $model->httpErrorCodeReturnedEquals = $map['HttpErrorCodeReturnedEquals']; + } + if (isset($map['IncludeHeader'])) { + $model->includeHeader = includeHeader::fromMap($map['IncludeHeader']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketWebsiteResponse/websiteConfiguration/routingRules/routingRule/condition/includeHeader.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketWebsiteResponse/websiteConfiguration/routingRules/routingRule/condition/includeHeader.php new file mode 100644 index 00000000..f4ef134c --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketWebsiteResponse/websiteConfiguration/routingRules/routingRule/condition/includeHeader.php @@ -0,0 +1,63 @@ + 'Key', + 'equals' => 'Equals', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->key) { + $res['Key'] = $this->key; + } + if (null !== $this->equals) { + $res['Equals'] = $this->equals; + } + + return $res; + } + + /** + * @param array $map + * + * @return includeHeader + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Key'])) { + $model->key = $map['Key']; + } + if (isset($map['Equals'])) { + $model->equals = $map['Equals']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketWebsiteResponse/websiteConfiguration/routingRules/routingRule/redirect.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketWebsiteResponse/websiteConfiguration/routingRules/routingRule/redirect.php new file mode 100644 index 00000000..a86bbb45 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketWebsiteResponse/websiteConfiguration/routingRules/routingRule/redirect.php @@ -0,0 +1,205 @@ + 'RedirectType', + 'passQueryString' => 'PassQueryString', + 'mirrorURL' => 'MirrorURL', + 'mirrorPassQueryString' => 'MirrorPassQueryString', + 'mirrorFollowRedirect' => 'MirrorFollowRedirect', + 'mirrorCheckMd5' => 'MirrorCheckMd5', + 'protocol' => 'Protocol', + 'hostName' => 'HostName', + 'httpRedirectCode' => 'HttpRedirectCode', + 'replaceKeyPrefixWith' => 'ReplaceKeyPrefixWith', + 'replaceKeyWith' => 'ReplaceKeyWith', + 'mirrorHeaders' => 'MirrorHeaders', + ]; + + public function validate() + { + Model::validateRequired('mirrorHeaders', $this->mirrorHeaders, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->redirectType) { + $res['RedirectType'] = $this->redirectType; + } + if (null !== $this->passQueryString) { + $res['PassQueryString'] = $this->passQueryString; + } + if (null !== $this->mirrorURL) { + $res['MirrorURL'] = $this->mirrorURL; + } + if (null !== $this->mirrorPassQueryString) { + $res['MirrorPassQueryString'] = $this->mirrorPassQueryString; + } + if (null !== $this->mirrorFollowRedirect) { + $res['MirrorFollowRedirect'] = $this->mirrorFollowRedirect; + } + if (null !== $this->mirrorCheckMd5) { + $res['MirrorCheckMd5'] = $this->mirrorCheckMd5; + } + if (null !== $this->protocol) { + $res['Protocol'] = $this->protocol; + } + if (null !== $this->hostName) { + $res['HostName'] = $this->hostName; + } + if (null !== $this->httpRedirectCode) { + $res['HttpRedirectCode'] = $this->httpRedirectCode; + } + if (null !== $this->replaceKeyPrefixWith) { + $res['ReplaceKeyPrefixWith'] = $this->replaceKeyPrefixWith; + } + if (null !== $this->replaceKeyWith) { + $res['ReplaceKeyWith'] = $this->replaceKeyWith; + } + if (null !== $this->mirrorHeaders) { + $res['MirrorHeaders'] = null !== $this->mirrorHeaders ? $this->mirrorHeaders->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return redirect + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['RedirectType'])) { + $model->redirectType = $map['RedirectType']; + } + if (isset($map['PassQueryString'])) { + $model->passQueryString = $map['PassQueryString']; + } + if (isset($map['MirrorURL'])) { + $model->mirrorURL = $map['MirrorURL']; + } + if (isset($map['MirrorPassQueryString'])) { + $model->mirrorPassQueryString = $map['MirrorPassQueryString']; + } + if (isset($map['MirrorFollowRedirect'])) { + $model->mirrorFollowRedirect = $map['MirrorFollowRedirect']; + } + if (isset($map['MirrorCheckMd5'])) { + $model->mirrorCheckMd5 = $map['MirrorCheckMd5']; + } + if (isset($map['Protocol'])) { + $model->protocol = $map['Protocol']; + } + if (isset($map['HostName'])) { + $model->hostName = $map['HostName']; + } + if (isset($map['HttpRedirectCode'])) { + $model->httpRedirectCode = $map['HttpRedirectCode']; + } + if (isset($map['ReplaceKeyPrefixWith'])) { + $model->replaceKeyPrefixWith = $map['ReplaceKeyPrefixWith']; + } + if (isset($map['ReplaceKeyWith'])) { + $model->replaceKeyWith = $map['ReplaceKeyWith']; + } + if (isset($map['MirrorHeaders'])) { + $model->mirrorHeaders = mirrorHeaders::fromMap($map['MirrorHeaders']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketWebsiteResponse/websiteConfiguration/routingRules/routingRule/redirect/mirrorHeaders.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketWebsiteResponse/websiteConfiguration/routingRules/routingRule/redirect/mirrorHeaders.php new file mode 100644 index 00000000..170d3567 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketWebsiteResponse/websiteConfiguration/routingRules/routingRule/redirect/mirrorHeaders.php @@ -0,0 +1,93 @@ + 'PassAll', + 'pass' => 'Pass', + 'remove' => 'Remove', + 'set' => 'Set', + ]; + + public function validate() + { + Model::validateRequired('set', $this->set, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->passAll) { + $res['PassAll'] = $this->passAll; + } + if (null !== $this->pass) { + $res['Pass'] = $this->pass; + } + if (null !== $this->remove) { + $res['Remove'] = $this->remove; + } + if (null !== $this->set) { + $res['Set'] = null !== $this->set ? $this->set->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return mirrorHeaders + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['PassAll'])) { + $model->passAll = $map['PassAll']; + } + if (isset($map['Pass'])) { + $model->pass = $map['Pass']; + } + if (isset($map['Remove'])) { + $model->remove = $map['Remove']; + } + if (isset($map['Set'])) { + $model->set = set::fromMap($map['Set']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketWebsiteResponse/websiteConfiguration/routingRules/routingRule/redirect/mirrorHeaders/set.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketWebsiteResponse/websiteConfiguration/routingRules/routingRule/redirect/mirrorHeaders/set.php new file mode 100644 index 00000000..b13d6597 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetBucketWebsiteResponse/websiteConfiguration/routingRules/routingRule/redirect/mirrorHeaders/set.php @@ -0,0 +1,63 @@ + 'Key', + 'value' => 'Value', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->key) { + $res['Key'] = $this->key; + } + if (null !== $this->value) { + $res['Value'] = $this->value; + } + + return $res; + } + + /** + * @param array $map + * + * @return set + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Key'])) { + $model->key = $map['Key']; + } + if (isset($map['Value'])) { + $model->value = $map['Value']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetLiveChannelHistoryRequest.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetLiveChannelHistoryRequest.php new file mode 100644 index 00000000..71185f6c --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetLiveChannelHistoryRequest.php @@ -0,0 +1,81 @@ + 'BucketName', + 'channelName' => 'ChannelName', + 'filter' => 'Filter', + ]; + + public function validate() + { + Model::validateRequired('bucketName', $this->bucketName, true); + Model::validateRequired('channelName', $this->channelName, true); + Model::validatePattern('bucketName', $this->bucketName, '[a-zA-Z0-9-_]+'); + } + + public function toMap() + { + $res = []; + if (null !== $this->bucketName) { + $res['BucketName'] = $this->bucketName; + } + if (null !== $this->channelName) { + $res['ChannelName'] = $this->channelName; + } + if (null !== $this->filter) { + $res['Filter'] = null !== $this->filter ? $this->filter->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return GetLiveChannelHistoryRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['BucketName'])) { + $model->bucketName = $map['BucketName']; + } + if (isset($map['ChannelName'])) { + $model->channelName = $map['ChannelName']; + } + if (isset($map['Filter'])) { + $model->filter = filter::fromMap($map['Filter']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetLiveChannelHistoryRequest/filter.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetLiveChannelHistoryRequest/filter.php new file mode 100644 index 00000000..0a4dce28 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetLiveChannelHistoryRequest/filter.php @@ -0,0 +1,49 @@ + 'comp', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->comp) { + $res['comp'] = $this->comp; + } + + return $res; + } + + /** + * @param array $map + * + * @return filter + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['comp'])) { + $model->comp = $map['comp']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetLiveChannelHistoryResponse.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetLiveChannelHistoryResponse.php new file mode 100644 index 00000000..6058c03a --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetLiveChannelHistoryResponse.php @@ -0,0 +1,66 @@ + 'x-oss-request-id', + 'liveChannelHistory' => 'LiveChannelHistory', + ]; + + public function validate() + { + Model::validateRequired('requestId', $this->requestId, true); + Model::validateRequired('liveChannelHistory', $this->liveChannelHistory, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->requestId) { + $res['x-oss-request-id'] = $this->requestId; + } + if (null !== $this->liveChannelHistory) { + $res['LiveChannelHistory'] = null !== $this->liveChannelHistory ? $this->liveChannelHistory->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return GetLiveChannelHistoryResponse + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['x-oss-request-id'])) { + $model->requestId = $map['x-oss-request-id']; + } + if (isset($map['LiveChannelHistory'])) { + $model->liveChannelHistory = liveChannelHistory::fromMap($map['LiveChannelHistory']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetLiveChannelHistoryResponse/liveChannelHistory.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetLiveChannelHistoryResponse/liveChannelHistory.php new file mode 100644 index 00000000..511a4a84 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetLiveChannelHistoryResponse/liveChannelHistory.php @@ -0,0 +1,62 @@ + 'LiveRecord', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->liveRecord) { + $res['LiveRecord'] = []; + if (null !== $this->liveRecord && \is_array($this->liveRecord)) { + $n = 0; + foreach ($this->liveRecord as $item) { + $res['LiveRecord'][$n++] = null !== $item ? $item->toMap() : $item; + } + } + } + + return $res; + } + + /** + * @param array $map + * + * @return liveChannelHistory + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['LiveRecord'])) { + if (!empty($map['LiveRecord'])) { + $model->liveRecord = []; + $n = 0; + foreach ($map['LiveRecord'] as $item) { + $model->liveRecord[$n++] = null !== $item ? liveRecord::fromMap($item) : $item; + } + } + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetLiveChannelHistoryResponse/liveChannelHistory/liveRecord.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetLiveChannelHistoryResponse/liveChannelHistory/liveRecord.php new file mode 100644 index 00000000..c7c0d483 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetLiveChannelHistoryResponse/liveChannelHistory/liveRecord.php @@ -0,0 +1,77 @@ + 'StartTime', + 'endTime' => 'EndTime', + 'remoteAddr' => 'RemoteAddr', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->startTime) { + $res['StartTime'] = $this->startTime; + } + if (null !== $this->endTime) { + $res['EndTime'] = $this->endTime; + } + if (null !== $this->remoteAddr) { + $res['RemoteAddr'] = $this->remoteAddr; + } + + return $res; + } + + /** + * @param array $map + * + * @return liveRecord + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['StartTime'])) { + $model->startTime = $map['StartTime']; + } + if (isset($map['EndTime'])) { + $model->endTime = $map['EndTime']; + } + if (isset($map['RemoteAddr'])) { + $model->remoteAddr = $map['RemoteAddr']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetLiveChannelInfoRequest.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetLiveChannelInfoRequest.php new file mode 100644 index 00000000..51a4e746 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetLiveChannelInfoRequest.php @@ -0,0 +1,66 @@ + 'BucketName', + 'channelName' => 'ChannelName', + ]; + + public function validate() + { + Model::validateRequired('bucketName', $this->bucketName, true); + Model::validateRequired('channelName', $this->channelName, true); + Model::validatePattern('bucketName', $this->bucketName, '[a-zA-Z0-9-_]+'); + } + + public function toMap() + { + $res = []; + if (null !== $this->bucketName) { + $res['BucketName'] = $this->bucketName; + } + if (null !== $this->channelName) { + $res['ChannelName'] = $this->channelName; + } + + return $res; + } + + /** + * @param array $map + * + * @return GetLiveChannelInfoRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['BucketName'])) { + $model->bucketName = $map['BucketName']; + } + if (isset($map['ChannelName'])) { + $model->channelName = $map['ChannelName']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetLiveChannelInfoResponse.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetLiveChannelInfoResponse.php new file mode 100644 index 00000000..956b8f54 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetLiveChannelInfoResponse.php @@ -0,0 +1,66 @@ + 'x-oss-request-id', + 'liveChannelConfiguration' => 'LiveChannelConfiguration', + ]; + + public function validate() + { + Model::validateRequired('requestId', $this->requestId, true); + Model::validateRequired('liveChannelConfiguration', $this->liveChannelConfiguration, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->requestId) { + $res['x-oss-request-id'] = $this->requestId; + } + if (null !== $this->liveChannelConfiguration) { + $res['LiveChannelConfiguration'] = null !== $this->liveChannelConfiguration ? $this->liveChannelConfiguration->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return GetLiveChannelInfoResponse + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['x-oss-request-id'])) { + $model->requestId = $map['x-oss-request-id']; + } + if (isset($map['LiveChannelConfiguration'])) { + $model->liveChannelConfiguration = liveChannelConfiguration::fromMap($map['LiveChannelConfiguration']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetLiveChannelInfoResponse/liveChannelConfiguration.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetLiveChannelInfoResponse/liveChannelConfiguration.php new file mode 100644 index 00000000..3e0b4fb2 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetLiveChannelInfoResponse/liveChannelConfiguration.php @@ -0,0 +1,79 @@ + 'Description', + 'status' => 'Status', + 'target' => 'Target', + ]; + + public function validate() + { + Model::validateRequired('target', $this->target, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->description) { + $res['Description'] = $this->description; + } + if (null !== $this->status) { + $res['Status'] = $this->status; + } + if (null !== $this->target) { + $res['Target'] = null !== $this->target ? $this->target->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return liveChannelConfiguration + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Description'])) { + $model->description = $map['Description']; + } + if (isset($map['Status'])) { + $model->status = $map['Status']; + } + if (isset($map['Target'])) { + $model->target = target::fromMap($map['Target']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetLiveChannelInfoResponse/liveChannelConfiguration/target.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetLiveChannelInfoResponse/liveChannelConfiguration/target.php new file mode 100644 index 00000000..d3bf8771 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetLiveChannelInfoResponse/liveChannelConfiguration/target.php @@ -0,0 +1,91 @@ + 'Type', + 'fragDuration' => 'FragDuration', + 'fragCount' => 'FragCount', + 'playlistName' => 'PlaylistName', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->type) { + $res['Type'] = $this->type; + } + if (null !== $this->fragDuration) { + $res['FragDuration'] = $this->fragDuration; + } + if (null !== $this->fragCount) { + $res['FragCount'] = $this->fragCount; + } + if (null !== $this->playlistName) { + $res['PlaylistName'] = $this->playlistName; + } + + return $res; + } + + /** + * @param array $map + * + * @return target + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Type'])) { + $model->type = $map['Type']; + } + if (isset($map['FragDuration'])) { + $model->fragDuration = $map['FragDuration']; + } + if (isset($map['FragCount'])) { + $model->fragCount = $map['FragCount']; + } + if (isset($map['PlaylistName'])) { + $model->playlistName = $map['PlaylistName']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetLiveChannelStatRequest.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetLiveChannelStatRequest.php new file mode 100644 index 00000000..5ed41c88 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetLiveChannelStatRequest.php @@ -0,0 +1,81 @@ + 'BucketName', + 'channelName' => 'ChannelName', + 'filter' => 'Filter', + ]; + + public function validate() + { + Model::validateRequired('bucketName', $this->bucketName, true); + Model::validateRequired('channelName', $this->channelName, true); + Model::validatePattern('bucketName', $this->bucketName, '[a-zA-Z0-9-_]+'); + } + + public function toMap() + { + $res = []; + if (null !== $this->bucketName) { + $res['BucketName'] = $this->bucketName; + } + if (null !== $this->channelName) { + $res['ChannelName'] = $this->channelName; + } + if (null !== $this->filter) { + $res['Filter'] = null !== $this->filter ? $this->filter->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return GetLiveChannelStatRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['BucketName'])) { + $model->bucketName = $map['BucketName']; + } + if (isset($map['ChannelName'])) { + $model->channelName = $map['ChannelName']; + } + if (isset($map['Filter'])) { + $model->filter = filter::fromMap($map['Filter']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetLiveChannelStatRequest/filter.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetLiveChannelStatRequest/filter.php new file mode 100644 index 00000000..891501be --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetLiveChannelStatRequest/filter.php @@ -0,0 +1,49 @@ + 'comp', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->comp) { + $res['comp'] = $this->comp; + } + + return $res; + } + + /** + * @param array $map + * + * @return filter + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['comp'])) { + $model->comp = $map['comp']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetLiveChannelStatResponse.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetLiveChannelStatResponse.php new file mode 100644 index 00000000..f74f4ddf --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetLiveChannelStatResponse.php @@ -0,0 +1,66 @@ + 'x-oss-request-id', + 'liveChannelStat' => 'LiveChannelStat', + ]; + + public function validate() + { + Model::validateRequired('requestId', $this->requestId, true); + Model::validateRequired('liveChannelStat', $this->liveChannelStat, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->requestId) { + $res['x-oss-request-id'] = $this->requestId; + } + if (null !== $this->liveChannelStat) { + $res['LiveChannelStat'] = null !== $this->liveChannelStat ? $this->liveChannelStat->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return GetLiveChannelStatResponse + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['x-oss-request-id'])) { + $model->requestId = $map['x-oss-request-id']; + } + if (isset($map['LiveChannelStat'])) { + $model->liveChannelStat = liveChannelStat::fromMap($map['LiveChannelStat']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetLiveChannelStatResponse/liveChannelStat.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetLiveChannelStatResponse/liveChannelStat.php new file mode 100644 index 00000000..0e0b0d37 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetLiveChannelStatResponse/liveChannelStat.php @@ -0,0 +1,109 @@ + 'Status', + 'connectedTime' => 'ConnectedTime', + 'remoteAddr' => 'RemoteAddr', + 'video' => 'Video', + 'audio' => 'Audio', + ]; + + public function validate() + { + Model::validateRequired('video', $this->video, true); + Model::validateRequired('audio', $this->audio, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->status) { + $res['Status'] = $this->status; + } + if (null !== $this->connectedTime) { + $res['ConnectedTime'] = $this->connectedTime; + } + if (null !== $this->remoteAddr) { + $res['RemoteAddr'] = $this->remoteAddr; + } + if (null !== $this->video) { + $res['Video'] = null !== $this->video ? $this->video->toMap() : null; + } + if (null !== $this->audio) { + $res['Audio'] = null !== $this->audio ? $this->audio->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return liveChannelStat + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Status'])) { + $model->status = $map['Status']; + } + if (isset($map['ConnectedTime'])) { + $model->connectedTime = $map['ConnectedTime']; + } + if (isset($map['RemoteAddr'])) { + $model->remoteAddr = $map['RemoteAddr']; + } + if (isset($map['Video'])) { + $model->video = video::fromMap($map['Video']); + } + if (isset($map['Audio'])) { + $model->audio = audio::fromMap($map['Audio']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetLiveChannelStatResponse/liveChannelStat/audio.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetLiveChannelStatResponse/liveChannelStat/audio.php new file mode 100644 index 00000000..ac8bd10b --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetLiveChannelStatResponse/liveChannelStat/audio.php @@ -0,0 +1,77 @@ + 'Bandwidth', + 'sampleRate' => 'SampleRate', + 'codec' => 'Codec', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->bandwidth) { + $res['Bandwidth'] = $this->bandwidth; + } + if (null !== $this->sampleRate) { + $res['SampleRate'] = $this->sampleRate; + } + if (null !== $this->codec) { + $res['Codec'] = $this->codec; + } + + return $res; + } + + /** + * @param array $map + * + * @return audio + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Bandwidth'])) { + $model->bandwidth = $map['Bandwidth']; + } + if (isset($map['SampleRate'])) { + $model->sampleRate = $map['SampleRate']; + } + if (isset($map['Codec'])) { + $model->codec = $map['Codec']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetLiveChannelStatResponse/liveChannelStat/video.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetLiveChannelStatResponse/liveChannelStat/video.php new file mode 100644 index 00000000..d3a14046 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetLiveChannelStatResponse/liveChannelStat/video.php @@ -0,0 +1,105 @@ + 'Width', + 'height' => 'Height', + 'frameRate' => 'FrameRate', + 'bandwidth' => 'Bandwidth', + 'codec' => 'Codec', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->width) { + $res['Width'] = $this->width; + } + if (null !== $this->height) { + $res['Height'] = $this->height; + } + if (null !== $this->frameRate) { + $res['FrameRate'] = $this->frameRate; + } + if (null !== $this->bandwidth) { + $res['Bandwidth'] = $this->bandwidth; + } + if (null !== $this->codec) { + $res['Codec'] = $this->codec; + } + + return $res; + } + + /** + * @param array $map + * + * @return video + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Width'])) { + $model->width = $map['Width']; + } + if (isset($map['Height'])) { + $model->height = $map['Height']; + } + if (isset($map['FrameRate'])) { + $model->frameRate = $map['FrameRate']; + } + if (isset($map['Bandwidth'])) { + $model->bandwidth = $map['Bandwidth']; + } + if (isset($map['Codec'])) { + $model->codec = $map['Codec']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetObjectAclRequest.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetObjectAclRequest.php new file mode 100644 index 00000000..af67dccc --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetObjectAclRequest.php @@ -0,0 +1,66 @@ + 'BucketName', + 'objectName' => 'ObjectName', + ]; + + public function validate() + { + Model::validateRequired('bucketName', $this->bucketName, true); + Model::validateRequired('objectName', $this->objectName, true); + Model::validatePattern('bucketName', $this->bucketName, '[a-zA-Z0-9-_]+'); + } + + public function toMap() + { + $res = []; + if (null !== $this->bucketName) { + $res['BucketName'] = $this->bucketName; + } + if (null !== $this->objectName) { + $res['ObjectName'] = $this->objectName; + } + + return $res; + } + + /** + * @param array $map + * + * @return GetObjectAclRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['BucketName'])) { + $model->bucketName = $map['BucketName']; + } + if (isset($map['ObjectName'])) { + $model->objectName = $map['ObjectName']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetObjectAclResponse.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetObjectAclResponse.php new file mode 100644 index 00000000..372da0f1 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetObjectAclResponse.php @@ -0,0 +1,66 @@ + 'x-oss-request-id', + 'accessControlPolicy' => 'AccessControlPolicy', + ]; + + public function validate() + { + Model::validateRequired('requestId', $this->requestId, true); + Model::validateRequired('accessControlPolicy', $this->accessControlPolicy, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->requestId) { + $res['x-oss-request-id'] = $this->requestId; + } + if (null !== $this->accessControlPolicy) { + $res['AccessControlPolicy'] = null !== $this->accessControlPolicy ? $this->accessControlPolicy->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return GetObjectAclResponse + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['x-oss-request-id'])) { + $model->requestId = $map['x-oss-request-id']; + } + if (isset($map['AccessControlPolicy'])) { + $model->accessControlPolicy = accessControlPolicy::fromMap($map['AccessControlPolicy']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetObjectAclResponse/accessControlPolicy.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetObjectAclResponse/accessControlPolicy.php new file mode 100644 index 00000000..6623ceb3 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetObjectAclResponse/accessControlPolicy.php @@ -0,0 +1,67 @@ + 'Owner', + 'accessControlList' => 'AccessControlList', + ]; + + public function validate() + { + Model::validateRequired('owner', $this->owner, true); + Model::validateRequired('accessControlList', $this->accessControlList, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->owner) { + $res['Owner'] = null !== $this->owner ? $this->owner->toMap() : null; + } + if (null !== $this->accessControlList) { + $res['AccessControlList'] = null !== $this->accessControlList ? $this->accessControlList->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return accessControlPolicy + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Owner'])) { + $model->owner = owner::fromMap($map['Owner']); + } + if (isset($map['AccessControlList'])) { + $model->accessControlList = accessControlList::fromMap($map['AccessControlList']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetObjectAclResponse/accessControlPolicy/accessControlList.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetObjectAclResponse/accessControlPolicy/accessControlList.php new file mode 100644 index 00000000..25fd2e52 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetObjectAclResponse/accessControlPolicy/accessControlList.php @@ -0,0 +1,49 @@ + 'Grant', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->grant) { + $res['Grant'] = $this->grant; + } + + return $res; + } + + /** + * @param array $map + * + * @return accessControlList + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Grant'])) { + $model->grant = $map['Grant']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetObjectAclResponse/accessControlPolicy/owner.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetObjectAclResponse/accessControlPolicy/owner.php new file mode 100644 index 00000000..f6dff8ae --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetObjectAclResponse/accessControlPolicy/owner.php @@ -0,0 +1,63 @@ + 'ID', + 'displayName' => 'DisplayName', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->iD) { + $res['ID'] = $this->iD; + } + if (null !== $this->displayName) { + $res['DisplayName'] = $this->displayName; + } + + return $res; + } + + /** + * @param array $map + * + * @return owner + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['ID'])) { + $model->iD = $map['ID']; + } + if (isset($map['DisplayName'])) { + $model->displayName = $map['DisplayName']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetObjectMetaRequest.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetObjectMetaRequest.php new file mode 100644 index 00000000..63ecb266 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetObjectMetaRequest.php @@ -0,0 +1,66 @@ + 'BucketName', + 'objectName' => 'ObjectName', + ]; + + public function validate() + { + Model::validateRequired('bucketName', $this->bucketName, true); + Model::validateRequired('objectName', $this->objectName, true); + Model::validatePattern('bucketName', $this->bucketName, '[a-zA-Z0-9-_]+'); + } + + public function toMap() + { + $res = []; + if (null !== $this->bucketName) { + $res['BucketName'] = $this->bucketName; + } + if (null !== $this->objectName) { + $res['ObjectName'] = $this->objectName; + } + + return $res; + } + + /** + * @param array $map + * + * @return GetObjectMetaRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['BucketName'])) { + $model->bucketName = $map['BucketName']; + } + if (isset($map['ObjectName'])) { + $model->objectName = $map['ObjectName']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetObjectMetaResponse.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetObjectMetaResponse.php new file mode 100644 index 00000000..92a0bfeb --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetObjectMetaResponse.php @@ -0,0 +1,95 @@ + 'x-oss-request-id', + 'eTag' => 'etag', + 'contentLength' => 'content-length', + 'lastModified' => 'last-modified', + ]; + + public function validate() + { + Model::validateRequired('requestId', $this->requestId, true); + Model::validateRequired('eTag', $this->eTag, true); + Model::validateRequired('contentLength', $this->contentLength, true); + Model::validateRequired('lastModified', $this->lastModified, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->requestId) { + $res['x-oss-request-id'] = $this->requestId; + } + if (null !== $this->eTag) { + $res['etag'] = $this->eTag; + } + if (null !== $this->contentLength) { + $res['content-length'] = $this->contentLength; + } + if (null !== $this->lastModified) { + $res['last-modified'] = $this->lastModified; + } + + return $res; + } + + /** + * @param array $map + * + * @return GetObjectMetaResponse + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['x-oss-request-id'])) { + $model->requestId = $map['x-oss-request-id']; + } + if (isset($map['etag'])) { + $model->eTag = $map['etag']; + } + if (isset($map['content-length'])) { + $model->contentLength = $map['content-length']; + } + if (isset($map['last-modified'])) { + $model->lastModified = $map['last-modified']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetObjectRequest.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetObjectRequest.php new file mode 100644 index 00000000..f61ca2f9 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetObjectRequest.php @@ -0,0 +1,81 @@ + 'BucketName', + 'objectName' => 'ObjectName', + 'header' => 'Header', + ]; + + public function validate() + { + Model::validateRequired('bucketName', $this->bucketName, true); + Model::validateRequired('objectName', $this->objectName, true); + Model::validatePattern('bucketName', $this->bucketName, '[a-zA-Z0-9-_]+'); + } + + public function toMap() + { + $res = []; + if (null !== $this->bucketName) { + $res['BucketName'] = $this->bucketName; + } + if (null !== $this->objectName) { + $res['ObjectName'] = $this->objectName; + } + if (null !== $this->header) { + $res['Header'] = null !== $this->header ? $this->header->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return GetObjectRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['BucketName'])) { + $model->bucketName = $map['BucketName']; + } + if (isset($map['ObjectName'])) { + $model->objectName = $map['ObjectName']; + } + if (isset($map['Header'])) { + $model->header = header::fromMap($map['Header']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetObjectRequest/header.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetObjectRequest/header.php new file mode 100644 index 00000000..0653a6f6 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetObjectRequest/header.php @@ -0,0 +1,203 @@ + 'response-content-type', + 'responseContentLanguage' => 'response-content-language', + 'responseExpires' => 'response-expires', + 'responseCacheControl' => 'response-cache-control', + 'responseContentDisposition' => 'response-content-disposition', + 'responseContentEncoding' => 'response-content-encoding', + 'range' => 'Range', + 'ifModifiedSince' => 'If-Modified-Since', + 'ifUnmodifiedSince' => 'If-Unmodified-Since', + 'ifMatch' => 'If-Match', + 'ifNoneMatch' => 'If-None-Match', + 'acceptEncoding' => 'Accept-Encoding', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->responseContentType) { + $res['response-content-type'] = $this->responseContentType; + } + if (null !== $this->responseContentLanguage) { + $res['response-content-language'] = $this->responseContentLanguage; + } + if (null !== $this->responseExpires) { + $res['response-expires'] = $this->responseExpires; + } + if (null !== $this->responseCacheControl) { + $res['response-cache-control'] = $this->responseCacheControl; + } + if (null !== $this->responseContentDisposition) { + $res['response-content-disposition'] = $this->responseContentDisposition; + } + if (null !== $this->responseContentEncoding) { + $res['response-content-encoding'] = $this->responseContentEncoding; + } + if (null !== $this->range) { + $res['Range'] = $this->range; + } + if (null !== $this->ifModifiedSince) { + $res['If-Modified-Since'] = $this->ifModifiedSince; + } + if (null !== $this->ifUnmodifiedSince) { + $res['If-Unmodified-Since'] = $this->ifUnmodifiedSince; + } + if (null !== $this->ifMatch) { + $res['If-Match'] = $this->ifMatch; + } + if (null !== $this->ifNoneMatch) { + $res['If-None-Match'] = $this->ifNoneMatch; + } + if (null !== $this->acceptEncoding) { + $res['Accept-Encoding'] = $this->acceptEncoding; + } + + return $res; + } + + /** + * @param array $map + * + * @return header + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['response-content-type'])) { + $model->responseContentType = $map['response-content-type']; + } + if (isset($map['response-content-language'])) { + $model->responseContentLanguage = $map['response-content-language']; + } + if (isset($map['response-expires'])) { + $model->responseExpires = $map['response-expires']; + } + if (isset($map['response-cache-control'])) { + $model->responseCacheControl = $map['response-cache-control']; + } + if (isset($map['response-content-disposition'])) { + $model->responseContentDisposition = $map['response-content-disposition']; + } + if (isset($map['response-content-encoding'])) { + $model->responseContentEncoding = $map['response-content-encoding']; + } + if (isset($map['Range'])) { + $model->range = $map['Range']; + } + if (isset($map['If-Modified-Since'])) { + $model->ifModifiedSince = $map['If-Modified-Since']; + } + if (isset($map['If-Unmodified-Since'])) { + $model->ifUnmodifiedSince = $map['If-Unmodified-Since']; + } + if (isset($map['If-Match'])) { + $model->ifMatch = $map['If-Match']; + } + if (isset($map['If-None-Match'])) { + $model->ifNoneMatch = $map['If-None-Match']; + } + if (isset($map['Accept-Encoding'])) { + $model->acceptEncoding = $map['Accept-Encoding']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetObjectResponse.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetObjectResponse.php new file mode 100644 index 00000000..0be4e1f3 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetObjectResponse.php @@ -0,0 +1,126 @@ + 'x-oss-request-id', + 'objectType' => 'x-oss-object-type', + 'serverSideEncryption' => 'x-oss-server-side-encryption', + 'taggingCount' => 'x-oss-tagging-count', + 'restore' => 'x-oss-restore', + 'body' => 'body', + ]; + + public function validate() + { + Model::validateRequired('requestId', $this->requestId, true); + Model::validateRequired('objectType', $this->objectType, true); + Model::validateRequired('serverSideEncryption', $this->serverSideEncryption, true); + Model::validateRequired('taggingCount', $this->taggingCount, true); + Model::validateRequired('restore', $this->restore, true); + Model::validateRequired('body', $this->body, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->requestId) { + $res['x-oss-request-id'] = $this->requestId; + } + if (null !== $this->objectType) { + $res['x-oss-object-type'] = $this->objectType; + } + if (null !== $this->serverSideEncryption) { + $res['x-oss-server-side-encryption'] = $this->serverSideEncryption; + } + if (null !== $this->taggingCount) { + $res['x-oss-tagging-count'] = $this->taggingCount; + } + if (null !== $this->restore) { + $res['x-oss-restore'] = $this->restore; + } + if (null !== $this->body) { + $res['body'] = $this->body; + } + + return $res; + } + + /** + * @param array $map + * + * @return GetObjectResponse + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['x-oss-request-id'])) { + $model->requestId = $map['x-oss-request-id']; + } + if (isset($map['x-oss-object-type'])) { + $model->objectType = $map['x-oss-object-type']; + } + if (isset($map['x-oss-server-side-encryption'])) { + $model->serverSideEncryption = $map['x-oss-server-side-encryption']; + } + if (isset($map['x-oss-tagging-count'])) { + $model->taggingCount = $map['x-oss-tagging-count']; + } + if (isset($map['x-oss-restore'])) { + $model->restore = $map['x-oss-restore']; + } + if (isset($map['body'])) { + $model->body = $map['body']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetObjectTaggingRequest.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetObjectTaggingRequest.php new file mode 100644 index 00000000..beeab3df --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetObjectTaggingRequest.php @@ -0,0 +1,66 @@ + 'BucketName', + 'objectName' => 'ObjectName', + ]; + + public function validate() + { + Model::validateRequired('bucketName', $this->bucketName, true); + Model::validateRequired('objectName', $this->objectName, true); + Model::validatePattern('bucketName', $this->bucketName, '[a-zA-Z0-9-_]+'); + } + + public function toMap() + { + $res = []; + if (null !== $this->bucketName) { + $res['BucketName'] = $this->bucketName; + } + if (null !== $this->objectName) { + $res['ObjectName'] = $this->objectName; + } + + return $res; + } + + /** + * @param array $map + * + * @return GetObjectTaggingRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['BucketName'])) { + $model->bucketName = $map['BucketName']; + } + if (isset($map['ObjectName'])) { + $model->objectName = $map['ObjectName']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetObjectTaggingResponse.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetObjectTaggingResponse.php new file mode 100644 index 00000000..97735d9a --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetObjectTaggingResponse.php @@ -0,0 +1,66 @@ + 'x-oss-request-id', + 'tagging' => 'Tagging', + ]; + + public function validate() + { + Model::validateRequired('requestId', $this->requestId, true); + Model::validateRequired('tagging', $this->tagging, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->requestId) { + $res['x-oss-request-id'] = $this->requestId; + } + if (null !== $this->tagging) { + $res['Tagging'] = null !== $this->tagging ? $this->tagging->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return GetObjectTaggingResponse + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['x-oss-request-id'])) { + $model->requestId = $map['x-oss-request-id']; + } + if (isset($map['Tagging'])) { + $model->tagging = tagging::fromMap($map['Tagging']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetObjectTaggingResponse/tagging.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetObjectTaggingResponse/tagging.php new file mode 100644 index 00000000..f66b289a --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetObjectTaggingResponse/tagging.php @@ -0,0 +1,51 @@ + 'TagSet', + ]; + + public function validate() + { + Model::validateRequired('tagSet', $this->tagSet, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->tagSet) { + $res['TagSet'] = null !== $this->tagSet ? $this->tagSet->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return tagging + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['TagSet'])) { + $model->tagSet = tagSet::fromMap($map['TagSet']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetObjectTaggingResponse/tagging/tagSet.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetObjectTaggingResponse/tagging/tagSet.php new file mode 100644 index 00000000..7bffcbe5 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetObjectTaggingResponse/tagging/tagSet.php @@ -0,0 +1,62 @@ + 'Tag', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->tag) { + $res['Tag'] = []; + if (null !== $this->tag && \is_array($this->tag)) { + $n = 0; + foreach ($this->tag as $item) { + $res['Tag'][$n++] = null !== $item ? $item->toMap() : $item; + } + } + } + + return $res; + } + + /** + * @param array $map + * + * @return tagSet + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Tag'])) { + if (!empty($map['Tag'])) { + $model->tag = []; + $n = 0; + foreach ($map['Tag'] as $item) { + $model->tag[$n++] = null !== $item ? tag::fromMap($item) : $item; + } + } + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetObjectTaggingResponse/tagging/tagSet/tag.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetObjectTaggingResponse/tagging/tagSet/tag.php new file mode 100644 index 00000000..c836ce9e --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetObjectTaggingResponse/tagging/tagSet/tag.php @@ -0,0 +1,63 @@ + 'Key', + 'value' => 'Value', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->key) { + $res['Key'] = $this->key; + } + if (null !== $this->value) { + $res['Value'] = $this->value; + } + + return $res; + } + + /** + * @param array $map + * + * @return tag + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Key'])) { + $model->key = $map['Key']; + } + if (isset($map['Value'])) { + $model->value = $map['Value']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetServiceRequest.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetServiceRequest.php new file mode 100644 index 00000000..990e20a8 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetServiceRequest.php @@ -0,0 +1,50 @@ + 'Filter', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->filter) { + $res['Filter'] = null !== $this->filter ? $this->filter->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return GetServiceRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Filter'])) { + $model->filter = filter::fromMap($map['Filter']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetServiceRequest/filter.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetServiceRequest/filter.php new file mode 100644 index 00000000..668cddad --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetServiceRequest/filter.php @@ -0,0 +1,77 @@ + 'prefix', + 'marker' => 'marker', + 'maxKeys' => 'max-keys', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->prefix) { + $res['prefix'] = $this->prefix; + } + if (null !== $this->marker) { + $res['marker'] = $this->marker; + } + if (null !== $this->maxKeys) { + $res['max-keys'] = $this->maxKeys; + } + + return $res; + } + + /** + * @param array $map + * + * @return filter + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['prefix'])) { + $model->prefix = $map['prefix']; + } + if (isset($map['marker'])) { + $model->marker = $map['marker']; + } + if (isset($map['max-keys'])) { + $model->maxKeys = $map['max-keys']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetServiceResponse.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetServiceResponse.php new file mode 100644 index 00000000..e63cad86 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetServiceResponse.php @@ -0,0 +1,66 @@ + 'x-oss-request-id', + 'listAllMyBucketsResult' => 'ListAllMyBucketsResult', + ]; + + public function validate() + { + Model::validateRequired('requestId', $this->requestId, true); + Model::validateRequired('listAllMyBucketsResult', $this->listAllMyBucketsResult, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->requestId) { + $res['x-oss-request-id'] = $this->requestId; + } + if (null !== $this->listAllMyBucketsResult) { + $res['ListAllMyBucketsResult'] = null !== $this->listAllMyBucketsResult ? $this->listAllMyBucketsResult->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return GetServiceResponse + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['x-oss-request-id'])) { + $model->requestId = $map['x-oss-request-id']; + } + if (isset($map['ListAllMyBucketsResult'])) { + $model->listAllMyBucketsResult = listAllMyBucketsResult::fromMap($map['ListAllMyBucketsResult']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetServiceResponse/listAllMyBucketsResult.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetServiceResponse/listAllMyBucketsResult.php new file mode 100644 index 00000000..bbc38470 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetServiceResponse/listAllMyBucketsResult.php @@ -0,0 +1,137 @@ + 'Prefix', + 'marker' => 'Marker', + 'maxKeys' => 'MaxKeys', + 'isTruncated' => 'IsTruncated', + 'nextMarker' => 'NextMarker', + 'owner' => 'Owner', + 'buckets' => 'Buckets', + ]; + + public function validate() + { + Model::validateRequired('owner', $this->owner, true); + Model::validateRequired('buckets', $this->buckets, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->prefix) { + $res['Prefix'] = $this->prefix; + } + if (null !== $this->marker) { + $res['Marker'] = $this->marker; + } + if (null !== $this->maxKeys) { + $res['MaxKeys'] = $this->maxKeys; + } + if (null !== $this->isTruncated) { + $res['IsTruncated'] = $this->isTruncated; + } + if (null !== $this->nextMarker) { + $res['NextMarker'] = $this->nextMarker; + } + if (null !== $this->owner) { + $res['Owner'] = null !== $this->owner ? $this->owner->toMap() : null; + } + if (null !== $this->buckets) { + $res['Buckets'] = null !== $this->buckets ? $this->buckets->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return listAllMyBucketsResult + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Prefix'])) { + $model->prefix = $map['Prefix']; + } + if (isset($map['Marker'])) { + $model->marker = $map['Marker']; + } + if (isset($map['MaxKeys'])) { + $model->maxKeys = $map['MaxKeys']; + } + if (isset($map['IsTruncated'])) { + $model->isTruncated = $map['IsTruncated']; + } + if (isset($map['NextMarker'])) { + $model->nextMarker = $map['NextMarker']; + } + if (isset($map['Owner'])) { + $model->owner = owner::fromMap($map['Owner']); + } + if (isset($map['Buckets'])) { + $model->buckets = buckets::fromMap($map['Buckets']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetServiceResponse/listAllMyBucketsResult/buckets.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetServiceResponse/listAllMyBucketsResult/buckets.php new file mode 100644 index 00000000..8f5f8078 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetServiceResponse/listAllMyBucketsResult/buckets.php @@ -0,0 +1,62 @@ + 'Bucket', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->bucket) { + $res['Bucket'] = []; + if (null !== $this->bucket && \is_array($this->bucket)) { + $n = 0; + foreach ($this->bucket as $item) { + $res['Bucket'][$n++] = null !== $item ? $item->toMap() : $item; + } + } + } + + return $res; + } + + /** + * @param array $map + * + * @return buckets + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Bucket'])) { + if (!empty($map['Bucket'])) { + $model->bucket = []; + $n = 0; + foreach ($map['Bucket'] as $item) { + $model->bucket[$n++] = null !== $item ? bucket::fromMap($item) : $item; + } + } + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetServiceResponse/listAllMyBucketsResult/buckets/bucket.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetServiceResponse/listAllMyBucketsResult/buckets/bucket.php new file mode 100644 index 00000000..ca7a5d5c --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetServiceResponse/listAllMyBucketsResult/buckets/bucket.php @@ -0,0 +1,119 @@ + 'Name', + 'createDate' => 'CreateDate', + 'location' => 'Location', + 'extranetEndpoint' => 'ExtranetEndpoint', + 'intranetEndpoint' => 'IntranetEndpoint', + 'storageClass' => 'StorageClass', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->name) { + $res['Name'] = $this->name; + } + if (null !== $this->createDate) { + $res['CreateDate'] = $this->createDate; + } + if (null !== $this->location) { + $res['Location'] = $this->location; + } + if (null !== $this->extranetEndpoint) { + $res['ExtranetEndpoint'] = $this->extranetEndpoint; + } + if (null !== $this->intranetEndpoint) { + $res['IntranetEndpoint'] = $this->intranetEndpoint; + } + if (null !== $this->storageClass) { + $res['StorageClass'] = $this->storageClass; + } + + return $res; + } + + /** + * @param array $map + * + * @return bucket + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Name'])) { + $model->name = $map['Name']; + } + if (isset($map['CreateDate'])) { + $model->createDate = $map['CreateDate']; + } + if (isset($map['Location'])) { + $model->location = $map['Location']; + } + if (isset($map['ExtranetEndpoint'])) { + $model->extranetEndpoint = $map['ExtranetEndpoint']; + } + if (isset($map['IntranetEndpoint'])) { + $model->intranetEndpoint = $map['IntranetEndpoint']; + } + if (isset($map['StorageClass'])) { + $model->storageClass = $map['StorageClass']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetServiceResponse/listAllMyBucketsResult/owner.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetServiceResponse/listAllMyBucketsResult/owner.php new file mode 100644 index 00000000..24fb51e8 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetServiceResponse/listAllMyBucketsResult/owner.php @@ -0,0 +1,63 @@ + 'ID', + 'displayName' => 'DisplayName', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->iD) { + $res['ID'] = $this->iD; + } + if (null !== $this->displayName) { + $res['DisplayName'] = $this->displayName; + } + + return $res; + } + + /** + * @param array $map + * + * @return owner + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['ID'])) { + $model->iD = $map['ID']; + } + if (isset($map['DisplayName'])) { + $model->displayName = $map['DisplayName']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetSymlinkRequest.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetSymlinkRequest.php new file mode 100644 index 00000000..efe1b341 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetSymlinkRequest.php @@ -0,0 +1,66 @@ + 'BucketName', + 'objectName' => 'ObjectName', + ]; + + public function validate() + { + Model::validateRequired('bucketName', $this->bucketName, true); + Model::validateRequired('objectName', $this->objectName, true); + Model::validatePattern('bucketName', $this->bucketName, '[a-zA-Z0-9-_]+'); + } + + public function toMap() + { + $res = []; + if (null !== $this->bucketName) { + $res['BucketName'] = $this->bucketName; + } + if (null !== $this->objectName) { + $res['ObjectName'] = $this->objectName; + } + + return $res; + } + + /** + * @param array $map + * + * @return GetSymlinkRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['BucketName'])) { + $model->bucketName = $map['BucketName']; + } + if (isset($map['ObjectName'])) { + $model->objectName = $map['ObjectName']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetSymlinkResponse.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetSymlinkResponse.php new file mode 100644 index 00000000..59f5c632 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetSymlinkResponse.php @@ -0,0 +1,65 @@ + 'x-oss-request-id', + 'symlinkTarget' => 'x-oss-symlink-target', + ]; + + public function validate() + { + Model::validateRequired('requestId', $this->requestId, true); + Model::validateRequired('symlinkTarget', $this->symlinkTarget, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->requestId) { + $res['x-oss-request-id'] = $this->requestId; + } + if (null !== $this->symlinkTarget) { + $res['x-oss-symlink-target'] = $this->symlinkTarget; + } + + return $res; + } + + /** + * @param array $map + * + * @return GetSymlinkResponse + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['x-oss-request-id'])) { + $model->requestId = $map['x-oss-request-id']; + } + if (isset($map['x-oss-symlink-target'])) { + $model->symlinkTarget = $map['x-oss-symlink-target']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetVodPlaylistRequest.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetVodPlaylistRequest.php new file mode 100644 index 00000000..4a1ce59f --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetVodPlaylistRequest.php @@ -0,0 +1,82 @@ + 'BucketName', + 'channelName' => 'ChannelName', + 'filter' => 'Filter', + ]; + + public function validate() + { + Model::validateRequired('bucketName', $this->bucketName, true); + Model::validateRequired('channelName', $this->channelName, true); + Model::validateRequired('filter', $this->filter, true); + Model::validatePattern('bucketName', $this->bucketName, '[a-zA-Z0-9-_]+'); + } + + public function toMap() + { + $res = []; + if (null !== $this->bucketName) { + $res['BucketName'] = $this->bucketName; + } + if (null !== $this->channelName) { + $res['ChannelName'] = $this->channelName; + } + if (null !== $this->filter) { + $res['Filter'] = null !== $this->filter ? $this->filter->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return GetVodPlaylistRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['BucketName'])) { + $model->bucketName = $map['BucketName']; + } + if (isset($map['ChannelName'])) { + $model->channelName = $map['ChannelName']; + } + if (isset($map['Filter'])) { + $model->filter = filter::fromMap($map['Filter']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetVodPlaylistRequest/filter.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetVodPlaylistRequest/filter.php new file mode 100644 index 00000000..8f86a473 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetVodPlaylistRequest/filter.php @@ -0,0 +1,65 @@ + 'endTime', + 'startTime' => 'startTime', + ]; + + public function validate() + { + Model::validateRequired('endTime', $this->endTime, true); + Model::validateRequired('startTime', $this->startTime, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->endTime) { + $res['endTime'] = $this->endTime; + } + if (null !== $this->startTime) { + $res['startTime'] = $this->startTime; + } + + return $res; + } + + /** + * @param array $map + * + * @return filter + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['endTime'])) { + $model->endTime = $map['endTime']; + } + if (isset($map['startTime'])) { + $model->startTime = $map['startTime']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetVodPlaylistResponse.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetVodPlaylistResponse.php new file mode 100644 index 00000000..be235e19 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/GetVodPlaylistResponse.php @@ -0,0 +1,50 @@ + 'x-oss-request-id', + ]; + + public function validate() + { + Model::validateRequired('requestId', $this->requestId, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->requestId) { + $res['x-oss-request-id'] = $this->requestId; + } + + return $res; + } + + /** + * @param array $map + * + * @return GetVodPlaylistResponse + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['x-oss-request-id'])) { + $model->requestId = $map['x-oss-request-id']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/HeadObjectRequest.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/HeadObjectRequest.php new file mode 100644 index 00000000..525b2988 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/HeadObjectRequest.php @@ -0,0 +1,81 @@ + 'BucketName', + 'objectName' => 'ObjectName', + 'header' => 'Header', + ]; + + public function validate() + { + Model::validateRequired('bucketName', $this->bucketName, true); + Model::validateRequired('objectName', $this->objectName, true); + Model::validatePattern('bucketName', $this->bucketName, '[a-zA-Z0-9-_]+'); + } + + public function toMap() + { + $res = []; + if (null !== $this->bucketName) { + $res['BucketName'] = $this->bucketName; + } + if (null !== $this->objectName) { + $res['ObjectName'] = $this->objectName; + } + if (null !== $this->header) { + $res['Header'] = null !== $this->header ? $this->header->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return HeadObjectRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['BucketName'])) { + $model->bucketName = $map['BucketName']; + } + if (isset($map['ObjectName'])) { + $model->objectName = $map['ObjectName']; + } + if (isset($map['Header'])) { + $model->header = header::fromMap($map['Header']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/HeadObjectRequest/header.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/HeadObjectRequest/header.php new file mode 100644 index 00000000..dc9a50bb --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/HeadObjectRequest/header.php @@ -0,0 +1,91 @@ + 'If-Modified-Since', + 'ifUnmodifiedSince' => 'If-Unmodified-Since', + 'ifMatch' => 'If-Match', + 'ifNoneMatch' => 'If-None-Match', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->ifModifiedSince) { + $res['If-Modified-Since'] = $this->ifModifiedSince; + } + if (null !== $this->ifUnmodifiedSince) { + $res['If-Unmodified-Since'] = $this->ifUnmodifiedSince; + } + if (null !== $this->ifMatch) { + $res['If-Match'] = $this->ifMatch; + } + if (null !== $this->ifNoneMatch) { + $res['If-None-Match'] = $this->ifNoneMatch; + } + + return $res; + } + + /** + * @param array $map + * + * @return header + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['If-Modified-Since'])) { + $model->ifModifiedSince = $map['If-Modified-Since']; + } + if (isset($map['If-Unmodified-Since'])) { + $model->ifUnmodifiedSince = $map['If-Unmodified-Since']; + } + if (isset($map['If-Match'])) { + $model->ifMatch = $map['If-Match']; + } + if (isset($map['If-None-Match'])) { + $model->ifNoneMatch = $map['If-None-Match']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/HeadObjectResponse.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/HeadObjectResponse.php new file mode 100644 index 00000000..7179fafb --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/HeadObjectResponse.php @@ -0,0 +1,335 @@ + 'x-oss-request-id', + 'userMeta' => 'usermeta', + 'serverSideEncryption' => 'x-oss-server-side-encryption', + 'serverSideEncryptionKeyId' => 'x-oss-server-side-encryption-key-id', + 'storageClass' => 'x-oss-storage-class', + 'objectType' => 'x-oss-object-type', + 'nextAppendPosition' => 'x-oss-next-append-position', + 'hashCrc64ecma' => 'x-oss-hash-crc64ecma', + 'expiration' => 'x-oss-expiration', + 'restore' => 'x-oss-restore', + 'processStatus' => 'x-oss-process-status', + 'requestCharged' => 'x-oss-request-charged', + 'contentMd5' => 'content-md5', + 'lastModified' => 'last-modified', + 'accessControlAllowOrigin' => 'access-control-allow-origin', + 'accessControlAllowMethods' => 'access-control-allow-methods', + 'accessControlMaxAge' => 'access-control-max-age', + 'accessControlAllowHeaders' => 'access-control-allow-headers', + 'accessControlExposeHeaders' => 'access-control-expose-headers', + 'taggingCount' => 'x-oss-tagging-count', + ]; + + public function validate() + { + Model::validateRequired('requestId', $this->requestId, true); + Model::validateRequired('userMeta', $this->userMeta, true); + Model::validateRequired('serverSideEncryption', $this->serverSideEncryption, true); + Model::validateRequired('serverSideEncryptionKeyId', $this->serverSideEncryptionKeyId, true); + Model::validateRequired('storageClass', $this->storageClass, true); + Model::validateRequired('objectType', $this->objectType, true); + Model::validateRequired('nextAppendPosition', $this->nextAppendPosition, true); + Model::validateRequired('hashCrc64ecma', $this->hashCrc64ecma, true); + Model::validateRequired('expiration', $this->expiration, true); + Model::validateRequired('restore', $this->restore, true); + Model::validateRequired('processStatus', $this->processStatus, true); + Model::validateRequired('requestCharged', $this->requestCharged, true); + Model::validateRequired('contentMd5', $this->contentMd5, true); + Model::validateRequired('lastModified', $this->lastModified, true); + Model::validateRequired('accessControlAllowOrigin', $this->accessControlAllowOrigin, true); + Model::validateRequired('accessControlAllowMethods', $this->accessControlAllowMethods, true); + Model::validateRequired('accessControlMaxAge', $this->accessControlMaxAge, true); + Model::validateRequired('accessControlAllowHeaders', $this->accessControlAllowHeaders, true); + Model::validateRequired('accessControlExposeHeaders', $this->accessControlExposeHeaders, true); + Model::validateRequired('taggingCount', $this->taggingCount, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->requestId) { + $res['x-oss-request-id'] = $this->requestId; + } + if (null !== $this->userMeta) { + $res['usermeta'] = $this->userMeta; + } + if (null !== $this->serverSideEncryption) { + $res['x-oss-server-side-encryption'] = $this->serverSideEncryption; + } + if (null !== $this->serverSideEncryptionKeyId) { + $res['x-oss-server-side-encryption-key-id'] = $this->serverSideEncryptionKeyId; + } + if (null !== $this->storageClass) { + $res['x-oss-storage-class'] = $this->storageClass; + } + if (null !== $this->objectType) { + $res['x-oss-object-type'] = $this->objectType; + } + if (null !== $this->nextAppendPosition) { + $res['x-oss-next-append-position'] = $this->nextAppendPosition; + } + if (null !== $this->hashCrc64ecma) { + $res['x-oss-hash-crc64ecma'] = $this->hashCrc64ecma; + } + if (null !== $this->expiration) { + $res['x-oss-expiration'] = $this->expiration; + } + if (null !== $this->restore) { + $res['x-oss-restore'] = $this->restore; + } + if (null !== $this->processStatus) { + $res['x-oss-process-status'] = $this->processStatus; + } + if (null !== $this->requestCharged) { + $res['x-oss-request-charged'] = $this->requestCharged; + } + if (null !== $this->contentMd5) { + $res['content-md5'] = $this->contentMd5; + } + if (null !== $this->lastModified) { + $res['last-modified'] = $this->lastModified; + } + if (null !== $this->accessControlAllowOrigin) { + $res['access-control-allow-origin'] = $this->accessControlAllowOrigin; + } + if (null !== $this->accessControlAllowMethods) { + $res['access-control-allow-methods'] = $this->accessControlAllowMethods; + } + if (null !== $this->accessControlMaxAge) { + $res['access-control-max-age'] = $this->accessControlMaxAge; + } + if (null !== $this->accessControlAllowHeaders) { + $res['access-control-allow-headers'] = $this->accessControlAllowHeaders; + } + if (null !== $this->accessControlExposeHeaders) { + $res['access-control-expose-headers'] = $this->accessControlExposeHeaders; + } + if (null !== $this->taggingCount) { + $res['x-oss-tagging-count'] = $this->taggingCount; + } + + return $res; + } + + /** + * @param array $map + * + * @return HeadObjectResponse + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['x-oss-request-id'])) { + $model->requestId = $map['x-oss-request-id']; + } + if (isset($map['usermeta'])) { + $model->userMeta = $map['usermeta']; + } + if (isset($map['x-oss-server-side-encryption'])) { + $model->serverSideEncryption = $map['x-oss-server-side-encryption']; + } + if (isset($map['x-oss-server-side-encryption-key-id'])) { + $model->serverSideEncryptionKeyId = $map['x-oss-server-side-encryption-key-id']; + } + if (isset($map['x-oss-storage-class'])) { + $model->storageClass = $map['x-oss-storage-class']; + } + if (isset($map['x-oss-object-type'])) { + $model->objectType = $map['x-oss-object-type']; + } + if (isset($map['x-oss-next-append-position'])) { + $model->nextAppendPosition = $map['x-oss-next-append-position']; + } + if (isset($map['x-oss-hash-crc64ecma'])) { + $model->hashCrc64ecma = $map['x-oss-hash-crc64ecma']; + } + if (isset($map['x-oss-expiration'])) { + $model->expiration = $map['x-oss-expiration']; + } + if (isset($map['x-oss-restore'])) { + $model->restore = $map['x-oss-restore']; + } + if (isset($map['x-oss-process-status'])) { + $model->processStatus = $map['x-oss-process-status']; + } + if (isset($map['x-oss-request-charged'])) { + $model->requestCharged = $map['x-oss-request-charged']; + } + if (isset($map['content-md5'])) { + $model->contentMd5 = $map['content-md5']; + } + if (isset($map['last-modified'])) { + $model->lastModified = $map['last-modified']; + } + if (isset($map['access-control-allow-origin'])) { + $model->accessControlAllowOrigin = $map['access-control-allow-origin']; + } + if (isset($map['access-control-allow-methods'])) { + $model->accessControlAllowMethods = $map['access-control-allow-methods']; + } + if (isset($map['access-control-max-age'])) { + $model->accessControlMaxAge = $map['access-control-max-age']; + } + if (isset($map['access-control-allow-headers'])) { + $model->accessControlAllowHeaders = $map['access-control-allow-headers']; + } + if (isset($map['access-control-expose-headers'])) { + $model->accessControlExposeHeaders = $map['access-control-expose-headers']; + } + if (isset($map['x-oss-tagging-count'])) { + $model->taggingCount = $map['x-oss-tagging-count']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/InitiateMultipartUploadRequest.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/InitiateMultipartUploadRequest.php new file mode 100644 index 00000000..c2e5a3a3 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/InitiateMultipartUploadRequest.php @@ -0,0 +1,96 @@ + 'BucketName', + 'objectName' => 'ObjectName', + 'filter' => 'Filter', + 'header' => 'Header', + ]; + + public function validate() + { + Model::validateRequired('bucketName', $this->bucketName, true); + Model::validateRequired('objectName', $this->objectName, true); + Model::validatePattern('bucketName', $this->bucketName, '[a-zA-Z0-9-_]+'); + } + + public function toMap() + { + $res = []; + if (null !== $this->bucketName) { + $res['BucketName'] = $this->bucketName; + } + if (null !== $this->objectName) { + $res['ObjectName'] = $this->objectName; + } + if (null !== $this->filter) { + $res['Filter'] = null !== $this->filter ? $this->filter->toMap() : null; + } + if (null !== $this->header) { + $res['Header'] = null !== $this->header ? $this->header->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return InitiateMultipartUploadRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['BucketName'])) { + $model->bucketName = $map['BucketName']; + } + if (isset($map['ObjectName'])) { + $model->objectName = $map['ObjectName']; + } + if (isset($map['Filter'])) { + $model->filter = filter::fromMap($map['Filter']); + } + if (isset($map['Header'])) { + $model->header = header::fromMap($map['Header']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/InitiateMultipartUploadRequest/filter.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/InitiateMultipartUploadRequest/filter.php new file mode 100644 index 00000000..76c29306 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/InitiateMultipartUploadRequest/filter.php @@ -0,0 +1,49 @@ + 'encoding-type', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->encodingType) { + $res['encoding-type'] = $this->encodingType; + } + + return $res; + } + + /** + * @param array $map + * + * @return filter + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['encoding-type'])) { + $model->encodingType = $map['encoding-type']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/InitiateMultipartUploadRequest/header.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/InitiateMultipartUploadRequest/header.php new file mode 100644 index 00000000..cf876f81 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/InitiateMultipartUploadRequest/header.php @@ -0,0 +1,161 @@ + 'Cache-Control', + 'contentDisposition' => 'Content-Disposition', + 'contentEncoding' => 'Content-Encoding', + 'expires' => 'Expires', + 'serverSideEncryption' => 'x-oss-server-side-encryption', + 'serverSideEncryptionKeyId' => 'x-oss-server-side-encryption-key-id', + 'storageClass' => 'x-oss-storage-class', + 'tagging' => 'x-oss-tagging', + 'contentType' => 'content-type', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->cacheControl) { + $res['Cache-Control'] = $this->cacheControl; + } + if (null !== $this->contentDisposition) { + $res['Content-Disposition'] = $this->contentDisposition; + } + if (null !== $this->contentEncoding) { + $res['Content-Encoding'] = $this->contentEncoding; + } + if (null !== $this->expires) { + $res['Expires'] = $this->expires; + } + if (null !== $this->serverSideEncryption) { + $res['x-oss-server-side-encryption'] = $this->serverSideEncryption; + } + if (null !== $this->serverSideEncryptionKeyId) { + $res['x-oss-server-side-encryption-key-id'] = $this->serverSideEncryptionKeyId; + } + if (null !== $this->storageClass) { + $res['x-oss-storage-class'] = $this->storageClass; + } + if (null !== $this->tagging) { + $res['x-oss-tagging'] = $this->tagging; + } + if (null !== $this->contentType) { + $res['content-type'] = $this->contentType; + } + + return $res; + } + + /** + * @param array $map + * + * @return header + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Cache-Control'])) { + $model->cacheControl = $map['Cache-Control']; + } + if (isset($map['Content-Disposition'])) { + $model->contentDisposition = $map['Content-Disposition']; + } + if (isset($map['Content-Encoding'])) { + $model->contentEncoding = $map['Content-Encoding']; + } + if (isset($map['Expires'])) { + $model->expires = $map['Expires']; + } + if (isset($map['x-oss-server-side-encryption'])) { + $model->serverSideEncryption = $map['x-oss-server-side-encryption']; + } + if (isset($map['x-oss-server-side-encryption-key-id'])) { + $model->serverSideEncryptionKeyId = $map['x-oss-server-side-encryption-key-id']; + } + if (isset($map['x-oss-storage-class'])) { + $model->storageClass = $map['x-oss-storage-class']; + } + if (isset($map['x-oss-tagging'])) { + $model->tagging = $map['x-oss-tagging']; + } + if (isset($map['content-type'])) { + $model->contentType = $map['content-type']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/InitiateMultipartUploadResponse.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/InitiateMultipartUploadResponse.php new file mode 100644 index 00000000..9833478c --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/InitiateMultipartUploadResponse.php @@ -0,0 +1,66 @@ + 'x-oss-request-id', + 'initiateMultipartUploadResult' => 'InitiateMultipartUploadResult', + ]; + + public function validate() + { + Model::validateRequired('requestId', $this->requestId, true); + Model::validateRequired('initiateMultipartUploadResult', $this->initiateMultipartUploadResult, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->requestId) { + $res['x-oss-request-id'] = $this->requestId; + } + if (null !== $this->initiateMultipartUploadResult) { + $res['InitiateMultipartUploadResult'] = null !== $this->initiateMultipartUploadResult ? $this->initiateMultipartUploadResult->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return InitiateMultipartUploadResponse + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['x-oss-request-id'])) { + $model->requestId = $map['x-oss-request-id']; + } + if (isset($map['InitiateMultipartUploadResult'])) { + $model->initiateMultipartUploadResult = initiateMultipartUploadResult::fromMap($map['InitiateMultipartUploadResult']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/InitiateMultipartUploadResponse/initiateMultipartUploadResult.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/InitiateMultipartUploadResponse/initiateMultipartUploadResult.php new file mode 100644 index 00000000..9ff151b5 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/InitiateMultipartUploadResponse/initiateMultipartUploadResult.php @@ -0,0 +1,77 @@ + 'Bucket', + 'key' => 'Key', + 'uploadId' => 'UploadId', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->bucket) { + $res['Bucket'] = $this->bucket; + } + if (null !== $this->key) { + $res['Key'] = $this->key; + } + if (null !== $this->uploadId) { + $res['UploadId'] = $this->uploadId; + } + + return $res; + } + + /** + * @param array $map + * + * @return initiateMultipartUploadResult + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Bucket'])) { + $model->bucket = $map['Bucket']; + } + if (isset($map['Key'])) { + $model->key = $map['Key']; + } + if (isset($map['UploadId'])) { + $model->uploadId = $map['UploadId']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/ListLiveChannelRequest.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/ListLiveChannelRequest.php new file mode 100644 index 00000000..13f14aae --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/ListLiveChannelRequest.php @@ -0,0 +1,66 @@ + 'BucketName', + 'filter' => 'Filter', + ]; + + public function validate() + { + Model::validateRequired('bucketName', $this->bucketName, true); + Model::validatePattern('bucketName', $this->bucketName, '[a-zA-Z0-9-_]+'); + } + + public function toMap() + { + $res = []; + if (null !== $this->bucketName) { + $res['BucketName'] = $this->bucketName; + } + if (null !== $this->filter) { + $res['Filter'] = null !== $this->filter ? $this->filter->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return ListLiveChannelRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['BucketName'])) { + $model->bucketName = $map['BucketName']; + } + if (isset($map['Filter'])) { + $model->filter = filter::fromMap($map['Filter']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/ListLiveChannelRequest/filter.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/ListLiveChannelRequest/filter.php new file mode 100644 index 00000000..3be7f008 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/ListLiveChannelRequest/filter.php @@ -0,0 +1,77 @@ + 'marker', + 'maxKeys' => 'max-keys', + 'prefix' => 'prefix', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->marker) { + $res['marker'] = $this->marker; + } + if (null !== $this->maxKeys) { + $res['max-keys'] = $this->maxKeys; + } + if (null !== $this->prefix) { + $res['prefix'] = $this->prefix; + } + + return $res; + } + + /** + * @param array $map + * + * @return filter + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['marker'])) { + $model->marker = $map['marker']; + } + if (isset($map['max-keys'])) { + $model->maxKeys = $map['max-keys']; + } + if (isset($map['prefix'])) { + $model->prefix = $map['prefix']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/ListLiveChannelResponse.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/ListLiveChannelResponse.php new file mode 100644 index 00000000..cd1a7d79 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/ListLiveChannelResponse.php @@ -0,0 +1,66 @@ + 'x-oss-request-id', + 'listLiveChannelResult' => 'ListLiveChannelResult', + ]; + + public function validate() + { + Model::validateRequired('requestId', $this->requestId, true); + Model::validateRequired('listLiveChannelResult', $this->listLiveChannelResult, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->requestId) { + $res['x-oss-request-id'] = $this->requestId; + } + if (null !== $this->listLiveChannelResult) { + $res['ListLiveChannelResult'] = null !== $this->listLiveChannelResult ? $this->listLiveChannelResult->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return ListLiveChannelResponse + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['x-oss-request-id'])) { + $model->requestId = $map['x-oss-request-id']; + } + if (isset($map['ListLiveChannelResult'])) { + $model->listLiveChannelResult = listLiveChannelResult::fromMap($map['ListLiveChannelResult']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/ListLiveChannelResponse/listLiveChannelResult.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/ListLiveChannelResponse/listLiveChannelResult.php new file mode 100644 index 00000000..7c026ffa --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/ListLiveChannelResponse/listLiveChannelResult.php @@ -0,0 +1,121 @@ + 'Prefix', + 'marker' => 'Marker', + 'maxKeys' => 'MaxKeys', + 'isTruncated' => 'IsTruncated', + 'nextMarker' => 'NextMarker', + 'liveChannel' => 'LiveChannel', + ]; + + public function validate() + { + Model::validateRequired('liveChannel', $this->liveChannel, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->prefix) { + $res['Prefix'] = $this->prefix; + } + if (null !== $this->marker) { + $res['Marker'] = $this->marker; + } + if (null !== $this->maxKeys) { + $res['MaxKeys'] = $this->maxKeys; + } + if (null !== $this->isTruncated) { + $res['IsTruncated'] = $this->isTruncated; + } + if (null !== $this->nextMarker) { + $res['NextMarker'] = $this->nextMarker; + } + if (null !== $this->liveChannel) { + $res['LiveChannel'] = null !== $this->liveChannel ? $this->liveChannel->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return listLiveChannelResult + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Prefix'])) { + $model->prefix = $map['Prefix']; + } + if (isset($map['Marker'])) { + $model->marker = $map['Marker']; + } + if (isset($map['MaxKeys'])) { + $model->maxKeys = $map['MaxKeys']; + } + if (isset($map['IsTruncated'])) { + $model->isTruncated = $map['IsTruncated']; + } + if (isset($map['NextMarker'])) { + $model->nextMarker = $map['NextMarker']; + } + if (isset($map['LiveChannel'])) { + $model->liveChannel = liveChannel::fromMap($map['LiveChannel']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/ListLiveChannelResponse/listLiveChannelResult/liveChannel.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/ListLiveChannelResponse/listLiveChannelResult/liveChannel.php new file mode 100644 index 00000000..8c7729ff --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/ListLiveChannelResponse/listLiveChannelResult/liveChannel.php @@ -0,0 +1,123 @@ + 'Name', + 'description' => 'Description', + 'status' => 'Status', + 'lastModified' => 'LastModified', + 'publishUrls' => 'PublishUrls', + 'playUrls' => 'PlayUrls', + ]; + + public function validate() + { + Model::validateRequired('publishUrls', $this->publishUrls, true); + Model::validateRequired('playUrls', $this->playUrls, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->name) { + $res['Name'] = $this->name; + } + if (null !== $this->description) { + $res['Description'] = $this->description; + } + if (null !== $this->status) { + $res['Status'] = $this->status; + } + if (null !== $this->lastModified) { + $res['LastModified'] = $this->lastModified; + } + if (null !== $this->publishUrls) { + $res['PublishUrls'] = null !== $this->publishUrls ? $this->publishUrls->toMap() : null; + } + if (null !== $this->playUrls) { + $res['PlayUrls'] = null !== $this->playUrls ? $this->playUrls->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return liveChannel + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Name'])) { + $model->name = $map['Name']; + } + if (isset($map['Description'])) { + $model->description = $map['Description']; + } + if (isset($map['Status'])) { + $model->status = $map['Status']; + } + if (isset($map['LastModified'])) { + $model->lastModified = $map['LastModified']; + } + if (isset($map['PublishUrls'])) { + $model->publishUrls = publishUrls::fromMap($map['PublishUrls']); + } + if (isset($map['PlayUrls'])) { + $model->playUrls = playUrls::fromMap($map['PlayUrls']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/ListLiveChannelResponse/listLiveChannelResult/liveChannel/playUrls.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/ListLiveChannelResponse/listLiveChannelResult/liveChannel/playUrls.php new file mode 100644 index 00000000..b8b70391 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/ListLiveChannelResponse/listLiveChannelResult/liveChannel/playUrls.php @@ -0,0 +1,49 @@ + 'Url', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->url) { + $res['Url'] = $this->url; + } + + return $res; + } + + /** + * @param array $map + * + * @return playUrls + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Url'])) { + $model->url = $map['Url']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/ListLiveChannelResponse/listLiveChannelResult/liveChannel/publishUrls.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/ListLiveChannelResponse/listLiveChannelResult/liveChannel/publishUrls.php new file mode 100644 index 00000000..d5fd4e0a --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/ListLiveChannelResponse/listLiveChannelResult/liveChannel/publishUrls.php @@ -0,0 +1,49 @@ + 'Url', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->url) { + $res['Url'] = $this->url; + } + + return $res; + } + + /** + * @param array $map + * + * @return publishUrls + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Url'])) { + $model->url = $map['Url']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/ListMultipartUploadsRequest.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/ListMultipartUploadsRequest.php new file mode 100644 index 00000000..a9ce058d --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/ListMultipartUploadsRequest.php @@ -0,0 +1,66 @@ + 'BucketName', + 'filter' => 'Filter', + ]; + + public function validate() + { + Model::validateRequired('bucketName', $this->bucketName, true); + Model::validatePattern('bucketName', $this->bucketName, '[a-zA-Z0-9-_]+'); + } + + public function toMap() + { + $res = []; + if (null !== $this->bucketName) { + $res['BucketName'] = $this->bucketName; + } + if (null !== $this->filter) { + $res['Filter'] = null !== $this->filter ? $this->filter->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return ListMultipartUploadsRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['BucketName'])) { + $model->bucketName = $map['BucketName']; + } + if (isset($map['Filter'])) { + $model->filter = filter::fromMap($map['Filter']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/ListMultipartUploadsRequest/filter.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/ListMultipartUploadsRequest/filter.php new file mode 100644 index 00000000..8c5d0a0e --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/ListMultipartUploadsRequest/filter.php @@ -0,0 +1,119 @@ + 'delimiter', + 'maxUploads' => 'max-uploads', + 'keyMarker' => 'key-marker', + 'prefix' => 'prefix', + 'uploadIdMarker' => 'upload-id-marker', + 'encodingType' => 'encoding-type', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->delimiter) { + $res['delimiter'] = $this->delimiter; + } + if (null !== $this->maxUploads) { + $res['max-uploads'] = $this->maxUploads; + } + if (null !== $this->keyMarker) { + $res['key-marker'] = $this->keyMarker; + } + if (null !== $this->prefix) { + $res['prefix'] = $this->prefix; + } + if (null !== $this->uploadIdMarker) { + $res['upload-id-marker'] = $this->uploadIdMarker; + } + if (null !== $this->encodingType) { + $res['encoding-type'] = $this->encodingType; + } + + return $res; + } + + /** + * @param array $map + * + * @return filter + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['delimiter'])) { + $model->delimiter = $map['delimiter']; + } + if (isset($map['max-uploads'])) { + $model->maxUploads = $map['max-uploads']; + } + if (isset($map['key-marker'])) { + $model->keyMarker = $map['key-marker']; + } + if (isset($map['prefix'])) { + $model->prefix = $map['prefix']; + } + if (isset($map['upload-id-marker'])) { + $model->uploadIdMarker = $map['upload-id-marker']; + } + if (isset($map['encoding-type'])) { + $model->encodingType = $map['encoding-type']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/ListMultipartUploadsResponse.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/ListMultipartUploadsResponse.php new file mode 100644 index 00000000..f6cf9533 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/ListMultipartUploadsResponse.php @@ -0,0 +1,66 @@ + 'x-oss-request-id', + 'listMultipartUploadsResult' => 'ListMultipartUploadsResult', + ]; + + public function validate() + { + Model::validateRequired('requestId', $this->requestId, true); + Model::validateRequired('listMultipartUploadsResult', $this->listMultipartUploadsResult, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->requestId) { + $res['x-oss-request-id'] = $this->requestId; + } + if (null !== $this->listMultipartUploadsResult) { + $res['ListMultipartUploadsResult'] = null !== $this->listMultipartUploadsResult ? $this->listMultipartUploadsResult->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return ListMultipartUploadsResponse + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['x-oss-request-id'])) { + $model->requestId = $map['x-oss-request-id']; + } + if (isset($map['ListMultipartUploadsResult'])) { + $model->listMultipartUploadsResult = listMultipartUploadsResult::fromMap($map['ListMultipartUploadsResult']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/ListMultipartUploadsResponse/listMultipartUploadsResult.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/ListMultipartUploadsResponse/listMultipartUploadsResult.php new file mode 100644 index 00000000..a3eb0dfa --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/ListMultipartUploadsResponse/listMultipartUploadsResult.php @@ -0,0 +1,188 @@ + 'Bucket', + 'encodingType' => 'EncodingType', + 'keyMarker' => 'KeyMarker', + 'uploadIdMarker' => 'UploadIdMarker', + 'nextKeyMarker' => 'NextKeyMarker', + 'nextUploadIdMarker' => 'NextUploadIdMarker', + 'delimiter' => 'Delimiter', + 'maxUploads' => 'MaxUploads', + 'isTruncated' => 'IsTruncated', + 'upload' => 'Upload', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->bucket) { + $res['Bucket'] = $this->bucket; + } + if (null !== $this->encodingType) { + $res['EncodingType'] = $this->encodingType; + } + if (null !== $this->keyMarker) { + $res['KeyMarker'] = $this->keyMarker; + } + if (null !== $this->uploadIdMarker) { + $res['UploadIdMarker'] = $this->uploadIdMarker; + } + if (null !== $this->nextKeyMarker) { + $res['NextKeyMarker'] = $this->nextKeyMarker; + } + if (null !== $this->nextUploadIdMarker) { + $res['NextUploadIdMarker'] = $this->nextUploadIdMarker; + } + if (null !== $this->delimiter) { + $res['Delimiter'] = $this->delimiter; + } + if (null !== $this->maxUploads) { + $res['MaxUploads'] = $this->maxUploads; + } + if (null !== $this->isTruncated) { + $res['IsTruncated'] = $this->isTruncated; + } + if (null !== $this->upload) { + $res['Upload'] = []; + if (null !== $this->upload && \is_array($this->upload)) { + $n = 0; + foreach ($this->upload as $item) { + $res['Upload'][$n++] = null !== $item ? $item->toMap() : $item; + } + } + } + + return $res; + } + + /** + * @param array $map + * + * @return listMultipartUploadsResult + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Bucket'])) { + $model->bucket = $map['Bucket']; + } + if (isset($map['EncodingType'])) { + $model->encodingType = $map['EncodingType']; + } + if (isset($map['KeyMarker'])) { + $model->keyMarker = $map['KeyMarker']; + } + if (isset($map['UploadIdMarker'])) { + $model->uploadIdMarker = $map['UploadIdMarker']; + } + if (isset($map['NextKeyMarker'])) { + $model->nextKeyMarker = $map['NextKeyMarker']; + } + if (isset($map['NextUploadIdMarker'])) { + $model->nextUploadIdMarker = $map['NextUploadIdMarker']; + } + if (isset($map['Delimiter'])) { + $model->delimiter = $map['Delimiter']; + } + if (isset($map['MaxUploads'])) { + $model->maxUploads = $map['MaxUploads']; + } + if (isset($map['IsTruncated'])) { + $model->isTruncated = $map['IsTruncated']; + } + if (isset($map['Upload'])) { + if (!empty($map['Upload'])) { + $model->upload = []; + $n = 0; + foreach ($map['Upload'] as $item) { + $model->upload[$n++] = null !== $item ? upload::fromMap($item) : $item; + } + } + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/ListMultipartUploadsResponse/listMultipartUploadsResult/upload.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/ListMultipartUploadsResponse/listMultipartUploadsResult/upload.php new file mode 100644 index 00000000..1601097b --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/ListMultipartUploadsResponse/listMultipartUploadsResult/upload.php @@ -0,0 +1,77 @@ + 'Key', + 'uploadId' => 'UploadId', + 'initiated' => 'Initiated', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->key) { + $res['Key'] = $this->key; + } + if (null !== $this->uploadId) { + $res['UploadId'] = $this->uploadId; + } + if (null !== $this->initiated) { + $res['Initiated'] = $this->initiated; + } + + return $res; + } + + /** + * @param array $map + * + * @return upload + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Key'])) { + $model->key = $map['Key']; + } + if (isset($map['UploadId'])) { + $model->uploadId = $map['UploadId']; + } + if (isset($map['Initiated'])) { + $model->initiated = $map['Initiated']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/ListPartsRequest.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/ListPartsRequest.php new file mode 100644 index 00000000..37b8fc0b --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/ListPartsRequest.php @@ -0,0 +1,82 @@ + 'BucketName', + 'objectName' => 'ObjectName', + 'filter' => 'Filter', + ]; + + public function validate() + { + Model::validateRequired('bucketName', $this->bucketName, true); + Model::validateRequired('objectName', $this->objectName, true); + Model::validateRequired('filter', $this->filter, true); + Model::validatePattern('bucketName', $this->bucketName, '[a-zA-Z0-9-_]+'); + } + + public function toMap() + { + $res = []; + if (null !== $this->bucketName) { + $res['BucketName'] = $this->bucketName; + } + if (null !== $this->objectName) { + $res['ObjectName'] = $this->objectName; + } + if (null !== $this->filter) { + $res['Filter'] = null !== $this->filter ? $this->filter->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return ListPartsRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['BucketName'])) { + $model->bucketName = $map['BucketName']; + } + if (isset($map['ObjectName'])) { + $model->objectName = $map['ObjectName']; + } + if (isset($map['Filter'])) { + $model->filter = filter::fromMap($map['Filter']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/ListPartsRequest/filter.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/ListPartsRequest/filter.php new file mode 100644 index 00000000..818dc830 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/ListPartsRequest/filter.php @@ -0,0 +1,92 @@ + 'uploadId', + 'maxParts' => 'max-parts', + 'partNumberMarker' => 'part-number-marker', + 'encodingType' => 'Encoding-type', + ]; + + public function validate() + { + Model::validateRequired('uploadId', $this->uploadId, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->uploadId) { + $res['uploadId'] = $this->uploadId; + } + if (null !== $this->maxParts) { + $res['max-parts'] = $this->maxParts; + } + if (null !== $this->partNumberMarker) { + $res['part-number-marker'] = $this->partNumberMarker; + } + if (null !== $this->encodingType) { + $res['Encoding-type'] = $this->encodingType; + } + + return $res; + } + + /** + * @param array $map + * + * @return filter + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['uploadId'])) { + $model->uploadId = $map['uploadId']; + } + if (isset($map['max-parts'])) { + $model->maxParts = $map['max-parts']; + } + if (isset($map['part-number-marker'])) { + $model->partNumberMarker = $map['part-number-marker']; + } + if (isset($map['Encoding-type'])) { + $model->encodingType = $map['Encoding-type']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/ListPartsResponse.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/ListPartsResponse.php new file mode 100644 index 00000000..54a7809d --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/ListPartsResponse.php @@ -0,0 +1,66 @@ + 'x-oss-request-id', + 'listPartsResult' => 'ListPartsResult', + ]; + + public function validate() + { + Model::validateRequired('requestId', $this->requestId, true); + Model::validateRequired('listPartsResult', $this->listPartsResult, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->requestId) { + $res['x-oss-request-id'] = $this->requestId; + } + if (null !== $this->listPartsResult) { + $res['ListPartsResult'] = null !== $this->listPartsResult ? $this->listPartsResult->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return ListPartsResponse + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['x-oss-request-id'])) { + $model->requestId = $map['x-oss-request-id']; + } + if (isset($map['ListPartsResult'])) { + $model->listPartsResult = listPartsResult::fromMap($map['ListPartsResult']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/ListPartsResponse/listPartsResult.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/ListPartsResponse/listPartsResult.php new file mode 100644 index 00000000..a5c626d2 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/ListPartsResponse/listPartsResult.php @@ -0,0 +1,174 @@ + 'Bucket', + 'encodingType' => 'EncodingType', + 'key' => 'Key', + 'uploadId' => 'UploadId', + 'partNumberMarker' => 'PartNumberMarker', + 'nextPartNumberMarker' => 'NextPartNumberMarker', + 'maxParts' => 'MaxParts', + 'isTruncated' => 'IsTruncated', + 'part' => 'Part', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->bucket) { + $res['Bucket'] = $this->bucket; + } + if (null !== $this->encodingType) { + $res['EncodingType'] = $this->encodingType; + } + if (null !== $this->key) { + $res['Key'] = $this->key; + } + if (null !== $this->uploadId) { + $res['UploadId'] = $this->uploadId; + } + if (null !== $this->partNumberMarker) { + $res['PartNumberMarker'] = $this->partNumberMarker; + } + if (null !== $this->nextPartNumberMarker) { + $res['NextPartNumberMarker'] = $this->nextPartNumberMarker; + } + if (null !== $this->maxParts) { + $res['MaxParts'] = $this->maxParts; + } + if (null !== $this->isTruncated) { + $res['IsTruncated'] = $this->isTruncated; + } + if (null !== $this->part) { + $res['Part'] = []; + if (null !== $this->part && \is_array($this->part)) { + $n = 0; + foreach ($this->part as $item) { + $res['Part'][$n++] = null !== $item ? $item->toMap() : $item; + } + } + } + + return $res; + } + + /** + * @param array $map + * + * @return listPartsResult + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Bucket'])) { + $model->bucket = $map['Bucket']; + } + if (isset($map['EncodingType'])) { + $model->encodingType = $map['EncodingType']; + } + if (isset($map['Key'])) { + $model->key = $map['Key']; + } + if (isset($map['UploadId'])) { + $model->uploadId = $map['UploadId']; + } + if (isset($map['PartNumberMarker'])) { + $model->partNumberMarker = $map['PartNumberMarker']; + } + if (isset($map['NextPartNumberMarker'])) { + $model->nextPartNumberMarker = $map['NextPartNumberMarker']; + } + if (isset($map['MaxParts'])) { + $model->maxParts = $map['MaxParts']; + } + if (isset($map['IsTruncated'])) { + $model->isTruncated = $map['IsTruncated']; + } + if (isset($map['Part'])) { + if (!empty($map['Part'])) { + $model->part = []; + $n = 0; + foreach ($map['Part'] as $item) { + $model->part[$n++] = null !== $item ? part::fromMap($item) : $item; + } + } + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/ListPartsResponse/listPartsResult/part.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/ListPartsResponse/listPartsResult/part.php new file mode 100644 index 00000000..c5994905 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/ListPartsResponse/listPartsResult/part.php @@ -0,0 +1,91 @@ + 'PartNumber', + 'lastModified' => 'LastModified', + 'eTag' => 'ETag', + 'size' => 'Size', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->partNumber) { + $res['PartNumber'] = $this->partNumber; + } + if (null !== $this->lastModified) { + $res['LastModified'] = $this->lastModified; + } + if (null !== $this->eTag) { + $res['ETag'] = $this->eTag; + } + if (null !== $this->size) { + $res['Size'] = $this->size; + } + + return $res; + } + + /** + * @param array $map + * + * @return part + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['PartNumber'])) { + $model->partNumber = $map['PartNumber']; + } + if (isset($map['LastModified'])) { + $model->lastModified = $map['LastModified']; + } + if (isset($map['ETag'])) { + $model->eTag = $map['ETag']; + } + if (isset($map['Size'])) { + $model->size = $map['Size']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/OptionObjectRequest.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/OptionObjectRequest.php new file mode 100644 index 00000000..ec5e5ad5 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/OptionObjectRequest.php @@ -0,0 +1,82 @@ + 'BucketName', + 'objectName' => 'ObjectName', + 'header' => 'Header', + ]; + + public function validate() + { + Model::validateRequired('bucketName', $this->bucketName, true); + Model::validateRequired('objectName', $this->objectName, true); + Model::validateRequired('header', $this->header, true); + Model::validatePattern('bucketName', $this->bucketName, '[a-zA-Z0-9-_]+'); + } + + public function toMap() + { + $res = []; + if (null !== $this->bucketName) { + $res['BucketName'] = $this->bucketName; + } + if (null !== $this->objectName) { + $res['ObjectName'] = $this->objectName; + } + if (null !== $this->header) { + $res['Header'] = null !== $this->header ? $this->header->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return OptionObjectRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['BucketName'])) { + $model->bucketName = $map['BucketName']; + } + if (isset($map['ObjectName'])) { + $model->objectName = $map['ObjectName']; + } + if (isset($map['Header'])) { + $model->header = header::fromMap($map['Header']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/OptionObjectRequest/header.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/OptionObjectRequest/header.php new file mode 100644 index 00000000..885b7f6d --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/OptionObjectRequest/header.php @@ -0,0 +1,80 @@ + 'Origin', + 'accessControlRequestMethod' => 'Access-Control-Request-Method', + 'accessControlRequestHeaders' => 'Access-Control-Request-Headers', + ]; + + public function validate() + { + Model::validateRequired('origin', $this->origin, true); + Model::validateRequired('accessControlRequestMethod', $this->accessControlRequestMethod, true); + Model::validateRequired('accessControlRequestHeaders', $this->accessControlRequestHeaders, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->origin) { + $res['Origin'] = $this->origin; + } + if (null !== $this->accessControlRequestMethod) { + $res['Access-Control-Request-Method'] = $this->accessControlRequestMethod; + } + if (null !== $this->accessControlRequestHeaders) { + $res['Access-Control-Request-Headers'] = $this->accessControlRequestHeaders; + } + + return $res; + } + + /** + * @param array $map + * + * @return header + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Origin'])) { + $model->origin = $map['Origin']; + } + if (isset($map['Access-Control-Request-Method'])) { + $model->accessControlRequestMethod = $map['Access-Control-Request-Method']; + } + if (isset($map['Access-Control-Request-Headers'])) { + $model->accessControlRequestHeaders = $map['Access-Control-Request-Headers']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/OptionObjectResponse.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/OptionObjectResponse.php new file mode 100644 index 00000000..aa30fb47 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/OptionObjectResponse.php @@ -0,0 +1,125 @@ + 'x-oss-request-id', + 'accessControlAllowOrigin' => 'access-control-allow-origin', + 'accessControlAllowMethods' => 'access-control-allow-methods', + 'accessControlAllowHeaders' => 'access-control-allow-headers', + 'accessControlExposeHeaders' => 'access-control-expose-headers', + 'accessControlMaxAge' => 'access-control-max-age', + ]; + + public function validate() + { + Model::validateRequired('requestId', $this->requestId, true); + Model::validateRequired('accessControlAllowOrigin', $this->accessControlAllowOrigin, true); + Model::validateRequired('accessControlAllowMethods', $this->accessControlAllowMethods, true); + Model::validateRequired('accessControlAllowHeaders', $this->accessControlAllowHeaders, true); + Model::validateRequired('accessControlExposeHeaders', $this->accessControlExposeHeaders, true); + Model::validateRequired('accessControlMaxAge', $this->accessControlMaxAge, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->requestId) { + $res['x-oss-request-id'] = $this->requestId; + } + if (null !== $this->accessControlAllowOrigin) { + $res['access-control-allow-origin'] = $this->accessControlAllowOrigin; + } + if (null !== $this->accessControlAllowMethods) { + $res['access-control-allow-methods'] = $this->accessControlAllowMethods; + } + if (null !== $this->accessControlAllowHeaders) { + $res['access-control-allow-headers'] = $this->accessControlAllowHeaders; + } + if (null !== $this->accessControlExposeHeaders) { + $res['access-control-expose-headers'] = $this->accessControlExposeHeaders; + } + if (null !== $this->accessControlMaxAge) { + $res['access-control-max-age'] = $this->accessControlMaxAge; + } + + return $res; + } + + /** + * @param array $map + * + * @return OptionObjectResponse + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['x-oss-request-id'])) { + $model->requestId = $map['x-oss-request-id']; + } + if (isset($map['access-control-allow-origin'])) { + $model->accessControlAllowOrigin = $map['access-control-allow-origin']; + } + if (isset($map['access-control-allow-methods'])) { + $model->accessControlAllowMethods = $map['access-control-allow-methods']; + } + if (isset($map['access-control-allow-headers'])) { + $model->accessControlAllowHeaders = $map['access-control-allow-headers']; + } + if (isset($map['access-control-expose-headers'])) { + $model->accessControlExposeHeaders = $map['access-control-expose-headers']; + } + if (isset($map['access-control-max-age'])) { + $model->accessControlMaxAge = $map['access-control-max-age']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/PostObjectRequest.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PostObjectRequest.php new file mode 100644 index 00000000..cd600409 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PostObjectRequest.php @@ -0,0 +1,67 @@ + 'BucketName', + 'header' => 'header', + ]; + + public function validate() + { + Model::validateRequired('bucketName', $this->bucketName, true); + Model::validateRequired('header', $this->header, true); + Model::validatePattern('bucketName', $this->bucketName, '[a-zA-Z0-9-_]+'); + } + + public function toMap() + { + $res = []; + if (null !== $this->bucketName) { + $res['BucketName'] = $this->bucketName; + } + if (null !== $this->header) { + $res['header'] = null !== $this->header ? $this->header->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return PostObjectRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['BucketName'])) { + $model->bucketName = $map['BucketName']; + } + if (isset($map['header'])) { + $model->header = header::fromMap($map['header']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/PostObjectRequest/header.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PostObjectRequest/header.php new file mode 100644 index 00000000..e14d56cd --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PostObjectRequest/header.php @@ -0,0 +1,136 @@ + 'OSSAccessKeyId', + 'policy' => 'policy', + 'signature' => 'Signature', + 'successActionStatus' => 'success_action_status', + 'key' => 'key', + 'userMeta' => 'UserMeta', + ]; + + public function validate() + { + Model::validateRequired('accessKeyId', $this->accessKeyId, true); + Model::validateRequired('policy', $this->policy, true); + Model::validateRequired('signature', $this->signature, true); + Model::validateRequired('file', $this->file, true); + Model::validateRequired('key', $this->key, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->accessKeyId) { + $res['OSSAccessKeyId'] = $this->accessKeyId; + } + if (null !== $this->policy) { + $res['policy'] = $this->policy; + } + if (null !== $this->signature) { + $res['Signature'] = $this->signature; + } + if (null !== $this->successActionStatus) { + $res['success_action_status'] = $this->successActionStatus; + } + if (null !== $this->file) { + $res['file'] = null !== $this->file ? $this->file->toMap() : null; + } + if (null !== $this->key) { + $res['key'] = $this->key; + } + if (null !== $this->userMeta) { + $res['UserMeta'] = $this->userMeta; + } + + return $res; + } + + /** + * @param array $map + * + * @return header + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['OSSAccessKeyId'])) { + $model->accessKeyId = $map['OSSAccessKeyId']; + } + if (isset($map['policy'])) { + $model->policy = $map['policy']; + } + if (isset($map['Signature'])) { + $model->signature = $map['Signature']; + } + if (isset($map['success_action_status'])) { + $model->successActionStatus = $map['success_action_status']; + } + if (isset($map['file'])) { + $model->file = FileField::fromMap($map['file']); + } + if (isset($map['key'])) { + $model->key = $map['key']; + } + if (isset($map['UserMeta'])) { + $model->userMeta = $map['UserMeta']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/PostObjectResponse.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PostObjectResponse.php new file mode 100644 index 00000000..8f6a2d33 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PostObjectResponse.php @@ -0,0 +1,51 @@ + 'PostResponse', + ]; + + public function validate() + { + Model::validateRequired('postResponse', $this->postResponse, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->postResponse) { + $res['PostResponse'] = null !== $this->postResponse ? $this->postResponse->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return PostObjectResponse + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['PostResponse'])) { + $model->postResponse = postResponse::fromMap($map['PostResponse']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/PostObjectResponse/postResponse.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PostObjectResponse/postResponse.php new file mode 100644 index 00000000..be4c5da0 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PostObjectResponse/postResponse.php @@ -0,0 +1,80 @@ + 'Bucket', + 'eTag' => 'ETag', + 'location' => 'Location', + ]; + + public function validate() + { + Model::validateRequired('bucket', $this->bucket, true); + Model::validateRequired('eTag', $this->eTag, true); + Model::validateRequired('location', $this->location, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->bucket) { + $res['Bucket'] = $this->bucket; + } + if (null !== $this->eTag) { + $res['ETag'] = $this->eTag; + } + if (null !== $this->location) { + $res['Location'] = $this->location; + } + + return $res; + } + + /** + * @param array $map + * + * @return postResponse + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Bucket'])) { + $model->bucket = $map['Bucket']; + } + if (isset($map['ETag'])) { + $model->eTag = $map['ETag']; + } + if (isset($map['Location'])) { + $model->location = $map['Location']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/PostVodPlaylistRequest.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PostVodPlaylistRequest.php new file mode 100644 index 00000000..a57e5e24 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PostVodPlaylistRequest.php @@ -0,0 +1,97 @@ + 'BucketName', + 'channelName' => 'ChannelName', + 'playlistName' => 'PlaylistName', + 'filter' => 'Filter', + ]; + + public function validate() + { + Model::validateRequired('bucketName', $this->bucketName, true); + Model::validateRequired('channelName', $this->channelName, true); + Model::validateRequired('playlistName', $this->playlistName, true); + Model::validateRequired('filter', $this->filter, true); + Model::validatePattern('bucketName', $this->bucketName, '[a-zA-Z0-9-_]+'); + } + + public function toMap() + { + $res = []; + if (null !== $this->bucketName) { + $res['BucketName'] = $this->bucketName; + } + if (null !== $this->channelName) { + $res['ChannelName'] = $this->channelName; + } + if (null !== $this->playlistName) { + $res['PlaylistName'] = $this->playlistName; + } + if (null !== $this->filter) { + $res['Filter'] = null !== $this->filter ? $this->filter->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return PostVodPlaylistRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['BucketName'])) { + $model->bucketName = $map['BucketName']; + } + if (isset($map['ChannelName'])) { + $model->channelName = $map['ChannelName']; + } + if (isset($map['PlaylistName'])) { + $model->playlistName = $map['PlaylistName']; + } + if (isset($map['Filter'])) { + $model->filter = filter::fromMap($map['Filter']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/PostVodPlaylistRequest/filter.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PostVodPlaylistRequest/filter.php new file mode 100644 index 00000000..eb121096 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PostVodPlaylistRequest/filter.php @@ -0,0 +1,65 @@ + 'endTime', + 'startTime' => 'startTime', + ]; + + public function validate() + { + Model::validateRequired('endTime', $this->endTime, true); + Model::validateRequired('startTime', $this->startTime, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->endTime) { + $res['endTime'] = $this->endTime; + } + if (null !== $this->startTime) { + $res['startTime'] = $this->startTime; + } + + return $res; + } + + /** + * @param array $map + * + * @return filter + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['endTime'])) { + $model->endTime = $map['endTime']; + } + if (isset($map['startTime'])) { + $model->startTime = $map['startTime']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/PostVodPlaylistResponse.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PostVodPlaylistResponse.php new file mode 100644 index 00000000..7879b499 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PostVodPlaylistResponse.php @@ -0,0 +1,50 @@ + 'x-oss-request-id', + ]; + + public function validate() + { + Model::validateRequired('requestId', $this->requestId, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->requestId) { + $res['x-oss-request-id'] = $this->requestId; + } + + return $res; + } + + /** + * @param array $map + * + * @return PostVodPlaylistResponse + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['x-oss-request-id'])) { + $model->requestId = $map['x-oss-request-id']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketAclRequest.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketAclRequest.php new file mode 100644 index 00000000..05871b89 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketAclRequest.php @@ -0,0 +1,67 @@ + 'BucketName', + 'header' => 'Header', + ]; + + public function validate() + { + Model::validateRequired('bucketName', $this->bucketName, true); + Model::validateRequired('header', $this->header, true); + Model::validatePattern('bucketName', $this->bucketName, '[a-zA-Z0-9-_]+'); + } + + public function toMap() + { + $res = []; + if (null !== $this->bucketName) { + $res['BucketName'] = $this->bucketName; + } + if (null !== $this->header) { + $res['Header'] = null !== $this->header ? $this->header->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return PutBucketAclRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['BucketName'])) { + $model->bucketName = $map['BucketName']; + } + if (isset($map['Header'])) { + $model->header = header::fromMap($map['Header']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketAclRequest/header.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketAclRequest/header.php new file mode 100644 index 00000000..f7ead95b --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketAclRequest/header.php @@ -0,0 +1,50 @@ + 'x-oss-acl', + ]; + + public function validate() + { + Model::validateRequired('acl', $this->acl, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->acl) { + $res['x-oss-acl'] = $this->acl; + } + + return $res; + } + + /** + * @param array $map + * + * @return header + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['x-oss-acl'])) { + $model->acl = $map['x-oss-acl']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketAclResponse.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketAclResponse.php new file mode 100644 index 00000000..ac93348d --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketAclResponse.php @@ -0,0 +1,50 @@ + 'x-oss-request-id', + ]; + + public function validate() + { + Model::validateRequired('requestId', $this->requestId, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->requestId) { + $res['x-oss-request-id'] = $this->requestId; + } + + return $res; + } + + /** + * @param array $map + * + * @return PutBucketAclResponse + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['x-oss-request-id'])) { + $model->requestId = $map['x-oss-request-id']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketCORSRequest.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketCORSRequest.php new file mode 100644 index 00000000..8d0130f2 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketCORSRequest.php @@ -0,0 +1,66 @@ + 'BucketName', + 'body' => 'Body', + ]; + + public function validate() + { + Model::validateRequired('bucketName', $this->bucketName, true); + Model::validatePattern('bucketName', $this->bucketName, '[a-zA-Z0-9-_]+'); + } + + public function toMap() + { + $res = []; + if (null !== $this->bucketName) { + $res['BucketName'] = $this->bucketName; + } + if (null !== $this->body) { + $res['Body'] = null !== $this->body ? $this->body->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return PutBucketCORSRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['BucketName'])) { + $model->bucketName = $map['BucketName']; + } + if (isset($map['Body'])) { + $model->body = body::fromMap($map['Body']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketCORSRequest/body.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketCORSRequest/body.php new file mode 100644 index 00000000..dd5120cb --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketCORSRequest/body.php @@ -0,0 +1,51 @@ + 'CORSConfiguration', + ]; + + public function validate() + { + Model::validateRequired('cORSConfiguration', $this->cORSConfiguration, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->cORSConfiguration) { + $res['CORSConfiguration'] = null !== $this->cORSConfiguration ? $this->cORSConfiguration->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return body + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['CORSConfiguration'])) { + $model->cORSConfiguration = cORSConfiguration::fromMap($map['CORSConfiguration']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketCORSRequest/body/cORSConfiguration.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketCORSRequest/body/cORSConfiguration.php new file mode 100644 index 00000000..f3cfd47e --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketCORSRequest/body/cORSConfiguration.php @@ -0,0 +1,62 @@ + 'CORSRule', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->cORSRule) { + $res['CORSRule'] = []; + if (null !== $this->cORSRule && \is_array($this->cORSRule)) { + $n = 0; + foreach ($this->cORSRule as $item) { + $res['CORSRule'][$n++] = null !== $item ? $item->toMap() : $item; + } + } + } + + return $res; + } + + /** + * @param array $map + * + * @return cORSConfiguration + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['CORSRule'])) { + if (!empty($map['CORSRule'])) { + $model->cORSRule = []; + $n = 0; + foreach ($map['CORSRule'] as $item) { + $model->cORSRule[$n++] = null !== $item ? cORSRule::fromMap($item) : $item; + } + } + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketCORSRequest/body/cORSConfiguration/cORSRule.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketCORSRequest/body/cORSConfiguration/cORSRule.php new file mode 100644 index 00000000..89936ebb --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketCORSRequest/body/cORSConfiguration/cORSRule.php @@ -0,0 +1,113 @@ + 'AllowedOrigin', + 'allowedMethod' => 'AllowedMethod', + 'allowedHeader' => 'AllowedHeader', + 'exposeHeader' => 'ExposeHeader', + 'maxAgeSeconds' => 'MaxAgeSeconds', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->allowedOrigin) { + $res['AllowedOrigin'] = $this->allowedOrigin; + } + if (null !== $this->allowedMethod) { + $res['AllowedMethod'] = $this->allowedMethod; + } + if (null !== $this->allowedHeader) { + $res['AllowedHeader'] = $this->allowedHeader; + } + if (null !== $this->exposeHeader) { + $res['ExposeHeader'] = $this->exposeHeader; + } + if (null !== $this->maxAgeSeconds) { + $res['MaxAgeSeconds'] = $this->maxAgeSeconds; + } + + return $res; + } + + /** + * @param array $map + * + * @return cORSRule + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['AllowedOrigin'])) { + if (!empty($map['AllowedOrigin'])) { + $model->allowedOrigin = $map['AllowedOrigin']; + } + } + if (isset($map['AllowedMethod'])) { + if (!empty($map['AllowedMethod'])) { + $model->allowedMethod = $map['AllowedMethod']; + } + } + if (isset($map['AllowedHeader'])) { + if (!empty($map['AllowedHeader'])) { + $model->allowedHeader = $map['AllowedHeader']; + } + } + if (isset($map['ExposeHeader'])) { + if (!empty($map['ExposeHeader'])) { + $model->exposeHeader = $map['ExposeHeader']; + } + } + if (isset($map['MaxAgeSeconds'])) { + $model->maxAgeSeconds = $map['MaxAgeSeconds']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketCORSResponse.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketCORSResponse.php new file mode 100644 index 00000000..1674666f --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketCORSResponse.php @@ -0,0 +1,50 @@ + 'x-oss-request-id', + ]; + + public function validate() + { + Model::validateRequired('requestId', $this->requestId, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->requestId) { + $res['x-oss-request-id'] = $this->requestId; + } + + return $res; + } + + /** + * @param array $map + * + * @return PutBucketCORSResponse + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['x-oss-request-id'])) { + $model->requestId = $map['x-oss-request-id']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketEncryptionRequest.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketEncryptionRequest.php new file mode 100644 index 00000000..bc0c3056 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketEncryptionRequest.php @@ -0,0 +1,66 @@ + 'BucketName', + 'body' => 'Body', + ]; + + public function validate() + { + Model::validateRequired('bucketName', $this->bucketName, true); + Model::validatePattern('bucketName', $this->bucketName, '[a-zA-Z0-9-_]+'); + } + + public function toMap() + { + $res = []; + if (null !== $this->bucketName) { + $res['BucketName'] = $this->bucketName; + } + if (null !== $this->body) { + $res['Body'] = null !== $this->body ? $this->body->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return PutBucketEncryptionRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['BucketName'])) { + $model->bucketName = $map['BucketName']; + } + if (isset($map['Body'])) { + $model->body = body::fromMap($map['Body']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketEncryptionRequest/body.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketEncryptionRequest/body.php new file mode 100644 index 00000000..869accf8 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketEncryptionRequest/body.php @@ -0,0 +1,51 @@ + 'ServerSideEncryptionRule', + ]; + + public function validate() + { + Model::validateRequired('serverSideEncryptionRule', $this->serverSideEncryptionRule, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->serverSideEncryptionRule) { + $res['ServerSideEncryptionRule'] = null !== $this->serverSideEncryptionRule ? $this->serverSideEncryptionRule->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return body + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['ServerSideEncryptionRule'])) { + $model->serverSideEncryptionRule = serverSideEncryptionRule::fromMap($map['ServerSideEncryptionRule']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketEncryptionRequest/body/serverSideEncryptionRule.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketEncryptionRequest/body/serverSideEncryptionRule.php new file mode 100644 index 00000000..5e94b269 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketEncryptionRequest/body/serverSideEncryptionRule.php @@ -0,0 +1,50 @@ + 'ApplyServerSideEncryptionByDefault', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->applyServerSideEncryptionByDefault) { + $res['ApplyServerSideEncryptionByDefault'] = null !== $this->applyServerSideEncryptionByDefault ? $this->applyServerSideEncryptionByDefault->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return serverSideEncryptionRule + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['ApplyServerSideEncryptionByDefault'])) { + $model->applyServerSideEncryptionByDefault = applyServerSideEncryptionByDefault::fromMap($map['ApplyServerSideEncryptionByDefault']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketEncryptionRequest/body/serverSideEncryptionRule/applyServerSideEncryptionByDefault.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketEncryptionRequest/body/serverSideEncryptionRule/applyServerSideEncryptionByDefault.php new file mode 100644 index 00000000..8efce108 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketEncryptionRequest/body/serverSideEncryptionRule/applyServerSideEncryptionByDefault.php @@ -0,0 +1,63 @@ + 'SSEAlgorithm', + 'kMSMasterKeyID' => 'KMSMasterKeyID', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->sSEAlgorithm) { + $res['SSEAlgorithm'] = $this->sSEAlgorithm; + } + if (null !== $this->kMSMasterKeyID) { + $res['KMSMasterKeyID'] = $this->kMSMasterKeyID; + } + + return $res; + } + + /** + * @param array $map + * + * @return applyServerSideEncryptionByDefault + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['SSEAlgorithm'])) { + $model->sSEAlgorithm = $map['SSEAlgorithm']; + } + if (isset($map['KMSMasterKeyID'])) { + $model->kMSMasterKeyID = $map['KMSMasterKeyID']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketEncryptionResponse.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketEncryptionResponse.php new file mode 100644 index 00000000..c8b828dd --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketEncryptionResponse.php @@ -0,0 +1,50 @@ + 'x-oss-request-id', + ]; + + public function validate() + { + Model::validateRequired('requestId', $this->requestId, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->requestId) { + $res['x-oss-request-id'] = $this->requestId; + } + + return $res; + } + + /** + * @param array $map + * + * @return PutBucketEncryptionResponse + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['x-oss-request-id'])) { + $model->requestId = $map['x-oss-request-id']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketLifecycleRequest.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketLifecycleRequest.php new file mode 100644 index 00000000..6a06001a --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketLifecycleRequest.php @@ -0,0 +1,66 @@ + 'BucketName', + 'body' => 'Body', + ]; + + public function validate() + { + Model::validateRequired('bucketName', $this->bucketName, true); + Model::validatePattern('bucketName', $this->bucketName, '[a-zA-Z0-9-_]+'); + } + + public function toMap() + { + $res = []; + if (null !== $this->bucketName) { + $res['BucketName'] = $this->bucketName; + } + if (null !== $this->body) { + $res['Body'] = null !== $this->body ? $this->body->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return PutBucketLifecycleRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['BucketName'])) { + $model->bucketName = $map['BucketName']; + } + if (isset($map['Body'])) { + $model->body = body::fromMap($map['Body']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketLifecycleRequest/body.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketLifecycleRequest/body.php new file mode 100644 index 00000000..4051a7ac --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketLifecycleRequest/body.php @@ -0,0 +1,51 @@ + 'LifecycleConfiguration', + ]; + + public function validate() + { + Model::validateRequired('lifecycleConfiguration', $this->lifecycleConfiguration, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->lifecycleConfiguration) { + $res['LifecycleConfiguration'] = null !== $this->lifecycleConfiguration ? $this->lifecycleConfiguration->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return body + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['LifecycleConfiguration'])) { + $model->lifecycleConfiguration = lifecycleConfiguration::fromMap($map['LifecycleConfiguration']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketLifecycleRequest/body/lifecycleConfiguration.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketLifecycleRequest/body/lifecycleConfiguration.php new file mode 100644 index 00000000..cfbe7768 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketLifecycleRequest/body/lifecycleConfiguration.php @@ -0,0 +1,62 @@ + 'Rule', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->rule) { + $res['Rule'] = []; + if (null !== $this->rule && \is_array($this->rule)) { + $n = 0; + foreach ($this->rule as $item) { + $res['Rule'][$n++] = null !== $item ? $item->toMap() : $item; + } + } + } + + return $res; + } + + /** + * @param array $map + * + * @return lifecycleConfiguration + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Rule'])) { + if (!empty($map['Rule'])) { + $model->rule = []; + $n = 0; + foreach ($map['Rule'] as $item) { + $model->rule[$n++] = null !== $item ? rule::fromMap($item) : $item; + } + } + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketLifecycleRequest/body/lifecycleConfiguration/rule.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketLifecycleRequest/body/lifecycleConfiguration/rule.php new file mode 100644 index 00000000..4489cfb1 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketLifecycleRequest/body/lifecycleConfiguration/rule.php @@ -0,0 +1,137 @@ + 'Expiration', + 'transition' => 'Transition', + 'abortMultipartUpload' => 'AbortMultipartUpload', + 'tag' => 'Tag', + 'iD' => 'ID', + 'prefix' => 'Prefix', + 'status' => 'Status', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->expiration) { + $res['Expiration'] = null !== $this->expiration ? $this->expiration->toMap() : null; + } + if (null !== $this->transition) { + $res['Transition'] = null !== $this->transition ? $this->transition->toMap() : null; + } + if (null !== $this->abortMultipartUpload) { + $res['AbortMultipartUpload'] = null !== $this->abortMultipartUpload ? $this->abortMultipartUpload->toMap() : null; + } + if (null !== $this->tag) { + $res['Tag'] = null !== $this->tag ? $this->tag->toMap() : null; + } + if (null !== $this->iD) { + $res['ID'] = $this->iD; + } + if (null !== $this->prefix) { + $res['Prefix'] = $this->prefix; + } + if (null !== $this->status) { + $res['Status'] = $this->status; + } + + return $res; + } + + /** + * @param array $map + * + * @return rule + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Expiration'])) { + $model->expiration = expiration::fromMap($map['Expiration']); + } + if (isset($map['Transition'])) { + $model->transition = transition::fromMap($map['Transition']); + } + if (isset($map['AbortMultipartUpload'])) { + $model->abortMultipartUpload = abortMultipartUpload::fromMap($map['AbortMultipartUpload']); + } + if (isset($map['Tag'])) { + $model->tag = tag::fromMap($map['Tag']); + } + if (isset($map['ID'])) { + $model->iD = $map['ID']; + } + if (isset($map['Prefix'])) { + $model->prefix = $map['Prefix']; + } + if (isset($map['Status'])) { + $model->status = $map['Status']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketLifecycleRequest/body/lifecycleConfiguration/rule/abortMultipartUpload.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketLifecycleRequest/body/lifecycleConfiguration/rule/abortMultipartUpload.php new file mode 100644 index 00000000..c12afbf0 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketLifecycleRequest/body/lifecycleConfiguration/rule/abortMultipartUpload.php @@ -0,0 +1,63 @@ + 'Days', + 'createdBeforeDate' => 'CreatedBeforeDate', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->days) { + $res['Days'] = $this->days; + } + if (null !== $this->createdBeforeDate) { + $res['CreatedBeforeDate'] = $this->createdBeforeDate; + } + + return $res; + } + + /** + * @param array $map + * + * @return abortMultipartUpload + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Days'])) { + $model->days = $map['Days']; + } + if (isset($map['CreatedBeforeDate'])) { + $model->createdBeforeDate = $map['CreatedBeforeDate']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketLifecycleRequest/body/lifecycleConfiguration/rule/expiration.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketLifecycleRequest/body/lifecycleConfiguration/rule/expiration.php new file mode 100644 index 00000000..82367dd9 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketLifecycleRequest/body/lifecycleConfiguration/rule/expiration.php @@ -0,0 +1,63 @@ + 'Days', + 'createdBeforeDate' => 'CreatedBeforeDate', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->days) { + $res['Days'] = $this->days; + } + if (null !== $this->createdBeforeDate) { + $res['CreatedBeforeDate'] = $this->createdBeforeDate; + } + + return $res; + } + + /** + * @param array $map + * + * @return expiration + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Days'])) { + $model->days = $map['Days']; + } + if (isset($map['CreatedBeforeDate'])) { + $model->createdBeforeDate = $map['CreatedBeforeDate']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketLifecycleRequest/body/lifecycleConfiguration/rule/tag.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketLifecycleRequest/body/lifecycleConfiguration/rule/tag.php new file mode 100644 index 00000000..5e687998 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketLifecycleRequest/body/lifecycleConfiguration/rule/tag.php @@ -0,0 +1,63 @@ + 'Key', + 'value' => 'Value', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->key) { + $res['Key'] = $this->key; + } + if (null !== $this->value) { + $res['Value'] = $this->value; + } + + return $res; + } + + /** + * @param array $map + * + * @return tag + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Key'])) { + $model->key = $map['Key']; + } + if (isset($map['Value'])) { + $model->value = $map['Value']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketLifecycleRequest/body/lifecycleConfiguration/rule/transition.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketLifecycleRequest/body/lifecycleConfiguration/rule/transition.php new file mode 100644 index 00000000..50fac63a --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketLifecycleRequest/body/lifecycleConfiguration/rule/transition.php @@ -0,0 +1,63 @@ + 'Days', + 'storageClass' => 'StorageClass', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->days) { + $res['Days'] = $this->days; + } + if (null !== $this->storageClass) { + $res['StorageClass'] = $this->storageClass; + } + + return $res; + } + + /** + * @param array $map + * + * @return transition + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Days'])) { + $model->days = $map['Days']; + } + if (isset($map['StorageClass'])) { + $model->storageClass = $map['StorageClass']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketLifecycleResponse.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketLifecycleResponse.php new file mode 100644 index 00000000..b3e0f5c4 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketLifecycleResponse.php @@ -0,0 +1,50 @@ + 'x-oss-request-id', + ]; + + public function validate() + { + Model::validateRequired('requestId', $this->requestId, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->requestId) { + $res['x-oss-request-id'] = $this->requestId; + } + + return $res; + } + + /** + * @param array $map + * + * @return PutBucketLifecycleResponse + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['x-oss-request-id'])) { + $model->requestId = $map['x-oss-request-id']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketLoggingRequest.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketLoggingRequest.php new file mode 100644 index 00000000..8c07567f --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketLoggingRequest.php @@ -0,0 +1,66 @@ + 'BucketName', + 'body' => 'Body', + ]; + + public function validate() + { + Model::validateRequired('bucketName', $this->bucketName, true); + Model::validatePattern('bucketName', $this->bucketName, '[a-zA-Z0-9-_]+'); + } + + public function toMap() + { + $res = []; + if (null !== $this->bucketName) { + $res['BucketName'] = $this->bucketName; + } + if (null !== $this->body) { + $res['Body'] = null !== $this->body ? $this->body->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return PutBucketLoggingRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['BucketName'])) { + $model->bucketName = $map['BucketName']; + } + if (isset($map['Body'])) { + $model->body = body::fromMap($map['Body']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketLoggingRequest/body.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketLoggingRequest/body.php new file mode 100644 index 00000000..52860160 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketLoggingRequest/body.php @@ -0,0 +1,51 @@ + 'BucketLoggingStatus', + ]; + + public function validate() + { + Model::validateRequired('bucketLoggingStatus', $this->bucketLoggingStatus, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->bucketLoggingStatus) { + $res['BucketLoggingStatus'] = null !== $this->bucketLoggingStatus ? $this->bucketLoggingStatus->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return body + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['BucketLoggingStatus'])) { + $model->bucketLoggingStatus = bucketLoggingStatus::fromMap($map['BucketLoggingStatus']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketLoggingRequest/body/bucketLoggingStatus.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketLoggingRequest/body/bucketLoggingStatus.php new file mode 100644 index 00000000..24d44048 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketLoggingRequest/body/bucketLoggingStatus.php @@ -0,0 +1,50 @@ + 'LoggingEnabled', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->loggingEnabled) { + $res['LoggingEnabled'] = null !== $this->loggingEnabled ? $this->loggingEnabled->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return bucketLoggingStatus + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['LoggingEnabled'])) { + $model->loggingEnabled = loggingEnabled::fromMap($map['LoggingEnabled']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketLoggingRequest/body/bucketLoggingStatus/loggingEnabled.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketLoggingRequest/body/bucketLoggingStatus/loggingEnabled.php new file mode 100644 index 00000000..25668b6e --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketLoggingRequest/body/bucketLoggingStatus/loggingEnabled.php @@ -0,0 +1,63 @@ + 'TargetBucket', + 'targetPrefix' => 'TargetPrefix', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->targetBucket) { + $res['TargetBucket'] = $this->targetBucket; + } + if (null !== $this->targetPrefix) { + $res['TargetPrefix'] = $this->targetPrefix; + } + + return $res; + } + + /** + * @param array $map + * + * @return loggingEnabled + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['TargetBucket'])) { + $model->targetBucket = $map['TargetBucket']; + } + if (isset($map['TargetPrefix'])) { + $model->targetPrefix = $map['TargetPrefix']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketLoggingResponse.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketLoggingResponse.php new file mode 100644 index 00000000..1346bb99 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketLoggingResponse.php @@ -0,0 +1,50 @@ + 'x-oss-request-id', + ]; + + public function validate() + { + Model::validateRequired('requestId', $this->requestId, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->requestId) { + $res['x-oss-request-id'] = $this->requestId; + } + + return $res; + } + + /** + * @param array $map + * + * @return PutBucketLoggingResponse + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['x-oss-request-id'])) { + $model->requestId = $map['x-oss-request-id']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketRefererRequest.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketRefererRequest.php new file mode 100644 index 00000000..4db9e656 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketRefererRequest.php @@ -0,0 +1,66 @@ + 'BucketName', + 'body' => 'Body', + ]; + + public function validate() + { + Model::validateRequired('bucketName', $this->bucketName, true); + Model::validatePattern('bucketName', $this->bucketName, '[a-zA-Z0-9-_]+'); + } + + public function toMap() + { + $res = []; + if (null !== $this->bucketName) { + $res['BucketName'] = $this->bucketName; + } + if (null !== $this->body) { + $res['Body'] = null !== $this->body ? $this->body->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return PutBucketRefererRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['BucketName'])) { + $model->bucketName = $map['BucketName']; + } + if (isset($map['Body'])) { + $model->body = body::fromMap($map['Body']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketRefererRequest/body.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketRefererRequest/body.php new file mode 100644 index 00000000..ce9da902 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketRefererRequest/body.php @@ -0,0 +1,51 @@ + 'RefererConfiguration', + ]; + + public function validate() + { + Model::validateRequired('refererConfiguration', $this->refererConfiguration, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->refererConfiguration) { + $res['RefererConfiguration'] = null !== $this->refererConfiguration ? $this->refererConfiguration->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return body + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['RefererConfiguration'])) { + $model->refererConfiguration = refererConfiguration::fromMap($map['RefererConfiguration']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketRefererRequest/body/refererConfiguration.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketRefererRequest/body/refererConfiguration.php new file mode 100644 index 00000000..83832e22 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketRefererRequest/body/refererConfiguration.php @@ -0,0 +1,64 @@ + 'RefererList', + 'allowEmptyReferer' => 'AllowEmptyReferer', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->refererList) { + $res['RefererList'] = null !== $this->refererList ? $this->refererList->toMap() : null; + } + if (null !== $this->allowEmptyReferer) { + $res['AllowEmptyReferer'] = $this->allowEmptyReferer; + } + + return $res; + } + + /** + * @param array $map + * + * @return refererConfiguration + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['RefererList'])) { + $model->refererList = refererList::fromMap($map['RefererList']); + } + if (isset($map['AllowEmptyReferer'])) { + $model->allowEmptyReferer = $map['AllowEmptyReferer']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketRefererRequest/body/refererConfiguration/refererList.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketRefererRequest/body/refererConfiguration/refererList.php new file mode 100644 index 00000000..44082d02 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketRefererRequest/body/refererConfiguration/refererList.php @@ -0,0 +1,51 @@ + 'Referer', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->referer) { + $res['Referer'] = $this->referer; + } + + return $res; + } + + /** + * @param array $map + * + * @return refererList + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Referer'])) { + if (!empty($map['Referer'])) { + $model->referer = $map['Referer']; + } + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketRefererResponse.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketRefererResponse.php new file mode 100644 index 00000000..b5af5ae5 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketRefererResponse.php @@ -0,0 +1,50 @@ + 'x-oss-request-id', + ]; + + public function validate() + { + Model::validateRequired('requestId', $this->requestId, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->requestId) { + $res['x-oss-request-id'] = $this->requestId; + } + + return $res; + } + + /** + * @param array $map + * + * @return PutBucketRefererResponse + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['x-oss-request-id'])) { + $model->requestId = $map['x-oss-request-id']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketRequest.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketRequest.php new file mode 100644 index 00000000..ab93e754 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketRequest.php @@ -0,0 +1,81 @@ + 'BucketName', + 'body' => 'Body', + 'header' => 'Header', + ]; + + public function validate() + { + Model::validateRequired('bucketName', $this->bucketName, true); + Model::validatePattern('bucketName', $this->bucketName, '[a-zA-Z0-9-_]+'); + } + + public function toMap() + { + $res = []; + if (null !== $this->bucketName) { + $res['BucketName'] = $this->bucketName; + } + if (null !== $this->body) { + $res['Body'] = null !== $this->body ? $this->body->toMap() : null; + } + if (null !== $this->header) { + $res['Header'] = null !== $this->header ? $this->header->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return PutBucketRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['BucketName'])) { + $model->bucketName = $map['BucketName']; + } + if (isset($map['Body'])) { + $model->body = body::fromMap($map['Body']); + } + if (isset($map['Header'])) { + $model->header = header::fromMap($map['Header']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketRequest/body.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketRequest/body.php new file mode 100644 index 00000000..e3854933 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketRequest/body.php @@ -0,0 +1,51 @@ + 'CreateBucketConfiguration', + ]; + + public function validate() + { + Model::validateRequired('createBucketConfiguration', $this->createBucketConfiguration, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->createBucketConfiguration) { + $res['CreateBucketConfiguration'] = null !== $this->createBucketConfiguration ? $this->createBucketConfiguration->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return body + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['CreateBucketConfiguration'])) { + $model->createBucketConfiguration = createBucketConfiguration::fromMap($map['CreateBucketConfiguration']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketRequest/body/createBucketConfiguration.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketRequest/body/createBucketConfiguration.php new file mode 100644 index 00000000..577c6d39 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketRequest/body/createBucketConfiguration.php @@ -0,0 +1,63 @@ + 'StorageClass', + 'dataRedundancyType' => 'DataRedundancyType', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->storageClass) { + $res['StorageClass'] = $this->storageClass; + } + if (null !== $this->dataRedundancyType) { + $res['DataRedundancyType'] = $this->dataRedundancyType; + } + + return $res; + } + + /** + * @param array $map + * + * @return createBucketConfiguration + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['StorageClass'])) { + $model->storageClass = $map['StorageClass']; + } + if (isset($map['DataRedundancyType'])) { + $model->dataRedundancyType = $map['DataRedundancyType']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketRequest/header.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketRequest/header.php new file mode 100644 index 00000000..ed6bbb0c --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketRequest/header.php @@ -0,0 +1,49 @@ + 'x-oss-acl', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->acl) { + $res['x-oss-acl'] = $this->acl; + } + + return $res; + } + + /** + * @param array $map + * + * @return header + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['x-oss-acl'])) { + $model->acl = $map['x-oss-acl']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketRequestPaymentRequest.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketRequestPaymentRequest.php new file mode 100644 index 00000000..e9d10b9d --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketRequestPaymentRequest.php @@ -0,0 +1,66 @@ + 'BucketName', + 'body' => 'Body', + ]; + + public function validate() + { + Model::validateRequired('bucketName', $this->bucketName, true); + Model::validatePattern('bucketName', $this->bucketName, '[a-zA-Z0-9-_]+'); + } + + public function toMap() + { + $res = []; + if (null !== $this->bucketName) { + $res['BucketName'] = $this->bucketName; + } + if (null !== $this->body) { + $res['Body'] = null !== $this->body ? $this->body->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return PutBucketRequestPaymentRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['BucketName'])) { + $model->bucketName = $map['BucketName']; + } + if (isset($map['Body'])) { + $model->body = body::fromMap($map['Body']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketRequestPaymentRequest/body.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketRequestPaymentRequest/body.php new file mode 100644 index 00000000..10cc296a --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketRequestPaymentRequest/body.php @@ -0,0 +1,51 @@ + 'RequestPaymentConfiguration', + ]; + + public function validate() + { + Model::validateRequired('requestPaymentConfiguration', $this->requestPaymentConfiguration, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->requestPaymentConfiguration) { + $res['RequestPaymentConfiguration'] = null !== $this->requestPaymentConfiguration ? $this->requestPaymentConfiguration->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return body + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['RequestPaymentConfiguration'])) { + $model->requestPaymentConfiguration = requestPaymentConfiguration::fromMap($map['RequestPaymentConfiguration']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketRequestPaymentRequest/body/requestPaymentConfiguration.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketRequestPaymentRequest/body/requestPaymentConfiguration.php new file mode 100644 index 00000000..2759946a --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketRequestPaymentRequest/body/requestPaymentConfiguration.php @@ -0,0 +1,49 @@ + 'Payer', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->payer) { + $res['Payer'] = $this->payer; + } + + return $res; + } + + /** + * @param array $map + * + * @return requestPaymentConfiguration + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Payer'])) { + $model->payer = $map['Payer']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketRequestPaymentResponse.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketRequestPaymentResponse.php new file mode 100644 index 00000000..c29669e8 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketRequestPaymentResponse.php @@ -0,0 +1,50 @@ + 'x-oss-request-id', + ]; + + public function validate() + { + Model::validateRequired('requestId', $this->requestId, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->requestId) { + $res['x-oss-request-id'] = $this->requestId; + } + + return $res; + } + + /** + * @param array $map + * + * @return PutBucketRequestPaymentResponse + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['x-oss-request-id'])) { + $model->requestId = $map['x-oss-request-id']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketResponse.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketResponse.php new file mode 100644 index 00000000..2c612cb2 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketResponse.php @@ -0,0 +1,50 @@ + 'x-oss-request-id', + ]; + + public function validate() + { + Model::validateRequired('requestId', $this->requestId, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->requestId) { + $res['x-oss-request-id'] = $this->requestId; + } + + return $res; + } + + /** + * @param array $map + * + * @return PutBucketResponse + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['x-oss-request-id'])) { + $model->requestId = $map['x-oss-request-id']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketTagsRequest.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketTagsRequest.php new file mode 100644 index 00000000..215d8942 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketTagsRequest.php @@ -0,0 +1,66 @@ + 'BucketName', + 'body' => 'Body', + ]; + + public function validate() + { + Model::validateRequired('bucketName', $this->bucketName, true); + Model::validatePattern('bucketName', $this->bucketName, '[a-zA-Z0-9-_]+'); + } + + public function toMap() + { + $res = []; + if (null !== $this->bucketName) { + $res['BucketName'] = $this->bucketName; + } + if (null !== $this->body) { + $res['Body'] = null !== $this->body ? $this->body->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return PutBucketTagsRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['BucketName'])) { + $model->bucketName = $map['BucketName']; + } + if (isset($map['Body'])) { + $model->body = body::fromMap($map['Body']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketTagsRequest/body.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketTagsRequest/body.php new file mode 100644 index 00000000..93388e1f --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketTagsRequest/body.php @@ -0,0 +1,51 @@ + 'Tagging', + ]; + + public function validate() + { + Model::validateRequired('tagging', $this->tagging, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->tagging) { + $res['Tagging'] = null !== $this->tagging ? $this->tagging->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return body + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Tagging'])) { + $model->tagging = tagging::fromMap($map['Tagging']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketTagsRequest/body/tagging.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketTagsRequest/body/tagging.php new file mode 100644 index 00000000..5a1def83 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketTagsRequest/body/tagging.php @@ -0,0 +1,50 @@ + 'TagSet', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->tagSet) { + $res['TagSet'] = null !== $this->tagSet ? $this->tagSet->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return tagging + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['TagSet'])) { + $model->tagSet = tagSet::fromMap($map['TagSet']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketTagsRequest/body/tagging/tagSet.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketTagsRequest/body/tagging/tagSet.php new file mode 100644 index 00000000..e21df4f7 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketTagsRequest/body/tagging/tagSet.php @@ -0,0 +1,62 @@ + 'Tag', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->tag) { + $res['Tag'] = []; + if (null !== $this->tag && \is_array($this->tag)) { + $n = 0; + foreach ($this->tag as $item) { + $res['Tag'][$n++] = null !== $item ? $item->toMap() : $item; + } + } + } + + return $res; + } + + /** + * @param array $map + * + * @return tagSet + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Tag'])) { + if (!empty($map['Tag'])) { + $model->tag = []; + $n = 0; + foreach ($map['Tag'] as $item) { + $model->tag[$n++] = null !== $item ? tag::fromMap($item) : $item; + } + } + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketTagsRequest/body/tagging/tagSet/tag.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketTagsRequest/body/tagging/tagSet/tag.php new file mode 100644 index 00000000..4716ad42 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketTagsRequest/body/tagging/tagSet/tag.php @@ -0,0 +1,63 @@ + 'Key', + 'value' => 'Value', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->key) { + $res['Key'] = $this->key; + } + if (null !== $this->value) { + $res['Value'] = $this->value; + } + + return $res; + } + + /** + * @param array $map + * + * @return tag + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Key'])) { + $model->key = $map['Key']; + } + if (isset($map['Value'])) { + $model->value = $map['Value']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketTagsResponse.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketTagsResponse.php new file mode 100644 index 00000000..7ae58fe0 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketTagsResponse.php @@ -0,0 +1,50 @@ + 'x-oss-request-id', + ]; + + public function validate() + { + Model::validateRequired('requestId', $this->requestId, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->requestId) { + $res['x-oss-request-id'] = $this->requestId; + } + + return $res; + } + + /** + * @param array $map + * + * @return PutBucketTagsResponse + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['x-oss-request-id'])) { + $model->requestId = $map['x-oss-request-id']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketWebsiteRequest.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketWebsiteRequest.php new file mode 100644 index 00000000..e4663a5d --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketWebsiteRequest.php @@ -0,0 +1,66 @@ + 'BucketName', + 'body' => 'Body', + ]; + + public function validate() + { + Model::validateRequired('bucketName', $this->bucketName, true); + Model::validatePattern('bucketName', $this->bucketName, '[a-zA-Z0-9-_]+'); + } + + public function toMap() + { + $res = []; + if (null !== $this->bucketName) { + $res['BucketName'] = $this->bucketName; + } + if (null !== $this->body) { + $res['Body'] = null !== $this->body ? $this->body->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return PutBucketWebsiteRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['BucketName'])) { + $model->bucketName = $map['BucketName']; + } + if (isset($map['Body'])) { + $model->body = body::fromMap($map['Body']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketWebsiteRequest/body.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketWebsiteRequest/body.php new file mode 100644 index 00000000..aff7e152 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketWebsiteRequest/body.php @@ -0,0 +1,51 @@ + 'WebsiteConfiguration', + ]; + + public function validate() + { + Model::validateRequired('websiteConfiguration', $this->websiteConfiguration, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->websiteConfiguration) { + $res['WebsiteConfiguration'] = null !== $this->websiteConfiguration ? $this->websiteConfiguration->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return body + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['WebsiteConfiguration'])) { + $model->websiteConfiguration = websiteConfiguration::fromMap($map['WebsiteConfiguration']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketWebsiteRequest/body/websiteConfiguration.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketWebsiteRequest/body/websiteConfiguration.php new file mode 100644 index 00000000..c0d0ff97 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketWebsiteRequest/body/websiteConfiguration.php @@ -0,0 +1,80 @@ + 'IndexDocument', + 'errorDocument' => 'ErrorDocument', + 'routingRules' => 'RoutingRules', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->indexDocument) { + $res['IndexDocument'] = null !== $this->indexDocument ? $this->indexDocument->toMap() : null; + } + if (null !== $this->errorDocument) { + $res['ErrorDocument'] = null !== $this->errorDocument ? $this->errorDocument->toMap() : null; + } + if (null !== $this->routingRules) { + $res['RoutingRules'] = null !== $this->routingRules ? $this->routingRules->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return websiteConfiguration + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['IndexDocument'])) { + $model->indexDocument = indexDocument::fromMap($map['IndexDocument']); + } + if (isset($map['ErrorDocument'])) { + $model->errorDocument = errorDocument::fromMap($map['ErrorDocument']); + } + if (isset($map['RoutingRules'])) { + $model->routingRules = routingRules::fromMap($map['RoutingRules']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketWebsiteRequest/body/websiteConfiguration/errorDocument.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketWebsiteRequest/body/websiteConfiguration/errorDocument.php new file mode 100644 index 00000000..1a4b7843 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketWebsiteRequest/body/websiteConfiguration/errorDocument.php @@ -0,0 +1,49 @@ + 'Key', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->key) { + $res['Key'] = $this->key; + } + + return $res; + } + + /** + * @param array $map + * + * @return errorDocument + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Key'])) { + $model->key = $map['Key']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketWebsiteRequest/body/websiteConfiguration/indexDocument.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketWebsiteRequest/body/websiteConfiguration/indexDocument.php new file mode 100644 index 00000000..b0f6d001 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketWebsiteRequest/body/websiteConfiguration/indexDocument.php @@ -0,0 +1,49 @@ + 'Suffix', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->suffix) { + $res['Suffix'] = $this->suffix; + } + + return $res; + } + + /** + * @param array $map + * + * @return indexDocument + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Suffix'])) { + $model->suffix = $map['Suffix']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketWebsiteRequest/body/websiteConfiguration/routingRules.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketWebsiteRequest/body/websiteConfiguration/routingRules.php new file mode 100644 index 00000000..8ac3b013 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketWebsiteRequest/body/websiteConfiguration/routingRules.php @@ -0,0 +1,62 @@ + 'RoutingRule', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->routingRule) { + $res['RoutingRule'] = []; + if (null !== $this->routingRule && \is_array($this->routingRule)) { + $n = 0; + foreach ($this->routingRule as $item) { + $res['RoutingRule'][$n++] = null !== $item ? $item->toMap() : $item; + } + } + } + + return $res; + } + + /** + * @param array $map + * + * @return routingRules + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['RoutingRule'])) { + if (!empty($map['RoutingRule'])) { + $model->routingRule = []; + $n = 0; + foreach ($map['RoutingRule'] as $item) { + $model->routingRule[$n++] = null !== $item ? routingRule::fromMap($item) : $item; + } + } + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketWebsiteRequest/body/websiteConfiguration/routingRules/routingRule.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketWebsiteRequest/body/websiteConfiguration/routingRules/routingRule.php new file mode 100644 index 00000000..f03494e2 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketWebsiteRequest/body/websiteConfiguration/routingRules/routingRule.php @@ -0,0 +1,79 @@ + 'Condition', + 'redirect' => 'Redirect', + 'ruleNumber' => 'RuleNumber', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->condition) { + $res['Condition'] = null !== $this->condition ? $this->condition->toMap() : null; + } + if (null !== $this->redirect) { + $res['Redirect'] = null !== $this->redirect ? $this->redirect->toMap() : null; + } + if (null !== $this->ruleNumber) { + $res['RuleNumber'] = $this->ruleNumber; + } + + return $res; + } + + /** + * @param array $map + * + * @return routingRule + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Condition'])) { + $model->condition = condition::fromMap($map['Condition']); + } + if (isset($map['Redirect'])) { + $model->redirect = redirect::fromMap($map['Redirect']); + } + if (isset($map['RuleNumber'])) { + $model->ruleNumber = $map['RuleNumber']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketWebsiteRequest/body/websiteConfiguration/routingRules/routingRule/condition.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketWebsiteRequest/body/websiteConfiguration/routingRules/routingRule/condition.php new file mode 100644 index 00000000..8ecd13bf --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketWebsiteRequest/body/websiteConfiguration/routingRules/routingRule/condition.php @@ -0,0 +1,78 @@ + 'IncludeHeader', + 'keyPrefixEquals' => 'KeyPrefixEquals', + 'httpErrorCodeReturnedEquals' => 'HttpErrorCodeReturnedEquals', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->includeHeader) { + $res['IncludeHeader'] = null !== $this->includeHeader ? $this->includeHeader->toMap() : null; + } + if (null !== $this->keyPrefixEquals) { + $res['KeyPrefixEquals'] = $this->keyPrefixEquals; + } + if (null !== $this->httpErrorCodeReturnedEquals) { + $res['HttpErrorCodeReturnedEquals'] = $this->httpErrorCodeReturnedEquals; + } + + return $res; + } + + /** + * @param array $map + * + * @return condition + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['IncludeHeader'])) { + $model->includeHeader = includeHeader::fromMap($map['IncludeHeader']); + } + if (isset($map['KeyPrefixEquals'])) { + $model->keyPrefixEquals = $map['KeyPrefixEquals']; + } + if (isset($map['HttpErrorCodeReturnedEquals'])) { + $model->httpErrorCodeReturnedEquals = $map['HttpErrorCodeReturnedEquals']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketWebsiteRequest/body/websiteConfiguration/routingRules/routingRule/condition/includeHeader.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketWebsiteRequest/body/websiteConfiguration/routingRules/routingRule/condition/includeHeader.php new file mode 100644 index 00000000..7959ffe9 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketWebsiteRequest/body/websiteConfiguration/routingRules/routingRule/condition/includeHeader.php @@ -0,0 +1,63 @@ + 'Key', + 'equals' => 'Equals', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->key) { + $res['Key'] = $this->key; + } + if (null !== $this->equals) { + $res['Equals'] = $this->equals; + } + + return $res; + } + + /** + * @param array $map + * + * @return includeHeader + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Key'])) { + $model->key = $map['Key']; + } + if (isset($map['Equals'])) { + $model->equals = $map['Equals']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketWebsiteRequest/body/websiteConfiguration/routingRules/routingRule/redirect.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketWebsiteRequest/body/websiteConfiguration/routingRules/routingRule/redirect.php new file mode 100644 index 00000000..5e4c0ca8 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketWebsiteRequest/body/websiteConfiguration/routingRules/routingRule/redirect.php @@ -0,0 +1,204 @@ + 'MirrorHeaders', + 'redirectType' => 'RedirectType', + 'passQueryString' => 'PassQueryString', + 'mirrorURL' => 'MirrorURL', + 'mirrorPassQueryString' => 'MirrorPassQueryString', + 'mirrorFollowRedirect' => 'MirrorFollowRedirect', + 'mirrorCheckMd5' => 'MirrorCheckMd5', + 'protocol' => 'Protocol', + 'hostName' => 'HostName', + 'httpRedirectCode' => 'HttpRedirectCode', + 'replaceKeyPrefixWith' => 'ReplaceKeyPrefixWith', + 'replaceKeyWith' => 'ReplaceKeyWith', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->mirrorHeaders) { + $res['MirrorHeaders'] = null !== $this->mirrorHeaders ? $this->mirrorHeaders->toMap() : null; + } + if (null !== $this->redirectType) { + $res['RedirectType'] = $this->redirectType; + } + if (null !== $this->passQueryString) { + $res['PassQueryString'] = $this->passQueryString; + } + if (null !== $this->mirrorURL) { + $res['MirrorURL'] = $this->mirrorURL; + } + if (null !== $this->mirrorPassQueryString) { + $res['MirrorPassQueryString'] = $this->mirrorPassQueryString; + } + if (null !== $this->mirrorFollowRedirect) { + $res['MirrorFollowRedirect'] = $this->mirrorFollowRedirect; + } + if (null !== $this->mirrorCheckMd5) { + $res['MirrorCheckMd5'] = $this->mirrorCheckMd5; + } + if (null !== $this->protocol) { + $res['Protocol'] = $this->protocol; + } + if (null !== $this->hostName) { + $res['HostName'] = $this->hostName; + } + if (null !== $this->httpRedirectCode) { + $res['HttpRedirectCode'] = $this->httpRedirectCode; + } + if (null !== $this->replaceKeyPrefixWith) { + $res['ReplaceKeyPrefixWith'] = $this->replaceKeyPrefixWith; + } + if (null !== $this->replaceKeyWith) { + $res['ReplaceKeyWith'] = $this->replaceKeyWith; + } + + return $res; + } + + /** + * @param array $map + * + * @return redirect + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['MirrorHeaders'])) { + $model->mirrorHeaders = mirrorHeaders::fromMap($map['MirrorHeaders']); + } + if (isset($map['RedirectType'])) { + $model->redirectType = $map['RedirectType']; + } + if (isset($map['PassQueryString'])) { + $model->passQueryString = $map['PassQueryString']; + } + if (isset($map['MirrorURL'])) { + $model->mirrorURL = $map['MirrorURL']; + } + if (isset($map['MirrorPassQueryString'])) { + $model->mirrorPassQueryString = $map['MirrorPassQueryString']; + } + if (isset($map['MirrorFollowRedirect'])) { + $model->mirrorFollowRedirect = $map['MirrorFollowRedirect']; + } + if (isset($map['MirrorCheckMd5'])) { + $model->mirrorCheckMd5 = $map['MirrorCheckMd5']; + } + if (isset($map['Protocol'])) { + $model->protocol = $map['Protocol']; + } + if (isset($map['HostName'])) { + $model->hostName = $map['HostName']; + } + if (isset($map['HttpRedirectCode'])) { + $model->httpRedirectCode = $map['HttpRedirectCode']; + } + if (isset($map['ReplaceKeyPrefixWith'])) { + $model->replaceKeyPrefixWith = $map['ReplaceKeyPrefixWith']; + } + if (isset($map['ReplaceKeyWith'])) { + $model->replaceKeyWith = $map['ReplaceKeyWith']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketWebsiteRequest/body/websiteConfiguration/routingRules/routingRule/redirect/mirrorHeaders.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketWebsiteRequest/body/websiteConfiguration/routingRules/routingRule/redirect/mirrorHeaders.php new file mode 100644 index 00000000..3b1ca5b7 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketWebsiteRequest/body/websiteConfiguration/routingRules/routingRule/redirect/mirrorHeaders.php @@ -0,0 +1,92 @@ + 'Set', + 'passAll' => 'PassAll', + 'pass' => 'Pass', + 'remove' => 'Remove', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->set) { + $res['Set'] = null !== $this->set ? $this->set->toMap() : null; + } + if (null !== $this->passAll) { + $res['PassAll'] = $this->passAll; + } + if (null !== $this->pass) { + $res['Pass'] = $this->pass; + } + if (null !== $this->remove) { + $res['Remove'] = $this->remove; + } + + return $res; + } + + /** + * @param array $map + * + * @return mirrorHeaders + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Set'])) { + $model->set = set::fromMap($map['Set']); + } + if (isset($map['PassAll'])) { + $model->passAll = $map['PassAll']; + } + if (isset($map['Pass'])) { + $model->pass = $map['Pass']; + } + if (isset($map['Remove'])) { + $model->remove = $map['Remove']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketWebsiteRequest/body/websiteConfiguration/routingRules/routingRule/redirect/mirrorHeaders/set.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketWebsiteRequest/body/websiteConfiguration/routingRules/routingRule/redirect/mirrorHeaders/set.php new file mode 100644 index 00000000..824aa87a --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketWebsiteRequest/body/websiteConfiguration/routingRules/routingRule/redirect/mirrorHeaders/set.php @@ -0,0 +1,63 @@ + 'Key', + 'value' => 'Value', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->key) { + $res['Key'] = $this->key; + } + if (null !== $this->value) { + $res['Value'] = $this->value; + } + + return $res; + } + + /** + * @param array $map + * + * @return set + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Key'])) { + $model->key = $map['Key']; + } + if (isset($map['Value'])) { + $model->value = $map['Value']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketWebsiteResponse.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketWebsiteResponse.php new file mode 100644 index 00000000..a29d6bc3 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutBucketWebsiteResponse.php @@ -0,0 +1,50 @@ + 'x-oss-request-id', + ]; + + public function validate() + { + Model::validateRequired('requestId', $this->requestId, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->requestId) { + $res['x-oss-request-id'] = $this->requestId; + } + + return $res; + } + + /** + * @param array $map + * + * @return PutBucketWebsiteResponse + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['x-oss-request-id'])) { + $model->requestId = $map['x-oss-request-id']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutLiveChannelRequest.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutLiveChannelRequest.php new file mode 100644 index 00000000..0f8ac505 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutLiveChannelRequest.php @@ -0,0 +1,81 @@ + 'BucketName', + 'channelName' => 'ChannelName', + 'body' => 'Body', + ]; + + public function validate() + { + Model::validateRequired('bucketName', $this->bucketName, true); + Model::validateRequired('channelName', $this->channelName, true); + Model::validatePattern('bucketName', $this->bucketName, '[a-zA-Z0-9-_]+'); + } + + public function toMap() + { + $res = []; + if (null !== $this->bucketName) { + $res['BucketName'] = $this->bucketName; + } + if (null !== $this->channelName) { + $res['ChannelName'] = $this->channelName; + } + if (null !== $this->body) { + $res['Body'] = null !== $this->body ? $this->body->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return PutLiveChannelRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['BucketName'])) { + $model->bucketName = $map['BucketName']; + } + if (isset($map['ChannelName'])) { + $model->channelName = $map['ChannelName']; + } + if (isset($map['Body'])) { + $model->body = body::fromMap($map['Body']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutLiveChannelRequest/body.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutLiveChannelRequest/body.php new file mode 100644 index 00000000..adc7b9ca --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutLiveChannelRequest/body.php @@ -0,0 +1,51 @@ + 'LiveChannelConfiguration', + ]; + + public function validate() + { + Model::validateRequired('liveChannelConfiguration', $this->liveChannelConfiguration, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->liveChannelConfiguration) { + $res['LiveChannelConfiguration'] = null !== $this->liveChannelConfiguration ? $this->liveChannelConfiguration->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return body + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['LiveChannelConfiguration'])) { + $model->liveChannelConfiguration = liveChannelConfiguration::fromMap($map['LiveChannelConfiguration']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutLiveChannelRequest/body/liveChannelConfiguration.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutLiveChannelRequest/body/liveChannelConfiguration.php new file mode 100644 index 00000000..9c72cdfa --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutLiveChannelRequest/body/liveChannelConfiguration.php @@ -0,0 +1,93 @@ + 'Target', + 'snapshot' => 'Snapshot', + 'description' => 'Description', + 'status' => 'Status', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->target) { + $res['Target'] = null !== $this->target ? $this->target->toMap() : null; + } + if (null !== $this->snapshot) { + $res['Snapshot'] = null !== $this->snapshot ? $this->snapshot->toMap() : null; + } + if (null !== $this->description) { + $res['Description'] = $this->description; + } + if (null !== $this->status) { + $res['Status'] = $this->status; + } + + return $res; + } + + /** + * @param array $map + * + * @return liveChannelConfiguration + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Target'])) { + $model->target = target::fromMap($map['Target']); + } + if (isset($map['Snapshot'])) { + $model->snapshot = snapshot::fromMap($map['Snapshot']); + } + if (isset($map['Description'])) { + $model->description = $map['Description']; + } + if (isset($map['Status'])) { + $model->status = $map['Status']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutLiveChannelRequest/body/liveChannelConfiguration/snapshot.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutLiveChannelRequest/body/liveChannelConfiguration/snapshot.php new file mode 100644 index 00000000..595ce908 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutLiveChannelRequest/body/liveChannelConfiguration/snapshot.php @@ -0,0 +1,91 @@ + 'RoleName', + 'destBucket' => 'DestBucket', + 'notifyTopic' => 'NotifyTopic', + 'interval' => 'Interval', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->roleName) { + $res['RoleName'] = $this->roleName; + } + if (null !== $this->destBucket) { + $res['DestBucket'] = $this->destBucket; + } + if (null !== $this->notifyTopic) { + $res['NotifyTopic'] = $this->notifyTopic; + } + if (null !== $this->interval) { + $res['Interval'] = $this->interval; + } + + return $res; + } + + /** + * @param array $map + * + * @return snapshot + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['RoleName'])) { + $model->roleName = $map['RoleName']; + } + if (isset($map['DestBucket'])) { + $model->destBucket = $map['DestBucket']; + } + if (isset($map['NotifyTopic'])) { + $model->notifyTopic = $map['NotifyTopic']; + } + if (isset($map['Interval'])) { + $model->interval = $map['Interval']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutLiveChannelRequest/body/liveChannelConfiguration/target.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutLiveChannelRequest/body/liveChannelConfiguration/target.php new file mode 100644 index 00000000..bb78dd46 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutLiveChannelRequest/body/liveChannelConfiguration/target.php @@ -0,0 +1,91 @@ + 'Type', + 'fragDuration' => 'FragDuration', + 'fragCount' => 'FragCount', + 'playlistName' => 'PlaylistName', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->type) { + $res['Type'] = $this->type; + } + if (null !== $this->fragDuration) { + $res['FragDuration'] = $this->fragDuration; + } + if (null !== $this->fragCount) { + $res['FragCount'] = $this->fragCount; + } + if (null !== $this->playlistName) { + $res['PlaylistName'] = $this->playlistName; + } + + return $res; + } + + /** + * @param array $map + * + * @return target + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Type'])) { + $model->type = $map['Type']; + } + if (isset($map['FragDuration'])) { + $model->fragDuration = $map['FragDuration']; + } + if (isset($map['FragCount'])) { + $model->fragCount = $map['FragCount']; + } + if (isset($map['PlaylistName'])) { + $model->playlistName = $map['PlaylistName']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutLiveChannelResponse.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutLiveChannelResponse.php new file mode 100644 index 00000000..7f1838c7 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutLiveChannelResponse.php @@ -0,0 +1,66 @@ + 'x-oss-request-id', + 'createLiveChannelResult' => 'CreateLiveChannelResult', + ]; + + public function validate() + { + Model::validateRequired('requestId', $this->requestId, true); + Model::validateRequired('createLiveChannelResult', $this->createLiveChannelResult, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->requestId) { + $res['x-oss-request-id'] = $this->requestId; + } + if (null !== $this->createLiveChannelResult) { + $res['CreateLiveChannelResult'] = null !== $this->createLiveChannelResult ? $this->createLiveChannelResult->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return PutLiveChannelResponse + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['x-oss-request-id'])) { + $model->requestId = $map['x-oss-request-id']; + } + if (isset($map['CreateLiveChannelResult'])) { + $model->createLiveChannelResult = createLiveChannelResult::fromMap($map['CreateLiveChannelResult']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutLiveChannelResponse/createLiveChannelResult.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutLiveChannelResponse/createLiveChannelResult.php new file mode 100644 index 00000000..56196cb8 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutLiveChannelResponse/createLiveChannelResult.php @@ -0,0 +1,67 @@ + 'PublishUrls', + 'playUrls' => 'PlayUrls', + ]; + + public function validate() + { + Model::validateRequired('publishUrls', $this->publishUrls, true); + Model::validateRequired('playUrls', $this->playUrls, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->publishUrls) { + $res['PublishUrls'] = null !== $this->publishUrls ? $this->publishUrls->toMap() : null; + } + if (null !== $this->playUrls) { + $res['PlayUrls'] = null !== $this->playUrls ? $this->playUrls->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return createLiveChannelResult + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['PublishUrls'])) { + $model->publishUrls = publishUrls::fromMap($map['PublishUrls']); + } + if (isset($map['PlayUrls'])) { + $model->playUrls = playUrls::fromMap($map['PlayUrls']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutLiveChannelResponse/createLiveChannelResult/playUrls.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutLiveChannelResponse/createLiveChannelResult/playUrls.php new file mode 100644 index 00000000..dd2280fa --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutLiveChannelResponse/createLiveChannelResult/playUrls.php @@ -0,0 +1,49 @@ + 'Url', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->url) { + $res['Url'] = $this->url; + } + + return $res; + } + + /** + * @param array $map + * + * @return playUrls + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Url'])) { + $model->url = $map['Url']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutLiveChannelResponse/createLiveChannelResult/publishUrls.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutLiveChannelResponse/createLiveChannelResult/publishUrls.php new file mode 100644 index 00000000..6303ca4e --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutLiveChannelResponse/createLiveChannelResult/publishUrls.php @@ -0,0 +1,49 @@ + 'Url', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->url) { + $res['Url'] = $this->url; + } + + return $res; + } + + /** + * @param array $map + * + * @return publishUrls + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Url'])) { + $model->url = $map['Url']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutLiveChannelStatusRequest.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutLiveChannelStatusRequest.php new file mode 100644 index 00000000..4cf22197 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutLiveChannelStatusRequest.php @@ -0,0 +1,82 @@ + 'BucketName', + 'channelName' => 'ChannelName', + 'filter' => 'Filter', + ]; + + public function validate() + { + Model::validateRequired('bucketName', $this->bucketName, true); + Model::validateRequired('channelName', $this->channelName, true); + Model::validateRequired('filter', $this->filter, true); + Model::validatePattern('bucketName', $this->bucketName, '[a-zA-Z0-9-_]+'); + } + + public function toMap() + { + $res = []; + if (null !== $this->bucketName) { + $res['BucketName'] = $this->bucketName; + } + if (null !== $this->channelName) { + $res['ChannelName'] = $this->channelName; + } + if (null !== $this->filter) { + $res['Filter'] = null !== $this->filter ? $this->filter->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return PutLiveChannelStatusRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['BucketName'])) { + $model->bucketName = $map['BucketName']; + } + if (isset($map['ChannelName'])) { + $model->channelName = $map['ChannelName']; + } + if (isset($map['Filter'])) { + $model->filter = filter::fromMap($map['Filter']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutLiveChannelStatusRequest/filter.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutLiveChannelStatusRequest/filter.php new file mode 100644 index 00000000..84e3c3a1 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutLiveChannelStatusRequest/filter.php @@ -0,0 +1,50 @@ + 'status', + ]; + + public function validate() + { + Model::validateRequired('status', $this->status, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->status) { + $res['status'] = $this->status; + } + + return $res; + } + + /** + * @param array $map + * + * @return filter + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['status'])) { + $model->status = $map['status']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutLiveChannelStatusResponse.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutLiveChannelStatusResponse.php new file mode 100644 index 00000000..1992f04e --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutLiveChannelStatusResponse.php @@ -0,0 +1,50 @@ + 'x-oss-request-id', + ]; + + public function validate() + { + Model::validateRequired('requestId', $this->requestId, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->requestId) { + $res['x-oss-request-id'] = $this->requestId; + } + + return $res; + } + + /** + * @param array $map + * + * @return PutLiveChannelStatusResponse + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['x-oss-request-id'])) { + $model->requestId = $map['x-oss-request-id']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutObjectAclRequest.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutObjectAclRequest.php new file mode 100644 index 00000000..a18526f9 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutObjectAclRequest.php @@ -0,0 +1,82 @@ + 'BucketName', + 'objectName' => 'ObjectName', + 'header' => 'Header', + ]; + + public function validate() + { + Model::validateRequired('bucketName', $this->bucketName, true); + Model::validateRequired('objectName', $this->objectName, true); + Model::validateRequired('header', $this->header, true); + Model::validatePattern('bucketName', $this->bucketName, '[a-zA-Z0-9-_]+'); + } + + public function toMap() + { + $res = []; + if (null !== $this->bucketName) { + $res['BucketName'] = $this->bucketName; + } + if (null !== $this->objectName) { + $res['ObjectName'] = $this->objectName; + } + if (null !== $this->header) { + $res['Header'] = null !== $this->header ? $this->header->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return PutObjectAclRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['BucketName'])) { + $model->bucketName = $map['BucketName']; + } + if (isset($map['ObjectName'])) { + $model->objectName = $map['ObjectName']; + } + if (isset($map['Header'])) { + $model->header = header::fromMap($map['Header']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutObjectAclRequest/header.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutObjectAclRequest/header.php new file mode 100644 index 00000000..a44b167c --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutObjectAclRequest/header.php @@ -0,0 +1,50 @@ + 'x-oss-object-acl', + ]; + + public function validate() + { + Model::validateRequired('objectAcl', $this->objectAcl, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->objectAcl) { + $res['x-oss-object-acl'] = $this->objectAcl; + } + + return $res; + } + + /** + * @param array $map + * + * @return header + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['x-oss-object-acl'])) { + $model->objectAcl = $map['x-oss-object-acl']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutObjectAclResponse.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutObjectAclResponse.php new file mode 100644 index 00000000..af29ef64 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutObjectAclResponse.php @@ -0,0 +1,50 @@ + 'x-oss-request-id', + ]; + + public function validate() + { + Model::validateRequired('requestId', $this->requestId, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->requestId) { + $res['x-oss-request-id'] = $this->requestId; + } + + return $res; + } + + /** + * @param array $map + * + * @return PutObjectAclResponse + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['x-oss-request-id'])) { + $model->requestId = $map['x-oss-request-id']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutObjectRequest.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutObjectRequest.php new file mode 100644 index 00000000..f8ee7b6b --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutObjectRequest.php @@ -0,0 +1,110 @@ + 'BucketName', + 'objectName' => 'ObjectName', + 'userMeta' => 'UserMeta', + 'body' => 'body', + 'header' => 'Header', + ]; + + public function validate() + { + Model::validateRequired('bucketName', $this->bucketName, true); + Model::validateRequired('objectName', $this->objectName, true); + Model::validatePattern('bucketName', $this->bucketName, '[a-zA-Z0-9-_]+'); + } + + public function toMap() + { + $res = []; + if (null !== $this->bucketName) { + $res['BucketName'] = $this->bucketName; + } + if (null !== $this->objectName) { + $res['ObjectName'] = $this->objectName; + } + if (null !== $this->userMeta) { + $res['UserMeta'] = $this->userMeta; + } + if (null !== $this->body) { + $res['body'] = $this->body; + } + if (null !== $this->header) { + $res['Header'] = null !== $this->header ? $this->header->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return PutObjectRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['BucketName'])) { + $model->bucketName = $map['BucketName']; + } + if (isset($map['ObjectName'])) { + $model->objectName = $map['ObjectName']; + } + if (isset($map['UserMeta'])) { + $model->userMeta = $map['UserMeta']; + } + if (isset($map['body'])) { + $model->body = $map['body']; + } + if (isset($map['Header'])) { + $model->header = header::fromMap($map['Header']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutObjectRequest/header.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutObjectRequest/header.php new file mode 100644 index 00000000..f3d03b7f --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutObjectRequest/header.php @@ -0,0 +1,231 @@ + 'Authorization', + 'cacheControl' => 'Cache-Control', + 'contentDisposition' => 'Content-Disposition', + 'contentEncoding' => 'Content-Encoding', + 'contentMD5' => 'Content-MD5', + 'contentLength' => 'Content-Length', + 'eTag' => 'CETag', + 'expires' => 'Expires', + 'serverSideEncryption' => 'x-oss-server-side-encryption', + 'serverSideEncryptionKeyId' => 'x-oss-server-side-encryption-key-id', + 'objectAcl' => 'x-oss-object-acl', + 'storageClass' => 'x-oss-storage-class', + 'tagging' => 'x-oss-tagging', + 'contentType' => 'content-type', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->authorization) { + $res['Authorization'] = $this->authorization; + } + if (null !== $this->cacheControl) { + $res['Cache-Control'] = $this->cacheControl; + } + if (null !== $this->contentDisposition) { + $res['Content-Disposition'] = $this->contentDisposition; + } + if (null !== $this->contentEncoding) { + $res['Content-Encoding'] = $this->contentEncoding; + } + if (null !== $this->contentMD5) { + $res['Content-MD5'] = $this->contentMD5; + } + if (null !== $this->contentLength) { + $res['Content-Length'] = $this->contentLength; + } + if (null !== $this->eTag) { + $res['CETag'] = $this->eTag; + } + if (null !== $this->expires) { + $res['Expires'] = $this->expires; + } + if (null !== $this->serverSideEncryption) { + $res['x-oss-server-side-encryption'] = $this->serverSideEncryption; + } + if (null !== $this->serverSideEncryptionKeyId) { + $res['x-oss-server-side-encryption-key-id'] = $this->serverSideEncryptionKeyId; + } + if (null !== $this->objectAcl) { + $res['x-oss-object-acl'] = $this->objectAcl; + } + if (null !== $this->storageClass) { + $res['x-oss-storage-class'] = $this->storageClass; + } + if (null !== $this->tagging) { + $res['x-oss-tagging'] = $this->tagging; + } + if (null !== $this->contentType) { + $res['content-type'] = $this->contentType; + } + + return $res; + } + + /** + * @param array $map + * + * @return header + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Authorization'])) { + $model->authorization = $map['Authorization']; + } + if (isset($map['Cache-Control'])) { + $model->cacheControl = $map['Cache-Control']; + } + if (isset($map['Content-Disposition'])) { + $model->contentDisposition = $map['Content-Disposition']; + } + if (isset($map['Content-Encoding'])) { + $model->contentEncoding = $map['Content-Encoding']; + } + if (isset($map['Content-MD5'])) { + $model->contentMD5 = $map['Content-MD5']; + } + if (isset($map['Content-Length'])) { + $model->contentLength = $map['Content-Length']; + } + if (isset($map['CETag'])) { + $model->eTag = $map['CETag']; + } + if (isset($map['Expires'])) { + $model->expires = $map['Expires']; + } + if (isset($map['x-oss-server-side-encryption'])) { + $model->serverSideEncryption = $map['x-oss-server-side-encryption']; + } + if (isset($map['x-oss-server-side-encryption-key-id'])) { + $model->serverSideEncryptionKeyId = $map['x-oss-server-side-encryption-key-id']; + } + if (isset($map['x-oss-object-acl'])) { + $model->objectAcl = $map['x-oss-object-acl']; + } + if (isset($map['x-oss-storage-class'])) { + $model->storageClass = $map['x-oss-storage-class']; + } + if (isset($map['x-oss-tagging'])) { + $model->tagging = $map['x-oss-tagging']; + } + if (isset($map['content-type'])) { + $model->contentType = $map['content-type']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutObjectResponse.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutObjectResponse.php new file mode 100644 index 00000000..ec3b87b8 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutObjectResponse.php @@ -0,0 +1,95 @@ + 'x-oss-request-id', + 'hashCrc64ecma' => 'x-oss-hash-crc64ecma', + 'serverTime' => 'x-oss-server-time', + 'bucketVersion' => 'x-oss-bucket-version', + ]; + + public function validate() + { + Model::validateRequired('requestId', $this->requestId, true); + Model::validateRequired('hashCrc64ecma', $this->hashCrc64ecma, true); + Model::validateRequired('serverTime', $this->serverTime, true); + Model::validateRequired('bucketVersion', $this->bucketVersion, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->requestId) { + $res['x-oss-request-id'] = $this->requestId; + } + if (null !== $this->hashCrc64ecma) { + $res['x-oss-hash-crc64ecma'] = $this->hashCrc64ecma; + } + if (null !== $this->serverTime) { + $res['x-oss-server-time'] = $this->serverTime; + } + if (null !== $this->bucketVersion) { + $res['x-oss-bucket-version'] = $this->bucketVersion; + } + + return $res; + } + + /** + * @param array $map + * + * @return PutObjectResponse + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['x-oss-request-id'])) { + $model->requestId = $map['x-oss-request-id']; + } + if (isset($map['x-oss-hash-crc64ecma'])) { + $model->hashCrc64ecma = $map['x-oss-hash-crc64ecma']; + } + if (isset($map['x-oss-server-time'])) { + $model->serverTime = $map['x-oss-server-time']; + } + if (isset($map['x-oss-bucket-version'])) { + $model->bucketVersion = $map['x-oss-bucket-version']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutObjectTaggingRequest.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutObjectTaggingRequest.php new file mode 100644 index 00000000..f6dbdac3 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutObjectTaggingRequest.php @@ -0,0 +1,81 @@ + 'BucketName', + 'objectName' => 'ObjectName', + 'body' => 'Body', + ]; + + public function validate() + { + Model::validateRequired('bucketName', $this->bucketName, true); + Model::validateRequired('objectName', $this->objectName, true); + Model::validatePattern('bucketName', $this->bucketName, '[a-zA-Z0-9-_]+'); + } + + public function toMap() + { + $res = []; + if (null !== $this->bucketName) { + $res['BucketName'] = $this->bucketName; + } + if (null !== $this->objectName) { + $res['ObjectName'] = $this->objectName; + } + if (null !== $this->body) { + $res['Body'] = null !== $this->body ? $this->body->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return PutObjectTaggingRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['BucketName'])) { + $model->bucketName = $map['BucketName']; + } + if (isset($map['ObjectName'])) { + $model->objectName = $map['ObjectName']; + } + if (isset($map['Body'])) { + $model->body = body::fromMap($map['Body']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutObjectTaggingRequest/body.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutObjectTaggingRequest/body.php new file mode 100644 index 00000000..8837d1b3 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutObjectTaggingRequest/body.php @@ -0,0 +1,51 @@ + 'Tagging', + ]; + + public function validate() + { + Model::validateRequired('tagging', $this->tagging, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->tagging) { + $res['Tagging'] = null !== $this->tagging ? $this->tagging->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return body + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Tagging'])) { + $model->tagging = tagging::fromMap($map['Tagging']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutObjectTaggingRequest/body/tagging.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutObjectTaggingRequest/body/tagging.php new file mode 100644 index 00000000..5ab28fac --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutObjectTaggingRequest/body/tagging.php @@ -0,0 +1,50 @@ + 'TagSet', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->tagSet) { + $res['TagSet'] = null !== $this->tagSet ? $this->tagSet->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return tagging + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['TagSet'])) { + $model->tagSet = tagSet::fromMap($map['TagSet']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutObjectTaggingRequest/body/tagging/tagSet.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutObjectTaggingRequest/body/tagging/tagSet.php new file mode 100644 index 00000000..56fdda76 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutObjectTaggingRequest/body/tagging/tagSet.php @@ -0,0 +1,62 @@ + 'Tag', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->tag) { + $res['Tag'] = []; + if (null !== $this->tag && \is_array($this->tag)) { + $n = 0; + foreach ($this->tag as $item) { + $res['Tag'][$n++] = null !== $item ? $item->toMap() : $item; + } + } + } + + return $res; + } + + /** + * @param array $map + * + * @return tagSet + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Tag'])) { + if (!empty($map['Tag'])) { + $model->tag = []; + $n = 0; + foreach ($map['Tag'] as $item) { + $model->tag[$n++] = null !== $item ? tag::fromMap($item) : $item; + } + } + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutObjectTaggingRequest/body/tagging/tagSet/tag.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutObjectTaggingRequest/body/tagging/tagSet/tag.php new file mode 100644 index 00000000..e1c6b904 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutObjectTaggingRequest/body/tagging/tagSet/tag.php @@ -0,0 +1,63 @@ + 'Key', + 'value' => 'Value', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->key) { + $res['Key'] = $this->key; + } + if (null !== $this->value) { + $res['Value'] = $this->value; + } + + return $res; + } + + /** + * @param array $map + * + * @return tag + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Key'])) { + $model->key = $map['Key']; + } + if (isset($map['Value'])) { + $model->value = $map['Value']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutObjectTaggingResponse.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutObjectTaggingResponse.php new file mode 100644 index 00000000..1f9a6bc9 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutObjectTaggingResponse.php @@ -0,0 +1,50 @@ + 'x-oss-request-id', + ]; + + public function validate() + { + Model::validateRequired('requestId', $this->requestId, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->requestId) { + $res['x-oss-request-id'] = $this->requestId; + } + + return $res; + } + + /** + * @param array $map + * + * @return PutObjectTaggingResponse + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['x-oss-request-id'])) { + $model->requestId = $map['x-oss-request-id']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutSymlinkRequest.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutSymlinkRequest.php new file mode 100644 index 00000000..de058d2c --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutSymlinkRequest.php @@ -0,0 +1,82 @@ + 'BucketName', + 'objectName' => 'ObjectName', + 'header' => 'Header', + ]; + + public function validate() + { + Model::validateRequired('bucketName', $this->bucketName, true); + Model::validateRequired('objectName', $this->objectName, true); + Model::validateRequired('header', $this->header, true); + Model::validatePattern('bucketName', $this->bucketName, '[a-zA-Z0-9-_]+'); + } + + public function toMap() + { + $res = []; + if (null !== $this->bucketName) { + $res['BucketName'] = $this->bucketName; + } + if (null !== $this->objectName) { + $res['ObjectName'] = $this->objectName; + } + if (null !== $this->header) { + $res['Header'] = null !== $this->header ? $this->header->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return PutSymlinkRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['BucketName'])) { + $model->bucketName = $map['BucketName']; + } + if (isset($map['ObjectName'])) { + $model->objectName = $map['ObjectName']; + } + if (isset($map['Header'])) { + $model->header = header::fromMap($map['Header']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutSymlinkRequest/header.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutSymlinkRequest/header.php new file mode 100644 index 00000000..e6aa5a09 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutSymlinkRequest/header.php @@ -0,0 +1,64 @@ + 'x-oss-symlink-target', + 'storageClass' => 'x-oss-storage-class', + ]; + + public function validate() + { + Model::validateRequired('symlinkTarget', $this->symlinkTarget, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->symlinkTarget) { + $res['x-oss-symlink-target'] = $this->symlinkTarget; + } + if (null !== $this->storageClass) { + $res['x-oss-storage-class'] = $this->storageClass; + } + + return $res; + } + + /** + * @param array $map + * + * @return header + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['x-oss-symlink-target'])) { + $model->symlinkTarget = $map['x-oss-symlink-target']; + } + if (isset($map['x-oss-storage-class'])) { + $model->storageClass = $map['x-oss-storage-class']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutSymlinkResponse.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutSymlinkResponse.php new file mode 100644 index 00000000..d6bbe132 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/PutSymlinkResponse.php @@ -0,0 +1,50 @@ + 'x-oss-request-id', + ]; + + public function validate() + { + Model::validateRequired('requestId', $this->requestId, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->requestId) { + $res['x-oss-request-id'] = $this->requestId; + } + + return $res; + } + + /** + * @param array $map + * + * @return PutSymlinkResponse + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['x-oss-request-id'])) { + $model->requestId = $map['x-oss-request-id']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/RestoreObjectRequest.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/RestoreObjectRequest.php new file mode 100644 index 00000000..fa8dc4fe --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/RestoreObjectRequest.php @@ -0,0 +1,66 @@ + 'BucketName', + 'objectName' => 'ObjectName', + ]; + + public function validate() + { + Model::validateRequired('bucketName', $this->bucketName, true); + Model::validateRequired('objectName', $this->objectName, true); + Model::validatePattern('bucketName', $this->bucketName, '[a-zA-Z0-9-_]+'); + } + + public function toMap() + { + $res = []; + if (null !== $this->bucketName) { + $res['BucketName'] = $this->bucketName; + } + if (null !== $this->objectName) { + $res['ObjectName'] = $this->objectName; + } + + return $res; + } + + /** + * @param array $map + * + * @return RestoreObjectRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['BucketName'])) { + $model->bucketName = $map['BucketName']; + } + if (isset($map['ObjectName'])) { + $model->objectName = $map['ObjectName']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/RestoreObjectResponse.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/RestoreObjectResponse.php new file mode 100644 index 00000000..f2aa03d3 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/RestoreObjectResponse.php @@ -0,0 +1,50 @@ + 'x-oss-request-id', + ]; + + public function validate() + { + Model::validateRequired('requestId', $this->requestId, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->requestId) { + $res['x-oss-request-id'] = $this->requestId; + } + + return $res; + } + + /** + * @param array $map + * + * @return RestoreObjectResponse + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['x-oss-request-id'])) { + $model->requestId = $map['x-oss-request-id']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/SelectObjectRequest.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/SelectObjectRequest.php new file mode 100644 index 00000000..8241ece8 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/SelectObjectRequest.php @@ -0,0 +1,97 @@ + 'BucketName', + 'objectName' => 'ObjectName', + 'filter' => 'Filter', + 'body' => 'Body', + ]; + + public function validate() + { + Model::validateRequired('bucketName', $this->bucketName, true); + Model::validateRequired('objectName', $this->objectName, true); + Model::validateRequired('filter', $this->filter, true); + Model::validatePattern('bucketName', $this->bucketName, '[a-zA-Z0-9-_]+'); + } + + public function toMap() + { + $res = []; + if (null !== $this->bucketName) { + $res['BucketName'] = $this->bucketName; + } + if (null !== $this->objectName) { + $res['ObjectName'] = $this->objectName; + } + if (null !== $this->filter) { + $res['Filter'] = null !== $this->filter ? $this->filter->toMap() : null; + } + if (null !== $this->body) { + $res['Body'] = null !== $this->body ? $this->body->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return SelectObjectRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['BucketName'])) { + $model->bucketName = $map['BucketName']; + } + if (isset($map['ObjectName'])) { + $model->objectName = $map['ObjectName']; + } + if (isset($map['Filter'])) { + $model->filter = filter::fromMap($map['Filter']); + } + if (isset($map['Body'])) { + $model->body = body::fromMap($map['Body']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/SelectObjectRequest/body.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/SelectObjectRequest/body.php new file mode 100644 index 00000000..21f28042 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/SelectObjectRequest/body.php @@ -0,0 +1,51 @@ + 'SelectRequest', + ]; + + public function validate() + { + Model::validateRequired('selectRequest', $this->selectRequest, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->selectRequest) { + $res['SelectRequest'] = null !== $this->selectRequest ? $this->selectRequest->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return body + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['SelectRequest'])) { + $model->selectRequest = selectRequest::fromMap($map['SelectRequest']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/SelectObjectRequest/body/selectRequest.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/SelectObjectRequest/body/selectRequest.php new file mode 100644 index 00000000..b2ed62b0 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/SelectObjectRequest/body/selectRequest.php @@ -0,0 +1,94 @@ + 'InputSerialization', + 'outputSerialization' => 'OutputSerialization', + 'options' => 'Options', + 'expression' => 'Expression', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->inputSerialization) { + $res['InputSerialization'] = null !== $this->inputSerialization ? $this->inputSerialization->toMap() : null; + } + if (null !== $this->outputSerialization) { + $res['OutputSerialization'] = null !== $this->outputSerialization ? $this->outputSerialization->toMap() : null; + } + if (null !== $this->options) { + $res['Options'] = null !== $this->options ? $this->options->toMap() : null; + } + if (null !== $this->expression) { + $res['Expression'] = $this->expression; + } + + return $res; + } + + /** + * @param array $map + * + * @return selectRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['InputSerialization'])) { + $model->inputSerialization = inputSerialization::fromMap($map['InputSerialization']); + } + if (isset($map['OutputSerialization'])) { + $model->outputSerialization = outputSerialization::fromMap($map['OutputSerialization']); + } + if (isset($map['Options'])) { + $model->options = options::fromMap($map['Options']); + } + if (isset($map['Expression'])) { + $model->expression = $map['Expression']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/SelectObjectRequest/body/selectRequest/inputSerialization.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/SelectObjectRequest/body/selectRequest/inputSerialization.php new file mode 100644 index 00000000..333efbab --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/SelectObjectRequest/body/selectRequest/inputSerialization.php @@ -0,0 +1,64 @@ + 'CSV', + 'compressionType' => 'CompressionType', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->cSV) { + $res['CSV'] = null !== $this->cSV ? $this->cSV->toMap() : null; + } + if (null !== $this->compressionType) { + $res['CompressionType'] = $this->compressionType; + } + + return $res; + } + + /** + * @param array $map + * + * @return inputSerialization + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['CSV'])) { + $model->cSV = cSV::fromMap($map['CSV']); + } + if (isset($map['CompressionType'])) { + $model->compressionType = $map['CompressionType']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/SelectObjectRequest/body/selectRequest/inputSerialization/cSV.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/SelectObjectRequest/body/selectRequest/inputSerialization/cSV.php new file mode 100644 index 00000000..7435c71a --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/SelectObjectRequest/body/selectRequest/inputSerialization/cSV.php @@ -0,0 +1,119 @@ + 'FileHeaderInfo', + 'recordDelimiter' => 'RecordDelimiter', + 'fieldDelimiter' => 'FieldDelimiter', + 'quoteCharacter' => 'QuoteCharacter', + 'commentCharacter' => 'CommentCharacter', + 'range' => 'Range', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->fileHeaderInfo) { + $res['FileHeaderInfo'] = $this->fileHeaderInfo; + } + if (null !== $this->recordDelimiter) { + $res['RecordDelimiter'] = $this->recordDelimiter; + } + if (null !== $this->fieldDelimiter) { + $res['FieldDelimiter'] = $this->fieldDelimiter; + } + if (null !== $this->quoteCharacter) { + $res['QuoteCharacter'] = $this->quoteCharacter; + } + if (null !== $this->commentCharacter) { + $res['CommentCharacter'] = $this->commentCharacter; + } + if (null !== $this->range) { + $res['Range'] = $this->range; + } + + return $res; + } + + /** + * @param array $map + * + * @return cSV + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['FileHeaderInfo'])) { + $model->fileHeaderInfo = $map['FileHeaderInfo']; + } + if (isset($map['RecordDelimiter'])) { + $model->recordDelimiter = $map['RecordDelimiter']; + } + if (isset($map['FieldDelimiter'])) { + $model->fieldDelimiter = $map['FieldDelimiter']; + } + if (isset($map['QuoteCharacter'])) { + $model->quoteCharacter = $map['QuoteCharacter']; + } + if (isset($map['CommentCharacter'])) { + $model->commentCharacter = $map['CommentCharacter']; + } + if (isset($map['Range'])) { + $model->range = $map['Range']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/SelectObjectRequest/body/selectRequest/options.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/SelectObjectRequest/body/selectRequest/options.php new file mode 100644 index 00000000..b7445136 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/SelectObjectRequest/body/selectRequest/options.php @@ -0,0 +1,63 @@ + 'SkipPartialDataRecord', + 'maxSkippedRecordsAllowed' => 'MaxSkippedRecordsAllowed', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->skipPartialDataRecord) { + $res['SkipPartialDataRecord'] = $this->skipPartialDataRecord; + } + if (null !== $this->maxSkippedRecordsAllowed) { + $res['MaxSkippedRecordsAllowed'] = $this->maxSkippedRecordsAllowed; + } + + return $res; + } + + /** + * @param array $map + * + * @return options + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['SkipPartialDataRecord'])) { + $model->skipPartialDataRecord = $map['SkipPartialDataRecord']; + } + if (isset($map['MaxSkippedRecordsAllowed'])) { + $model->maxSkippedRecordsAllowed = $map['MaxSkippedRecordsAllowed']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/SelectObjectRequest/body/selectRequest/outputSerialization.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/SelectObjectRequest/body/selectRequest/outputSerialization.php new file mode 100644 index 00000000..28407b9d --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/SelectObjectRequest/body/selectRequest/outputSerialization.php @@ -0,0 +1,106 @@ + 'CSV', + 'keepAllColumns' => 'KeepAllColumns', + 'outputRawData' => 'OutputRawData', + 'enablePayloadCrc' => 'EnablePayloadCrc', + 'outputHeader' => 'OutputHeader', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->cSV) { + $res['CSV'] = null !== $this->cSV ? $this->cSV->toMap() : null; + } + if (null !== $this->keepAllColumns) { + $res['KeepAllColumns'] = $this->keepAllColumns; + } + if (null !== $this->outputRawData) { + $res['OutputRawData'] = $this->outputRawData; + } + if (null !== $this->enablePayloadCrc) { + $res['EnablePayloadCrc'] = $this->enablePayloadCrc; + } + if (null !== $this->outputHeader) { + $res['OutputHeader'] = $this->outputHeader; + } + + return $res; + } + + /** + * @param array $map + * + * @return outputSerialization + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['CSV'])) { + $model->cSV = cSV::fromMap($map['CSV']); + } + if (isset($map['KeepAllColumns'])) { + $model->keepAllColumns = $map['KeepAllColumns']; + } + if (isset($map['OutputRawData'])) { + $model->outputRawData = $map['OutputRawData']; + } + if (isset($map['EnablePayloadCrc'])) { + $model->enablePayloadCrc = $map['EnablePayloadCrc']; + } + if (isset($map['OutputHeader'])) { + $model->outputHeader = $map['OutputHeader']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/SelectObjectRequest/body/selectRequest/outputSerialization/cSV.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/SelectObjectRequest/body/selectRequest/outputSerialization/cSV.php new file mode 100644 index 00000000..d68ff88a --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/SelectObjectRequest/body/selectRequest/outputSerialization/cSV.php @@ -0,0 +1,63 @@ + 'RecordDelimiter', + 'fieldDelimiter' => 'FieldDelimiter', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->recordDelimiter) { + $res['RecordDelimiter'] = $this->recordDelimiter; + } + if (null !== $this->fieldDelimiter) { + $res['FieldDelimiter'] = $this->fieldDelimiter; + } + + return $res; + } + + /** + * @param array $map + * + * @return cSV + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['RecordDelimiter'])) { + $model->recordDelimiter = $map['RecordDelimiter']; + } + if (isset($map['FieldDelimiter'])) { + $model->fieldDelimiter = $map['FieldDelimiter']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/SelectObjectRequest/filter.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/SelectObjectRequest/filter.php new file mode 100644 index 00000000..c295a673 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/SelectObjectRequest/filter.php @@ -0,0 +1,50 @@ + 'x-oss-process', + ]; + + public function validate() + { + Model::validateRequired('porcess', $this->porcess, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->porcess) { + $res['x-oss-process'] = $this->porcess; + } + + return $res; + } + + /** + * @param array $map + * + * @return filter + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['x-oss-process'])) { + $model->porcess = $map['x-oss-process']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/SelectObjectResponse.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/SelectObjectResponse.php new file mode 100644 index 00000000..0701c504 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/SelectObjectResponse.php @@ -0,0 +1,50 @@ + 'x-oss-request-id', + ]; + + public function validate() + { + Model::validateRequired('requestId', $this->requestId, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->requestId) { + $res['x-oss-request-id'] = $this->requestId; + } + + return $res; + } + + /** + * @param array $map + * + * @return SelectObjectResponse + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['x-oss-request-id'])) { + $model->requestId = $map['x-oss-request-id']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/UploadPartCopyRequest.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/UploadPartCopyRequest.php new file mode 100644 index 00000000..3f632aee --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/UploadPartCopyRequest.php @@ -0,0 +1,98 @@ + 'BucketName', + 'objectName' => 'ObjectName', + 'filter' => 'Filter', + 'header' => 'Header', + ]; + + public function validate() + { + Model::validateRequired('bucketName', $this->bucketName, true); + Model::validateRequired('objectName', $this->objectName, true); + Model::validateRequired('filter', $this->filter, true); + Model::validateRequired('header', $this->header, true); + Model::validatePattern('bucketName', $this->bucketName, '[a-zA-Z0-9-_]+'); + } + + public function toMap() + { + $res = []; + if (null !== $this->bucketName) { + $res['BucketName'] = $this->bucketName; + } + if (null !== $this->objectName) { + $res['ObjectName'] = $this->objectName; + } + if (null !== $this->filter) { + $res['Filter'] = null !== $this->filter ? $this->filter->toMap() : null; + } + if (null !== $this->header) { + $res['Header'] = null !== $this->header ? $this->header->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return UploadPartCopyRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['BucketName'])) { + $model->bucketName = $map['BucketName']; + } + if (isset($map['ObjectName'])) { + $model->objectName = $map['ObjectName']; + } + if (isset($map['Filter'])) { + $model->filter = filter::fromMap($map['Filter']); + } + if (isset($map['Header'])) { + $model->header = header::fromMap($map['Header']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/UploadPartCopyRequest/filter.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/UploadPartCopyRequest/filter.php new file mode 100644 index 00000000..04b81ea6 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/UploadPartCopyRequest/filter.php @@ -0,0 +1,65 @@ + 'partNumber', + 'uploadId' => 'uploadId', + ]; + + public function validate() + { + Model::validateRequired('partNumber', $this->partNumber, true); + Model::validateRequired('uploadId', $this->uploadId, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->partNumber) { + $res['partNumber'] = $this->partNumber; + } + if (null !== $this->uploadId) { + $res['uploadId'] = $this->uploadId; + } + + return $res; + } + + /** + * @param array $map + * + * @return filter + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['partNumber'])) { + $model->partNumber = $map['partNumber']; + } + if (isset($map['uploadId'])) { + $model->uploadId = $map['uploadId']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/UploadPartCopyRequest/header.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/UploadPartCopyRequest/header.php new file mode 100644 index 00000000..c12ccdaf --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/UploadPartCopyRequest/header.php @@ -0,0 +1,121 @@ + 'x-oss-copy-source', + 'copySourceRange' => 'x-oss-copy-source-range', + 'copySourceIfMatch' => 'x-oss-copy-source-if-match', + 'copySourceIfNoneMatch' => 'x-oss-copy-source-if-none-match', + 'copySourceIfUnmodifiedSince' => 'x-oss-copy-source-if-unmodified-since', + 'copySourceIfModifiedSince' => 'x-oss-copy-source-if-modified-since', + ]; + + public function validate() + { + Model::validateRequired('copySource', $this->copySource, true); + Model::validateRequired('copySourceRange', $this->copySourceRange, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->copySource) { + $res['x-oss-copy-source'] = $this->copySource; + } + if (null !== $this->copySourceRange) { + $res['x-oss-copy-source-range'] = $this->copySourceRange; + } + if (null !== $this->copySourceIfMatch) { + $res['x-oss-copy-source-if-match'] = $this->copySourceIfMatch; + } + if (null !== $this->copySourceIfNoneMatch) { + $res['x-oss-copy-source-if-none-match'] = $this->copySourceIfNoneMatch; + } + if (null !== $this->copySourceIfUnmodifiedSince) { + $res['x-oss-copy-source-if-unmodified-since'] = $this->copySourceIfUnmodifiedSince; + } + if (null !== $this->copySourceIfModifiedSince) { + $res['x-oss-copy-source-if-modified-since'] = $this->copySourceIfModifiedSince; + } + + return $res; + } + + /** + * @param array $map + * + * @return header + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['x-oss-copy-source'])) { + $model->copySource = $map['x-oss-copy-source']; + } + if (isset($map['x-oss-copy-source-range'])) { + $model->copySourceRange = $map['x-oss-copy-source-range']; + } + if (isset($map['x-oss-copy-source-if-match'])) { + $model->copySourceIfMatch = $map['x-oss-copy-source-if-match']; + } + if (isset($map['x-oss-copy-source-if-none-match'])) { + $model->copySourceIfNoneMatch = $map['x-oss-copy-source-if-none-match']; + } + if (isset($map['x-oss-copy-source-if-unmodified-since'])) { + $model->copySourceIfUnmodifiedSince = $map['x-oss-copy-source-if-unmodified-since']; + } + if (isset($map['x-oss-copy-source-if-modified-since'])) { + $model->copySourceIfModifiedSince = $map['x-oss-copy-source-if-modified-since']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/UploadPartCopyResponse.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/UploadPartCopyResponse.php new file mode 100644 index 00000000..41508f6c --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/UploadPartCopyResponse.php @@ -0,0 +1,66 @@ + 'x-oss-request-id', + 'copyPartResult' => 'CopyPartResult', + ]; + + public function validate() + { + Model::validateRequired('requestId', $this->requestId, true); + Model::validateRequired('copyPartResult', $this->copyPartResult, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->requestId) { + $res['x-oss-request-id'] = $this->requestId; + } + if (null !== $this->copyPartResult) { + $res['CopyPartResult'] = null !== $this->copyPartResult ? $this->copyPartResult->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return UploadPartCopyResponse + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['x-oss-request-id'])) { + $model->requestId = $map['x-oss-request-id']; + } + if (isset($map['CopyPartResult'])) { + $model->copyPartResult = copyPartResult::fromMap($map['CopyPartResult']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/UploadPartCopyResponse/copyPartResult.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/UploadPartCopyResponse/copyPartResult.php new file mode 100644 index 00000000..25440769 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/UploadPartCopyResponse/copyPartResult.php @@ -0,0 +1,63 @@ + 'LastModified', + 'eTag' => 'ETag', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->lastModified) { + $res['LastModified'] = $this->lastModified; + } + if (null !== $this->eTag) { + $res['ETag'] = $this->eTag; + } + + return $res; + } + + /** + * @param array $map + * + * @return copyPartResult + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['LastModified'])) { + $model->lastModified = $map['LastModified']; + } + if (isset($map['ETag'])) { + $model->eTag = $map['ETag']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/UploadPartRequest.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/UploadPartRequest.php new file mode 100644 index 00000000..dafe3dd9 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/UploadPartRequest.php @@ -0,0 +1,97 @@ + 'BucketName', + 'objectName' => 'ObjectName', + 'body' => 'body', + 'filter' => 'Filter', + ]; + + public function validate() + { + Model::validateRequired('bucketName', $this->bucketName, true); + Model::validateRequired('objectName', $this->objectName, true); + Model::validateRequired('filter', $this->filter, true); + Model::validatePattern('bucketName', $this->bucketName, '[a-zA-Z0-9-_]+'); + } + + public function toMap() + { + $res = []; + if (null !== $this->bucketName) { + $res['BucketName'] = $this->bucketName; + } + if (null !== $this->objectName) { + $res['ObjectName'] = $this->objectName; + } + if (null !== $this->body) { + $res['body'] = $this->body; + } + if (null !== $this->filter) { + $res['Filter'] = null !== $this->filter ? $this->filter->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return UploadPartRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['BucketName'])) { + $model->bucketName = $map['BucketName']; + } + if (isset($map['ObjectName'])) { + $model->objectName = $map['ObjectName']; + } + if (isset($map['body'])) { + $model->body = $map['body']; + } + if (isset($map['Filter'])) { + $model->filter = filter::fromMap($map['Filter']); + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/UploadPartRequest/filter.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/UploadPartRequest/filter.php new file mode 100644 index 00000000..eec576b8 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/UploadPartRequest/filter.php @@ -0,0 +1,65 @@ + 'partNumber', + 'uploadId' => 'uploadId', + ]; + + public function validate() + { + Model::validateRequired('partNumber', $this->partNumber, true); + Model::validateRequired('uploadId', $this->uploadId, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->partNumber) { + $res['partNumber'] = $this->partNumber; + } + if (null !== $this->uploadId) { + $res['uploadId'] = $this->uploadId; + } + + return $res; + } + + /** + * @param array $map + * + * @return filter + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['partNumber'])) { + $model->partNumber = $map['partNumber']; + } + if (isset($map['uploadId'])) { + $model->uploadId = $map['uploadId']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-sdk/src/OSS/UploadPartResponse.php b/vendor/alibabacloud/tea-oss-sdk/src/OSS/UploadPartResponse.php new file mode 100644 index 00000000..5fb65f89 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-sdk/src/OSS/UploadPartResponse.php @@ -0,0 +1,50 @@ + 'x-oss-request-id', + ]; + + public function validate() + { + Model::validateRequired('requestId', $this->requestId, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->requestId) { + $res['x-oss-request-id'] = $this->requestId; + } + + return $res; + } + + /** + * @param array $map + * + * @return UploadPartResponse + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['x-oss-request-id'])) { + $model->requestId = $map['x-oss-request-id']; + } + + return $model; + } +} diff --git a/vendor/alibabacloud/tea-oss-utils/.gitignore b/vendor/alibabacloud/tea-oss-utils/.gitignore new file mode 100644 index 00000000..84837df3 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-utils/.gitignore @@ -0,0 +1,12 @@ +composer.phar +/vendor/ + +# Commit your application's lock file https://getcomposer.org/doc/01-basic-usage.md#commit-your-composer-lock-file-to-version-control +# You may choose to ignore a library lock file http://getcomposer.org/doc/02-libraries.md#lock-file +composer.lock + +.idea +.DS_Store + +cache/ +*.cache diff --git a/vendor/alibabacloud/tea-oss-utils/.php_cs.dist b/vendor/alibabacloud/tea-oss-utils/.php_cs.dist new file mode 100644 index 00000000..8617ec2f --- /dev/null +++ b/vendor/alibabacloud/tea-oss-utils/.php_cs.dist @@ -0,0 +1,65 @@ +setRiskyAllowed(true) + ->setIndent(' ') + ->setRules([ + '@PSR2' => true, + '@PhpCsFixer' => true, + '@Symfony:risky' => true, + 'concat_space' => ['spacing' => 'one'], + 'array_syntax' => ['syntax' => 'short'], + 'array_indentation' => true, + 'combine_consecutive_unsets' => true, + 'method_separation' => true, + 'single_quote' => true, + 'declare_equal_normalize' => true, + 'function_typehint_space' => true, + 'hash_to_slash_comment' => true, + 'include' => true, + 'lowercase_cast' => true, + 'no_multiline_whitespace_before_semicolons' => true, + 'no_leading_import_slash' => true, + 'no_multiline_whitespace_around_double_arrow' => true, + 'no_spaces_around_offset' => true, + 'no_unneeded_control_parentheses' => true, + 'no_unused_imports' => true, + 'no_whitespace_before_comma_in_array' => true, + 'no_whitespace_in_blank_line' => true, + 'object_operator_without_whitespace' => true, + 'single_blank_line_before_namespace' => true, + 'single_class_element_per_statement' => true, + 'space_after_semicolon' => true, + 'standardize_not_equals' => true, + 'ternary_operator_spaces' => true, + 'trailing_comma_in_multiline_array' => true, + 'trim_array_spaces' => true, + 'unary_operator_spaces' => true, + 'whitespace_after_comma_in_array' => true, + 'no_extra_consecutive_blank_lines' => [ + 'curly_brace_block', + 'extra', + 'parenthesis_brace_block', + 'square_brace_block', + 'throw', + 'use', + ], + 'binary_operator_spaces' => [ + 'align_double_arrow' => true, + 'align_equals' => true, + ], + 'braces' => [ + 'allow_single_line_closure' => true, + ], + ]) + ->setFinder( + PhpCsFixer\Finder::create() + ->exclude('vendor') + ->exclude('tests') + ->in(__DIR__) + ); diff --git a/vendor/alibabacloud/tea-oss-utils/README-CN.md b/vendor/alibabacloud/tea-oss-utils/README-CN.md new file mode 100644 index 00000000..a0d2af2b --- /dev/null +++ b/vendor/alibabacloud/tea-oss-utils/README-CN.md @@ -0,0 +1,31 @@ +English | [简体中文](README-CN.md) + +![](https://aliyunsdk-pages.alicdn.com/icons/AlibabaCloud.svg) + +## Alibaba Cloud Tea OSS Utils Library for PHP + +## Installation + +### Composer + +```bash +composer require alibabacloud/tea-oss-utils +``` + +## Issues + +[Opening an Issue](https://github.com/aliyun/alibabacloud-oss-sdk/issues/new), Issues not conforming to the guidelines may be closed immediately. + +## Changelog + +Detailed changes for each release are documented in the [release notes](./ChangeLog.txt). + +## References + +* [Latest Release](https://github.com/aliyun/alibabacloud-oss-sdk) + +## License + +[Apache-2.0](http://www.apache.org/licenses/LICENSE-2.0) + +Copyright (c) 2009-present, Alibaba Cloud All rights reserved. diff --git a/vendor/alibabacloud/tea-oss-utils/README.md b/vendor/alibabacloud/tea-oss-utils/README.md new file mode 100644 index 00000000..bb433cbe --- /dev/null +++ b/vendor/alibabacloud/tea-oss-utils/README.md @@ -0,0 +1,31 @@ +[English](README.md) | 简体中文 + +![](https://aliyunsdk-pages.alicdn.com/icons/AlibabaCloud.svg) + +## Alibaba Cloud Tea OSS Utils Library for PHP + +## 安装 + +### Composer + +```bash +composer require alibabacloud/tea-oss-utils +``` + +## 问题 + +[提交 Issue](https://github.com/aliyun/alibabacloud-oss-sdk/issues/new),不符合指南的问题可能会立即关闭。 + +## 发行说明 + +每个版本的详细更改记录在[发行说明](./ChangeLog.txt)中。 + +## 相关 + +* [最新源码](https://github.com/aliyun/alibabacloud-oss-sdk) + +## 许可证 + +[Apache-2.0](http://www.apache.org/licenses/LICENSE-2.0) + +Copyright (c) 2009-present, Alibaba Cloud All rights reserved. diff --git a/vendor/alibabacloud/tea-oss-utils/composer.json b/vendor/alibabacloud/tea-oss-utils/composer.json new file mode 100644 index 00000000..1c69d19b --- /dev/null +++ b/vendor/alibabacloud/tea-oss-utils/composer.json @@ -0,0 +1,45 @@ +{ + "name": "alibabacloud/tea-oss-utils", + "description": "Alibaba Cloud Tea OSS Utils Library for PHP", + "type": "library", + "license": "Apache-2.0", + "authors": [ + { + "name": "Alibaba Cloud SDK", + "email": "sdk-team@alibabacloud.com" + } + ], + "require": { + "php": ">5.5", + "alibabacloud/tea": "^3.0", + "guzzlehttp/psr7": "^1.0" + }, + "require-dev": { + "phpunit/phpunit": "^4.8.35|^5.4.3|^9.4" + }, + "autoload": { + "psr-4": { + "AlibabaCloud\\Tea\\OSSUtils\\": "src" + } + }, + "autoload-dev": { + "psr-4": { + "AlibabaCloud\\Tea\\OSSUtils\\Tests\\": "tests" + } + }, + "scripts": { + "fixer": "php-cs-fixer fix ./", + "test": [ + "@clearCache", + "./vendor/bin/phpunit --colors=always" + ], + "clearCache": "rm -rf cache/*" + }, + "config": { + "sort-packages": true, + "preferred-install": "dist", + "optimize-autoloader": true + }, + "prefer-stable": true, + "minimum-stability": "dev" +} diff --git a/vendor/alibabacloud/tea-oss-utils/mime.types.php b/vendor/alibabacloud/tea-oss-utils/mime.types.php new file mode 100644 index 00000000..27eaabfd --- /dev/null +++ b/vendor/alibabacloud/tea-oss-utils/mime.types.php @@ -0,0 +1,7299 @@ + + array ( + 'wof' => + array ( + 0 => 'application/font-woff', + ), + 'php' => + array ( + 0 => 'application/php', + 1 => 'application/x-httpd-php', + 2 => 'application/x-httpd-php-source', + 3 => 'application/x-php', + 4 => 'text/php', + 5 => 'text/x-php', + ), + 'otf' => + array ( + 0 => 'application/x-font-otf', + 1 => 'font/otf', + ), + 'ttf' => + array ( + 0 => 'application/x-font-ttf', + 1 => 'font/ttf', + ), + 'ttc' => + array ( + 0 => 'application/x-font-ttf', + 1 => 'font/collection', + ), + 'zip' => + array ( + 0 => 'application/x-gzip', + 1 => 'application/zip', + ), + 'amr' => + array ( + 0 => 'audio/amr', + ), + 'mp3' => + array ( + 0 => 'audio/mpeg', + ), + 'mpga' => + array ( + 0 => 'audio/mpeg', + ), + 'mp2' => + array ( + 0 => 'audio/mpeg', + ), + 'mp2a' => + array ( + 0 => 'audio/mpeg', + ), + 'm2a' => + array ( + 0 => 'audio/mpeg', + ), + 'm3a' => + array ( + 0 => 'audio/mpeg', + ), + 'jpg' => + array ( + 0 => 'image/jpeg', + ), + 'jpeg' => + array ( + 0 => 'image/jpeg', + ), + 'jpe' => + array ( + 0 => 'image/jpeg', + ), + 'bmp' => + array ( + 0 => 'image/x-ms-bmp', + 1 => 'image/bmp', + ), + 'ez' => + array ( + 0 => 'application/andrew-inset', + ), + 'aw' => + array ( + 0 => 'application/applixware', + ), + 'atom' => + array ( + 0 => 'application/atom+xml', + ), + 'atomcat' => + array ( + 0 => 'application/atomcat+xml', + ), + 'atomsvc' => + array ( + 0 => 'application/atomsvc+xml', + ), + 'ccxml' => + array ( + 0 => 'application/ccxml+xml', + ), + 'cdmia' => + array ( + 0 => 'application/cdmi-capability', + ), + 'cdmic' => + array ( + 0 => 'application/cdmi-container', + ), + 'cdmid' => + array ( + 0 => 'application/cdmi-domain', + ), + 'cdmio' => + array ( + 0 => 'application/cdmi-object', + ), + 'cdmiq' => + array ( + 0 => 'application/cdmi-queue', + ), + 'cu' => + array ( + 0 => 'application/cu-seeme', + ), + 'davmount' => + array ( + 0 => 'application/davmount+xml', + ), + 'dbk' => + array ( + 0 => 'application/docbook+xml', + ), + 'dssc' => + array ( + 0 => 'application/dssc+der', + ), + 'xdssc' => + array ( + 0 => 'application/dssc+xml', + ), + 'ecma' => + array ( + 0 => 'application/ecmascript', + ), + 'emma' => + array ( + 0 => 'application/emma+xml', + ), + 'epub' => + array ( + 0 => 'application/epub+zip', + ), + 'exi' => + array ( + 0 => 'application/exi', + ), + 'pfr' => + array ( + 0 => 'application/font-tdpfr', + ), + 'gml' => + array ( + 0 => 'application/gml+xml', + ), + 'gpx' => + array ( + 0 => 'application/gpx+xml', + ), + 'gxf' => + array ( + 0 => 'application/gxf', + ), + 'stk' => + array ( + 0 => 'application/hyperstudio', + ), + 'ink' => + array ( + 0 => 'application/inkml+xml', + ), + 'inkml' => + array ( + 0 => 'application/inkml+xml', + ), + 'ipfix' => + array ( + 0 => 'application/ipfix', + ), + 'jar' => + array ( + 0 => 'application/java-archive', + ), + 'ser' => + array ( + 0 => 'application/java-serialized-object', + ), + 'class' => + array ( + 0 => 'application/java-vm', + ), + 'js' => + array ( + 0 => 'application/javascript', + ), + 'json' => + array ( + 0 => 'application/json', + ), + 'jsonml' => + array ( + 0 => 'application/jsonml+json', + ), + 'lostxml' => + array ( + 0 => 'application/lost+xml', + ), + 'hqx' => + array ( + 0 => 'application/mac-binhex40', + ), + 'cpt' => + array ( + 0 => 'application/mac-compactpro', + ), + 'mads' => + array ( + 0 => 'application/mads+xml', + ), + 'mrc' => + array ( + 0 => 'application/marc', + ), + 'mrcx' => + array ( + 0 => 'application/marcxml+xml', + ), + 'ma' => + array ( + 0 => 'application/mathematica', + ), + 'nb' => + array ( + 0 => 'application/mathematica', + ), + 'mb' => + array ( + 0 => 'application/mathematica', + ), + 'mathml' => + array ( + 0 => 'application/mathml+xml', + ), + 'mbox' => + array ( + 0 => 'application/mbox', + ), + 'mscml' => + array ( + 0 => 'application/mediaservercontrol+xml', + ), + 'metalink' => + array ( + 0 => 'application/metalink+xml', + ), + 'meta4' => + array ( + 0 => 'application/metalink4+xml', + ), + 'mets' => + array ( + 0 => 'application/mets+xml', + ), + 'mods' => + array ( + 0 => 'application/mods+xml', + ), + 'm21' => + array ( + 0 => 'application/mp21', + ), + 'mp21' => + array ( + 0 => 'application/mp21', + ), + 'mp4s' => + array ( + 0 => 'application/mp4', + ), + 'doc' => + array ( + 0 => 'application/msword', + ), + 'dot' => + array ( + 0 => 'application/msword', + ), + 'mxf' => + array ( + 0 => 'application/mxf', + ), + 'bin' => + array ( + 0 => 'application/octet-stream', + ), + 'dms' => + array ( + 0 => 'application/octet-stream', + ), + 'lrf' => + array ( + 0 => 'application/octet-stream', + ), + 'mar' => + array ( + 0 => 'application/octet-stream', + ), + 'so' => + array ( + 0 => 'application/octet-stream', + ), + 'dist' => + array ( + 0 => 'application/octet-stream', + ), + 'distz' => + array ( + 0 => 'application/octet-stream', + ), + 'pkg' => + array ( + 0 => 'application/octet-stream', + ), + 'bpk' => + array ( + 0 => 'application/octet-stream', + ), + 'dump' => + array ( + 0 => 'application/octet-stream', + ), + 'elc' => + array ( + 0 => 'application/octet-stream', + ), + 'deploy' => + array ( + 0 => 'application/octet-stream', + ), + 'oda' => + array ( + 0 => 'application/oda', + ), + 'opf' => + array ( + 0 => 'application/oebps-package+xml', + ), + 'ogx' => + array ( + 0 => 'application/ogg', + ), + 'omdoc' => + array ( + 0 => 'application/omdoc+xml', + ), + 'onetoc' => + array ( + 0 => 'application/onenote', + ), + 'onetoc2' => + array ( + 0 => 'application/onenote', + ), + 'onetmp' => + array ( + 0 => 'application/onenote', + ), + 'onepkg' => + array ( + 0 => 'application/onenote', + ), + 'oxps' => + array ( + 0 => 'application/oxps', + ), + 'xer' => + array ( + 0 => 'application/patch-ops-error+xml', + ), + 'pdf' => + array ( + 0 => 'application/pdf', + ), + 'pgp' => + array ( + 0 => 'application/pgp-encrypted', + ), + 'asc' => + array ( + 0 => 'application/pgp-signature', + ), + 'sig' => + array ( + 0 => 'application/pgp-signature', + ), + 'prf' => + array ( + 0 => 'application/pics-rules', + ), + 'p10' => + array ( + 0 => 'application/pkcs10', + ), + 'p7m' => + array ( + 0 => 'application/pkcs7-mime', + ), + 'p7c' => + array ( + 0 => 'application/pkcs7-mime', + ), + 'p7s' => + array ( + 0 => 'application/pkcs7-signature', + ), + 'p8' => + array ( + 0 => 'application/pkcs8', + ), + 'ac' => + array ( + 0 => 'application/pkix-attr-cert', + ), + 'cer' => + array ( + 0 => 'application/pkix-cert', + ), + 'crl' => + array ( + 0 => 'application/pkix-crl', + ), + 'pkipath' => + array ( + 0 => 'application/pkix-pkipath', + ), + 'pki' => + array ( + 0 => 'application/pkixcmp', + ), + 'pls' => + array ( + 0 => 'application/pls+xml', + ), + 'ai' => + array ( + 0 => 'application/postscript', + ), + 'eps' => + array ( + 0 => 'application/postscript', + ), + 'ps' => + array ( + 0 => 'application/postscript', + ), + 'cww' => + array ( + 0 => 'application/prs.cww', + ), + 'pskcxml' => + array ( + 0 => 'application/pskc+xml', + ), + 'rdf' => + array ( + 0 => 'application/rdf+xml', + ), + 'rif' => + array ( + 0 => 'application/reginfo+xml', + ), + 'rnc' => + array ( + 0 => 'application/relax-ng-compact-syntax', + ), + 'rl' => + array ( + 0 => 'application/resource-lists+xml', + ), + 'rld' => + array ( + 0 => 'application/resource-lists-diff+xml', + ), + 'rs' => + array ( + 0 => 'application/rls-services+xml', + ), + 'gbr' => + array ( + 0 => 'application/rpki-ghostbusters', + ), + 'mft' => + array ( + 0 => 'application/rpki-manifest', + ), + 'roa' => + array ( + 0 => 'application/rpki-roa', + ), + 'rsd' => + array ( + 0 => 'application/rsd+xml', + ), + 'rss' => + array ( + 0 => 'application/rss+xml', + ), + 'rtf' => + array ( + 0 => 'application/rtf', + ), + 'sbml' => + array ( + 0 => 'application/sbml+xml', + ), + 'scq' => + array ( + 0 => 'application/scvp-cv-request', + ), + 'scs' => + array ( + 0 => 'application/scvp-cv-response', + ), + 'spq' => + array ( + 0 => 'application/scvp-vp-request', + ), + 'spp' => + array ( + 0 => 'application/scvp-vp-response', + ), + 'sdp' => + array ( + 0 => 'application/sdp', + ), + 'setpay' => + array ( + 0 => 'application/set-payment-initiation', + ), + 'setreg' => + array ( + 0 => 'application/set-registration-initiation', + ), + 'shf' => + array ( + 0 => 'application/shf+xml', + ), + 'smi' => + array ( + 0 => 'application/smil+xml', + ), + 'smil' => + array ( + 0 => 'application/smil+xml', + ), + 'rq' => + array ( + 0 => 'application/sparql-query', + ), + 'srx' => + array ( + 0 => 'application/sparql-results+xml', + ), + 'gram' => + array ( + 0 => 'application/srgs', + ), + 'grxml' => + array ( + 0 => 'application/srgs+xml', + ), + 'sru' => + array ( + 0 => 'application/sru+xml', + ), + 'ssdl' => + array ( + 0 => 'application/ssdl+xml', + ), + 'ssml' => + array ( + 0 => 'application/ssml+xml', + ), + 'tei' => + array ( + 0 => 'application/tei+xml', + ), + 'teicorpus' => + array ( + 0 => 'application/tei+xml', + ), + 'tfi' => + array ( + 0 => 'application/thraud+xml', + ), + 'tsd' => + array ( + 0 => 'application/timestamped-data', + ), + 'plb' => + array ( + 0 => 'application/vnd.3gpp.pic-bw-large', + ), + 'psb' => + array ( + 0 => 'application/vnd.3gpp.pic-bw-small', + ), + 'pvb' => + array ( + 0 => 'application/vnd.3gpp.pic-bw-var', + ), + 'tcap' => + array ( + 0 => 'application/vnd.3gpp2.tcap', + ), + 'pwn' => + array ( + 0 => 'application/vnd.3m.post-it-notes', + ), + 'aso' => + array ( + 0 => 'application/vnd.accpac.simply.aso', + ), + 'imp' => + array ( + 0 => 'application/vnd.accpac.simply.imp', + ), + 'acu' => + array ( + 0 => 'application/vnd.acucobol', + ), + 'atc' => + array ( + 0 => 'application/vnd.acucorp', + ), + 'acutc' => + array ( + 0 => 'application/vnd.acucorp', + ), + 'air' => + array ( + 0 => 'application/vnd.adobe.air-application-installer-package+zip', + ), + 'fcdt' => + array ( + 0 => 'application/vnd.adobe.formscentral.fcdt', + ), + 'fxp' => + array ( + 0 => 'application/vnd.adobe.fxp', + ), + 'fxpl' => + array ( + 0 => 'application/vnd.adobe.fxp', + ), + 'xdp' => + array ( + 0 => 'application/vnd.adobe.xdp+xml', + ), + 'xfdf' => + array ( + 0 => 'application/vnd.adobe.xfdf', + ), + 'ahead' => + array ( + 0 => 'application/vnd.ahead.space', + ), + 'azf' => + array ( + 0 => 'application/vnd.airzip.filesecure.azf', + ), + 'azs' => + array ( + 0 => 'application/vnd.airzip.filesecure.azs', + ), + 'azw' => + array ( + 0 => 'application/vnd.amazon.ebook', + ), + 'acc' => + array ( + 0 => 'application/vnd.americandynamics.acc', + ), + 'ami' => + array ( + 0 => 'application/vnd.amiga.ami', + ), + 'apk' => + array ( + 0 => 'application/vnd.android.package-archive', + ), + 'cii' => + array ( + 0 => 'application/vnd.anser-web-certificate-issue-initiation', + ), + 'fti' => + array ( + 0 => 'application/vnd.anser-web-funds-transfer-initiation', + ), + 'atx' => + array ( + 0 => 'application/vnd.antix.game-component', + ), + 'mpkg' => + array ( + 0 => 'application/vnd.apple.installer+xml', + ), + 'm3u8' => + array ( + 0 => 'application/vnd.apple.mpegurl', + ), + 'swi' => + array ( + 0 => 'application/vnd.aristanetworks.swi', + ), + 'iota' => + array ( + 0 => 'application/vnd.astraea-software.iota', + ), + 'aep' => + array ( + 0 => 'application/vnd.audiograph', + ), + 'mpm' => + array ( + 0 => 'application/vnd.blueice.multipass', + ), + 'bmi' => + array ( + 0 => 'application/vnd.bmi', + ), + 'rep' => + array ( + 0 => 'application/vnd.businessobjects', + ), + 'cdxml' => + array ( + 0 => 'application/vnd.chemdraw+xml', + ), + 'mmd' => + array ( + 0 => 'application/vnd.chipnuts.karaoke-mmd', + ), + 'cdy' => + array ( + 0 => 'application/vnd.cinderella', + ), + 'cla' => + array ( + 0 => 'application/vnd.claymore', + ), + 'rp9' => + array ( + 0 => 'application/vnd.cloanto.rp9', + ), + 'c4g' => + array ( + 0 => 'application/vnd.clonk.c4group', + ), + 'c4d' => + array ( + 0 => 'application/vnd.clonk.c4group', + ), + 'c4f' => + array ( + 0 => 'application/vnd.clonk.c4group', + ), + 'c4p' => + array ( + 0 => 'application/vnd.clonk.c4group', + ), + 'c4u' => + array ( + 0 => 'application/vnd.clonk.c4group', + ), + 'c11amc' => + array ( + 0 => 'application/vnd.cluetrust.cartomobile-config', + ), + 'c11amz' => + array ( + 0 => 'application/vnd.cluetrust.cartomobile-config-pkg', + ), + 'csp' => + array ( + 0 => 'application/vnd.commonspace', + ), + 'cdbcmsg' => + array ( + 0 => 'application/vnd.contact.cmsg', + ), + 'cmc' => + array ( + 0 => 'application/vnd.cosmocaller', + ), + 'clkx' => + array ( + 0 => 'application/vnd.crick.clicker', + ), + 'clkk' => + array ( + 0 => 'application/vnd.crick.clicker.keyboard', + ), + 'clkp' => + array ( + 0 => 'application/vnd.crick.clicker.palette', + ), + 'clkt' => + array ( + 0 => 'application/vnd.crick.clicker.template', + ), + 'clkw' => + array ( + 0 => 'application/vnd.crick.clicker.wordbank', + ), + 'wbs' => + array ( + 0 => 'application/vnd.criticaltools.wbs+xml', + ), + 'pml' => + array ( + 0 => 'application/vnd.ctc-posml', + ), + 'ppd' => + array ( + 0 => 'application/vnd.cups-ppd', + ), + 'car' => + array ( + 0 => 'application/vnd.curl.car', + ), + 'pcurl' => + array ( + 0 => 'application/vnd.curl.pcurl', + ), + 'dart' => + array ( + 0 => 'application/vnd.dart', + ), + 'rdz' => + array ( + 0 => 'application/vnd.data-vision.rdz', + ), + 'uvf' => + array ( + 0 => 'application/vnd.dece.data', + ), + 'uvvf' => + array ( + 0 => 'application/vnd.dece.data', + ), + 'uvd' => + array ( + 0 => 'application/vnd.dece.data', + ), + 'uvvd' => + array ( + 0 => 'application/vnd.dece.data', + ), + 'uvt' => + array ( + 0 => 'application/vnd.dece.ttml+xml', + ), + 'uvvt' => + array ( + 0 => 'application/vnd.dece.ttml+xml', + ), + 'uvx' => + array ( + 0 => 'application/vnd.dece.unspecified', + ), + 'uvvx' => + array ( + 0 => 'application/vnd.dece.unspecified', + ), + 'uvz' => + array ( + 0 => 'application/vnd.dece.zip', + ), + 'uvvz' => + array ( + 0 => 'application/vnd.dece.zip', + ), + 'fe_launch' => + array ( + 0 => 'application/vnd.denovo.fcselayout-link', + ), + 'dna' => + array ( + 0 => 'application/vnd.dna', + ), + 'mlp' => + array ( + 0 => 'application/vnd.dolby.mlp', + ), + 'dpg' => + array ( + 0 => 'application/vnd.dpgraph', + ), + 'dfac' => + array ( + 0 => 'application/vnd.dreamfactory', + ), + 'kpxx' => + array ( + 0 => 'application/vnd.ds-keypoint', + ), + 'ait' => + array ( + 0 => 'application/vnd.dvb.ait', + ), + 'svc' => + array ( + 0 => 'application/vnd.dvb.service', + ), + 'geo' => + array ( + 0 => 'application/vnd.dynageo', + ), + 'mag' => + array ( + 0 => 'application/vnd.ecowin.chart', + ), + 'nml' => + array ( + 0 => 'application/vnd.enliven', + ), + 'esf' => + array ( + 0 => 'application/vnd.epson.esf', + ), + 'msf' => + array ( + 0 => 'application/vnd.epson.msf', + ), + 'qam' => + array ( + 0 => 'application/vnd.epson.quickanime', + ), + 'slt' => + array ( + 0 => 'application/vnd.epson.salt', + ), + 'ssf' => + array ( + 0 => 'application/vnd.epson.ssf', + ), + 'es3' => + array ( + 0 => 'application/vnd.eszigno3+xml', + ), + 'et3' => + array ( + 0 => 'application/vnd.eszigno3+xml', + ), + 'ez2' => + array ( + 0 => 'application/vnd.ezpix-album', + ), + 'ez3' => + array ( + 0 => 'application/vnd.ezpix-package', + ), + 'fdf' => + array ( + 0 => 'application/vnd.fdf', + ), + 'mseed' => + array ( + 0 => 'application/vnd.fdsn.mseed', + ), + 'seed' => + array ( + 0 => 'application/vnd.fdsn.seed', + ), + 'dataless' => + array ( + 0 => 'application/vnd.fdsn.seed', + ), + 'gph' => + array ( + 0 => 'application/vnd.flographit', + ), + 'ftc' => + array ( + 0 => 'application/vnd.fluxtime.clip', + ), + 'fm' => + array ( + 0 => 'application/vnd.framemaker', + ), + 'frame' => + array ( + 0 => 'application/vnd.framemaker', + ), + 'maker' => + array ( + 0 => 'application/vnd.framemaker', + ), + 'book' => + array ( + 0 => 'application/vnd.framemaker', + ), + 'fnc' => + array ( + 0 => 'application/vnd.frogans.fnc', + ), + 'ltf' => + array ( + 0 => 'application/vnd.frogans.ltf', + ), + 'fsc' => + array ( + 0 => 'application/vnd.fsc.weblaunch', + ), + 'oas' => + array ( + 0 => 'application/vnd.fujitsu.oasys', + ), + 'oa2' => + array ( + 0 => 'application/vnd.fujitsu.oasys2', + ), + 'oa3' => + array ( + 0 => 'application/vnd.fujitsu.oasys3', + ), + 'fg5' => + array ( + 0 => 'application/vnd.fujitsu.oasysgp', + ), + 'bh2' => + array ( + 0 => 'application/vnd.fujitsu.oasysprs', + ), + 'ddd' => + array ( + 0 => 'application/vnd.fujixerox.ddd', + ), + 'xdw' => + array ( + 0 => 'application/vnd.fujixerox.docuworks', + ), + 'xbd' => + array ( + 0 => 'application/vnd.fujixerox.docuworks.binder', + ), + 'fzs' => + array ( + 0 => 'application/vnd.fuzzysheet', + ), + 'txd' => + array ( + 0 => 'application/vnd.genomatix.tuxedo', + ), + 'ggb' => + array ( + 0 => 'application/vnd.geogebra.file', + ), + 'ggt' => + array ( + 0 => 'application/vnd.geogebra.tool', + ), + 'gex' => + array ( + 0 => 'application/vnd.geometry-explorer', + ), + 'gre' => + array ( + 0 => 'application/vnd.geometry-explorer', + ), + 'gxt' => + array ( + 0 => 'application/vnd.geonext', + ), + 'g2w' => + array ( + 0 => 'application/vnd.geoplan', + ), + 'g3w' => + array ( + 0 => 'application/vnd.geospace', + ), + 'gmx' => + array ( + 0 => 'application/vnd.gmx', + ), + 'kml' => + array ( + 0 => 'application/vnd.google-earth.kml+xml', + ), + 'kmz' => + array ( + 0 => 'application/vnd.google-earth.kmz', + ), + 'gqf' => + array ( + 0 => 'application/vnd.grafeq', + ), + 'gqs' => + array ( + 0 => 'application/vnd.grafeq', + ), + 'gac' => + array ( + 0 => 'application/vnd.groove-account', + ), + 'ghf' => + array ( + 0 => 'application/vnd.groove-help', + ), + 'gim' => + array ( + 0 => 'application/vnd.groove-identity-message', + ), + 'grv' => + array ( + 0 => 'application/vnd.groove-injector', + ), + 'gtm' => + array ( + 0 => 'application/vnd.groove-tool-message', + ), + 'tpl' => + array ( + 0 => 'application/vnd.groove-tool-template', + ), + 'vcg' => + array ( + 0 => 'application/vnd.groove-vcard', + ), + 'hal' => + array ( + 0 => 'application/vnd.hal+xml', + ), + 'zmm' => + array ( + 0 => 'application/vnd.handheld-entertainment+xml', + ), + 'hbci' => + array ( + 0 => 'application/vnd.hbci', + ), + 'les' => + array ( + 0 => 'application/vnd.hhe.lesson-player', + ), + 'hpgl' => + array ( + 0 => 'application/vnd.hp-hpgl', + ), + 'hpid' => + array ( + 0 => 'application/vnd.hp-hpid', + ), + 'hps' => + array ( + 0 => 'application/vnd.hp-hps', + ), + 'jlt' => + array ( + 0 => 'application/vnd.hp-jlyt', + ), + 'pcl' => + array ( + 0 => 'application/vnd.hp-pcl', + ), + 'pclxl' => + array ( + 0 => 'application/vnd.hp-pclxl', + ), + 'sfd-hdstx' => + array ( + 0 => 'application/vnd.hydrostatix.sof-data', + ), + 'mpy' => + array ( + 0 => 'application/vnd.ibm.minipay', + ), + 'afp' => + array ( + 0 => 'application/vnd.ibm.modcap', + ), + 'listafp' => + array ( + 0 => 'application/vnd.ibm.modcap', + ), + 'list3820' => + array ( + 0 => 'application/vnd.ibm.modcap', + ), + 'irm' => + array ( + 0 => 'application/vnd.ibm.rights-management', + ), + 'sc' => + array ( + 0 => 'application/vnd.ibm.secure-container', + ), + 'icc' => + array ( + 0 => 'application/vnd.iccprofile', + ), + 'icm' => + array ( + 0 => 'application/vnd.iccprofile', + ), + 'igl' => + array ( + 0 => 'application/vnd.igloader', + ), + 'ivp' => + array ( + 0 => 'application/vnd.immervision-ivp', + ), + 'ivu' => + array ( + 0 => 'application/vnd.immervision-ivu', + ), + 'igm' => + array ( + 0 => 'application/vnd.insors.igm', + ), + 'xpw' => + array ( + 0 => 'application/vnd.intercon.formnet', + ), + 'xpx' => + array ( + 0 => 'application/vnd.intercon.formnet', + ), + 'i2g' => + array ( + 0 => 'application/vnd.intergeo', + ), + 'qbo' => + array ( + 0 => 'application/vnd.intu.qbo', + ), + 'qfx' => + array ( + 0 => 'application/vnd.intu.qfx', + ), + 'rcprofile' => + array ( + 0 => 'application/vnd.ipunplugged.rcprofile', + ), + 'irp' => + array ( + 0 => 'application/vnd.irepository.package+xml', + ), + 'xpr' => + array ( + 0 => 'application/vnd.is-xpr', + ), + 'fcs' => + array ( + 0 => 'application/vnd.isac.fcs', + ), + 'jam' => + array ( + 0 => 'application/vnd.jam', + ), + 'rms' => + array ( + 0 => 'application/vnd.jcp.javame.midlet-rms', + ), + 'jisp' => + array ( + 0 => 'application/vnd.jisp', + ), + 'joda' => + array ( + 0 => 'application/vnd.joost.joda-archive', + ), + 'ktz' => + array ( + 0 => 'application/vnd.kahootz', + ), + 'ktr' => + array ( + 0 => 'application/vnd.kahootz', + ), + 'karbon' => + array ( + 0 => 'application/vnd.kde.karbon', + ), + 'chrt' => + array ( + 0 => 'application/vnd.kde.kchart', + ), + 'kfo' => + array ( + 0 => 'application/vnd.kde.kformula', + ), + 'flw' => + array ( + 0 => 'application/vnd.kde.kivio', + ), + 'kon' => + array ( + 0 => 'application/vnd.kde.kontour', + ), + 'kpr' => + array ( + 0 => 'application/vnd.kde.kpresenter', + ), + 'kpt' => + array ( + 0 => 'application/vnd.kde.kpresenter', + ), + 'ksp' => + array ( + 0 => 'application/vnd.kde.kspread', + ), + 'kwd' => + array ( + 0 => 'application/vnd.kde.kword', + ), + 'kwt' => + array ( + 0 => 'application/vnd.kde.kword', + ), + 'htke' => + array ( + 0 => 'application/vnd.kenameaapp', + ), + 'kia' => + array ( + 0 => 'application/vnd.kidspiration', + ), + 'kne' => + array ( + 0 => 'application/vnd.kinar', + ), + 'knp' => + array ( + 0 => 'application/vnd.kinar', + ), + 'skp' => + array ( + 0 => 'application/vnd.koan', + ), + 'skd' => + array ( + 0 => 'application/vnd.koan', + ), + 'skt' => + array ( + 0 => 'application/vnd.koan', + ), + 'skm' => + array ( + 0 => 'application/vnd.koan', + ), + 'sse' => + array ( + 0 => 'application/vnd.kodak-descriptor', + ), + 'lasxml' => + array ( + 0 => 'application/vnd.las.las+xml', + ), + 'lbd' => + array ( + 0 => 'application/vnd.llamagraphics.life-balance.desktop', + ), + 'lbe' => + array ( + 0 => 'application/vnd.llamagraphics.life-balance.exchange+xml', + ), + 123 => + array ( + 0 => 'application/vnd.lotus-1-2-3', + ), + 'apr' => + array ( + 0 => 'application/vnd.lotus-approach', + ), + 'pre' => + array ( + 0 => 'application/vnd.lotus-freelance', + ), + 'nsf' => + array ( + 0 => 'application/vnd.lotus-notes', + ), + 'org' => + array ( + 0 => 'application/vnd.lotus-organizer', + ), + 'scm' => + array ( + 0 => 'application/vnd.lotus-screencam', + ), + 'lwp' => + array ( + 0 => 'application/vnd.lotus-wordpro', + ), + 'portpkg' => + array ( + 0 => 'application/vnd.macports.portpkg', + ), + 'mcd' => + array ( + 0 => 'application/vnd.mcd', + ), + 'mc1' => + array ( + 0 => 'application/vnd.medcalcdata', + ), + 'cdkey' => + array ( + 0 => 'application/vnd.mediastation.cdkey', + ), + 'mwf' => + array ( + 0 => 'application/vnd.mfer', + ), + 'mfm' => + array ( + 0 => 'application/vnd.mfmp', + ), + 'flo' => + array ( + 0 => 'application/vnd.micrografx.flo', + ), + 'igx' => + array ( + 0 => 'application/vnd.micrografx.igx', + ), + 'mif' => + array ( + 0 => 'application/vnd.mif', + ), + 'daf' => + array ( + 0 => 'application/vnd.mobius.daf', + ), + 'dis' => + array ( + 0 => 'application/vnd.mobius.dis', + ), + 'mbk' => + array ( + 0 => 'application/vnd.mobius.mbk', + ), + 'mqy' => + array ( + 0 => 'application/vnd.mobius.mqy', + ), + 'msl' => + array ( + 0 => 'application/vnd.mobius.msl', + ), + 'plc' => + array ( + 0 => 'application/vnd.mobius.plc', + ), + 'txf' => + array ( + 0 => 'application/vnd.mobius.txf', + ), + 'mpn' => + array ( + 0 => 'application/vnd.mophun.application', + ), + 'mpc' => + array ( + 0 => 'application/vnd.mophun.certificate', + ), + 'xul' => + array ( + 0 => 'application/vnd.mozilla.xul+xml', + ), + 'cil' => + array ( + 0 => 'application/vnd.ms-artgalry', + ), + 'cab' => + array ( + 0 => 'application/vnd.ms-cab-compressed', + ), + 'xls' => + array ( + 0 => 'application/vnd.ms-excel', + ), + 'xlm' => + array ( + 0 => 'application/vnd.ms-excel', + ), + 'xla' => + array ( + 0 => 'application/vnd.ms-excel', + ), + 'xlc' => + array ( + 0 => 'application/vnd.ms-excel', + ), + 'xlt' => + array ( + 0 => 'application/vnd.ms-excel', + ), + 'xlw' => + array ( + 0 => 'application/vnd.ms-excel', + ), + 'xlam' => + array ( + 0 => 'application/vnd.ms-excel.addin.macroenabled.12', + ), + 'xlsb' => + array ( + 0 => 'application/vnd.ms-excel.sheet.binary.macroenabled.12', + ), + 'xlsm' => + array ( + 0 => 'application/vnd.ms-excel.sheet.macroenabled.12', + ), + 'xltm' => + array ( + 0 => 'application/vnd.ms-excel.template.macroenabled.12', + ), + 'eot' => + array ( + 0 => 'application/vnd.ms-fontobject', + ), + 'chm' => + array ( + 0 => 'application/vnd.ms-htmlhelp', + ), + 'ims' => + array ( + 0 => 'application/vnd.ms-ims', + ), + 'lrm' => + array ( + 0 => 'application/vnd.ms-lrm', + ), + 'thmx' => + array ( + 0 => 'application/vnd.ms-officetheme', + ), + 'cat' => + array ( + 0 => 'application/vnd.ms-pki.seccat', + ), + 'stl' => + array ( + 0 => 'application/vnd.ms-pki.stl', + ), + 'ppt' => + array ( + 0 => 'application/vnd.ms-powerpoint', + ), + 'pps' => + array ( + 0 => 'application/vnd.ms-powerpoint', + ), + 'pot' => + array ( + 0 => 'application/vnd.ms-powerpoint', + ), + 'ppam' => + array ( + 0 => 'application/vnd.ms-powerpoint.addin.macroenabled.12', + ), + 'pptm' => + array ( + 0 => 'application/vnd.ms-powerpoint.presentation.macroenabled.12', + ), + 'sldm' => + array ( + 0 => 'application/vnd.ms-powerpoint.slide.macroenabled.12', + ), + 'ppsm' => + array ( + 0 => 'application/vnd.ms-powerpoint.slideshow.macroenabled.12', + ), + 'potm' => + array ( + 0 => 'application/vnd.ms-powerpoint.template.macroenabled.12', + ), + 'mpp' => + array ( + 0 => 'application/vnd.ms-project', + ), + 'mpt' => + array ( + 0 => 'application/vnd.ms-project', + ), + 'docm' => + array ( + 0 => 'application/vnd.ms-word.document.macroenabled.12', + ), + 'dotm' => + array ( + 0 => 'application/vnd.ms-word.template.macroenabled.12', + ), + 'wps' => + array ( + 0 => 'application/vnd.ms-works', + ), + 'wks' => + array ( + 0 => 'application/vnd.ms-works', + ), + 'wcm' => + array ( + 0 => 'application/vnd.ms-works', + ), + 'wdb' => + array ( + 0 => 'application/vnd.ms-works', + ), + 'wpl' => + array ( + 0 => 'application/vnd.ms-wpl', + ), + 'xps' => + array ( + 0 => 'application/vnd.ms-xpsdocument', + ), + 'mseq' => + array ( + 0 => 'application/vnd.mseq', + ), + 'mus' => + array ( + 0 => 'application/vnd.musician', + ), + 'msty' => + array ( + 0 => 'application/vnd.muvee.style', + ), + 'taglet' => + array ( + 0 => 'application/vnd.mynfc', + ), + 'nlu' => + array ( + 0 => 'application/vnd.neurolanguage.nlu', + ), + 'ntf' => + array ( + 0 => 'application/vnd.nitf', + ), + 'nitf' => + array ( + 0 => 'application/vnd.nitf', + ), + 'nnd' => + array ( + 0 => 'application/vnd.noblenet-directory', + ), + 'nns' => + array ( + 0 => 'application/vnd.noblenet-sealer', + ), + 'nnw' => + array ( + 0 => 'application/vnd.noblenet-web', + ), + 'ngdat' => + array ( + 0 => 'application/vnd.nokia.n-gage.data', + ), + 'n-gage' => + array ( + 0 => 'application/vnd.nokia.n-gage.symbian.install', + ), + 'rpst' => + array ( + 0 => 'application/vnd.nokia.radio-preset', + ), + 'rpss' => + array ( + 0 => 'application/vnd.nokia.radio-presets', + ), + 'edm' => + array ( + 0 => 'application/vnd.novadigm.edm', + ), + 'edx' => + array ( + 0 => 'application/vnd.novadigm.edx', + ), + 'ext' => + array ( + 0 => 'application/vnd.novadigm.ext', + ), + 'odc' => + array ( + 0 => 'application/vnd.oasis.opendocument.chart', + ), + 'otc' => + array ( + 0 => 'application/vnd.oasis.opendocument.chart-template', + ), + 'odb' => + array ( + 0 => 'application/vnd.oasis.opendocument.database', + ), + 'odf' => + array ( + 0 => 'application/vnd.oasis.opendocument.formula', + ), + 'odft' => + array ( + 0 => 'application/vnd.oasis.opendocument.formula-template', + ), + 'odg' => + array ( + 0 => 'application/vnd.oasis.opendocument.graphics', + ), + 'otg' => + array ( + 0 => 'application/vnd.oasis.opendocument.graphics-template', + ), + 'odi' => + array ( + 0 => 'application/vnd.oasis.opendocument.image', + ), + 'oti' => + array ( + 0 => 'application/vnd.oasis.opendocument.image-template', + ), + 'odp' => + array ( + 0 => 'application/vnd.oasis.opendocument.presentation', + ), + 'otp' => + array ( + 0 => 'application/vnd.oasis.opendocument.presentation-template', + ), + 'ods' => + array ( + 0 => 'application/vnd.oasis.opendocument.spreadsheet', + ), + 'ots' => + array ( + 0 => 'application/vnd.oasis.opendocument.spreadsheet-template', + ), + 'odt' => + array ( + 0 => 'application/vnd.oasis.opendocument.text', + ), + 'odm' => + array ( + 0 => 'application/vnd.oasis.opendocument.text-master', + ), + 'ott' => + array ( + 0 => 'application/vnd.oasis.opendocument.text-template', + ), + 'oth' => + array ( + 0 => 'application/vnd.oasis.opendocument.text-web', + ), + 'xo' => + array ( + 0 => 'application/vnd.olpc-sugar', + ), + 'dd2' => + array ( + 0 => 'application/vnd.oma.dd2+xml', + ), + 'oxt' => + array ( + 0 => 'application/vnd.openofficeorg.extension', + ), + 'pptx' => + array ( + 0 => 'application/vnd.openxmlformats-officedocument.presentationml.presentation', + ), + 'sldx' => + array ( + 0 => 'application/vnd.openxmlformats-officedocument.presentationml.slide', + ), + 'ppsx' => + array ( + 0 => 'application/vnd.openxmlformats-officedocument.presentationml.slideshow', + ), + 'potx' => + array ( + 0 => 'application/vnd.openxmlformats-officedocument.presentationml.template', + ), + 'xlsx' => + array ( + 0 => 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', + ), + 'xltx' => + array ( + 0 => 'application/vnd.openxmlformats-officedocument.spreadsheetml.template', + ), + 'docx' => + array ( + 0 => 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', + ), + 'dotx' => + array ( + 0 => 'application/vnd.openxmlformats-officedocument.wordprocessingml.template', + ), + 'mgp' => + array ( + 0 => 'application/vnd.osgeo.mapguide.package', + ), + 'dp' => + array ( + 0 => 'application/vnd.osgi.dp', + ), + 'esa' => + array ( + 0 => 'application/vnd.osgi.subsystem', + ), + 'pdb' => + array ( + 0 => 'application/vnd.palm', + ), + 'pqa' => + array ( + 0 => 'application/vnd.palm', + ), + 'oprc' => + array ( + 0 => 'application/vnd.palm', + ), + 'paw' => + array ( + 0 => 'application/vnd.pawaafile', + ), + 'str' => + array ( + 0 => 'application/vnd.pg.format', + ), + 'ei6' => + array ( + 0 => 'application/vnd.pg.osasli', + ), + 'efif' => + array ( + 0 => 'application/vnd.picsel', + ), + 'wg' => + array ( + 0 => 'application/vnd.pmi.widget', + ), + 'plf' => + array ( + 0 => 'application/vnd.pocketlearn', + ), + 'pbd' => + array ( + 0 => 'application/vnd.powerbuilder6', + ), + 'box' => + array ( + 0 => 'application/vnd.previewsystems.box', + ), + 'mgz' => + array ( + 0 => 'application/vnd.proteus.magazine', + ), + 'qps' => + array ( + 0 => 'application/vnd.publishare-delta-tree', + ), + 'ptid' => + array ( + 0 => 'application/vnd.pvi.ptid1', + ), + 'qxd' => + array ( + 0 => 'application/vnd.quark.quarkxpress', + ), + 'qxt' => + array ( + 0 => 'application/vnd.quark.quarkxpress', + ), + 'qwd' => + array ( + 0 => 'application/vnd.quark.quarkxpress', + ), + 'qwt' => + array ( + 0 => 'application/vnd.quark.quarkxpress', + ), + 'qxl' => + array ( + 0 => 'application/vnd.quark.quarkxpress', + ), + 'qxb' => + array ( + 0 => 'application/vnd.quark.quarkxpress', + ), + 'bed' => + array ( + 0 => 'application/vnd.realvnc.bed', + ), + 'mxl' => + array ( + 0 => 'application/vnd.recordare.musicxml', + ), + 'musicxml' => + array ( + 0 => 'application/vnd.recordare.musicxml+xml', + ), + 'cryptonote' => + array ( + 0 => 'application/vnd.rig.cryptonote', + ), + 'cod' => + array ( + 0 => 'application/vnd.rim.cod', + ), + 'rm' => + array ( + 0 => 'application/vnd.rn-realmedia', + ), + 'rmvb' => + array ( + 0 => 'application/vnd.rn-realmedia-vbr', + ), + 'link66' => + array ( + 0 => 'application/vnd.route66.link66+xml', + ), + 'st' => + array ( + 0 => 'application/vnd.sailingtracker.track', + ), + 'see' => + array ( + 0 => 'application/vnd.seemail', + ), + 'sema' => + array ( + 0 => 'application/vnd.sema', + ), + 'semd' => + array ( + 0 => 'application/vnd.semd', + ), + 'semf' => + array ( + 0 => 'application/vnd.semf', + ), + 'ifm' => + array ( + 0 => 'application/vnd.shana.informed.formdata', + ), + 'itp' => + array ( + 0 => 'application/vnd.shana.informed.formtemplate', + ), + 'iif' => + array ( + 0 => 'application/vnd.shana.informed.interchange', + ), + 'ipk' => + array ( + 0 => 'application/vnd.shana.informed.package', + ), + 'twd' => + array ( + 0 => 'application/vnd.simtech-mindmapper', + ), + 'twds' => + array ( + 0 => 'application/vnd.simtech-mindmapper', + ), + 'mmf' => + array ( + 0 => 'application/vnd.smaf', + ), + 'teacher' => + array ( + 0 => 'application/vnd.smart.teacher', + ), + 'sdkm' => + array ( + 0 => 'application/vnd.solent.sdkm+xml', + ), + 'sdkd' => + array ( + 0 => 'application/vnd.solent.sdkm+xml', + ), + 'dxp' => + array ( + 0 => 'application/vnd.spotfire.dxp', + ), + 'sfs' => + array ( + 0 => 'application/vnd.spotfire.sfs', + ), + 'sdc' => + array ( + 0 => 'application/vnd.stardivision.calc', + ), + 'sda' => + array ( + 0 => 'application/vnd.stardivision.draw', + ), + 'sdd' => + array ( + 0 => 'application/vnd.stardivision.impress', + ), + 'smf' => + array ( + 0 => 'application/vnd.stardivision.math', + ), + 'sdw' => + array ( + 0 => 'application/vnd.stardivision.writer', + ), + 'vor' => + array ( + 0 => 'application/vnd.stardivision.writer', + ), + 'sgl' => + array ( + 0 => 'application/vnd.stardivision.writer-global', + ), + 'smzip' => + array ( + 0 => 'application/vnd.stepmania.package', + ), + 'sm' => + array ( + 0 => 'application/vnd.stepmania.stepchart', + ), + 'sxc' => + array ( + 0 => 'application/vnd.sun.xml.calc', + ), + 'stc' => + array ( + 0 => 'application/vnd.sun.xml.calc.template', + ), + 'sxd' => + array ( + 0 => 'application/vnd.sun.xml.draw', + ), + 'std' => + array ( + 0 => 'application/vnd.sun.xml.draw.template', + ), + 'sxi' => + array ( + 0 => 'application/vnd.sun.xml.impress', + ), + 'sti' => + array ( + 0 => 'application/vnd.sun.xml.impress.template', + ), + 'sxm' => + array ( + 0 => 'application/vnd.sun.xml.math', + ), + 'sxw' => + array ( + 0 => 'application/vnd.sun.xml.writer', + ), + 'sxg' => + array ( + 0 => 'application/vnd.sun.xml.writer.global', + ), + 'stw' => + array ( + 0 => 'application/vnd.sun.xml.writer.template', + ), + 'sus' => + array ( + 0 => 'application/vnd.sus-calendar', + ), + 'susp' => + array ( + 0 => 'application/vnd.sus-calendar', + ), + 'svd' => + array ( + 0 => 'application/vnd.svd', + ), + 'sis' => + array ( + 0 => 'application/vnd.symbian.install', + ), + 'sisx' => + array ( + 0 => 'application/vnd.symbian.install', + ), + 'xsm' => + array ( + 0 => 'application/vnd.syncml+xml', + ), + 'bdm' => + array ( + 0 => 'application/vnd.syncml.dm+wbxml', + ), + 'xdm' => + array ( + 0 => 'application/vnd.syncml.dm+xml', + ), + 'tao' => + array ( + 0 => 'application/vnd.tao.intent-module-archive', + ), + 'pcap' => + array ( + 0 => 'application/vnd.tcpdump.pcap', + ), + 'cap' => + array ( + 0 => 'application/vnd.tcpdump.pcap', + ), + 'dmp' => + array ( + 0 => 'application/vnd.tcpdump.pcap', + ), + 'tmo' => + array ( + 0 => 'application/vnd.tmobile-livetv', + ), + 'tpt' => + array ( + 0 => 'application/vnd.trid.tpt', + ), + 'mxs' => + array ( + 0 => 'application/vnd.triscape.mxs', + ), + 'tra' => + array ( + 0 => 'application/vnd.trueapp', + ), + 'ufd' => + array ( + 0 => 'application/vnd.ufdl', + ), + 'ufdl' => + array ( + 0 => 'application/vnd.ufdl', + ), + 'utz' => + array ( + 0 => 'application/vnd.uiq.theme', + ), + 'umj' => + array ( + 0 => 'application/vnd.umajin', + ), + 'unityweb' => + array ( + 0 => 'application/vnd.unity', + ), + 'uoml' => + array ( + 0 => 'application/vnd.uoml+xml', + ), + 'vcx' => + array ( + 0 => 'application/vnd.vcx', + ), + 'vsd' => + array ( + 0 => 'application/vnd.visio', + ), + 'vst' => + array ( + 0 => 'application/vnd.visio', + ), + 'vss' => + array ( + 0 => 'application/vnd.visio', + ), + 'vsw' => + array ( + 0 => 'application/vnd.visio', + ), + 'vis' => + array ( + 0 => 'application/vnd.visionary', + ), + 'vsf' => + array ( + 0 => 'application/vnd.vsf', + ), + 'wbxml' => + array ( + 0 => 'application/vnd.wap.wbxml', + ), + 'wmlc' => + array ( + 0 => 'application/vnd.wap.wmlc', + ), + 'wmlsc' => + array ( + 0 => 'application/vnd.wap.wmlscriptc', + ), + 'wtb' => + array ( + 0 => 'application/vnd.webturbo', + ), + 'nbp' => + array ( + 0 => 'application/vnd.wolfram.player', + ), + 'wpd' => + array ( + 0 => 'application/vnd.wordperfect', + ), + 'wqd' => + array ( + 0 => 'application/vnd.wqd', + ), + 'stf' => + array ( + 0 => 'application/vnd.wt.stf', + ), + 'xar' => + array ( + 0 => 'application/vnd.xara', + ), + 'xfdl' => + array ( + 0 => 'application/vnd.xfdl', + ), + 'hvd' => + array ( + 0 => 'application/vnd.yamaha.hv-dic', + ), + 'hvs' => + array ( + 0 => 'application/vnd.yamaha.hv-script', + ), + 'hvp' => + array ( + 0 => 'application/vnd.yamaha.hv-voice', + ), + 'osf' => + array ( + 0 => 'application/vnd.yamaha.openscoreformat', + ), + 'osfpvg' => + array ( + 0 => 'application/vnd.yamaha.openscoreformat.osfpvg+xml', + ), + 'saf' => + array ( + 0 => 'application/vnd.yamaha.smaf-audio', + ), + 'spf' => + array ( + 0 => 'application/vnd.yamaha.smaf-phrase', + ), + 'cmp' => + array ( + 0 => 'application/vnd.yellowriver-custom-menu', + ), + 'zir' => + array ( + 0 => 'application/vnd.zul', + ), + 'zirz' => + array ( + 0 => 'application/vnd.zul', + ), + 'zaz' => + array ( + 0 => 'application/vnd.zzazz.deck+xml', + ), + 'vxml' => + array ( + 0 => 'application/voicexml+xml', + ), + 'wgt' => + array ( + 0 => 'application/widget', + ), + 'hlp' => + array ( + 0 => 'application/winhlp', + ), + 'wsdl' => + array ( + 0 => 'application/wsdl+xml', + ), + 'wspolicy' => + array ( + 0 => 'application/wspolicy+xml', + ), + '7z' => + array ( + 0 => 'application/x-7z-compressed', + ), + 'abw' => + array ( + 0 => 'application/x-abiword', + ), + 'ace' => + array ( + 0 => 'application/x-ace-compressed', + ), + 'dmg' => + array ( + 0 => 'application/x-apple-diskimage', + ), + 'aab' => + array ( + 0 => 'application/x-authorware-bin', + ), + 'x32' => + array ( + 0 => 'application/x-authorware-bin', + ), + 'u32' => + array ( + 0 => 'application/x-authorware-bin', + ), + 'vox' => + array ( + 0 => 'application/x-authorware-bin', + ), + 'aam' => + array ( + 0 => 'application/x-authorware-map', + ), + 'aas' => + array ( + 0 => 'application/x-authorware-seg', + ), + 'bcpio' => + array ( + 0 => 'application/x-bcpio', + ), + 'torrent' => + array ( + 0 => 'application/x-bittorrent', + ), + 'blb' => + array ( + 0 => 'application/x-blorb', + ), + 'blorb' => + array ( + 0 => 'application/x-blorb', + ), + 'bz' => + array ( + 0 => 'application/x-bzip', + ), + 'bz2' => + array ( + 0 => 'application/x-bzip2', + ), + 'boz' => + array ( + 0 => 'application/x-bzip2', + ), + 'cbr' => + array ( + 0 => 'application/x-cbr', + ), + 'cba' => + array ( + 0 => 'application/x-cbr', + ), + 'cbt' => + array ( + 0 => 'application/x-cbr', + ), + 'cbz' => + array ( + 0 => 'application/x-cbr', + ), + 'cb7' => + array ( + 0 => 'application/x-cbr', + ), + 'vcd' => + array ( + 0 => 'application/x-cdlink', + ), + 'cfs' => + array ( + 0 => 'application/x-cfs-compressed', + ), + 'chat' => + array ( + 0 => 'application/x-chat', + ), + 'pgn' => + array ( + 0 => 'application/x-chess-pgn', + ), + 'nsc' => + array ( + 0 => 'application/x-conference', + ), + 'cpio' => + array ( + 0 => 'application/x-cpio', + ), + 'csh' => + array ( + 0 => 'application/x-csh', + ), + 'deb' => + array ( + 0 => 'application/x-debian-package', + ), + 'udeb' => + array ( + 0 => 'application/x-debian-package', + ), + 'dgc' => + array ( + 0 => 'application/x-dgc-compressed', + ), + 'dir' => + array ( + 0 => 'application/x-director', + ), + 'dcr' => + array ( + 0 => 'application/x-director', + ), + 'dxr' => + array ( + 0 => 'application/x-director', + ), + 'cst' => + array ( + 0 => 'application/x-director', + ), + 'cct' => + array ( + 0 => 'application/x-director', + ), + 'cxt' => + array ( + 0 => 'application/x-director', + ), + 'w3d' => + array ( + 0 => 'application/x-director', + ), + 'fgd' => + array ( + 0 => 'application/x-director', + ), + 'swa' => + array ( + 0 => 'application/x-director', + ), + 'wad' => + array ( + 0 => 'application/x-doom', + ), + 'ncx' => + array ( + 0 => 'application/x-dtbncx+xml', + ), + 'dtb' => + array ( + 0 => 'application/x-dtbook+xml', + ), + 'res' => + array ( + 0 => 'application/x-dtbresource+xml', + ), + 'dvi' => + array ( + 0 => 'application/x-dvi', + ), + 'evy' => + array ( + 0 => 'application/x-envoy', + ), + 'eva' => + array ( + 0 => 'application/x-eva', + ), + 'bdf' => + array ( + 0 => 'application/x-font-bdf', + ), + 'gsf' => + array ( + 0 => 'application/x-font-ghostscript', + ), + 'psf' => + array ( + 0 => 'application/x-font-linux-psf', + ), + 'pcf' => + array ( + 0 => 'application/x-font-pcf', + ), + 'snf' => + array ( + 0 => 'application/x-font-snf', + ), + 'pfa' => + array ( + 0 => 'application/x-font-type1', + ), + 'pfb' => + array ( + 0 => 'application/x-font-type1', + ), + 'pfm' => + array ( + 0 => 'application/x-font-type1', + ), + 'afm' => + array ( + 0 => 'application/x-font-type1', + ), + 'arc' => + array ( + 0 => 'application/x-freearc', + ), + 'spl' => + array ( + 0 => 'application/x-futuresplash', + ), + 'gca' => + array ( + 0 => 'application/x-gca-compressed', + ), + 'ulx' => + array ( + 0 => 'application/x-glulx', + ), + 'gnumeric' => + array ( + 0 => 'application/x-gnumeric', + ), + 'gramps' => + array ( + 0 => 'application/x-gramps-xml', + ), + 'gtar' => + array ( + 0 => 'application/x-gtar', + ), + 'hdf' => + array ( + 0 => 'application/x-hdf', + ), + 'install' => + array ( + 0 => 'application/x-install-instructions', + ), + 'iso' => + array ( + 0 => 'application/x-iso9660-image', + ), + 'jnlp' => + array ( + 0 => 'application/x-java-jnlp-file', + ), + 'latex' => + array ( + 0 => 'application/x-latex', + ), + 'lzh' => + array ( + 0 => 'application/x-lzh-compressed', + ), + 'lha' => + array ( + 0 => 'application/x-lzh-compressed', + ), + 'mie' => + array ( + 0 => 'application/x-mie', + ), + 'prc' => + array ( + 0 => 'application/x-mobipocket-ebook', + ), + 'mobi' => + array ( + 0 => 'application/x-mobipocket-ebook', + ), + 'application' => + array ( + 0 => 'application/x-ms-application', + ), + 'lnk' => + array ( + 0 => 'application/x-ms-shortcut', + ), + 'wmd' => + array ( + 0 => 'application/x-ms-wmd', + ), + 'wmz' => + array ( + 0 => 'application/x-ms-wmz', + 1 => 'application/x-msmetafile', + ), + 'xbap' => + array ( + 0 => 'application/x-ms-xbap', + ), + 'mdb' => + array ( + 0 => 'application/x-msaccess', + ), + 'obd' => + array ( + 0 => 'application/x-msbinder', + ), + 'crd' => + array ( + 0 => 'application/x-mscardfile', + ), + 'clp' => + array ( + 0 => 'application/x-msclip', + ), + 'exe' => + array ( + 0 => 'application/x-msdownload', + ), + 'dll' => + array ( + 0 => 'application/x-msdownload', + ), + 'com' => + array ( + 0 => 'application/x-msdownload', + ), + 'bat' => + array ( + 0 => 'application/x-msdownload', + ), + 'msi' => + array ( + 0 => 'application/x-msdownload', + ), + 'mvb' => + array ( + 0 => 'application/x-msmediaview', + ), + 'm13' => + array ( + 0 => 'application/x-msmediaview', + ), + 'm14' => + array ( + 0 => 'application/x-msmediaview', + ), + 'wmf' => + array ( + 0 => 'application/x-msmetafile', + ), + 'emf' => + array ( + 0 => 'application/x-msmetafile', + ), + 'emz' => + array ( + 0 => 'application/x-msmetafile', + ), + 'mny' => + array ( + 0 => 'application/x-msmoney', + ), + 'pub' => + array ( + 0 => 'application/x-mspublisher', + ), + 'scd' => + array ( + 0 => 'application/x-msschedule', + ), + 'trm' => + array ( + 0 => 'application/x-msterminal', + ), + 'wri' => + array ( + 0 => 'application/x-mswrite', + ), + 'nc' => + array ( + 0 => 'application/x-netcdf', + ), + 'cdf' => + array ( + 0 => 'application/x-netcdf', + ), + 'nzb' => + array ( + 0 => 'application/x-nzb', + ), + 'p12' => + array ( + 0 => 'application/x-pkcs12', + ), + 'pfx' => + array ( + 0 => 'application/x-pkcs12', + ), + 'p7b' => + array ( + 0 => 'application/x-pkcs7-certificates', + ), + 'spc' => + array ( + 0 => 'application/x-pkcs7-certificates', + ), + 'p7r' => + array ( + 0 => 'application/x-pkcs7-certreqresp', + ), + 'rar' => + array ( + 0 => 'application/x-rar-compressed', + ), + 'ris' => + array ( + 0 => 'application/x-research-info-systems', + ), + 'sh' => + array ( + 0 => 'application/x-sh', + ), + 'shar' => + array ( + 0 => 'application/x-shar', + ), + 'swf' => + array ( + 0 => 'application/x-shockwave-flash', + ), + 'xap' => + array ( + 0 => 'application/x-silverlight-app', + ), + 'sql' => + array ( + 0 => 'application/x-sql', + ), + 'sit' => + array ( + 0 => 'application/x-stuffit', + ), + 'sitx' => + array ( + 0 => 'application/x-stuffitx', + ), + 'srt' => + array ( + 0 => 'application/x-subrip', + ), + 'sv4cpio' => + array ( + 0 => 'application/x-sv4cpio', + ), + 'sv4crc' => + array ( + 0 => 'application/x-sv4crc', + ), + 't3' => + array ( + 0 => 'application/x-t3vm-image', + ), + 'gam' => + array ( + 0 => 'application/x-tads', + ), + 'tar' => + array ( + 0 => 'application/x-tar', + ), + 'tcl' => + array ( + 0 => 'application/x-tcl', + ), + 'tex' => + array ( + 0 => 'application/x-tex', + ), + 'tfm' => + array ( + 0 => 'application/x-tex-tfm', + ), + 'texinfo' => + array ( + 0 => 'application/x-texinfo', + ), + 'texi' => + array ( + 0 => 'application/x-texinfo', + ), + 'obj' => + array ( + 0 => 'application/x-tgif', + ), + 'ustar' => + array ( + 0 => 'application/x-ustar', + ), + 'src' => + array ( + 0 => 'application/x-wais-source', + ), + 'der' => + array ( + 0 => 'application/x-x509-ca-cert', + ), + 'crt' => + array ( + 0 => 'application/x-x509-ca-cert', + ), + 'fig' => + array ( + 0 => 'application/x-xfig', + ), + 'xlf' => + array ( + 0 => 'application/x-xliff+xml', + ), + 'xpi' => + array ( + 0 => 'application/x-xpinstall', + ), + 'xz' => + array ( + 0 => 'application/x-xz', + ), + 'z1' => + array ( + 0 => 'application/x-zmachine', + ), + 'z2' => + array ( + 0 => 'application/x-zmachine', + ), + 'z3' => + array ( + 0 => 'application/x-zmachine', + ), + 'z4' => + array ( + 0 => 'application/x-zmachine', + ), + 'z5' => + array ( + 0 => 'application/x-zmachine', + ), + 'z6' => + array ( + 0 => 'application/x-zmachine', + ), + 'z7' => + array ( + 0 => 'application/x-zmachine', + ), + 'z8' => + array ( + 0 => 'application/x-zmachine', + ), + 'xaml' => + array ( + 0 => 'application/xaml+xml', + ), + 'xdf' => + array ( + 0 => 'application/xcap-diff+xml', + ), + 'xenc' => + array ( + 0 => 'application/xenc+xml', + ), + 'xhtml' => + array ( + 0 => 'application/xhtml+xml', + ), + 'xht' => + array ( + 0 => 'application/xhtml+xml', + ), + 'xml' => + array ( + 0 => 'application/xml', + ), + 'xsl' => + array ( + 0 => 'application/xml', + ), + 'dtd' => + array ( + 0 => 'application/xml-dtd', + ), + 'xop' => + array ( + 0 => 'application/xop+xml', + ), + 'xpl' => + array ( + 0 => 'application/xproc+xml', + ), + 'xslt' => + array ( + 0 => 'application/xslt+xml', + ), + 'xspf' => + array ( + 0 => 'application/xspf+xml', + ), + 'mxml' => + array ( + 0 => 'application/xv+xml', + ), + 'xhvml' => + array ( + 0 => 'application/xv+xml', + ), + 'xvml' => + array ( + 0 => 'application/xv+xml', + ), + 'xvm' => + array ( + 0 => 'application/xv+xml', + ), + 'yang' => + array ( + 0 => 'application/yang', + ), + 'yin' => + array ( + 0 => 'application/yin+xml', + ), + 'adp' => + array ( + 0 => 'audio/adpcm', + ), + 'au' => + array ( + 0 => 'audio/basic', + ), + 'snd' => + array ( + 0 => 'audio/basic', + ), + 'mid' => + array ( + 0 => 'audio/midi', + ), + 'midi' => + array ( + 0 => 'audio/midi', + ), + 'kar' => + array ( + 0 => 'audio/midi', + ), + 'rmi' => + array ( + 0 => 'audio/midi', + ), + 'm4a' => + array ( + 0 => 'audio/mp4', + ), + 'mp4a' => + array ( + 0 => 'audio/mp4', + ), + 'oga' => + array ( + 0 => 'audio/ogg', + ), + 'ogg' => + array ( + 0 => 'audio/ogg', + ), + 'spx' => + array ( + 0 => 'audio/ogg', + ), + 's3m' => + array ( + 0 => 'audio/s3m', + ), + 'sil' => + array ( + 0 => 'audio/silk', + ), + 'uva' => + array ( + 0 => 'audio/vnd.dece.audio', + ), + 'uvva' => + array ( + 0 => 'audio/vnd.dece.audio', + ), + 'eol' => + array ( + 0 => 'audio/vnd.digital-winds', + ), + 'dra' => + array ( + 0 => 'audio/vnd.dra', + ), + 'dts' => + array ( + 0 => 'audio/vnd.dts', + ), + 'dtshd' => + array ( + 0 => 'audio/vnd.dts.hd', + ), + 'lvp' => + array ( + 0 => 'audio/vnd.lucent.voice', + ), + 'pya' => + array ( + 0 => 'audio/vnd.ms-playready.media.pya', + ), + 'ecelp4800' => + array ( + 0 => 'audio/vnd.nuera.ecelp4800', + ), + 'ecelp7470' => + array ( + 0 => 'audio/vnd.nuera.ecelp7470', + ), + 'ecelp9600' => + array ( + 0 => 'audio/vnd.nuera.ecelp9600', + ), + 'rip' => + array ( + 0 => 'audio/vnd.rip', + ), + 'weba' => + array ( + 0 => 'audio/webm', + ), + 'aac' => + array ( + 0 => 'audio/x-aac', + ), + 'aif' => + array ( + 0 => 'audio/x-aiff', + ), + 'aiff' => + array ( + 0 => 'audio/x-aiff', + ), + 'aifc' => + array ( + 0 => 'audio/x-aiff', + ), + 'caf' => + array ( + 0 => 'audio/x-caf', + ), + 'flac' => + array ( + 0 => 'audio/x-flac', + ), + 'mka' => + array ( + 0 => 'audio/x-matroska', + ), + 'm3u' => + array ( + 0 => 'audio/x-mpegurl', + ), + 'wax' => + array ( + 0 => 'audio/x-ms-wax', + ), + 'wma' => + array ( + 0 => 'audio/x-ms-wma', + ), + 'ram' => + array ( + 0 => 'audio/x-pn-realaudio', + ), + 'ra' => + array ( + 0 => 'audio/x-pn-realaudio', + ), + 'rmp' => + array ( + 0 => 'audio/x-pn-realaudio-plugin', + ), + 'wav' => + array ( + 0 => 'audio/x-wav', + ), + 'xm' => + array ( + 0 => 'audio/xm', + ), + 'cdx' => + array ( + 0 => 'chemical/x-cdx', + ), + 'cif' => + array ( + 0 => 'chemical/x-cif', + ), + 'cmdf' => + array ( + 0 => 'chemical/x-cmdf', + ), + 'cml' => + array ( + 0 => 'chemical/x-cml', + ), + 'csml' => + array ( + 0 => 'chemical/x-csml', + ), + 'xyz' => + array ( + 0 => 'chemical/x-xyz', + ), + 'woff' => + array ( + 0 => 'font/woff', + ), + 'woff2' => + array ( + 0 => 'font/woff2', + ), + 'cgm' => + array ( + 0 => 'image/cgm', + ), + 'g3' => + array ( + 0 => 'image/g3fax', + ), + 'gif' => + array ( + 0 => 'image/gif', + ), + 'ief' => + array ( + 0 => 'image/ief', + ), + 'ktx' => + array ( + 0 => 'image/ktx', + ), + 'png' => + array ( + 0 => 'image/png', + ), + 'btif' => + array ( + 0 => 'image/prs.btif', + ), + 'sgi' => + array ( + 0 => 'image/sgi', + ), + 'svg' => + array ( + 0 => 'image/svg+xml', + ), + 'svgz' => + array ( + 0 => 'image/svg+xml', + ), + 'tiff' => + array ( + 0 => 'image/tiff', + ), + 'tif' => + array ( + 0 => 'image/tiff', + ), + 'psd' => + array ( + 0 => 'image/vnd.adobe.photoshop', + ), + 'uvi' => + array ( + 0 => 'image/vnd.dece.graphic', + ), + 'uvvi' => + array ( + 0 => 'image/vnd.dece.graphic', + ), + 'uvg' => + array ( + 0 => 'image/vnd.dece.graphic', + ), + 'uvvg' => + array ( + 0 => 'image/vnd.dece.graphic', + ), + 'djvu' => + array ( + 0 => 'image/vnd.djvu', + ), + 'djv' => + array ( + 0 => 'image/vnd.djvu', + ), + 'sub' => + array ( + 0 => 'image/vnd.dvb.subtitle', + 1 => 'text/vnd.dvb.subtitle', + ), + 'dwg' => + array ( + 0 => 'image/vnd.dwg', + ), + 'dxf' => + array ( + 0 => 'image/vnd.dxf', + ), + 'fbs' => + array ( + 0 => 'image/vnd.fastbidsheet', + ), + 'fpx' => + array ( + 0 => 'image/vnd.fpx', + ), + 'fst' => + array ( + 0 => 'image/vnd.fst', + ), + 'mmr' => + array ( + 0 => 'image/vnd.fujixerox.edmics-mmr', + ), + 'rlc' => + array ( + 0 => 'image/vnd.fujixerox.edmics-rlc', + ), + 'mdi' => + array ( + 0 => 'image/vnd.ms-modi', + ), + 'wdp' => + array ( + 0 => 'image/vnd.ms-photo', + ), + 'npx' => + array ( + 0 => 'image/vnd.net-fpx', + ), + 'wbmp' => + array ( + 0 => 'image/vnd.wap.wbmp', + ), + 'xif' => + array ( + 0 => 'image/vnd.xiff', + ), + 'webp' => + array ( + 0 => 'image/webp', + ), + '3ds' => + array ( + 0 => 'image/x-3ds', + ), + 'ras' => + array ( + 0 => 'image/x-cmu-raster', + ), + 'cmx' => + array ( + 0 => 'image/x-cmx', + ), + 'fh' => + array ( + 0 => 'image/x-freehand', + ), + 'fhc' => + array ( + 0 => 'image/x-freehand', + ), + 'fh4' => + array ( + 0 => 'image/x-freehand', + ), + 'fh5' => + array ( + 0 => 'image/x-freehand', + ), + 'fh7' => + array ( + 0 => 'image/x-freehand', + ), + 'ico' => + array ( + 0 => 'image/x-icon', + ), + 'sid' => + array ( + 0 => 'image/x-mrsid-image', + ), + 'pcx' => + array ( + 0 => 'image/x-pcx', + ), + 'pic' => + array ( + 0 => 'image/x-pict', + ), + 'pct' => + array ( + 0 => 'image/x-pict', + ), + 'pnm' => + array ( + 0 => 'image/x-portable-anymap', + ), + 'pbm' => + array ( + 0 => 'image/x-portable-bitmap', + ), + 'pgm' => + array ( + 0 => 'image/x-portable-graymap', + ), + 'ppm' => + array ( + 0 => 'image/x-portable-pixmap', + ), + 'rgb' => + array ( + 0 => 'image/x-rgb', + ), + 'tga' => + array ( + 0 => 'image/x-tga', + ), + 'xbm' => + array ( + 0 => 'image/x-xbitmap', + ), + 'xpm' => + array ( + 0 => 'image/x-xpixmap', + ), + 'xwd' => + array ( + 0 => 'image/x-xwindowdump', + ), + 'eml' => + array ( + 0 => 'message/rfc822', + ), + 'mime' => + array ( + 0 => 'message/rfc822', + ), + 'igs' => + array ( + 0 => 'model/iges', + ), + 'iges' => + array ( + 0 => 'model/iges', + ), + 'msh' => + array ( + 0 => 'model/mesh', + ), + 'mesh' => + array ( + 0 => 'model/mesh', + ), + 'silo' => + array ( + 0 => 'model/mesh', + ), + 'dae' => + array ( + 0 => 'model/vnd.collada+xml', + ), + 'dwf' => + array ( + 0 => 'model/vnd.dwf', + ), + 'gdl' => + array ( + 0 => 'model/vnd.gdl', + ), + 'gtw' => + array ( + 0 => 'model/vnd.gtw', + ), + 'mts' => + array ( + 0 => 'model/vnd.mts', + ), + 'vtu' => + array ( + 0 => 'model/vnd.vtu', + ), + 'wrl' => + array ( + 0 => 'model/vrml', + ), + 'vrml' => + array ( + 0 => 'model/vrml', + ), + 'x3db' => + array ( + 0 => 'model/x3d+binary', + ), + 'x3dbz' => + array ( + 0 => 'model/x3d+binary', + ), + 'x3dv' => + array ( + 0 => 'model/x3d+vrml', + ), + 'x3dvz' => + array ( + 0 => 'model/x3d+vrml', + ), + 'x3d' => + array ( + 0 => 'model/x3d+xml', + ), + 'x3dz' => + array ( + 0 => 'model/x3d+xml', + ), + 'appcache' => + array ( + 0 => 'text/cache-manifest', + ), + 'ics' => + array ( + 0 => 'text/calendar', + ), + 'ifb' => + array ( + 0 => 'text/calendar', + ), + 'css' => + array ( + 0 => 'text/css', + ), + 'csv' => + array ( + 0 => 'text/csv', + ), + 'html' => + array ( + 0 => 'text/html', + ), + 'htm' => + array ( + 0 => 'text/html', + ), + 'n3' => + array ( + 0 => 'text/n3', + ), + 'txt' => + array ( + 0 => 'text/plain', + ), + 'text' => + array ( + 0 => 'text/plain', + ), + 'conf' => + array ( + 0 => 'text/plain', + ), + 'def' => + array ( + 0 => 'text/plain', + ), + 'list' => + array ( + 0 => 'text/plain', + ), + 'log' => + array ( + 0 => 'text/plain', + ), + 'in' => + array ( + 0 => 'text/plain', + ), + 'dsc' => + array ( + 0 => 'text/prs.lines.tag', + ), + 'rtx' => + array ( + 0 => 'text/richtext', + ), + 'sgml' => + array ( + 0 => 'text/sgml', + ), + 'sgm' => + array ( + 0 => 'text/sgml', + ), + 'tsv' => + array ( + 0 => 'text/tab-separated-values', + ), + 't' => + array ( + 0 => 'text/troff', + ), + 'tr' => + array ( + 0 => 'text/troff', + ), + 'roff' => + array ( + 0 => 'text/troff', + ), + 'man' => + array ( + 0 => 'text/troff', + ), + 'me' => + array ( + 0 => 'text/troff', + ), + 'ms' => + array ( + 0 => 'text/troff', + ), + 'ttl' => + array ( + 0 => 'text/turtle', + ), + 'uri' => + array ( + 0 => 'text/uri-list', + ), + 'uris' => + array ( + 0 => 'text/uri-list', + ), + 'urls' => + array ( + 0 => 'text/uri-list', + ), + 'vcard' => + array ( + 0 => 'text/vcard', + ), + 'curl' => + array ( + 0 => 'text/vnd.curl', + ), + 'dcurl' => + array ( + 0 => 'text/vnd.curl.dcurl', + ), + 'mcurl' => + array ( + 0 => 'text/vnd.curl.mcurl', + ), + 'scurl' => + array ( + 0 => 'text/vnd.curl.scurl', + ), + 'fly' => + array ( + 0 => 'text/vnd.fly', + ), + 'flx' => + array ( + 0 => 'text/vnd.fmi.flexstor', + ), + 'gv' => + array ( + 0 => 'text/vnd.graphviz', + ), + '3dml' => + array ( + 0 => 'text/vnd.in3d.3dml', + ), + 'spot' => + array ( + 0 => 'text/vnd.in3d.spot', + ), + 'jad' => + array ( + 0 => 'text/vnd.sun.j2me.app-descriptor', + ), + 'wml' => + array ( + 0 => 'text/vnd.wap.wml', + ), + 'wmls' => + array ( + 0 => 'text/vnd.wap.wmlscript', + ), + 's' => + array ( + 0 => 'text/x-asm', + ), + 'asm' => + array ( + 0 => 'text/x-asm', + ), + 'c' => + array ( + 0 => 'text/x-c', + ), + 'cc' => + array ( + 0 => 'text/x-c', + ), + 'cxx' => + array ( + 0 => 'text/x-c', + ), + 'cpp' => + array ( + 0 => 'text/x-c', + ), + 'h' => + array ( + 0 => 'text/x-c', + ), + 'hh' => + array ( + 0 => 'text/x-c', + ), + 'dic' => + array ( + 0 => 'text/x-c', + ), + 'f' => + array ( + 0 => 'text/x-fortran', + ), + 'for' => + array ( + 0 => 'text/x-fortran', + ), + 'f77' => + array ( + 0 => 'text/x-fortran', + ), + 'f90' => + array ( + 0 => 'text/x-fortran', + ), + 'java' => + array ( + 0 => 'text/x-java-source', + ), + 'nfo' => + array ( + 0 => 'text/x-nfo', + ), + 'opml' => + array ( + 0 => 'text/x-opml', + ), + 'p' => + array ( + 0 => 'text/x-pascal', + ), + 'pas' => + array ( + 0 => 'text/x-pascal', + ), + 'etx' => + array ( + 0 => 'text/x-setext', + ), + 'sfv' => + array ( + 0 => 'text/x-sfv', + ), + 'uu' => + array ( + 0 => 'text/x-uuencode', + ), + 'vcs' => + array ( + 0 => 'text/x-vcalendar', + ), + 'vcf' => + array ( + 0 => 'text/x-vcard', + ), + '3gp' => + array ( + 0 => 'video/3gpp', + ), + '3g2' => + array ( + 0 => 'video/3gpp2', + ), + 'h261' => + array ( + 0 => 'video/h261', + ), + 'h263' => + array ( + 0 => 'video/h263', + ), + 'h264' => + array ( + 0 => 'video/h264', + ), + 'jpgv' => + array ( + 0 => 'video/jpeg', + ), + 'jpm' => + array ( + 0 => 'video/jpm', + ), + 'jpgm' => + array ( + 0 => 'video/jpm', + ), + 'mj2' => + array ( + 0 => 'video/mj2', + ), + 'mjp2' => + array ( + 0 => 'video/mj2', + ), + 'mp4' => + array ( + 0 => 'video/mp4', + ), + 'mp4v' => + array ( + 0 => 'video/mp4', + ), + 'mpg4' => + array ( + 0 => 'video/mp4', + ), + 'mpeg' => + array ( + 0 => 'video/mpeg', + ), + 'mpg' => + array ( + 0 => 'video/mpeg', + ), + 'mpe' => + array ( + 0 => 'video/mpeg', + ), + 'm1v' => + array ( + 0 => 'video/mpeg', + ), + 'm2v' => + array ( + 0 => 'video/mpeg', + ), + 'ogv' => + array ( + 0 => 'video/ogg', + ), + 'qt' => + array ( + 0 => 'video/quicktime', + ), + 'mov' => + array ( + 0 => 'video/quicktime', + ), + 'uvh' => + array ( + 0 => 'video/vnd.dece.hd', + ), + 'uvvh' => + array ( + 0 => 'video/vnd.dece.hd', + ), + 'uvm' => + array ( + 0 => 'video/vnd.dece.mobile', + ), + 'uvvm' => + array ( + 0 => 'video/vnd.dece.mobile', + ), + 'uvp' => + array ( + 0 => 'video/vnd.dece.pd', + ), + 'uvvp' => + array ( + 0 => 'video/vnd.dece.pd', + ), + 'uvs' => + array ( + 0 => 'video/vnd.dece.sd', + ), + 'uvvs' => + array ( + 0 => 'video/vnd.dece.sd', + ), + 'uvv' => + array ( + 0 => 'video/vnd.dece.video', + ), + 'uvvv' => + array ( + 0 => 'video/vnd.dece.video', + ), + 'dvb' => + array ( + 0 => 'video/vnd.dvb.file', + ), + 'fvt' => + array ( + 0 => 'video/vnd.fvt', + ), + 'mxu' => + array ( + 0 => 'video/vnd.mpegurl', + ), + 'm4u' => + array ( + 0 => 'video/vnd.mpegurl', + ), + 'pyv' => + array ( + 0 => 'video/vnd.ms-playready.media.pyv', + ), + 'uvu' => + array ( + 0 => 'video/vnd.uvvu.mp4', + ), + 'uvvu' => + array ( + 0 => 'video/vnd.uvvu.mp4', + ), + 'viv' => + array ( + 0 => 'video/vnd.vivo', + ), + 'webm' => + array ( + 0 => 'video/webm', + ), + 'f4v' => + array ( + 0 => 'video/x-f4v', + ), + 'fli' => + array ( + 0 => 'video/x-fli', + ), + 'flv' => + array ( + 0 => 'video/x-flv', + ), + 'm4v' => + array ( + 0 => 'video/x-m4v', + ), + 'mkv' => + array ( + 0 => 'video/x-matroska', + ), + 'mk3d' => + array ( + 0 => 'video/x-matroska', + ), + 'mks' => + array ( + 0 => 'video/x-matroska', + ), + 'mng' => + array ( + 0 => 'video/x-mng', + ), + 'asf' => + array ( + 0 => 'video/x-ms-asf', + ), + 'asx' => + array ( + 0 => 'video/x-ms-asf', + ), + 'vob' => + array ( + 0 => 'video/x-ms-vob', + ), + 'wm' => + array ( + 0 => 'video/x-ms-wm', + ), + 'wmv' => + array ( + 0 => 'video/x-ms-wmv', + ), + 'wmx' => + array ( + 0 => 'video/x-ms-wmx', + ), + 'wvx' => + array ( + 0 => 'video/x-ms-wvx', + ), + 'avi' => + array ( + 0 => 'video/x-msvideo', + ), + 'movie' => + array ( + 0 => 'video/x-sgi-movie', + ), + 'smv' => + array ( + 0 => 'video/x-smv', + ), + 'ice' => + array ( + 0 => 'x-conference/x-cooltalk', + ), + ), + 'extensions' => + array ( + 'application/font-woff' => + array ( + 0 => 'wof', + ), + 'application/php' => + array ( + 0 => 'php', + ), + 'application/x-font-otf' => + array ( + 0 => 'otf', + ), + 'application/x-font-ttf' => + array ( + 0 => 'ttf', + 1 => 'ttc', + ), + 'application/x-gzip' => + array ( + 0 => 'zip', + ), + 'application/x-httpd-php' => + array ( + 0 => 'php', + ), + 'application/x-httpd-php-source' => + array ( + 0 => 'php', + ), + 'application/x-php' => + array ( + 0 => 'php', + ), + 'audio/amr' => + array ( + 0 => 'amr', + ), + 'audio/mpeg' => + array ( + 0 => 'mp3', + 1 => 'mpga', + 2 => 'mp2', + 3 => 'mp2a', + 4 => 'm2a', + 5 => 'm3a', + ), + 'image/jpeg' => + array ( + 0 => 'jpg', + 1 => 'jpeg', + 2 => 'jpe', + ), + 'image/x-ms-bmp' => + array ( + 0 => 'bmp', + ), + 'text/php' => + array ( + 0 => 'php', + ), + 'text/x-php' => + array ( + 0 => 'php', + ), + 'application/andrew-inset' => + array ( + 0 => 'ez', + ), + 'application/applixware' => + array ( + 0 => 'aw', + ), + 'application/atom+xml' => + array ( + 0 => 'atom', + ), + 'application/atomcat+xml' => + array ( + 0 => 'atomcat', + ), + 'application/atomsvc+xml' => + array ( + 0 => 'atomsvc', + ), + 'application/ccxml+xml' => + array ( + 0 => 'ccxml', + ), + 'application/cdmi-capability' => + array ( + 0 => 'cdmia', + ), + 'application/cdmi-container' => + array ( + 0 => 'cdmic', + ), + 'application/cdmi-domain' => + array ( + 0 => 'cdmid', + ), + 'application/cdmi-object' => + array ( + 0 => 'cdmio', + ), + 'application/cdmi-queue' => + array ( + 0 => 'cdmiq', + ), + 'application/cu-seeme' => + array ( + 0 => 'cu', + ), + 'application/davmount+xml' => + array ( + 0 => 'davmount', + ), + 'application/docbook+xml' => + array ( + 0 => 'dbk', + ), + 'application/dssc+der' => + array ( + 0 => 'dssc', + ), + 'application/dssc+xml' => + array ( + 0 => 'xdssc', + ), + 'application/ecmascript' => + array ( + 0 => 'ecma', + ), + 'application/emma+xml' => + array ( + 0 => 'emma', + ), + 'application/epub+zip' => + array ( + 0 => 'epub', + ), + 'application/exi' => + array ( + 0 => 'exi', + ), + 'application/font-tdpfr' => + array ( + 0 => 'pfr', + ), + 'application/gml+xml' => + array ( + 0 => 'gml', + ), + 'application/gpx+xml' => + array ( + 0 => 'gpx', + ), + 'application/gxf' => + array ( + 0 => 'gxf', + ), + 'application/hyperstudio' => + array ( + 0 => 'stk', + ), + 'application/inkml+xml' => + array ( + 0 => 'ink', + 1 => 'inkml', + ), + 'application/ipfix' => + array ( + 0 => 'ipfix', + ), + 'application/java-archive' => + array ( + 0 => 'jar', + ), + 'application/java-serialized-object' => + array ( + 0 => 'ser', + ), + 'application/java-vm' => + array ( + 0 => 'class', + ), + 'application/javascript' => + array ( + 0 => 'js', + ), + 'application/json' => + array ( + 0 => 'json', + ), + 'application/jsonml+json' => + array ( + 0 => 'jsonml', + ), + 'application/lost+xml' => + array ( + 0 => 'lostxml', + ), + 'application/mac-binhex40' => + array ( + 0 => 'hqx', + ), + 'application/mac-compactpro' => + array ( + 0 => 'cpt', + ), + 'application/mads+xml' => + array ( + 0 => 'mads', + ), + 'application/marc' => + array ( + 0 => 'mrc', + ), + 'application/marcxml+xml' => + array ( + 0 => 'mrcx', + ), + 'application/mathematica' => + array ( + 0 => 'ma', + 1 => 'nb', + 2 => 'mb', + ), + 'application/mathml+xml' => + array ( + 0 => 'mathml', + ), + 'application/mbox' => + array ( + 0 => 'mbox', + ), + 'application/mediaservercontrol+xml' => + array ( + 0 => 'mscml', + ), + 'application/metalink+xml' => + array ( + 0 => 'metalink', + ), + 'application/metalink4+xml' => + array ( + 0 => 'meta4', + ), + 'application/mets+xml' => + array ( + 0 => 'mets', + ), + 'application/mods+xml' => + array ( + 0 => 'mods', + ), + 'application/mp21' => + array ( + 0 => 'm21', + 1 => 'mp21', + ), + 'application/mp4' => + array ( + 0 => 'mp4s', + ), + 'application/msword' => + array ( + 0 => 'doc', + 1 => 'dot', + ), + 'application/mxf' => + array ( + 0 => 'mxf', + ), + 'application/octet-stream' => + array ( + 0 => 'bin', + 1 => 'dms', + 2 => 'lrf', + 3 => 'mar', + 4 => 'so', + 5 => 'dist', + 6 => 'distz', + 7 => 'pkg', + 8 => 'bpk', + 9 => 'dump', + 10 => 'elc', + 11 => 'deploy', + ), + 'application/oda' => + array ( + 0 => 'oda', + ), + 'application/oebps-package+xml' => + array ( + 0 => 'opf', + ), + 'application/ogg' => + array ( + 0 => 'ogx', + ), + 'application/omdoc+xml' => + array ( + 0 => 'omdoc', + ), + 'application/onenote' => + array ( + 0 => 'onetoc', + 1 => 'onetoc2', + 2 => 'onetmp', + 3 => 'onepkg', + ), + 'application/oxps' => + array ( + 0 => 'oxps', + ), + 'application/patch-ops-error+xml' => + array ( + 0 => 'xer', + ), + 'application/pdf' => + array ( + 0 => 'pdf', + ), + 'application/pgp-encrypted' => + array ( + 0 => 'pgp', + ), + 'application/pgp-signature' => + array ( + 0 => 'asc', + 1 => 'sig', + ), + 'application/pics-rules' => + array ( + 0 => 'prf', + ), + 'application/pkcs10' => + array ( + 0 => 'p10', + ), + 'application/pkcs7-mime' => + array ( + 0 => 'p7m', + 1 => 'p7c', + ), + 'application/pkcs7-signature' => + array ( + 0 => 'p7s', + ), + 'application/pkcs8' => + array ( + 0 => 'p8', + ), + 'application/pkix-attr-cert' => + array ( + 0 => 'ac', + ), + 'application/pkix-cert' => + array ( + 0 => 'cer', + ), + 'application/pkix-crl' => + array ( + 0 => 'crl', + ), + 'application/pkix-pkipath' => + array ( + 0 => 'pkipath', + ), + 'application/pkixcmp' => + array ( + 0 => 'pki', + ), + 'application/pls+xml' => + array ( + 0 => 'pls', + ), + 'application/postscript' => + array ( + 0 => 'ai', + 1 => 'eps', + 2 => 'ps', + ), + 'application/prs.cww' => + array ( + 0 => 'cww', + ), + 'application/pskc+xml' => + array ( + 0 => 'pskcxml', + ), + 'application/rdf+xml' => + array ( + 0 => 'rdf', + ), + 'application/reginfo+xml' => + array ( + 0 => 'rif', + ), + 'application/relax-ng-compact-syntax' => + array ( + 0 => 'rnc', + ), + 'application/resource-lists+xml' => + array ( + 0 => 'rl', + ), + 'application/resource-lists-diff+xml' => + array ( + 0 => 'rld', + ), + 'application/rls-services+xml' => + array ( + 0 => 'rs', + ), + 'application/rpki-ghostbusters' => + array ( + 0 => 'gbr', + ), + 'application/rpki-manifest' => + array ( + 0 => 'mft', + ), + 'application/rpki-roa' => + array ( + 0 => 'roa', + ), + 'application/rsd+xml' => + array ( + 0 => 'rsd', + ), + 'application/rss+xml' => + array ( + 0 => 'rss', + ), + 'application/rtf' => + array ( + 0 => 'rtf', + ), + 'application/sbml+xml' => + array ( + 0 => 'sbml', + ), + 'application/scvp-cv-request' => + array ( + 0 => 'scq', + ), + 'application/scvp-cv-response' => + array ( + 0 => 'scs', + ), + 'application/scvp-vp-request' => + array ( + 0 => 'spq', + ), + 'application/scvp-vp-response' => + array ( + 0 => 'spp', + ), + 'application/sdp' => + array ( + 0 => 'sdp', + ), + 'application/set-payment-initiation' => + array ( + 0 => 'setpay', + ), + 'application/set-registration-initiation' => + array ( + 0 => 'setreg', + ), + 'application/shf+xml' => + array ( + 0 => 'shf', + ), + 'application/smil+xml' => + array ( + 0 => 'smi', + 1 => 'smil', + ), + 'application/sparql-query' => + array ( + 0 => 'rq', + ), + 'application/sparql-results+xml' => + array ( + 0 => 'srx', + ), + 'application/srgs' => + array ( + 0 => 'gram', + ), + 'application/srgs+xml' => + array ( + 0 => 'grxml', + ), + 'application/sru+xml' => + array ( + 0 => 'sru', + ), + 'application/ssdl+xml' => + array ( + 0 => 'ssdl', + ), + 'application/ssml+xml' => + array ( + 0 => 'ssml', + ), + 'application/tei+xml' => + array ( + 0 => 'tei', + 1 => 'teicorpus', + ), + 'application/thraud+xml' => + array ( + 0 => 'tfi', + ), + 'application/timestamped-data' => + array ( + 0 => 'tsd', + ), + 'application/vnd.3gpp.pic-bw-large' => + array ( + 0 => 'plb', + ), + 'application/vnd.3gpp.pic-bw-small' => + array ( + 0 => 'psb', + ), + 'application/vnd.3gpp.pic-bw-var' => + array ( + 0 => 'pvb', + ), + 'application/vnd.3gpp2.tcap' => + array ( + 0 => 'tcap', + ), + 'application/vnd.3m.post-it-notes' => + array ( + 0 => 'pwn', + ), + 'application/vnd.accpac.simply.aso' => + array ( + 0 => 'aso', + ), + 'application/vnd.accpac.simply.imp' => + array ( + 0 => 'imp', + ), + 'application/vnd.acucobol' => + array ( + 0 => 'acu', + ), + 'application/vnd.acucorp' => + array ( + 0 => 'atc', + 1 => 'acutc', + ), + 'application/vnd.adobe.air-application-installer-package+zip' => + array ( + 0 => 'air', + ), + 'application/vnd.adobe.formscentral.fcdt' => + array ( + 0 => 'fcdt', + ), + 'application/vnd.adobe.fxp' => + array ( + 0 => 'fxp', + 1 => 'fxpl', + ), + 'application/vnd.adobe.xdp+xml' => + array ( + 0 => 'xdp', + ), + 'application/vnd.adobe.xfdf' => + array ( + 0 => 'xfdf', + ), + 'application/vnd.ahead.space' => + array ( + 0 => 'ahead', + ), + 'application/vnd.airzip.filesecure.azf' => + array ( + 0 => 'azf', + ), + 'application/vnd.airzip.filesecure.azs' => + array ( + 0 => 'azs', + ), + 'application/vnd.amazon.ebook' => + array ( + 0 => 'azw', + ), + 'application/vnd.americandynamics.acc' => + array ( + 0 => 'acc', + ), + 'application/vnd.amiga.ami' => + array ( + 0 => 'ami', + ), + 'application/vnd.android.package-archive' => + array ( + 0 => 'apk', + ), + 'application/vnd.anser-web-certificate-issue-initiation' => + array ( + 0 => 'cii', + ), + 'application/vnd.anser-web-funds-transfer-initiation' => + array ( + 0 => 'fti', + ), + 'application/vnd.antix.game-component' => + array ( + 0 => 'atx', + ), + 'application/vnd.apple.installer+xml' => + array ( + 0 => 'mpkg', + ), + 'application/vnd.apple.mpegurl' => + array ( + 0 => 'm3u8', + ), + 'application/vnd.aristanetworks.swi' => + array ( + 0 => 'swi', + ), + 'application/vnd.astraea-software.iota' => + array ( + 0 => 'iota', + ), + 'application/vnd.audiograph' => + array ( + 0 => 'aep', + ), + 'application/vnd.blueice.multipass' => + array ( + 0 => 'mpm', + ), + 'application/vnd.bmi' => + array ( + 0 => 'bmi', + ), + 'application/vnd.businessobjects' => + array ( + 0 => 'rep', + ), + 'application/vnd.chemdraw+xml' => + array ( + 0 => 'cdxml', + ), + 'application/vnd.chipnuts.karaoke-mmd' => + array ( + 0 => 'mmd', + ), + 'application/vnd.cinderella' => + array ( + 0 => 'cdy', + ), + 'application/vnd.claymore' => + array ( + 0 => 'cla', + ), + 'application/vnd.cloanto.rp9' => + array ( + 0 => 'rp9', + ), + 'application/vnd.clonk.c4group' => + array ( + 0 => 'c4g', + 1 => 'c4d', + 2 => 'c4f', + 3 => 'c4p', + 4 => 'c4u', + ), + 'application/vnd.cluetrust.cartomobile-config' => + array ( + 0 => 'c11amc', + ), + 'application/vnd.cluetrust.cartomobile-config-pkg' => + array ( + 0 => 'c11amz', + ), + 'application/vnd.commonspace' => + array ( + 0 => 'csp', + ), + 'application/vnd.contact.cmsg' => + array ( + 0 => 'cdbcmsg', + ), + 'application/vnd.cosmocaller' => + array ( + 0 => 'cmc', + ), + 'application/vnd.crick.clicker' => + array ( + 0 => 'clkx', + ), + 'application/vnd.crick.clicker.keyboard' => + array ( + 0 => 'clkk', + ), + 'application/vnd.crick.clicker.palette' => + array ( + 0 => 'clkp', + ), + 'application/vnd.crick.clicker.template' => + array ( + 0 => 'clkt', + ), + 'application/vnd.crick.clicker.wordbank' => + array ( + 0 => 'clkw', + ), + 'application/vnd.criticaltools.wbs+xml' => + array ( + 0 => 'wbs', + ), + 'application/vnd.ctc-posml' => + array ( + 0 => 'pml', + ), + 'application/vnd.cups-ppd' => + array ( + 0 => 'ppd', + ), + 'application/vnd.curl.car' => + array ( + 0 => 'car', + ), + 'application/vnd.curl.pcurl' => + array ( + 0 => 'pcurl', + ), + 'application/vnd.dart' => + array ( + 0 => 'dart', + ), + 'application/vnd.data-vision.rdz' => + array ( + 0 => 'rdz', + ), + 'application/vnd.dece.data' => + array ( + 0 => 'uvf', + 1 => 'uvvf', + 2 => 'uvd', + 3 => 'uvvd', + ), + 'application/vnd.dece.ttml+xml' => + array ( + 0 => 'uvt', + 1 => 'uvvt', + ), + 'application/vnd.dece.unspecified' => + array ( + 0 => 'uvx', + 1 => 'uvvx', + ), + 'application/vnd.dece.zip' => + array ( + 0 => 'uvz', + 1 => 'uvvz', + ), + 'application/vnd.denovo.fcselayout-link' => + array ( + 0 => 'fe_launch', + ), + 'application/vnd.dna' => + array ( + 0 => 'dna', + ), + 'application/vnd.dolby.mlp' => + array ( + 0 => 'mlp', + ), + 'application/vnd.dpgraph' => + array ( + 0 => 'dpg', + ), + 'application/vnd.dreamfactory' => + array ( + 0 => 'dfac', + ), + 'application/vnd.ds-keypoint' => + array ( + 0 => 'kpxx', + ), + 'application/vnd.dvb.ait' => + array ( + 0 => 'ait', + ), + 'application/vnd.dvb.service' => + array ( + 0 => 'svc', + ), + 'application/vnd.dynageo' => + array ( + 0 => 'geo', + ), + 'application/vnd.ecowin.chart' => + array ( + 0 => 'mag', + ), + 'application/vnd.enliven' => + array ( + 0 => 'nml', + ), + 'application/vnd.epson.esf' => + array ( + 0 => 'esf', + ), + 'application/vnd.epson.msf' => + array ( + 0 => 'msf', + ), + 'application/vnd.epson.quickanime' => + array ( + 0 => 'qam', + ), + 'application/vnd.epson.salt' => + array ( + 0 => 'slt', + ), + 'application/vnd.epson.ssf' => + array ( + 0 => 'ssf', + ), + 'application/vnd.eszigno3+xml' => + array ( + 0 => 'es3', + 1 => 'et3', + ), + 'application/vnd.ezpix-album' => + array ( + 0 => 'ez2', + ), + 'application/vnd.ezpix-package' => + array ( + 0 => 'ez3', + ), + 'application/vnd.fdf' => + array ( + 0 => 'fdf', + ), + 'application/vnd.fdsn.mseed' => + array ( + 0 => 'mseed', + ), + 'application/vnd.fdsn.seed' => + array ( + 0 => 'seed', + 1 => 'dataless', + ), + 'application/vnd.flographit' => + array ( + 0 => 'gph', + ), + 'application/vnd.fluxtime.clip' => + array ( + 0 => 'ftc', + ), + 'application/vnd.framemaker' => + array ( + 0 => 'fm', + 1 => 'frame', + 2 => 'maker', + 3 => 'book', + ), + 'application/vnd.frogans.fnc' => + array ( + 0 => 'fnc', + ), + 'application/vnd.frogans.ltf' => + array ( + 0 => 'ltf', + ), + 'application/vnd.fsc.weblaunch' => + array ( + 0 => 'fsc', + ), + 'application/vnd.fujitsu.oasys' => + array ( + 0 => 'oas', + ), + 'application/vnd.fujitsu.oasys2' => + array ( + 0 => 'oa2', + ), + 'application/vnd.fujitsu.oasys3' => + array ( + 0 => 'oa3', + ), + 'application/vnd.fujitsu.oasysgp' => + array ( + 0 => 'fg5', + ), + 'application/vnd.fujitsu.oasysprs' => + array ( + 0 => 'bh2', + ), + 'application/vnd.fujixerox.ddd' => + array ( + 0 => 'ddd', + ), + 'application/vnd.fujixerox.docuworks' => + array ( + 0 => 'xdw', + ), + 'application/vnd.fujixerox.docuworks.binder' => + array ( + 0 => 'xbd', + ), + 'application/vnd.fuzzysheet' => + array ( + 0 => 'fzs', + ), + 'application/vnd.genomatix.tuxedo' => + array ( + 0 => 'txd', + ), + 'application/vnd.geogebra.file' => + array ( + 0 => 'ggb', + ), + 'application/vnd.geogebra.tool' => + array ( + 0 => 'ggt', + ), + 'application/vnd.geometry-explorer' => + array ( + 0 => 'gex', + 1 => 'gre', + ), + 'application/vnd.geonext' => + array ( + 0 => 'gxt', + ), + 'application/vnd.geoplan' => + array ( + 0 => 'g2w', + ), + 'application/vnd.geospace' => + array ( + 0 => 'g3w', + ), + 'application/vnd.gmx' => + array ( + 0 => 'gmx', + ), + 'application/vnd.google-earth.kml+xml' => + array ( + 0 => 'kml', + ), + 'application/vnd.google-earth.kmz' => + array ( + 0 => 'kmz', + ), + 'application/vnd.grafeq' => + array ( + 0 => 'gqf', + 1 => 'gqs', + ), + 'application/vnd.groove-account' => + array ( + 0 => 'gac', + ), + 'application/vnd.groove-help' => + array ( + 0 => 'ghf', + ), + 'application/vnd.groove-identity-message' => + array ( + 0 => 'gim', + ), + 'application/vnd.groove-injector' => + array ( + 0 => 'grv', + ), + 'application/vnd.groove-tool-message' => + array ( + 0 => 'gtm', + ), + 'application/vnd.groove-tool-template' => + array ( + 0 => 'tpl', + ), + 'application/vnd.groove-vcard' => + array ( + 0 => 'vcg', + ), + 'application/vnd.hal+xml' => + array ( + 0 => 'hal', + ), + 'application/vnd.handheld-entertainment+xml' => + array ( + 0 => 'zmm', + ), + 'application/vnd.hbci' => + array ( + 0 => 'hbci', + ), + 'application/vnd.hhe.lesson-player' => + array ( + 0 => 'les', + ), + 'application/vnd.hp-hpgl' => + array ( + 0 => 'hpgl', + ), + 'application/vnd.hp-hpid' => + array ( + 0 => 'hpid', + ), + 'application/vnd.hp-hps' => + array ( + 0 => 'hps', + ), + 'application/vnd.hp-jlyt' => + array ( + 0 => 'jlt', + ), + 'application/vnd.hp-pcl' => + array ( + 0 => 'pcl', + ), + 'application/vnd.hp-pclxl' => + array ( + 0 => 'pclxl', + ), + 'application/vnd.hydrostatix.sof-data' => + array ( + 0 => 'sfd-hdstx', + ), + 'application/vnd.ibm.minipay' => + array ( + 0 => 'mpy', + ), + 'application/vnd.ibm.modcap' => + array ( + 0 => 'afp', + 1 => 'listafp', + 2 => 'list3820', + ), + 'application/vnd.ibm.rights-management' => + array ( + 0 => 'irm', + ), + 'application/vnd.ibm.secure-container' => + array ( + 0 => 'sc', + ), + 'application/vnd.iccprofile' => + array ( + 0 => 'icc', + 1 => 'icm', + ), + 'application/vnd.igloader' => + array ( + 0 => 'igl', + ), + 'application/vnd.immervision-ivp' => + array ( + 0 => 'ivp', + ), + 'application/vnd.immervision-ivu' => + array ( + 0 => 'ivu', + ), + 'application/vnd.insors.igm' => + array ( + 0 => 'igm', + ), + 'application/vnd.intercon.formnet' => + array ( + 0 => 'xpw', + 1 => 'xpx', + ), + 'application/vnd.intergeo' => + array ( + 0 => 'i2g', + ), + 'application/vnd.intu.qbo' => + array ( + 0 => 'qbo', + ), + 'application/vnd.intu.qfx' => + array ( + 0 => 'qfx', + ), + 'application/vnd.ipunplugged.rcprofile' => + array ( + 0 => 'rcprofile', + ), + 'application/vnd.irepository.package+xml' => + array ( + 0 => 'irp', + ), + 'application/vnd.is-xpr' => + array ( + 0 => 'xpr', + ), + 'application/vnd.isac.fcs' => + array ( + 0 => 'fcs', + ), + 'application/vnd.jam' => + array ( + 0 => 'jam', + ), + 'application/vnd.jcp.javame.midlet-rms' => + array ( + 0 => 'rms', + ), + 'application/vnd.jisp' => + array ( + 0 => 'jisp', + ), + 'application/vnd.joost.joda-archive' => + array ( + 0 => 'joda', + ), + 'application/vnd.kahootz' => + array ( + 0 => 'ktz', + 1 => 'ktr', + ), + 'application/vnd.kde.karbon' => + array ( + 0 => 'karbon', + ), + 'application/vnd.kde.kchart' => + array ( + 0 => 'chrt', + ), + 'application/vnd.kde.kformula' => + array ( + 0 => 'kfo', + ), + 'application/vnd.kde.kivio' => + array ( + 0 => 'flw', + ), + 'application/vnd.kde.kontour' => + array ( + 0 => 'kon', + ), + 'application/vnd.kde.kpresenter' => + array ( + 0 => 'kpr', + 1 => 'kpt', + ), + 'application/vnd.kde.kspread' => + array ( + 0 => 'ksp', + ), + 'application/vnd.kde.kword' => + array ( + 0 => 'kwd', + 1 => 'kwt', + ), + 'application/vnd.kenameaapp' => + array ( + 0 => 'htke', + ), + 'application/vnd.kidspiration' => + array ( + 0 => 'kia', + ), + 'application/vnd.kinar' => + array ( + 0 => 'kne', + 1 => 'knp', + ), + 'application/vnd.koan' => + array ( + 0 => 'skp', + 1 => 'skd', + 2 => 'skt', + 3 => 'skm', + ), + 'application/vnd.kodak-descriptor' => + array ( + 0 => 'sse', + ), + 'application/vnd.las.las+xml' => + array ( + 0 => 'lasxml', + ), + 'application/vnd.llamagraphics.life-balance.desktop' => + array ( + 0 => 'lbd', + ), + 'application/vnd.llamagraphics.life-balance.exchange+xml' => + array ( + 0 => 'lbe', + ), + 'application/vnd.lotus-1-2-3' => + array ( + 0 => '123', + ), + 'application/vnd.lotus-approach' => + array ( + 0 => 'apr', + ), + 'application/vnd.lotus-freelance' => + array ( + 0 => 'pre', + ), + 'application/vnd.lotus-notes' => + array ( + 0 => 'nsf', + ), + 'application/vnd.lotus-organizer' => + array ( + 0 => 'org', + ), + 'application/vnd.lotus-screencam' => + array ( + 0 => 'scm', + ), + 'application/vnd.lotus-wordpro' => + array ( + 0 => 'lwp', + ), + 'application/vnd.macports.portpkg' => + array ( + 0 => 'portpkg', + ), + 'application/vnd.mcd' => + array ( + 0 => 'mcd', + ), + 'application/vnd.medcalcdata' => + array ( + 0 => 'mc1', + ), + 'application/vnd.mediastation.cdkey' => + array ( + 0 => 'cdkey', + ), + 'application/vnd.mfer' => + array ( + 0 => 'mwf', + ), + 'application/vnd.mfmp' => + array ( + 0 => 'mfm', + ), + 'application/vnd.micrografx.flo' => + array ( + 0 => 'flo', + ), + 'application/vnd.micrografx.igx' => + array ( + 0 => 'igx', + ), + 'application/vnd.mif' => + array ( + 0 => 'mif', + ), + 'application/vnd.mobius.daf' => + array ( + 0 => 'daf', + ), + 'application/vnd.mobius.dis' => + array ( + 0 => 'dis', + ), + 'application/vnd.mobius.mbk' => + array ( + 0 => 'mbk', + ), + 'application/vnd.mobius.mqy' => + array ( + 0 => 'mqy', + ), + 'application/vnd.mobius.msl' => + array ( + 0 => 'msl', + ), + 'application/vnd.mobius.plc' => + array ( + 0 => 'plc', + ), + 'application/vnd.mobius.txf' => + array ( + 0 => 'txf', + ), + 'application/vnd.mophun.application' => + array ( + 0 => 'mpn', + ), + 'application/vnd.mophun.certificate' => + array ( + 0 => 'mpc', + ), + 'application/vnd.mozilla.xul+xml' => + array ( + 0 => 'xul', + ), + 'application/vnd.ms-artgalry' => + array ( + 0 => 'cil', + ), + 'application/vnd.ms-cab-compressed' => + array ( + 0 => 'cab', + ), + 'application/vnd.ms-excel' => + array ( + 0 => 'xls', + 1 => 'xlm', + 2 => 'xla', + 3 => 'xlc', + 4 => 'xlt', + 5 => 'xlw', + ), + 'application/vnd.ms-excel.addin.macroenabled.12' => + array ( + 0 => 'xlam', + ), + 'application/vnd.ms-excel.sheet.binary.macroenabled.12' => + array ( + 0 => 'xlsb', + ), + 'application/vnd.ms-excel.sheet.macroenabled.12' => + array ( + 0 => 'xlsm', + ), + 'application/vnd.ms-excel.template.macroenabled.12' => + array ( + 0 => 'xltm', + ), + 'application/vnd.ms-fontobject' => + array ( + 0 => 'eot', + ), + 'application/vnd.ms-htmlhelp' => + array ( + 0 => 'chm', + ), + 'application/vnd.ms-ims' => + array ( + 0 => 'ims', + ), + 'application/vnd.ms-lrm' => + array ( + 0 => 'lrm', + ), + 'application/vnd.ms-officetheme' => + array ( + 0 => 'thmx', + ), + 'application/vnd.ms-pki.seccat' => + array ( + 0 => 'cat', + ), + 'application/vnd.ms-pki.stl' => + array ( + 0 => 'stl', + ), + 'application/vnd.ms-powerpoint' => + array ( + 0 => 'ppt', + 1 => 'pps', + 2 => 'pot', + ), + 'application/vnd.ms-powerpoint.addin.macroenabled.12' => + array ( + 0 => 'ppam', + ), + 'application/vnd.ms-powerpoint.presentation.macroenabled.12' => + array ( + 0 => 'pptm', + ), + 'application/vnd.ms-powerpoint.slide.macroenabled.12' => + array ( + 0 => 'sldm', + ), + 'application/vnd.ms-powerpoint.slideshow.macroenabled.12' => + array ( + 0 => 'ppsm', + ), + 'application/vnd.ms-powerpoint.template.macroenabled.12' => + array ( + 0 => 'potm', + ), + 'application/vnd.ms-project' => + array ( + 0 => 'mpp', + 1 => 'mpt', + ), + 'application/vnd.ms-word.document.macroenabled.12' => + array ( + 0 => 'docm', + ), + 'application/vnd.ms-word.template.macroenabled.12' => + array ( + 0 => 'dotm', + ), + 'application/vnd.ms-works' => + array ( + 0 => 'wps', + 1 => 'wks', + 2 => 'wcm', + 3 => 'wdb', + ), + 'application/vnd.ms-wpl' => + array ( + 0 => 'wpl', + ), + 'application/vnd.ms-xpsdocument' => + array ( + 0 => 'xps', + ), + 'application/vnd.mseq' => + array ( + 0 => 'mseq', + ), + 'application/vnd.musician' => + array ( + 0 => 'mus', + ), + 'application/vnd.muvee.style' => + array ( + 0 => 'msty', + ), + 'application/vnd.mynfc' => + array ( + 0 => 'taglet', + ), + 'application/vnd.neurolanguage.nlu' => + array ( + 0 => 'nlu', + ), + 'application/vnd.nitf' => + array ( + 0 => 'ntf', + 1 => 'nitf', + ), + 'application/vnd.noblenet-directory' => + array ( + 0 => 'nnd', + ), + 'application/vnd.noblenet-sealer' => + array ( + 0 => 'nns', + ), + 'application/vnd.noblenet-web' => + array ( + 0 => 'nnw', + ), + 'application/vnd.nokia.n-gage.data' => + array ( + 0 => 'ngdat', + ), + 'application/vnd.nokia.n-gage.symbian.install' => + array ( + 0 => 'n-gage', + ), + 'application/vnd.nokia.radio-preset' => + array ( + 0 => 'rpst', + ), + 'application/vnd.nokia.radio-presets' => + array ( + 0 => 'rpss', + ), + 'application/vnd.novadigm.edm' => + array ( + 0 => 'edm', + ), + 'application/vnd.novadigm.edx' => + array ( + 0 => 'edx', + ), + 'application/vnd.novadigm.ext' => + array ( + 0 => 'ext', + ), + 'application/vnd.oasis.opendocument.chart' => + array ( + 0 => 'odc', + ), + 'application/vnd.oasis.opendocument.chart-template' => + array ( + 0 => 'otc', + ), + 'application/vnd.oasis.opendocument.database' => + array ( + 0 => 'odb', + ), + 'application/vnd.oasis.opendocument.formula' => + array ( + 0 => 'odf', + ), + 'application/vnd.oasis.opendocument.formula-template' => + array ( + 0 => 'odft', + ), + 'application/vnd.oasis.opendocument.graphics' => + array ( + 0 => 'odg', + ), + 'application/vnd.oasis.opendocument.graphics-template' => + array ( + 0 => 'otg', + ), + 'application/vnd.oasis.opendocument.image' => + array ( + 0 => 'odi', + ), + 'application/vnd.oasis.opendocument.image-template' => + array ( + 0 => 'oti', + ), + 'application/vnd.oasis.opendocument.presentation' => + array ( + 0 => 'odp', + ), + 'application/vnd.oasis.opendocument.presentation-template' => + array ( + 0 => 'otp', + ), + 'application/vnd.oasis.opendocument.spreadsheet' => + array ( + 0 => 'ods', + ), + 'application/vnd.oasis.opendocument.spreadsheet-template' => + array ( + 0 => 'ots', + ), + 'application/vnd.oasis.opendocument.text' => + array ( + 0 => 'odt', + ), + 'application/vnd.oasis.opendocument.text-master' => + array ( + 0 => 'odm', + ), + 'application/vnd.oasis.opendocument.text-template' => + array ( + 0 => 'ott', + ), + 'application/vnd.oasis.opendocument.text-web' => + array ( + 0 => 'oth', + ), + 'application/vnd.olpc-sugar' => + array ( + 0 => 'xo', + ), + 'application/vnd.oma.dd2+xml' => + array ( + 0 => 'dd2', + ), + 'application/vnd.openofficeorg.extension' => + array ( + 0 => 'oxt', + ), + 'application/vnd.openxmlformats-officedocument.presentationml.presentation' => + array ( + 0 => 'pptx', + ), + 'application/vnd.openxmlformats-officedocument.presentationml.slide' => + array ( + 0 => 'sldx', + ), + 'application/vnd.openxmlformats-officedocument.presentationml.slideshow' => + array ( + 0 => 'ppsx', + ), + 'application/vnd.openxmlformats-officedocument.presentationml.template' => + array ( + 0 => 'potx', + ), + 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' => + array ( + 0 => 'xlsx', + ), + 'application/vnd.openxmlformats-officedocument.spreadsheetml.template' => + array ( + 0 => 'xltx', + ), + 'application/vnd.openxmlformats-officedocument.wordprocessingml.document' => + array ( + 0 => 'docx', + ), + 'application/vnd.openxmlformats-officedocument.wordprocessingml.template' => + array ( + 0 => 'dotx', + ), + 'application/vnd.osgeo.mapguide.package' => + array ( + 0 => 'mgp', + ), + 'application/vnd.osgi.dp' => + array ( + 0 => 'dp', + ), + 'application/vnd.osgi.subsystem' => + array ( + 0 => 'esa', + ), + 'application/vnd.palm' => + array ( + 0 => 'pdb', + 1 => 'pqa', + 2 => 'oprc', + ), + 'application/vnd.pawaafile' => + array ( + 0 => 'paw', + ), + 'application/vnd.pg.format' => + array ( + 0 => 'str', + ), + 'application/vnd.pg.osasli' => + array ( + 0 => 'ei6', + ), + 'application/vnd.picsel' => + array ( + 0 => 'efif', + ), + 'application/vnd.pmi.widget' => + array ( + 0 => 'wg', + ), + 'application/vnd.pocketlearn' => + array ( + 0 => 'plf', + ), + 'application/vnd.powerbuilder6' => + array ( + 0 => 'pbd', + ), + 'application/vnd.previewsystems.box' => + array ( + 0 => 'box', + ), + 'application/vnd.proteus.magazine' => + array ( + 0 => 'mgz', + ), + 'application/vnd.publishare-delta-tree' => + array ( + 0 => 'qps', + ), + 'application/vnd.pvi.ptid1' => + array ( + 0 => 'ptid', + ), + 'application/vnd.quark.quarkxpress' => + array ( + 0 => 'qxd', + 1 => 'qxt', + 2 => 'qwd', + 3 => 'qwt', + 4 => 'qxl', + 5 => 'qxb', + ), + 'application/vnd.realvnc.bed' => + array ( + 0 => 'bed', + ), + 'application/vnd.recordare.musicxml' => + array ( + 0 => 'mxl', + ), + 'application/vnd.recordare.musicxml+xml' => + array ( + 0 => 'musicxml', + ), + 'application/vnd.rig.cryptonote' => + array ( + 0 => 'cryptonote', + ), + 'application/vnd.rim.cod' => + array ( + 0 => 'cod', + ), + 'application/vnd.rn-realmedia' => + array ( + 0 => 'rm', + ), + 'application/vnd.rn-realmedia-vbr' => + array ( + 0 => 'rmvb', + ), + 'application/vnd.route66.link66+xml' => + array ( + 0 => 'link66', + ), + 'application/vnd.sailingtracker.track' => + array ( + 0 => 'st', + ), + 'application/vnd.seemail' => + array ( + 0 => 'see', + ), + 'application/vnd.sema' => + array ( + 0 => 'sema', + ), + 'application/vnd.semd' => + array ( + 0 => 'semd', + ), + 'application/vnd.semf' => + array ( + 0 => 'semf', + ), + 'application/vnd.shana.informed.formdata' => + array ( + 0 => 'ifm', + ), + 'application/vnd.shana.informed.formtemplate' => + array ( + 0 => 'itp', + ), + 'application/vnd.shana.informed.interchange' => + array ( + 0 => 'iif', + ), + 'application/vnd.shana.informed.package' => + array ( + 0 => 'ipk', + ), + 'application/vnd.simtech-mindmapper' => + array ( + 0 => 'twd', + 1 => 'twds', + ), + 'application/vnd.smaf' => + array ( + 0 => 'mmf', + ), + 'application/vnd.smart.teacher' => + array ( + 0 => 'teacher', + ), + 'application/vnd.solent.sdkm+xml' => + array ( + 0 => 'sdkm', + 1 => 'sdkd', + ), + 'application/vnd.spotfire.dxp' => + array ( + 0 => 'dxp', + ), + 'application/vnd.spotfire.sfs' => + array ( + 0 => 'sfs', + ), + 'application/vnd.stardivision.calc' => + array ( + 0 => 'sdc', + ), + 'application/vnd.stardivision.draw' => + array ( + 0 => 'sda', + ), + 'application/vnd.stardivision.impress' => + array ( + 0 => 'sdd', + ), + 'application/vnd.stardivision.math' => + array ( + 0 => 'smf', + ), + 'application/vnd.stardivision.writer' => + array ( + 0 => 'sdw', + 1 => 'vor', + ), + 'application/vnd.stardivision.writer-global' => + array ( + 0 => 'sgl', + ), + 'application/vnd.stepmania.package' => + array ( + 0 => 'smzip', + ), + 'application/vnd.stepmania.stepchart' => + array ( + 0 => 'sm', + ), + 'application/vnd.sun.xml.calc' => + array ( + 0 => 'sxc', + ), + 'application/vnd.sun.xml.calc.template' => + array ( + 0 => 'stc', + ), + 'application/vnd.sun.xml.draw' => + array ( + 0 => 'sxd', + ), + 'application/vnd.sun.xml.draw.template' => + array ( + 0 => 'std', + ), + 'application/vnd.sun.xml.impress' => + array ( + 0 => 'sxi', + ), + 'application/vnd.sun.xml.impress.template' => + array ( + 0 => 'sti', + ), + 'application/vnd.sun.xml.math' => + array ( + 0 => 'sxm', + ), + 'application/vnd.sun.xml.writer' => + array ( + 0 => 'sxw', + ), + 'application/vnd.sun.xml.writer.global' => + array ( + 0 => 'sxg', + ), + 'application/vnd.sun.xml.writer.template' => + array ( + 0 => 'stw', + ), + 'application/vnd.sus-calendar' => + array ( + 0 => 'sus', + 1 => 'susp', + ), + 'application/vnd.svd' => + array ( + 0 => 'svd', + ), + 'application/vnd.symbian.install' => + array ( + 0 => 'sis', + 1 => 'sisx', + ), + 'application/vnd.syncml+xml' => + array ( + 0 => 'xsm', + ), + 'application/vnd.syncml.dm+wbxml' => + array ( + 0 => 'bdm', + ), + 'application/vnd.syncml.dm+xml' => + array ( + 0 => 'xdm', + ), + 'application/vnd.tao.intent-module-archive' => + array ( + 0 => 'tao', + ), + 'application/vnd.tcpdump.pcap' => + array ( + 0 => 'pcap', + 1 => 'cap', + 2 => 'dmp', + ), + 'application/vnd.tmobile-livetv' => + array ( + 0 => 'tmo', + ), + 'application/vnd.trid.tpt' => + array ( + 0 => 'tpt', + ), + 'application/vnd.triscape.mxs' => + array ( + 0 => 'mxs', + ), + 'application/vnd.trueapp' => + array ( + 0 => 'tra', + ), + 'application/vnd.ufdl' => + array ( + 0 => 'ufd', + 1 => 'ufdl', + ), + 'application/vnd.uiq.theme' => + array ( + 0 => 'utz', + ), + 'application/vnd.umajin' => + array ( + 0 => 'umj', + ), + 'application/vnd.unity' => + array ( + 0 => 'unityweb', + ), + 'application/vnd.uoml+xml' => + array ( + 0 => 'uoml', + ), + 'application/vnd.vcx' => + array ( + 0 => 'vcx', + ), + 'application/vnd.visio' => + array ( + 0 => 'vsd', + 1 => 'vst', + 2 => 'vss', + 3 => 'vsw', + ), + 'application/vnd.visionary' => + array ( + 0 => 'vis', + ), + 'application/vnd.vsf' => + array ( + 0 => 'vsf', + ), + 'application/vnd.wap.wbxml' => + array ( + 0 => 'wbxml', + ), + 'application/vnd.wap.wmlc' => + array ( + 0 => 'wmlc', + ), + 'application/vnd.wap.wmlscriptc' => + array ( + 0 => 'wmlsc', + ), + 'application/vnd.webturbo' => + array ( + 0 => 'wtb', + ), + 'application/vnd.wolfram.player' => + array ( + 0 => 'nbp', + ), + 'application/vnd.wordperfect' => + array ( + 0 => 'wpd', + ), + 'application/vnd.wqd' => + array ( + 0 => 'wqd', + ), + 'application/vnd.wt.stf' => + array ( + 0 => 'stf', + ), + 'application/vnd.xara' => + array ( + 0 => 'xar', + ), + 'application/vnd.xfdl' => + array ( + 0 => 'xfdl', + ), + 'application/vnd.yamaha.hv-dic' => + array ( + 0 => 'hvd', + ), + 'application/vnd.yamaha.hv-script' => + array ( + 0 => 'hvs', + ), + 'application/vnd.yamaha.hv-voice' => + array ( + 0 => 'hvp', + ), + 'application/vnd.yamaha.openscoreformat' => + array ( + 0 => 'osf', + ), + 'application/vnd.yamaha.openscoreformat.osfpvg+xml' => + array ( + 0 => 'osfpvg', + ), + 'application/vnd.yamaha.smaf-audio' => + array ( + 0 => 'saf', + ), + 'application/vnd.yamaha.smaf-phrase' => + array ( + 0 => 'spf', + ), + 'application/vnd.yellowriver-custom-menu' => + array ( + 0 => 'cmp', + ), + 'application/vnd.zul' => + array ( + 0 => 'zir', + 1 => 'zirz', + ), + 'application/vnd.zzazz.deck+xml' => + array ( + 0 => 'zaz', + ), + 'application/voicexml+xml' => + array ( + 0 => 'vxml', + ), + 'application/widget' => + array ( + 0 => 'wgt', + ), + 'application/winhlp' => + array ( + 0 => 'hlp', + ), + 'application/wsdl+xml' => + array ( + 0 => 'wsdl', + ), + 'application/wspolicy+xml' => + array ( + 0 => 'wspolicy', + ), + 'application/x-7z-compressed' => + array ( + 0 => '7z', + ), + 'application/x-abiword' => + array ( + 0 => 'abw', + ), + 'application/x-ace-compressed' => + array ( + 0 => 'ace', + ), + 'application/x-apple-diskimage' => + array ( + 0 => 'dmg', + ), + 'application/x-authorware-bin' => + array ( + 0 => 'aab', + 1 => 'x32', + 2 => 'u32', + 3 => 'vox', + ), + 'application/x-authorware-map' => + array ( + 0 => 'aam', + ), + 'application/x-authorware-seg' => + array ( + 0 => 'aas', + ), + 'application/x-bcpio' => + array ( + 0 => 'bcpio', + ), + 'application/x-bittorrent' => + array ( + 0 => 'torrent', + ), + 'application/x-blorb' => + array ( + 0 => 'blb', + 1 => 'blorb', + ), + 'application/x-bzip' => + array ( + 0 => 'bz', + ), + 'application/x-bzip2' => + array ( + 0 => 'bz2', + 1 => 'boz', + ), + 'application/x-cbr' => + array ( + 0 => 'cbr', + 1 => 'cba', + 2 => 'cbt', + 3 => 'cbz', + 4 => 'cb7', + ), + 'application/x-cdlink' => + array ( + 0 => 'vcd', + ), + 'application/x-cfs-compressed' => + array ( + 0 => 'cfs', + ), + 'application/x-chat' => + array ( + 0 => 'chat', + ), + 'application/x-chess-pgn' => + array ( + 0 => 'pgn', + ), + 'application/x-conference' => + array ( + 0 => 'nsc', + ), + 'application/x-cpio' => + array ( + 0 => 'cpio', + ), + 'application/x-csh' => + array ( + 0 => 'csh', + ), + 'application/x-debian-package' => + array ( + 0 => 'deb', + 1 => 'udeb', + ), + 'application/x-dgc-compressed' => + array ( + 0 => 'dgc', + ), + 'application/x-director' => + array ( + 0 => 'dir', + 1 => 'dcr', + 2 => 'dxr', + 3 => 'cst', + 4 => 'cct', + 5 => 'cxt', + 6 => 'w3d', + 7 => 'fgd', + 8 => 'swa', + ), + 'application/x-doom' => + array ( + 0 => 'wad', + ), + 'application/x-dtbncx+xml' => + array ( + 0 => 'ncx', + ), + 'application/x-dtbook+xml' => + array ( + 0 => 'dtb', + ), + 'application/x-dtbresource+xml' => + array ( + 0 => 'res', + ), + 'application/x-dvi' => + array ( + 0 => 'dvi', + ), + 'application/x-envoy' => + array ( + 0 => 'evy', + ), + 'application/x-eva' => + array ( + 0 => 'eva', + ), + 'application/x-font-bdf' => + array ( + 0 => 'bdf', + ), + 'application/x-font-ghostscript' => + array ( + 0 => 'gsf', + ), + 'application/x-font-linux-psf' => + array ( + 0 => 'psf', + ), + 'application/x-font-pcf' => + array ( + 0 => 'pcf', + ), + 'application/x-font-snf' => + array ( + 0 => 'snf', + ), + 'application/x-font-type1' => + array ( + 0 => 'pfa', + 1 => 'pfb', + 2 => 'pfm', + 3 => 'afm', + ), + 'application/x-freearc' => + array ( + 0 => 'arc', + ), + 'application/x-futuresplash' => + array ( + 0 => 'spl', + ), + 'application/x-gca-compressed' => + array ( + 0 => 'gca', + ), + 'application/x-glulx' => + array ( + 0 => 'ulx', + ), + 'application/x-gnumeric' => + array ( + 0 => 'gnumeric', + ), + 'application/x-gramps-xml' => + array ( + 0 => 'gramps', + ), + 'application/x-gtar' => + array ( + 0 => 'gtar', + ), + 'application/x-hdf' => + array ( + 0 => 'hdf', + ), + 'application/x-install-instructions' => + array ( + 0 => 'install', + ), + 'application/x-iso9660-image' => + array ( + 0 => 'iso', + ), + 'application/x-java-jnlp-file' => + array ( + 0 => 'jnlp', + ), + 'application/x-latex' => + array ( + 0 => 'latex', + ), + 'application/x-lzh-compressed' => + array ( + 0 => 'lzh', + 1 => 'lha', + ), + 'application/x-mie' => + array ( + 0 => 'mie', + ), + 'application/x-mobipocket-ebook' => + array ( + 0 => 'prc', + 1 => 'mobi', + ), + 'application/x-ms-application' => + array ( + 0 => 'application', + ), + 'application/x-ms-shortcut' => + array ( + 0 => 'lnk', + ), + 'application/x-ms-wmd' => + array ( + 0 => 'wmd', + ), + 'application/x-ms-wmz' => + array ( + 0 => 'wmz', + ), + 'application/x-ms-xbap' => + array ( + 0 => 'xbap', + ), + 'application/x-msaccess' => + array ( + 0 => 'mdb', + ), + 'application/x-msbinder' => + array ( + 0 => 'obd', + ), + 'application/x-mscardfile' => + array ( + 0 => 'crd', + ), + 'application/x-msclip' => + array ( + 0 => 'clp', + ), + 'application/x-msdownload' => + array ( + 0 => 'exe', + 1 => 'dll', + 2 => 'com', + 3 => 'bat', + 4 => 'msi', + ), + 'application/x-msmediaview' => + array ( + 0 => 'mvb', + 1 => 'm13', + 2 => 'm14', + ), + 'application/x-msmetafile' => + array ( + 0 => 'wmf', + 1 => 'wmz', + 2 => 'emf', + 3 => 'emz', + ), + 'application/x-msmoney' => + array ( + 0 => 'mny', + ), + 'application/x-mspublisher' => + array ( + 0 => 'pub', + ), + 'application/x-msschedule' => + array ( + 0 => 'scd', + ), + 'application/x-msterminal' => + array ( + 0 => 'trm', + ), + 'application/x-mswrite' => + array ( + 0 => 'wri', + ), + 'application/x-netcdf' => + array ( + 0 => 'nc', + 1 => 'cdf', + ), + 'application/x-nzb' => + array ( + 0 => 'nzb', + ), + 'application/x-pkcs12' => + array ( + 0 => 'p12', + 1 => 'pfx', + ), + 'application/x-pkcs7-certificates' => + array ( + 0 => 'p7b', + 1 => 'spc', + ), + 'application/x-pkcs7-certreqresp' => + array ( + 0 => 'p7r', + ), + 'application/x-rar-compressed' => + array ( + 0 => 'rar', + ), + 'application/x-research-info-systems' => + array ( + 0 => 'ris', + ), + 'application/x-sh' => + array ( + 0 => 'sh', + ), + 'application/x-shar' => + array ( + 0 => 'shar', + ), + 'application/x-shockwave-flash' => + array ( + 0 => 'swf', + ), + 'application/x-silverlight-app' => + array ( + 0 => 'xap', + ), + 'application/x-sql' => + array ( + 0 => 'sql', + ), + 'application/x-stuffit' => + array ( + 0 => 'sit', + ), + 'application/x-stuffitx' => + array ( + 0 => 'sitx', + ), + 'application/x-subrip' => + array ( + 0 => 'srt', + ), + 'application/x-sv4cpio' => + array ( + 0 => 'sv4cpio', + ), + 'application/x-sv4crc' => + array ( + 0 => 'sv4crc', + ), + 'application/x-t3vm-image' => + array ( + 0 => 't3', + ), + 'application/x-tads' => + array ( + 0 => 'gam', + ), + 'application/x-tar' => + array ( + 0 => 'tar', + ), + 'application/x-tcl' => + array ( + 0 => 'tcl', + ), + 'application/x-tex' => + array ( + 0 => 'tex', + ), + 'application/x-tex-tfm' => + array ( + 0 => 'tfm', + ), + 'application/x-texinfo' => + array ( + 0 => 'texinfo', + 1 => 'texi', + ), + 'application/x-tgif' => + array ( + 0 => 'obj', + ), + 'application/x-ustar' => + array ( + 0 => 'ustar', + ), + 'application/x-wais-source' => + array ( + 0 => 'src', + ), + 'application/x-x509-ca-cert' => + array ( + 0 => 'der', + 1 => 'crt', + ), + 'application/x-xfig' => + array ( + 0 => 'fig', + ), + 'application/x-xliff+xml' => + array ( + 0 => 'xlf', + ), + 'application/x-xpinstall' => + array ( + 0 => 'xpi', + ), + 'application/x-xz' => + array ( + 0 => 'xz', + ), + 'application/x-zmachine' => + array ( + 0 => 'z1', + 1 => 'z2', + 2 => 'z3', + 3 => 'z4', + 4 => 'z5', + 5 => 'z6', + 6 => 'z7', + 7 => 'z8', + ), + 'application/xaml+xml' => + array ( + 0 => 'xaml', + ), + 'application/xcap-diff+xml' => + array ( + 0 => 'xdf', + ), + 'application/xenc+xml' => + array ( + 0 => 'xenc', + ), + 'application/xhtml+xml' => + array ( + 0 => 'xhtml', + 1 => 'xht', + ), + 'application/xml' => + array ( + 0 => 'xml', + 1 => 'xsl', + ), + 'application/xml-dtd' => + array ( + 0 => 'dtd', + ), + 'application/xop+xml' => + array ( + 0 => 'xop', + ), + 'application/xproc+xml' => + array ( + 0 => 'xpl', + ), + 'application/xslt+xml' => + array ( + 0 => 'xslt', + ), + 'application/xspf+xml' => + array ( + 0 => 'xspf', + ), + 'application/xv+xml' => + array ( + 0 => 'mxml', + 1 => 'xhvml', + 2 => 'xvml', + 3 => 'xvm', + ), + 'application/yang' => + array ( + 0 => 'yang', + ), + 'application/yin+xml' => + array ( + 0 => 'yin', + ), + 'application/zip' => + array ( + 0 => 'zip', + ), + 'audio/adpcm' => + array ( + 0 => 'adp', + ), + 'audio/basic' => + array ( + 0 => 'au', + 1 => 'snd', + ), + 'audio/midi' => + array ( + 0 => 'mid', + 1 => 'midi', + 2 => 'kar', + 3 => 'rmi', + ), + 'audio/mp4' => + array ( + 0 => 'm4a', + 1 => 'mp4a', + ), + 'audio/ogg' => + array ( + 0 => 'oga', + 1 => 'ogg', + 2 => 'spx', + ), + 'audio/s3m' => + array ( + 0 => 's3m', + ), + 'audio/silk' => + array ( + 0 => 'sil', + ), + 'audio/vnd.dece.audio' => + array ( + 0 => 'uva', + 1 => 'uvva', + ), + 'audio/vnd.digital-winds' => + array ( + 0 => 'eol', + ), + 'audio/vnd.dra' => + array ( + 0 => 'dra', + ), + 'audio/vnd.dts' => + array ( + 0 => 'dts', + ), + 'audio/vnd.dts.hd' => + array ( + 0 => 'dtshd', + ), + 'audio/vnd.lucent.voice' => + array ( + 0 => 'lvp', + ), + 'audio/vnd.ms-playready.media.pya' => + array ( + 0 => 'pya', + ), + 'audio/vnd.nuera.ecelp4800' => + array ( + 0 => 'ecelp4800', + ), + 'audio/vnd.nuera.ecelp7470' => + array ( + 0 => 'ecelp7470', + ), + 'audio/vnd.nuera.ecelp9600' => + array ( + 0 => 'ecelp9600', + ), + 'audio/vnd.rip' => + array ( + 0 => 'rip', + ), + 'audio/webm' => + array ( + 0 => 'weba', + ), + 'audio/x-aac' => + array ( + 0 => 'aac', + ), + 'audio/x-aiff' => + array ( + 0 => 'aif', + 1 => 'aiff', + 2 => 'aifc', + ), + 'audio/x-caf' => + array ( + 0 => 'caf', + ), + 'audio/x-flac' => + array ( + 0 => 'flac', + ), + 'audio/x-matroska' => + array ( + 0 => 'mka', + ), + 'audio/x-mpegurl' => + array ( + 0 => 'm3u', + ), + 'audio/x-ms-wax' => + array ( + 0 => 'wax', + ), + 'audio/x-ms-wma' => + array ( + 0 => 'wma', + ), + 'audio/x-pn-realaudio' => + array ( + 0 => 'ram', + 1 => 'ra', + ), + 'audio/x-pn-realaudio-plugin' => + array ( + 0 => 'rmp', + ), + 'audio/x-wav' => + array ( + 0 => 'wav', + ), + 'audio/xm' => + array ( + 0 => 'xm', + ), + 'chemical/x-cdx' => + array ( + 0 => 'cdx', + ), + 'chemical/x-cif' => + array ( + 0 => 'cif', + ), + 'chemical/x-cmdf' => + array ( + 0 => 'cmdf', + ), + 'chemical/x-cml' => + array ( + 0 => 'cml', + ), + 'chemical/x-csml' => + array ( + 0 => 'csml', + ), + 'chemical/x-xyz' => + array ( + 0 => 'xyz', + ), + 'font/collection' => + array ( + 0 => 'ttc', + ), + 'font/otf' => + array ( + 0 => 'otf', + ), + 'font/ttf' => + array ( + 0 => 'ttf', + ), + 'font/woff' => + array ( + 0 => 'woff', + ), + 'font/woff2' => + array ( + 0 => 'woff2', + ), + 'image/bmp' => + array ( + 0 => 'bmp', + ), + 'image/cgm' => + array ( + 0 => 'cgm', + ), + 'image/g3fax' => + array ( + 0 => 'g3', + ), + 'image/gif' => + array ( + 0 => 'gif', + ), + 'image/ief' => + array ( + 0 => 'ief', + ), + 'image/ktx' => + array ( + 0 => 'ktx', + ), + 'image/png' => + array ( + 0 => 'png', + ), + 'image/prs.btif' => + array ( + 0 => 'btif', + ), + 'image/sgi' => + array ( + 0 => 'sgi', + ), + 'image/svg+xml' => + array ( + 0 => 'svg', + 1 => 'svgz', + ), + 'image/tiff' => + array ( + 0 => 'tiff', + 1 => 'tif', + ), + 'image/vnd.adobe.photoshop' => + array ( + 0 => 'psd', + ), + 'image/vnd.dece.graphic' => + array ( + 0 => 'uvi', + 1 => 'uvvi', + 2 => 'uvg', + 3 => 'uvvg', + ), + 'image/vnd.djvu' => + array ( + 0 => 'djvu', + 1 => 'djv', + ), + 'image/vnd.dvb.subtitle' => + array ( + 0 => 'sub', + ), + 'image/vnd.dwg' => + array ( + 0 => 'dwg', + ), + 'image/vnd.dxf' => + array ( + 0 => 'dxf', + ), + 'image/vnd.fastbidsheet' => + array ( + 0 => 'fbs', + ), + 'image/vnd.fpx' => + array ( + 0 => 'fpx', + ), + 'image/vnd.fst' => + array ( + 0 => 'fst', + ), + 'image/vnd.fujixerox.edmics-mmr' => + array ( + 0 => 'mmr', + ), + 'image/vnd.fujixerox.edmics-rlc' => + array ( + 0 => 'rlc', + ), + 'image/vnd.ms-modi' => + array ( + 0 => 'mdi', + ), + 'image/vnd.ms-photo' => + array ( + 0 => 'wdp', + ), + 'image/vnd.net-fpx' => + array ( + 0 => 'npx', + ), + 'image/vnd.wap.wbmp' => + array ( + 0 => 'wbmp', + ), + 'image/vnd.xiff' => + array ( + 0 => 'xif', + ), + 'image/webp' => + array ( + 0 => 'webp', + ), + 'image/x-3ds' => + array ( + 0 => '3ds', + ), + 'image/x-cmu-raster' => + array ( + 0 => 'ras', + ), + 'image/x-cmx' => + array ( + 0 => 'cmx', + ), + 'image/x-freehand' => + array ( + 0 => 'fh', + 1 => 'fhc', + 2 => 'fh4', + 3 => 'fh5', + 4 => 'fh7', + ), + 'image/x-icon' => + array ( + 0 => 'ico', + ), + 'image/x-mrsid-image' => + array ( + 0 => 'sid', + ), + 'image/x-pcx' => + array ( + 0 => 'pcx', + ), + 'image/x-pict' => + array ( + 0 => 'pic', + 1 => 'pct', + ), + 'image/x-portable-anymap' => + array ( + 0 => 'pnm', + ), + 'image/x-portable-bitmap' => + array ( + 0 => 'pbm', + ), + 'image/x-portable-graymap' => + array ( + 0 => 'pgm', + ), + 'image/x-portable-pixmap' => + array ( + 0 => 'ppm', + ), + 'image/x-rgb' => + array ( + 0 => 'rgb', + ), + 'image/x-tga' => + array ( + 0 => 'tga', + ), + 'image/x-xbitmap' => + array ( + 0 => 'xbm', + ), + 'image/x-xpixmap' => + array ( + 0 => 'xpm', + ), + 'image/x-xwindowdump' => + array ( + 0 => 'xwd', + ), + 'message/rfc822' => + array ( + 0 => 'eml', + 1 => 'mime', + ), + 'model/iges' => + array ( + 0 => 'igs', + 1 => 'iges', + ), + 'model/mesh' => + array ( + 0 => 'msh', + 1 => 'mesh', + 2 => 'silo', + ), + 'model/vnd.collada+xml' => + array ( + 0 => 'dae', + ), + 'model/vnd.dwf' => + array ( + 0 => 'dwf', + ), + 'model/vnd.gdl' => + array ( + 0 => 'gdl', + ), + 'model/vnd.gtw' => + array ( + 0 => 'gtw', + ), + 'model/vnd.mts' => + array ( + 0 => 'mts', + ), + 'model/vnd.vtu' => + array ( + 0 => 'vtu', + ), + 'model/vrml' => + array ( + 0 => 'wrl', + 1 => 'vrml', + ), + 'model/x3d+binary' => + array ( + 0 => 'x3db', + 1 => 'x3dbz', + ), + 'model/x3d+vrml' => + array ( + 0 => 'x3dv', + 1 => 'x3dvz', + ), + 'model/x3d+xml' => + array ( + 0 => 'x3d', + 1 => 'x3dz', + ), + 'text/cache-manifest' => + array ( + 0 => 'appcache', + ), + 'text/calendar' => + array ( + 0 => 'ics', + 1 => 'ifb', + ), + 'text/css' => + array ( + 0 => 'css', + ), + 'text/csv' => + array ( + 0 => 'csv', + ), + 'text/html' => + array ( + 0 => 'html', + 1 => 'htm', + ), + 'text/n3' => + array ( + 0 => 'n3', + ), + 'text/plain' => + array ( + 0 => 'txt', + 1 => 'text', + 2 => 'conf', + 3 => 'def', + 4 => 'list', + 5 => 'log', + 6 => 'in', + ), + 'text/prs.lines.tag' => + array ( + 0 => 'dsc', + ), + 'text/richtext' => + array ( + 0 => 'rtx', + ), + 'text/sgml' => + array ( + 0 => 'sgml', + 1 => 'sgm', + ), + 'text/tab-separated-values' => + array ( + 0 => 'tsv', + ), + 'text/troff' => + array ( + 0 => 't', + 1 => 'tr', + 2 => 'roff', + 3 => 'man', + 4 => 'me', + 5 => 'ms', + ), + 'text/turtle' => + array ( + 0 => 'ttl', + ), + 'text/uri-list' => + array ( + 0 => 'uri', + 1 => 'uris', + 2 => 'urls', + ), + 'text/vcard' => + array ( + 0 => 'vcard', + ), + 'text/vnd.curl' => + array ( + 0 => 'curl', + ), + 'text/vnd.curl.dcurl' => + array ( + 0 => 'dcurl', + ), + 'text/vnd.curl.mcurl' => + array ( + 0 => 'mcurl', + ), + 'text/vnd.curl.scurl' => + array ( + 0 => 'scurl', + ), + 'text/vnd.dvb.subtitle' => + array ( + 0 => 'sub', + ), + 'text/vnd.fly' => + array ( + 0 => 'fly', + ), + 'text/vnd.fmi.flexstor' => + array ( + 0 => 'flx', + ), + 'text/vnd.graphviz' => + array ( + 0 => 'gv', + ), + 'text/vnd.in3d.3dml' => + array ( + 0 => '3dml', + ), + 'text/vnd.in3d.spot' => + array ( + 0 => 'spot', + ), + 'text/vnd.sun.j2me.app-descriptor' => + array ( + 0 => 'jad', + ), + 'text/vnd.wap.wml' => + array ( + 0 => 'wml', + ), + 'text/vnd.wap.wmlscript' => + array ( + 0 => 'wmls', + ), + 'text/x-asm' => + array ( + 0 => 's', + 1 => 'asm', + ), + 'text/x-c' => + array ( + 0 => 'c', + 1 => 'cc', + 2 => 'cxx', + 3 => 'cpp', + 4 => 'h', + 5 => 'hh', + 6 => 'dic', + ), + 'text/x-fortran' => + array ( + 0 => 'f', + 1 => 'for', + 2 => 'f77', + 3 => 'f90', + ), + 'text/x-java-source' => + array ( + 0 => 'java', + ), + 'text/x-nfo' => + array ( + 0 => 'nfo', + ), + 'text/x-opml' => + array ( + 0 => 'opml', + ), + 'text/x-pascal' => + array ( + 0 => 'p', + 1 => 'pas', + ), + 'text/x-setext' => + array ( + 0 => 'etx', + ), + 'text/x-sfv' => + array ( + 0 => 'sfv', + ), + 'text/x-uuencode' => + array ( + 0 => 'uu', + ), + 'text/x-vcalendar' => + array ( + 0 => 'vcs', + ), + 'text/x-vcard' => + array ( + 0 => 'vcf', + ), + 'video/3gpp' => + array ( + 0 => '3gp', + ), + 'video/3gpp2' => + array ( + 0 => '3g2', + ), + 'video/h261' => + array ( + 0 => 'h261', + ), + 'video/h263' => + array ( + 0 => 'h263', + ), + 'video/h264' => + array ( + 0 => 'h264', + ), + 'video/jpeg' => + array ( + 0 => 'jpgv', + ), + 'video/jpm' => + array ( + 0 => 'jpm', + 1 => 'jpgm', + ), + 'video/mj2' => + array ( + 0 => 'mj2', + 1 => 'mjp2', + ), + 'video/mp4' => + array ( + 0 => 'mp4', + 1 => 'mp4v', + 2 => 'mpg4', + ), + 'video/mpeg' => + array ( + 0 => 'mpeg', + 1 => 'mpg', + 2 => 'mpe', + 3 => 'm1v', + 4 => 'm2v', + ), + 'video/ogg' => + array ( + 0 => 'ogv', + ), + 'video/quicktime' => + array ( + 0 => 'qt', + 1 => 'mov', + ), + 'video/vnd.dece.hd' => + array ( + 0 => 'uvh', + 1 => 'uvvh', + ), + 'video/vnd.dece.mobile' => + array ( + 0 => 'uvm', + 1 => 'uvvm', + ), + 'video/vnd.dece.pd' => + array ( + 0 => 'uvp', + 1 => 'uvvp', + ), + 'video/vnd.dece.sd' => + array ( + 0 => 'uvs', + 1 => 'uvvs', + ), + 'video/vnd.dece.video' => + array ( + 0 => 'uvv', + 1 => 'uvvv', + ), + 'video/vnd.dvb.file' => + array ( + 0 => 'dvb', + ), + 'video/vnd.fvt' => + array ( + 0 => 'fvt', + ), + 'video/vnd.mpegurl' => + array ( + 0 => 'mxu', + 1 => 'm4u', + ), + 'video/vnd.ms-playready.media.pyv' => + array ( + 0 => 'pyv', + ), + 'video/vnd.uvvu.mp4' => + array ( + 0 => 'uvu', + 1 => 'uvvu', + ), + 'video/vnd.vivo' => + array ( + 0 => 'viv', + ), + 'video/webm' => + array ( + 0 => 'webm', + ), + 'video/x-f4v' => + array ( + 0 => 'f4v', + ), + 'video/x-fli' => + array ( + 0 => 'fli', + ), + 'video/x-flv' => + array ( + 0 => 'flv', + ), + 'video/x-m4v' => + array ( + 0 => 'm4v', + ), + 'video/x-matroska' => + array ( + 0 => 'mkv', + 1 => 'mk3d', + 2 => 'mks', + ), + 'video/x-mng' => + array ( + 0 => 'mng', + ), + 'video/x-ms-asf' => + array ( + 0 => 'asf', + 1 => 'asx', + ), + 'video/x-ms-vob' => + array ( + 0 => 'vob', + ), + 'video/x-ms-wm' => + array ( + 0 => 'wm', + ), + 'video/x-ms-wmv' => + array ( + 0 => 'wmv', + ), + 'video/x-ms-wmx' => + array ( + 0 => 'wmx', + ), + 'video/x-ms-wvx' => + array ( + 0 => 'wvx', + ), + 'video/x-msvideo' => + array ( + 0 => 'avi', + ), + 'video/x-sgi-movie' => + array ( + 0 => 'movie', + ), + 'video/x-smv' => + array ( + 0 => 'smv', + ), + 'x-conference/x-cooltalk' => + array ( + 0 => 'ice', + ), + ), +); \ No newline at end of file diff --git a/vendor/alibabacloud/tea-oss-utils/phpunit.xml b/vendor/alibabacloud/tea-oss-utils/phpunit.xml new file mode 100644 index 00000000..d43dde9f --- /dev/null +++ b/vendor/alibabacloud/tea-oss-utils/phpunit.xml @@ -0,0 +1,32 @@ + + + + + + tests + + + ./tests + + + + + + integration + + + + + + + + + + + + ./src + + + diff --git a/vendor/alibabacloud/tea-oss-utils/src/Crc64.php b/vendor/alibabacloud/tea-oss-utils/src/Crc64.php new file mode 100644 index 00000000..7502591d --- /dev/null +++ b/vendor/alibabacloud/tea-oss-utils/src/Crc64.php @@ -0,0 +1,49 @@ +> 1) & ~(0x8 << 60) ^ $poly64rev; + } else { + $crc = ($crc >> 1) & ~(0x8 << 60); + } + } + $crc64tab[$n] = $crc; + } + self::$crc64tab = $crc64tab; + } + } + + public function append($string) + { + for ($i = 0; $i < \strlen($string); ++$i) { + $this->value = ~$this->value; + $this->value = $this->value(\ord($string[$i]), $this->value); + $this->value = ~$this->value; + } + } + + public function getValue() + { + return (string) (sprintf('%u', $this->value)); + } + + private function value($byte, $crc) + { + return self::$crc64tab[($crc ^ $byte) & 0xff] ^ (($crc >> 8) & ~(0xff << 56)); + } +} diff --git a/vendor/alibabacloud/tea-oss-utils/src/OSSUtils.php b/vendor/alibabacloud/tea-oss-utils/src/OSSUtils.php new file mode 100644 index 00000000..89d9216a --- /dev/null +++ b/vendor/alibabacloud/tea-oss-utils/src/OSSUtils.php @@ -0,0 +1,418 @@ + $v) { + $newKey = strtolower($k); + if (0 !== strpos($k, $prefix)) { + $newKey = $prefix . $newKey; + } + $res[$newKey] = $v; + } + + return $res; + } + + public static function parseMeta($val, $prefix) + { + if (empty($val)) { + return []; + } + $res = []; + foreach ($val as $k => $v) { + $newKey = strtolower($k); + if (0 === strpos($newKey, $prefix)) { + $newKey = str_replace($prefix, '', $newKey); + } + $res[$newKey] = $v; + } + + return $res; + } + + public static function getContentType($fileName) + { + $mapping = require(dirname(__DIR__) . '/mime.types.php'); + if (!empty($fileName) && !empty(trim($fileName))) { + $ext = pathinfo($fileName, PATHINFO_EXTENSION); + $ext = strtolower(trim($ext)); + + if (!empty($mapping['mimes'][$ext])) { + return $mapping['mimes'][$ext][0]; + } + } + return null; + } + + public static function getContentMD5($body, $isEnableMD5) + { + if (false === $isEnableMD5) { + return ''; + } + + return base64_encode(md5($body, true)); + } + + public static function encode($val, $encodeType) + { + $strs = explode('/', $val); + $len = \count($strs); + switch ($encodeType) { + case 'Base64': + $strs[$len - 1] = base64_encode($strs[$len - 1]); + + break; + case 'UrlEncode': + $strs[$len - 1] = rawurlencode($strs[$len - 1]); + + break; + } + + return implode('/', $strs); + } + + public static function getUserAgent($val) + { + if (empty($val)) { + return self::getDefaultUserAgent(); + } + + return self::getDefaultUserAgent() . ' ' . $val; + } + + public static function getHost($bucketName, $regionId, $endpoint, $hostModel) + { + if (empty($regionId) || empty(trim($regionId))) { + $regionId = 'cn-hangzhou'; + } + if (empty($endpoint) || empty(trim($endpoint))) { + $endpoint = 'oss-' . $regionId . '.aliyuncs.com'; + } + if (!empty($bucketName)) { + $hostModel = null === $hostModel ? '' : $hostModel; + if ('ip' === $hostModel) { + $host = $endpoint . '/' . $bucketName; + } elseif ('cname' == $hostModel) { + $host = $endpoint; + } else { + $host = $bucketName . '.' . $endpoint; + } + } else { + $host = $endpoint; + } + + return $host; + } + + /** + * @param resource $body + * @param array $res + * + * @return VerifyStream + */ + public static function inject($body, &$res) + { + return new VerifyStream($body, $res); + } + + /** + * @param Request $request + * @param string $bucketName + * @param string $accessKeyId + * @param string $accessKeySecret + * @param string $signatureVersion + * @param string[] $addtionalHeaders + * + * @return string + */ + public static function getSignature($request, $bucketName, $accessKeyId, $accessKeySecret, $signatureVersion, $addtionalHeaders) + { + $signatureVersion = strtolower($signatureVersion); + if ('v2' === $signatureVersion) { + if (empty($addtionalHeaders)) { + return 'OSS2 AccessKeyId:' . $accessKeyId . + ',Signature:' . self::getSignatureV2($request, $bucketName, $accessKeySecret, $addtionalHeaders); + } + + return 'OSS2 AccessKeyId:' . $accessKeyId . + ',AdditionalHeaders:' . implode(';', $addtionalHeaders) . + ',Signature:' . self::getSignatureV2($request, $bucketName, $accessKeySecret, $addtionalHeaders); + } + + return 'OSS ' . $accessKeyId . ':' . self::getSignatureV1($request, $bucketName, $accessKeySecret); + } + + /** + * @param string $val + * @param string $decodeType + * + * @return string + */ + public static function decode($val, $decodeType) + { + switch ($decodeType) { + case 'Base64Decode': + $res = base64_decode($val); + + return false === $res ? '' : $res; + case 'UrlDecode': + return rawurldecode($val); + } + + return $val; + } + + private static function parseXml($xmlStr) + { + if (\PHP_VERSION_ID < 80000) { + libxml_disable_entity_loader(true); + } + $xml = simplexml_load_string($xmlStr, 'SimpleXMLElement', LIBXML_NOCDATA); + $rootName = $xml->getName(); + + return [ + $rootName => json_decode( + json_encode( + $xml + ), + true + ), + ]; + } + + private static function getDefaultUserAgent() + { + if (empty(self::$defaultUserAgent)) { + self::$defaultUserAgent = 'Alibaba Cloud (' . PHP_OS . ') '; + self::$defaultUserAgent .= 'TeaCore/3'; + } + + return self::$defaultUserAgent; + } + + /** + * @param Request $request + * @param string $bucketName + * @param string $accessKeySecret + * + * @return string + */ + private static function getSignatureV1($request, $bucketName, $accessKeySecret) + { + $canonicalizeResource = ''; + if (!empty($bucketName)) { + $canonicalizeResource = '/' . $bucketName; + } + $canonicalizeResource .= $request->pathname; + + $query = $request->query; + ksort($query); + + if (!empty($query)) { + if (false === strpos($canonicalizeResource, '?')) { + $canonicalizeResource .= '?'; + } + foreach ($query as $k => $v) { + if (\in_array($k, self::SIGN_KEY_LIST) && null !== $v && '' !== $v) { + if ('?' === $canonicalizeResource[\strlen($canonicalizeResource) - 1]) { + $canonicalizeResource .= $k . '=' . $v; + } else { + $canonicalizeResource .= '&' . $k . '=' . $v; + } + } + } + } + + $headers = new Dot($request->headers); + $signString = implode("\n", [ + strtoupper($request->method), + $headers->get('content-md5', ''), + $headers->get('content-type', ''), + $headers->get('date', ''), + implode("\n", self::getCanonicalizeHeaders($request->headers)), + $canonicalizeResource, + ]); + + return base64_encode( + hash_hmac( + 'sha1', + $signString, + $accessKeySecret, + true + ) + ); + } + + /** + * @param Request $request + * @param string $bucketName + * @param string $accessKeySecret + * @param string[] $addtionalHeaders + * + * @return string + */ + private static function getSignatureV2($request, $bucketName, $accessKeySecret, $addtionalHeaders) + { + if (empty($addtionalHeaders)) { + $addtionalHeaders = []; + } + $canonicalizeResource = ''; + + $pathname = $request->pathname; + if (!empty($bucketName)) { + $pathname = '/' . $bucketName . $pathname; + } + $tmp = explode('?', $pathname); + $canonicalizeResource .= rawurlencode($tmp[0]); + $sortDict = $request->query; + if (\count($tmp) > 1 && !empty($tmp[1])) { + $sortDict[$tmp[1]] = ''; + } + ksort($sortDict); + if (\count($sortDict) > 0 && false === strpos($canonicalizeResource, '?')) { + $canonicalizeResource .= '?'; + } + + $flag = '?' === $canonicalizeResource[\strlen($canonicalizeResource) - 1]; + + foreach ($sortDict as $k => $v) { + if (!$flag) { + $canonicalizeResource .= '&'; + } else { + $flag = false; + } + if (!empty($v)) { + $canonicalizeResource .= rawurlencode($k) . '=' . rawurlencode($v); + } else { + $canonicalizeResource .= rawurlencode($k); + } + } + + $headers = []; + $headerKeys = []; + foreach ($request->headers as $k => $v) { + $key = strtolower($k); + if (0 === strpos($key, 'x-oss-')) { + $headers[$key] = $v; + } + $headerKeys[$key] = $k; + } + foreach ($addtionalHeaders as $header) { + $header = strtolower($header); + if (isset($headerKeys[$header]) && !isset($headers[$header])) { + $headers[$header] = $request->headers[$headerKeys[$header]]; + } + } + $requestHeaders = new Dot($request->headers); + $signString = implode("\n", [ + strtoupper($request->method), + $requestHeaders->get('content-md5', ''), + $requestHeaders->get('content-type', ''), + $requestHeaders->get('date', ''), + implode("\n", self::getCanonicalizeHeaders($headers)), + implode(';', $addtionalHeaders), + $canonicalizeResource, + ]); + + return base64_encode( + hash_hmac( + 'sha256', + $signString, + $accessKeySecret, + true + ) + ); + } + + /** + * @param array $headers + * + * @return array + */ + private static function getCanonicalizeHeaders($headers) + { + $canonicalizeHeaders = []; + foreach ($headers as $k => $v) { + $headerName = strtolower($k); + if (0 === strpos($headerName, 'x-oss-')) { + array_push($canonicalizeHeaders, $headerName . ':' . $v); + } + } + ksort($canonicalizeHeaders); + + return $canonicalizeHeaders; + } +} diff --git a/vendor/alibabacloud/tea-oss-utils/src/OSSUtils/RuntimeOptions.php b/vendor/alibabacloud/tea-oss-utils/src/OSSUtils/RuntimeOptions.php new file mode 100644 index 00000000..558d9ae3 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-utils/src/OSSUtils/RuntimeOptions.php @@ -0,0 +1,239 @@ + 'autoretry', + 'ignoreSSL' => 'ignoreSSL', + 'maxAttempts' => 'maxAttempts', + 'backoffPolicy' => 'backoffPolicy', + 'backoffPeriod' => 'backoffPeriod', + 'readTimeout' => 'readTimeout', + 'connectTimeout' => 'connectTimeout', + 'localAddr' => 'localAddr', + 'httpProxy' => 'httpProxy', + 'httpsProxy' => 'httpsProxy', + 'noProxy' => 'noProxy', + 'maxIdleConns' => 'maxIdleConns', + 'socks5Proxy' => 'socks5Proxy', + 'socks5NetWork' => 'socks5NetWork', + 'uploadLimitSpeed' => 'uploadLimitSpeed', + 'listener' => 'listener', + ]; + public function validate() + { + } + public function toMap() + { + $res = []; + if (null !== $this->autoretry) { + $res['autoretry'] = $this->autoretry; + } + if (null !== $this->ignoreSSL) { + $res['ignoreSSL'] = $this->ignoreSSL; + } + if (null !== $this->maxAttempts) { + $res['maxAttempts'] = $this->maxAttempts; + } + if (null !== $this->backoffPolicy) { + $res['backoffPolicy'] = $this->backoffPolicy; + } + if (null !== $this->backoffPeriod) { + $res['backoffPeriod'] = $this->backoffPeriod; + } + if (null !== $this->readTimeout) { + $res['readTimeout'] = $this->readTimeout; + } + if (null !== $this->connectTimeout) { + $res['connectTimeout'] = $this->connectTimeout; + } + if (null !== $this->localAddr) { + $res['localAddr'] = $this->localAddr; + } + if (null !== $this->httpProxy) { + $res['httpProxy'] = $this->httpProxy; + } + if (null !== $this->httpsProxy) { + $res['httpsProxy'] = $this->httpsProxy; + } + if (null !== $this->noProxy) { + $res['noProxy'] = $this->noProxy; + } + if (null !== $this->maxIdleConns) { + $res['maxIdleConns'] = $this->maxIdleConns; + } + if (null !== $this->socks5Proxy) { + $res['socks5Proxy'] = $this->socks5Proxy; + } + if (null !== $this->socks5NetWork) { + $res['socks5NetWork'] = $this->socks5NetWork; + } + if (null !== $this->uploadLimitSpeed) { + $res['uploadLimitSpeed'] = $this->uploadLimitSpeed; + } + if (null !== $this->listener) { + $res['listener'] = $this->listener; + } + return $res; + } + /** + * @param array $map + * @return RuntimeOptions + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['autoretry'])) { + $model->autoretry = $map['autoretry']; + } + if (isset($map['ignoreSSL'])) { + $model->ignoreSSL = $map['ignoreSSL']; + } + if (isset($map['maxAttempts'])) { + $model->maxAttempts = $map['maxAttempts']; + } + if (isset($map['backoffPolicy'])) { + $model->backoffPolicy = $map['backoffPolicy']; + } + if (isset($map['backoffPeriod'])) { + $model->backoffPeriod = $map['backoffPeriod']; + } + if (isset($map['readTimeout'])) { + $model->readTimeout = $map['readTimeout']; + } + if (isset($map['connectTimeout'])) { + $model->connectTimeout = $map['connectTimeout']; + } + if (isset($map['localAddr'])) { + $model->localAddr = $map['localAddr']; + } + if (isset($map['httpProxy'])) { + $model->httpProxy = $map['httpProxy']; + } + if (isset($map['httpsProxy'])) { + $model->httpsProxy = $map['httpsProxy']; + } + if (isset($map['noProxy'])) { + $model->noProxy = $map['noProxy']; + } + if (isset($map['maxIdleConns'])) { + $model->maxIdleConns = $map['maxIdleConns']; + } + if (isset($map['socks5Proxy'])) { + $model->socks5Proxy = $map['socks5Proxy']; + } + if (isset($map['socks5NetWork'])) { + $model->socks5NetWork = $map['socks5NetWork']; + } + if (isset($map['uploadLimitSpeed'])) { + $model->uploadLimitSpeed = $map['uploadLimitSpeed']; + } + if (isset($map['listener'])) { + $model->listener = $map['listener']; + } + return $model; + } + /** + * @description autoretry + * @var bool + */ + public $autoretry; + + /** + * @description ignoreSSL + * @var bool + */ + public $ignoreSSL; + + /** + * @description max attempts + * @var int + */ + public $maxAttempts; + + /** + * @description backoff policy + * @var string + */ + public $backoffPolicy; + + /** + * @description backoff period + * @var int + */ + public $backoffPeriod; + + /** + * @description read timeout + * @var int + */ + public $readTimeout; + + /** + * @description connect timeout + * @var int + */ + public $connectTimeout; + + /** + * @description local addr + * @var string + */ + public $localAddr; + + /** + * @description http proxy + * @var string + */ + public $httpProxy; + + /** + * @description https proxy + * @var string + */ + public $httpsProxy; + + /** + * @description no proxy + * @var string + */ + public $noProxy; + + /** + * @description max idle conns + * @var int + */ + public $maxIdleConns; + + /** + * @description socks5 proxy + * @var string + */ + public $socks5Proxy; + + /** + * @description socks5 NetWork + * @var string + */ + public $socks5NetWork; + + /** + * @description upload limit speed + * @var int + */ + public $uploadLimitSpeed; + + /** + * @description listener + * @var mixed + */ + public $listener; +} diff --git a/vendor/alibabacloud/tea-oss-utils/src/VerifyStream.php b/vendor/alibabacloud/tea-oss-utils/src/VerifyStream.php new file mode 100644 index 00000000..680dae00 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-utils/src/VerifyStream.php @@ -0,0 +1,49 @@ +crcRead = new Crc64(); + $this->res = &$res; + if ($stream instanceof Stream) { + $stream->rewind(); + $stream = fopen('data://text/plain;base64,' . base64_encode($stream->getContents()), 'r'); + } + parent::__construct($stream, []); + } + + public function read($length) + { + $string = parent::read($length); + if (!empty($string)) { + $this->crcRead->append($string); + $this->content .= $string; + } + + return $string; + } + + public function getVerify() + { + $this->res = [ + 'md5' => base64_encode(md5($this->content, true)), + 'crc' => $this->crcRead->getValue(), + ]; + + return $this->res; + } +} diff --git a/vendor/alibabacloud/tea-oss-utils/tests/Crc64Test.php b/vendor/alibabacloud/tea-oss-utils/tests/Crc64Test.php new file mode 100644 index 00000000..5f81489c --- /dev/null +++ b/vendor/alibabacloud/tea-oss-utils/tests/Crc64Test.php @@ -0,0 +1,27 @@ +append('test'); + $this->assertEquals('18020588380933092773', $crc->getValue()); + + $crc->append(' oss string'); + $this->assertEquals('5415765121994015315', $crc->getValue()); + + $crc = new Crc64(); + $crc->append('test oss string'); + $this->assertEquals('5415765121994015315', $crc->getValue()); + } +} diff --git a/vendor/alibabacloud/tea-oss-utils/tests/OSSUtilsTest.php b/vendor/alibabacloud/tea-oss-utils/tests/OSSUtilsTest.php new file mode 100644 index 00000000..e9d05c89 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-utils/tests/OSSUtilsTest.php @@ -0,0 +1,153 @@ +401"; + $res = OSSUtils::getErrMessage($message); + $this->assertEquals('401', $res['Code']); + } + + public function testToMeta() + { + $map = [ + 'size' => '1', + 'test.key.id' => '9527', + ]; + $res = OSSUtils::toMeta($map, 'test.key.'); + $this->assertEquals([ + 'test.key.size' => '1', + 'test.key.id' => '9527', + ], $res); + } + + public function testParseMeta() + { + $map = [ + 'size' => '1', + 'test.key.id' => '9527', + ]; + $res = OSSUtils::parseMeta($map, 'test.key.'); + $this->assertEquals([ + 'size' => '1', + 'id' => '9527', + ], $res); + } + + public function testGetContentType() + { + $this->assertEquals('image/webp', OSSUtils::getContentType('test.webp')); + $this->assertEquals('audio/mpeg', OSSUtils::getContentType('test.mp3')); + $this->assertEquals(null, OSSUtils::getContentType(null)); + $this->assertEquals(null, OSSUtils::getContentType(true)); + } + + public function testGetContentMD5() + { + $this->assertEquals('CY9rzUYh03PK3k6DJie09g==', OSSUtils::getContentMD5('test', true)); + } + + public function testEncode() + { + $value = 'test/encode/h%f'; + $this->assertEquals($value, OSSUtils::encode($value, null)); + $this->assertEquals($value, OSSUtils::encode($value, '')); + $this->assertEquals('test/encode/aCVm', OSSUtils::encode($value, 'Base64')); + $this->assertEquals('test/encode/h%25f', OSSUtils::encode($value, 'UrlEncode')); + } + + public function testGetUserAgent() + { + $userAgent = 'Custom UserAgent'; + $res = OSSUtils::getUserAgent($userAgent); + $this->assertTrue(false !== strpos($res, $userAgent)); + } + + public function testGetHost() + { + $host = OSSUtils::getHost(null, null, null, null); + $this->assertEquals('oss-cn-hangzhou.aliyuncs.com', $host); + + $host = OSSUtils::getHost('testBucket', 'region', 'endpoint', 'ip'); + $this->assertEquals('endpoint/testBucket', $host); + + $host = OSSUtils::getHost('testBucket', 'region', 'endpoint', 'cname'); + $this->assertEquals('endpoint', $host); + + $host = OSSUtils::getHost('testBucket', 'region', 'endpoint', 'test'); + $this->assertEquals('testBucket.endpoint', $host); + } + + public function testInject() + { + $stream = fopen('data://text/plain;base64,' . base64_encode('test'), 'r+'); + $verifyStream = OSSUtils::inject($stream, $res); + $verifyStream->read(4); + $verifyStream->getVerify(); + $this->assertEquals('CY9rzUYh03PK3k6DJie09g==', $res['md5']); + $this->assertEquals('18020588380933092773', $res['crc']); + } + + public function testGetSignatureV1() + { + $request = new Request(); + $request->pathname = ''; + $request->method = 'GET'; + $request->headers = [ + 'x-oss-test' => 'test', + 'content-type' => 'type', + 'content-md5' => 'md5', + ]; + $request->query = [ + 'testQuery' => 'testQuery', + 'querykey' => 'queryValue', + 'x-oss-process' => 'value', + ]; + + $sign = OSSUtils::getSignature($request, 'test', 'ak', 'sk', 'v1', null); + $this->assertEquals('OSS ak:q9lSDGVH1VmpjMTGSwUZn3tg3J4=', $sign); + } + + public function testGetSignatureV2() + { + $request = new Request(); + $request->method = 'GET'; + $request->pathname = 'test?aa'; + $request->headers = [ + 'x-oss-test' => 'test', + 'content-type' => 'type', + 'content-md5' => 'md5', + ]; + $request->query = [ + 'testQuery' => 'testQuery', + 'querykey' => 'queryValue', + 'x-oss-test' => 'test', + ]; + $signature = OSSUtils::getSignature( + $request, + 'test', + 'accessKeyId', + 'sk', + 'v2', + ['querykey'] + ); + $this->assertEquals('OSS2 AccessKeyId:accessKeyId,AdditionalHeaders:querykey,Signature:NTrErwnblTk2y8h/NJKCcPCr73iRTfcl99PEc1fCgZY=', $signature); + } + + public function testDecode() + { + $this->assertEquals('h%f', OSSUtils::decode('aCVm', 'Base64Decode')); + $this->assertEquals('h%f', OSSUtils::decode('h%25f', 'UrlDecode')); + } +} diff --git a/vendor/alibabacloud/tea-oss-utils/tests/VerifyStreamTest.php b/vendor/alibabacloud/tea-oss-utils/tests/VerifyStreamTest.php new file mode 100644 index 00000000..08606009 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-utils/tests/VerifyStreamTest.php @@ -0,0 +1,30 @@ +read(1); + $verifyStream->read(1); + $verifyStream->read(1); + $verifyStream->read(1); + + $verify = $verifyStream->getVerify(); + $this->assertEquals('CY9rzUYh03PK3k6DJie09g==', $verify['md5']); + $this->assertEquals('18020588380933092773', $verify['crc']); + } +} diff --git a/vendor/alibabacloud/tea-oss-utils/tests/bootstrap.php b/vendor/alibabacloud/tea-oss-utils/tests/bootstrap.php new file mode 100644 index 00000000..c62c4e81 --- /dev/null +++ b/vendor/alibabacloud/tea-oss-utils/tests/bootstrap.php @@ -0,0 +1,3 @@ +> - */ private $prefixLengthsPsr4 = array(); - /** - * @var array> - */ private $prefixDirsPsr4 = array(); - /** - * @var list - */ private $fallbackDirsPsr4 = array(); // PSR-0 - /** - * List of PSR-0 prefixes - * - * Structured as array('F (first letter)' => array('Foo\Bar (full prefix)' => array('path', 'path2'))) - * - * @var array>> - */ private $prefixesPsr0 = array(); - /** - * @var list - */ private $fallbackDirsPsr0 = array(); - /** @var bool */ private $useIncludePath = false; - - /** - * @var array - */ private $classMap = array(); - - /** @var bool */ private $classMapAuthoritative = false; - - /** - * @var array - */ private $missingClasses = array(); - - /** @var string|null */ private $apcuPrefix; - /** - * @var array - */ private static $registeredLoaders = array(); - /** - * @param string|null $vendorDir - */ public function __construct($vendorDir = null) { $this->vendorDir = $vendorDir; - self::initializeIncludeClosure(); } - /** - * @return array> - */ public function getPrefixes() { if (!empty($this->prefixesPsr0)) { @@ -121,42 +75,28 @@ class ClassLoader return array(); } - /** - * @return array> - */ public function getPrefixesPsr4() { return $this->prefixDirsPsr4; } - /** - * @return list - */ public function getFallbackDirs() { return $this->fallbackDirsPsr0; } - /** - * @return list - */ public function getFallbackDirsPsr4() { return $this->fallbackDirsPsr4; } - /** - * @return array Array of classname => path - */ public function getClassMap() { return $this->classMap; } /** - * @param array $classMap Class to filename map - * - * @return void + * @param array $classMap Class to filename map */ public function addClassMap(array $classMap) { @@ -171,25 +111,22 @@ class ClassLoader * Registers a set of PSR-0 directories for a given prefix, either * appending or prepending to the ones previously set for this prefix. * - * @param string $prefix The prefix - * @param list|string $paths The PSR-0 root directories - * @param bool $prepend Whether to prepend the directories - * - * @return void + * @param string $prefix The prefix + * @param array|string $paths The PSR-0 root directories + * @param bool $prepend Whether to prepend the directories */ public function add($prefix, $paths, $prepend = false) { - $paths = (array) $paths; if (!$prefix) { if ($prepend) { $this->fallbackDirsPsr0 = array_merge( - $paths, + (array) $paths, $this->fallbackDirsPsr0 ); } else { $this->fallbackDirsPsr0 = array_merge( $this->fallbackDirsPsr0, - $paths + (array) $paths ); } @@ -198,19 +135,19 @@ class ClassLoader $first = $prefix[0]; if (!isset($this->prefixesPsr0[$first][$prefix])) { - $this->prefixesPsr0[$first][$prefix] = $paths; + $this->prefixesPsr0[$first][$prefix] = (array) $paths; return; } if ($prepend) { $this->prefixesPsr0[$first][$prefix] = array_merge( - $paths, + (array) $paths, $this->prefixesPsr0[$first][$prefix] ); } else { $this->prefixesPsr0[$first][$prefix] = array_merge( $this->prefixesPsr0[$first][$prefix], - $paths + (array) $paths ); } } @@ -219,28 +156,25 @@ class ClassLoader * Registers a set of PSR-4 directories for a given namespace, either * appending or prepending to the ones previously set for this namespace. * - * @param string $prefix The prefix/namespace, with trailing '\\' - * @param list|string $paths The PSR-4 base directories - * @param bool $prepend Whether to prepend the directories + * @param string $prefix The prefix/namespace, with trailing '\\' + * @param array|string $paths The PSR-4 base directories + * @param bool $prepend Whether to prepend the directories * * @throws \InvalidArgumentException - * - * @return void */ public function addPsr4($prefix, $paths, $prepend = false) { - $paths = (array) $paths; if (!$prefix) { // Register directories for the root namespace. if ($prepend) { $this->fallbackDirsPsr4 = array_merge( - $paths, + (array) $paths, $this->fallbackDirsPsr4 ); } else { $this->fallbackDirsPsr4 = array_merge( $this->fallbackDirsPsr4, - $paths + (array) $paths ); } } elseif (!isset($this->prefixDirsPsr4[$prefix])) { @@ -250,18 +184,18 @@ class ClassLoader throw new \InvalidArgumentException("A non-empty PSR-4 prefix must end with a namespace separator."); } $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length; - $this->prefixDirsPsr4[$prefix] = $paths; + $this->prefixDirsPsr4[$prefix] = (array) $paths; } elseif ($prepend) { // Prepend directories for an already registered namespace. $this->prefixDirsPsr4[$prefix] = array_merge( - $paths, + (array) $paths, $this->prefixDirsPsr4[$prefix] ); } else { // Append directories for an already registered namespace. $this->prefixDirsPsr4[$prefix] = array_merge( $this->prefixDirsPsr4[$prefix], - $paths + (array) $paths ); } } @@ -270,10 +204,8 @@ class ClassLoader * Registers a set of PSR-0 directories for a given prefix, * replacing any others previously set for this prefix. * - * @param string $prefix The prefix - * @param list|string $paths The PSR-0 base directories - * - * @return void + * @param string $prefix The prefix + * @param array|string $paths The PSR-0 base directories */ public function set($prefix, $paths) { @@ -288,12 +220,10 @@ class ClassLoader * Registers a set of PSR-4 directories for a given namespace, * replacing any others previously set for this namespace. * - * @param string $prefix The prefix/namespace, with trailing '\\' - * @param list|string $paths The PSR-4 base directories + * @param string $prefix The prefix/namespace, with trailing '\\' + * @param array|string $paths The PSR-4 base directories * * @throws \InvalidArgumentException - * - * @return void */ public function setPsr4($prefix, $paths) { @@ -313,8 +243,6 @@ class ClassLoader * Turns on searching the include path for class files. * * @param bool $useIncludePath - * - * @return void */ public function setUseIncludePath($useIncludePath) { @@ -337,8 +265,6 @@ class ClassLoader * that have not been registered with the class map. * * @param bool $classMapAuthoritative - * - * @return void */ public function setClassMapAuthoritative($classMapAuthoritative) { @@ -359,8 +285,6 @@ class ClassLoader * APCu prefix to use to cache found/not-found classes, if the extension is enabled. * * @param string|null $apcuPrefix - * - * @return void */ public function setApcuPrefix($apcuPrefix) { @@ -381,8 +305,6 @@ class ClassLoader * Registers this instance as an autoloader. * * @param bool $prepend Whether to prepend the autoloader or not - * - * @return void */ public function register($prepend = false) { @@ -402,8 +324,6 @@ class ClassLoader /** * Unregisters this instance as an autoloader. - * - * @return void */ public function unregister() { @@ -423,8 +343,7 @@ class ClassLoader public function loadClass($class) { if ($file = $this->findFile($class)) { - $includeFile = self::$includeFile; - $includeFile($file); + includeFile($file); return true; } @@ -475,20 +394,15 @@ class ClassLoader } /** - * Returns the currently registered loaders keyed by their corresponding vendor directories. + * Returns the currently registered loaders indexed by their corresponding vendor directories. * - * @return array + * @return self[] */ public static function getRegisteredLoaders() { return self::$registeredLoaders; } - /** - * @param string $class - * @param string $ext - * @return string|false - */ private function findFileWithExtension($class, $ext) { // PSR-4 lookup @@ -554,26 +468,14 @@ class ClassLoader return false; } - - /** - * @return void - */ - private static function initializeIncludeClosure() - { - if (self::$includeFile !== null) { - return; - } - - /** - * Scope isolated include. - * - * Prevents access to $this/self from included files. - * - * @param string $file - * @return void - */ - self::$includeFile = \Closure::bind(static function($file) { - include $file; - }, null, null); - } +} + +/** + * Scope isolated include. + * + * Prevents access to $this/self from included files. + */ +function includeFile($file) +{ + include $file; } diff --git a/vendor/composer/InstalledVersions.php b/vendor/composer/InstalledVersions.php index 51e734a7..b3a4e161 100644 --- a/vendor/composer/InstalledVersions.php +++ b/vendor/composer/InstalledVersions.php @@ -20,27 +20,12 @@ use Composer\Semver\VersionParser; * * See also https://getcomposer.org/doc/07-runtime.md#installed-versions * - * To require its presence, you can require `composer-runtime-api ^2.0` - * - * @final + * To require it's presence, you can require `composer-runtime-api ^2.0` */ class InstalledVersions { - /** - * @var mixed[]|null - * @psalm-var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array}|array{}|null - */ private static $installed; - - /** - * @var bool|null - */ private static $canGetVendors; - - /** - * @var array[] - * @psalm-var array}> - */ private static $installedByVendor = array(); /** @@ -98,7 +83,7 @@ class InstalledVersions { foreach (self::getInstalled() as $installed) { if (isset($installed['versions'][$packageName])) { - return $includeDevRequirements || !isset($installed['versions'][$packageName]['dev_requirement']) || $installed['versions'][$packageName]['dev_requirement'] === false; + return $includeDevRequirements || empty($installed['versions'][$packageName]['dev_requirement']); } } @@ -119,7 +104,7 @@ class InstalledVersions */ public static function satisfies(VersionParser $parser, $packageName, $constraint) { - $constraint = $parser->parseConstraints((string) $constraint); + $constraint = $parser->parseConstraints($constraint); $provided = $parser->parseConstraints(self::getVersionRanges($packageName)); return $provided->matches($constraint); @@ -243,7 +228,7 @@ class InstalledVersions /** * @return array - * @psalm-return array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool} + * @psalm-return array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string} */ public static function getRootPackage() { @@ -257,7 +242,7 @@ class InstalledVersions * * @deprecated Use getAllRawData() instead which returns all datasets for all autoloaders present in the process. getRawData only returns the first dataset loaded, which may not be what you expect. * @return array[] - * @psalm-return array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array} + * @psalm-return array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string}, versions: array} */ public static function getRawData() { @@ -280,7 +265,7 @@ class InstalledVersions * Returns the raw data of all installed.php which are currently loaded for custom implementations * * @return array[] - * @psalm-return list}> + * @psalm-return list}> */ public static function getAllRawData() { @@ -303,7 +288,7 @@ class InstalledVersions * @param array[] $data A vendor/composer/installed.php data set * @return void * - * @psalm-param array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array} $data + * @psalm-param array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string}, versions: array} $data */ public static function reload($data) { @@ -313,7 +298,7 @@ class InstalledVersions /** * @return array[] - * @psalm-return list}> + * @psalm-return list}> */ private static function getInstalled() { @@ -328,9 +313,7 @@ class InstalledVersions if (isset(self::$installedByVendor[$vendorDir])) { $installed[] = self::$installedByVendor[$vendorDir]; } elseif (is_file($vendorDir.'/composer/installed.php')) { - /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array} $required */ - $required = require $vendorDir.'/composer/installed.php'; - $installed[] = self::$installedByVendor[$vendorDir] = $required; + $installed[] = self::$installedByVendor[$vendorDir] = require $vendorDir.'/composer/installed.php'; if (null === self::$installed && strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) { self::$installed = $installed[count($installed) - 1]; } @@ -342,17 +325,12 @@ class InstalledVersions // only require the installed.php file if this file is loaded from its dumped location, // and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937 if (substr(__DIR__, -8, 1) !== 'C') { - /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array} $required */ - $required = require __DIR__ . '/installed.php'; - self::$installed = $required; + self::$installed = require __DIR__ . '/installed.php'; } else { self::$installed = array(); } } - - if (self::$installed !== array()) { - $installed[] = self::$installed; - } + $installed[] = self::$installed; return $installed; } diff --git a/vendor/composer/autoload_classmap.php b/vendor/composer/autoload_classmap.php index 9238e09c..25c1bbc3 100644 --- a/vendor/composer/autoload_classmap.php +++ b/vendor/composer/autoload_classmap.php @@ -2,7 +2,7 @@ // autoload_classmap.php @generated by Composer -$vendorDir = dirname(__DIR__); +$vendorDir = dirname(dirname(__FILE__)); $baseDir = dirname($vendorDir); return array( diff --git a/vendor/composer/autoload_files.php b/vendor/composer/autoload_files.php index c6139ef5..70cedcf6 100644 --- a/vendor/composer/autoload_files.php +++ b/vendor/composer/autoload_files.php @@ -2,25 +2,26 @@ // autoload_files.php @generated by Composer -$vendorDir = dirname(__DIR__); +$vendorDir = dirname(dirname(__FILE__)); $baseDir = dirname($vendorDir); return array( + 'a4a119a56e50fbb293281d9a48007e0e' => $vendorDir . '/symfony/polyfill-php80/bootstrap.php', + '25072dd6e2470089de65ae7bf11d3109' => $vendorDir . '/symfony/polyfill-php72/bootstrap.php', + '0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => $vendorDir . '/symfony/polyfill-mbstring/bootstrap.php', '7b11c4dc42b3b3023073cb14e519683c' => $vendorDir . '/ralouphie/getallheaders/src/getallheaders.php', 'a0edc8309cc5e1d60e3047b5df6b7052' => $vendorDir . '/guzzlehttp/psr7/src/functions_include.php', 'e69f7f6ee287b969198c3c9d6777bd38' => $vendorDir . '/symfony/polyfill-intl-normalizer/bootstrap.php', 'c964ee0ededf28c96ebd9db5099ef910' => $vendorDir . '/guzzlehttp/promises/src/functions_include.php', - '25072dd6e2470089de65ae7bf11d3109' => $vendorDir . '/symfony/polyfill-php72/bootstrap.php', 'f598d06aa772fa33d905e87be6398fb1' => $vendorDir . '/symfony/polyfill-intl-idn/bootstrap.php', '37a3dc5111fe8f707ab4c132ef1dbc62' => $vendorDir . '/guzzlehttp/guzzle/src/functions_include.php', + '667aeda72477189d0494fecd327c3641' => $vendorDir . '/symfony/var-dumper/Resources/functions/dump.php', 'd767e4fc2dc52fe66584ab8c6684783e' => $vendorDir . '/adbario/php-dot-notation/src/helpers.php', - 'a4a119a56e50fbb293281d9a48007e0e' => $vendorDir . '/symfony/polyfill-php80/bootstrap.php', - '0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => $vendorDir . '/symfony/polyfill-mbstring/bootstrap.php', '6e3fae29631ef280660b3cdad06f25a8' => $vendorDir . '/symfony/deprecation-contracts/function.php', '9b552a3cc426e3287cc811caefa3cf53' => $vendorDir . '/topthink/think-helper/src/helper.php', '320cde22f66dd4f5d3fd621d3e88b98f' => $vendorDir . '/symfony/polyfill-ctype/bootstrap.php', - '8825ede83f2f289127722d4e842cf7e8' => $vendorDir . '/symfony/polyfill-intl-grapheme/bootstrap.php', '35fab96057f1bf5e7aba31a8a6d5fdde' => $vendorDir . '/topthink/think-orm/stubs/load_stubs.php', + '8825ede83f2f289127722d4e842cf7e8' => $vendorDir . '/symfony/polyfill-intl-grapheme/bootstrap.php', 'b6b991a57620e2fb6b2f66f03fe9ddc2' => $vendorDir . '/symfony/string/Resources/functions.php', '0d59ee240a4cd96ddbb4ff164fccea4d' => $vendorDir . '/symfony/polyfill-php73/bootstrap.php', 'a1105708a18b76903365ca1c4aa61b02' => $vendorDir . '/symfony/translation/Resources/functions.php', @@ -31,7 +32,6 @@ return array( 'f67964341ef83e59f1cc6a3916599312' => $vendorDir . '/qcloud/cos-sdk-v5/src/Qcloud/Cos/Common.php', '841780ea2e1d6545ea3a253239d59c05' => $vendorDir . '/qiniu/php-sdk/src/Qiniu/functions.php', '5dd19d8a547b7318af0c3a93c8bd6565' => $vendorDir . '/qiniu/php-sdk/src/Qiniu/Http/Middleware/Middleware.php', - '667aeda72477189d0494fecd327c3641' => $vendorDir . '/symfony/var-dumper/Resources/functions/dump.php', 'cc56288302d9df745d97c934d6a6e5f0' => $vendorDir . '/topthink/think-queue/src/common.php', 'af46dcea2921209ac30627b964175f13' => $vendorDir . '/topthink/think-swoole/src/helpers.php', 'ec838a45422f15144062a735bf321ce1' => $vendorDir . '/ucloud/ufile-php-sdk/src/functions.php', diff --git a/vendor/composer/autoload_namespaces.php b/vendor/composer/autoload_namespaces.php index 1ba279b8..bf16148e 100644 --- a/vendor/composer/autoload_namespaces.php +++ b/vendor/composer/autoload_namespaces.php @@ -2,7 +2,7 @@ // autoload_namespaces.php @generated by Composer -$vendorDir = dirname(__DIR__); +$vendorDir = dirname(dirname(__FILE__)); $baseDir = dirname($vendorDir); return array( diff --git a/vendor/composer/autoload_psr4.php b/vendor/composer/autoload_psr4.php index fabd4b46..780ebe78 100644 --- a/vendor/composer/autoload_psr4.php +++ b/vendor/composer/autoload_psr4.php @@ -2,7 +2,7 @@ // autoload_psr4.php @generated by Composer -$vendorDir = dirname(__DIR__); +$vendorDir = dirname(dirname(__FILE__)); $baseDir = dirname($vendorDir); return array( @@ -85,7 +85,12 @@ return array( 'BaconQrCode\\' => array($vendorDir . '/bacon/bacon-qr-code/src'), 'AlibabaCloud\\Tea\\XML\\' => array($vendorDir . '/alibabacloud/tea-xml/src'), 'AlibabaCloud\\Tea\\Utils\\' => array($vendorDir . '/alibabacloud/tea-utils/src'), + 'AlibabaCloud\\Tea\\OSSUtils\\' => array($vendorDir . '/alibabacloud/tea-oss-utils/src'), + 'AlibabaCloud\\Tea\\FileForm\\' => array($vendorDir . '/alibabacloud/tea-fileform/src'), 'AlibabaCloud\\Tea\\' => array($vendorDir . '/alibabacloud/tea/src'), + 'AlibabaCloud\\SDK\\OpenPlatform\\V20191219\\' => array($vendorDir . '/alibabacloud/openplatform-20191219/src'), + 'AlibabaCloud\\SDK\\Ocr\\V20191230\\' => array($vendorDir . '/alibabacloud/ocr-20191230/src'), + 'AlibabaCloud\\SDK\\OSS\\' => array($vendorDir . '/alibabacloud/tea-oss-sdk/src'), 'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\' => array($vendorDir . '/alibabacloud/dysmsapi-20170525/src'), 'AlibabaCloud\\OpenApiUtil\\' => array($vendorDir . '/alibabacloud/openapi-util/src'), 'AlibabaCloud\\Endpoint\\' => array($vendorDir . '/alibabacloud/endpoint-util/src'), diff --git a/vendor/composer/autoload_real.php b/vendor/composer/autoload_real.php index 5afd5549..0a8776e1 100644 --- a/vendor/composer/autoload_real.php +++ b/vendor/composer/autoload_real.php @@ -25,26 +25,51 @@ class ComposerAutoloaderInitb1229d2685c190533aa1234015613f09 require __DIR__ . '/platform_check.php'; spl_autoload_register(array('ComposerAutoloaderInitb1229d2685c190533aa1234015613f09', 'loadClassLoader'), true, true); - self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); + self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__))); spl_autoload_unregister(array('ComposerAutoloaderInitb1229d2685c190533aa1234015613f09', 'loadClassLoader')); - require __DIR__ . '/autoload_static.php'; - call_user_func(\Composer\Autoload\ComposerStaticInitb1229d2685c190533aa1234015613f09::getInitializer($loader)); + $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); + if ($useStaticLoader) { + require __DIR__ . '/autoload_static.php'; + + call_user_func(\Composer\Autoload\ComposerStaticInitb1229d2685c190533aa1234015613f09::getInitializer($loader)); + } else { + $map = require __DIR__ . '/autoload_namespaces.php'; + foreach ($map as $namespace => $path) { + $loader->set($namespace, $path); + } + + $map = require __DIR__ . '/autoload_psr4.php'; + foreach ($map as $namespace => $path) { + $loader->setPsr4($namespace, $path); + } + + $classMap = require __DIR__ . '/autoload_classmap.php'; + if ($classMap) { + $loader->addClassMap($classMap); + } + } $loader->register(true); - $filesToLoad = \Composer\Autoload\ComposerStaticInitb1229d2685c190533aa1234015613f09::$files; - $requireFile = \Closure::bind(static function ($fileIdentifier, $file) { - if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { - $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true; - - require $file; - } - }, null, null); - foreach ($filesToLoad as $fileIdentifier => $file) { - $requireFile($fileIdentifier, $file); + if ($useStaticLoader) { + $includeFiles = Composer\Autoload\ComposerStaticInitb1229d2685c190533aa1234015613f09::$files; + } else { + $includeFiles = require __DIR__ . '/autoload_files.php'; + } + foreach ($includeFiles as $fileIdentifier => $file) { + composerRequireb1229d2685c190533aa1234015613f09($fileIdentifier, $file); } return $loader; } } + +function composerRequireb1229d2685c190533aa1234015613f09($fileIdentifier, $file) +{ + if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { + require $file; + + $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true; + } +} diff --git a/vendor/composer/autoload_static.php b/vendor/composer/autoload_static.php index 4a813b28..1ca6df07 100644 --- a/vendor/composer/autoload_static.php +++ b/vendor/composer/autoload_static.php @@ -7,21 +7,22 @@ namespace Composer\Autoload; class ComposerStaticInitb1229d2685c190533aa1234015613f09 { public static $files = array ( + 'a4a119a56e50fbb293281d9a48007e0e' => __DIR__ . '/..' . '/symfony/polyfill-php80/bootstrap.php', + '25072dd6e2470089de65ae7bf11d3109' => __DIR__ . '/..' . '/symfony/polyfill-php72/bootstrap.php', + '0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => __DIR__ . '/..' . '/symfony/polyfill-mbstring/bootstrap.php', '7b11c4dc42b3b3023073cb14e519683c' => __DIR__ . '/..' . '/ralouphie/getallheaders/src/getallheaders.php', 'a0edc8309cc5e1d60e3047b5df6b7052' => __DIR__ . '/..' . '/guzzlehttp/psr7/src/functions_include.php', 'e69f7f6ee287b969198c3c9d6777bd38' => __DIR__ . '/..' . '/symfony/polyfill-intl-normalizer/bootstrap.php', 'c964ee0ededf28c96ebd9db5099ef910' => __DIR__ . '/..' . '/guzzlehttp/promises/src/functions_include.php', - '25072dd6e2470089de65ae7bf11d3109' => __DIR__ . '/..' . '/symfony/polyfill-php72/bootstrap.php', 'f598d06aa772fa33d905e87be6398fb1' => __DIR__ . '/..' . '/symfony/polyfill-intl-idn/bootstrap.php', '37a3dc5111fe8f707ab4c132ef1dbc62' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/functions_include.php', + '667aeda72477189d0494fecd327c3641' => __DIR__ . '/..' . '/symfony/var-dumper/Resources/functions/dump.php', 'd767e4fc2dc52fe66584ab8c6684783e' => __DIR__ . '/..' . '/adbario/php-dot-notation/src/helpers.php', - 'a4a119a56e50fbb293281d9a48007e0e' => __DIR__ . '/..' . '/symfony/polyfill-php80/bootstrap.php', - '0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => __DIR__ . '/..' . '/symfony/polyfill-mbstring/bootstrap.php', '6e3fae29631ef280660b3cdad06f25a8' => __DIR__ . '/..' . '/symfony/deprecation-contracts/function.php', '9b552a3cc426e3287cc811caefa3cf53' => __DIR__ . '/..' . '/topthink/think-helper/src/helper.php', '320cde22f66dd4f5d3fd621d3e88b98f' => __DIR__ . '/..' . '/symfony/polyfill-ctype/bootstrap.php', - '8825ede83f2f289127722d4e842cf7e8' => __DIR__ . '/..' . '/symfony/polyfill-intl-grapheme/bootstrap.php', '35fab96057f1bf5e7aba31a8a6d5fdde' => __DIR__ . '/..' . '/topthink/think-orm/stubs/load_stubs.php', + '8825ede83f2f289127722d4e842cf7e8' => __DIR__ . '/..' . '/symfony/polyfill-intl-grapheme/bootstrap.php', 'b6b991a57620e2fb6b2f66f03fe9ddc2' => __DIR__ . '/..' . '/symfony/string/Resources/functions.php', '0d59ee240a4cd96ddbb4ff164fccea4d' => __DIR__ . '/..' . '/symfony/polyfill-php73/bootstrap.php', 'a1105708a18b76903365ca1c4aa61b02' => __DIR__ . '/..' . '/symfony/translation/Resources/functions.php', @@ -32,7 +33,6 @@ class ComposerStaticInitb1229d2685c190533aa1234015613f09 'f67964341ef83e59f1cc6a3916599312' => __DIR__ . '/..' . '/qcloud/cos-sdk-v5/src/Qcloud/Cos/Common.php', '841780ea2e1d6545ea3a253239d59c05' => __DIR__ . '/..' . '/qiniu/php-sdk/src/Qiniu/functions.php', '5dd19d8a547b7318af0c3a93c8bd6565' => __DIR__ . '/..' . '/qiniu/php-sdk/src/Qiniu/Http/Middleware/Middleware.php', - '667aeda72477189d0494fecd327c3641' => __DIR__ . '/..' . '/symfony/var-dumper/Resources/functions/dump.php', 'cc56288302d9df745d97c934d6a6e5f0' => __DIR__ . '/..' . '/topthink/think-queue/src/common.php', 'af46dcea2921209ac30627b964175f13' => __DIR__ . '/..' . '/topthink/think-swoole/src/helpers.php', 'ec838a45422f15144062a735bf321ce1' => __DIR__ . '/..' . '/ucloud/ufile-php-sdk/src/functions.php', @@ -177,7 +177,12 @@ class ComposerStaticInitb1229d2685c190533aa1234015613f09 array ( 'AlibabaCloud\\Tea\\XML\\' => 21, 'AlibabaCloud\\Tea\\Utils\\' => 23, + 'AlibabaCloud\\Tea\\OSSUtils\\' => 26, + 'AlibabaCloud\\Tea\\FileForm\\' => 26, 'AlibabaCloud\\Tea\\' => 17, + 'AlibabaCloud\\SDK\\OpenPlatform\\V20191219\\' => 40, + 'AlibabaCloud\\SDK\\Ocr\\V20191230\\' => 31, + 'AlibabaCloud\\SDK\\OSS\\' => 21, 'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\' => 36, 'AlibabaCloud\\OpenApiUtil\\' => 25, 'AlibabaCloud\\Endpoint\\' => 22, @@ -508,10 +513,30 @@ class ComposerStaticInitb1229d2685c190533aa1234015613f09 array ( 0 => __DIR__ . '/..' . '/alibabacloud/tea-utils/src', ), + 'AlibabaCloud\\Tea\\OSSUtils\\' => + array ( + 0 => __DIR__ . '/..' . '/alibabacloud/tea-oss-utils/src', + ), + 'AlibabaCloud\\Tea\\FileForm\\' => + array ( + 0 => __DIR__ . '/..' . '/alibabacloud/tea-fileform/src', + ), 'AlibabaCloud\\Tea\\' => array ( 0 => __DIR__ . '/..' . '/alibabacloud/tea/src', ), + 'AlibabaCloud\\SDK\\OpenPlatform\\V20191219\\' => + array ( + 0 => __DIR__ . '/..' . '/alibabacloud/openplatform-20191219/src', + ), + 'AlibabaCloud\\SDK\\Ocr\\V20191230\\' => + array ( + 0 => __DIR__ . '/..' . '/alibabacloud/ocr-20191230/src', + ), + 'AlibabaCloud\\SDK\\OSS\\' => + array ( + 0 => __DIR__ . '/..' . '/alibabacloud/tea-oss-sdk/src', + ), 'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\' => array ( 0 => __DIR__ . '/..' . '/alibabacloud/dysmsapi-20170525/src', diff --git a/vendor/composer/installed.json b/vendor/composer/installed.json index 0b9ced50..9c75dcc3 100644 --- a/vendor/composer/installed.json +++ b/vendor/composer/installed.json @@ -264,6 +264,62 @@ "description": "Alibaba Cloud Gateway SPI Client", "install-path": "../alibabacloud/gateway-spi" }, + { + "name": "alibabacloud/ocr-20191230", + "version": "3.0.0", + "version_normalized": "3.0.0.0", + "source": { + "type": "git", + "url": "https://github.com/alibabacloud-sdk-php/Ocr-20191230.git", + "reference": "8d7ad521074b2fd6c392cf0f2b114ce43f0612b8" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/alibabacloud-sdk-php/Ocr-20191230/zipball/8d7ad521074b2fd6c392cf0f2b114ce43f0612b8", + "reference": "8d7ad521074b2fd6c392cf0f2b114ce43f0612b8", + "shasum": "", + "mirrors": [ + { + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", + "preferred": true + } + ] + }, + "require": { + "alibabacloud/darabonba-openapi": "^0.2.8", + "alibabacloud/endpoint-util": "^0.1.0", + "alibabacloud/openapi-util": "^0.1.10|^0.2.1", + "alibabacloud/openplatform-20191219": "^2.0.1", + "alibabacloud/tea-fileform": "^0.3.0", + "alibabacloud/tea-oss-sdk": "^0.3.0", + "alibabacloud/tea-oss-utils": "^0.3.1", + "alibabacloud/tea-utils": "^0.2.19", + "php": ">5.5" + }, + "time": "2023-07-04T02:18:29+00:00", + "type": "library", + "installation-source": "dist", + "autoload": { + "psr-4": { + "AlibabaCloud\\SDK\\Ocr\\V20191230\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "Apache-2.0" + ], + "authors": [ + { + "name": "Alibaba Cloud SDK", + "email": "sdk-team@alibabacloud.com" + } + ], + "description": "Alibaba Cloud OCR (20191230) SDK Library for PHP", + "support": { + "source": "https://github.com/alibabacloud-sdk-php/Ocr-20191230/tree/3.0.0" + }, + "install-path": "../alibabacloud/ocr-20191230" + }, { "name": "alibabacloud/openapi-util", "version": "0.1.13", @@ -303,6 +359,58 @@ "description": "Alibaba Cloud OpenApi Util", "install-path": "../alibabacloud/openapi-util" }, + { + "name": "alibabacloud/openplatform-20191219", + "version": "2.0.1", + "version_normalized": "2.0.1.0", + "source": { + "type": "git", + "url": "https://github.com/alibabacloud-sdk-php/OpenPlatform-20191219.git", + "reference": "02ffa72369f8649214f1cfa336b52a544735f517" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/alibabacloud-sdk-php/OpenPlatform-20191219/zipball/02ffa72369f8649214f1cfa336b52a544735f517", + "reference": "02ffa72369f8649214f1cfa336b52a544735f517", + "shasum": "", + "mirrors": [ + { + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", + "preferred": true + } + ] + }, + "require": { + "alibabacloud/darabonba-openapi": "^0.2.8", + "alibabacloud/endpoint-util": "^0.1.0", + "alibabacloud/openapi-util": "^0.1.10|^0.2.1", + "alibabacloud/tea-utils": "^0.2.17", + "php": ">5.5" + }, + "time": "2023-02-07T06:39:39+00:00", + "type": "library", + "installation-source": "dist", + "autoload": { + "psr-4": { + "AlibabaCloud\\SDK\\OpenPlatform\\V20191219\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "Apache-2.0" + ], + "authors": [ + { + "name": "Alibaba Cloud SDK", + "email": "sdk-team@alibabacloud.com" + } + ], + "description": "Alibaba Cloud OpenPlatform (20191219) SDK Library for PHP", + "support": { + "source": "https://github.com/alibabacloud-sdk-php/OpenPlatform-20191219/tree/2.0.1" + }, + "install-path": "../alibabacloud/openplatform-20191219" + }, { "name": "alibabacloud/tea", "version": "3.2.1", @@ -361,6 +469,165 @@ ], "install-path": "../alibabacloud/tea" }, + { + "name": "alibabacloud/tea-fileform", + "version": "0.3.4", + "version_normalized": "0.3.4.0", + "source": { + "type": "git", + "url": "https://github.com/alibabacloud-sdk-php/tea-fileform.git", + "reference": "4bf0c75a045c8115aa8cb1a394bd08d8bb833181" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/alibabacloud-sdk-php/tea-fileform/zipball/4bf0c75a045c8115aa8cb1a394bd08d8bb833181", + "reference": "4bf0c75a045c8115aa8cb1a394bd08d8bb833181", + "shasum": "", + "mirrors": [ + { + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", + "preferred": true + } + ] + }, + "require": { + "alibabacloud/tea": "^3.0", + "php": ">5.5" + }, + "require-dev": { + "phpunit/phpunit": "^4.8.35|^5.4.3" + }, + "time": "2020-12-01T07:24:35+00:00", + "type": "library", + "installation-source": "dist", + "autoload": { + "psr-4": { + "AlibabaCloud\\Tea\\FileForm\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "Apache-2.0" + ], + "authors": [ + { + "name": "Alibaba Cloud SDK", + "email": "sdk-team@alibabacloud.com" + } + ], + "description": "Alibaba Cloud Tea File Library for PHP", + "support": { + "issues": "https://github.com/alibabacloud-sdk-php/tea-fileform/issues", + "source": "https://github.com/alibabacloud-sdk-php/tea-fileform/tree/0.3.4" + }, + "install-path": "../alibabacloud/tea-fileform" + }, + { + "name": "alibabacloud/tea-oss-sdk", + "version": "0.3.6", + "version_normalized": "0.3.6.0", + "source": { + "type": "git", + "url": "https://github.com/alibabacloud-sdk-php/tea-oss-sdk.git", + "reference": "e28e70e2842b2e4da031a774209231bf08d7965c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/alibabacloud-sdk-php/tea-oss-sdk/zipball/e28e70e2842b2e4da031a774209231bf08d7965c", + "reference": "e28e70e2842b2e4da031a774209231bf08d7965c", + "shasum": "", + "mirrors": [ + { + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", + "preferred": true + } + ] + }, + "require": { + "alibabacloud/credentials": "^1.1", + "alibabacloud/tea-fileform": "^0.3.0", + "alibabacloud/tea-oss-utils": "^0.3.0", + "alibabacloud/tea-utils": "^0.2.0", + "alibabacloud/tea-xml": "^0.2", + "php": ">5.5" + }, + "time": "2022-10-13T07:23:51+00:00", + "type": "library", + "installation-source": "dist", + "autoload": { + "psr-4": { + "AlibabaCloud\\SDK\\OSS\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "Apache-2.0" + ], + "authors": [ + { + "name": "Alibaba Cloud SDK", + "email": "sdk-team@alibabacloud.com" + } + ], + "description": "Aliyun Tea OSS SDK Library for PHP", + "support": { + "source": "https://github.com/alibabacloud-sdk-php/tea-oss-sdk/tree/0.3.6" + }, + "install-path": "../alibabacloud/tea-oss-sdk" + }, + { + "name": "alibabacloud/tea-oss-utils", + "version": "0.3.1", + "version_normalized": "0.3.1.0", + "source": { + "type": "git", + "url": "https://github.com/alibabacloud-sdk-php/tea-oss-utils.git", + "reference": "19f58fc509347f075664e377742d4f9e18465372" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/alibabacloud-sdk-php/tea-oss-utils/zipball/19f58fc509347f075664e377742d4f9e18465372", + "reference": "19f58fc509347f075664e377742d4f9e18465372", + "shasum": "", + "mirrors": [ + { + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", + "preferred": true + } + ] + }, + "require": { + "alibabacloud/tea": "^3.0", + "guzzlehttp/psr7": "^1.0", + "php": ">5.5" + }, + "require-dev": { + "phpunit/phpunit": "^4.8.35|^5.4.3|^9.4" + }, + "time": "2023-01-08T13:26:58+00:00", + "type": "library", + "installation-source": "dist", + "autoload": { + "psr-4": { + "AlibabaCloud\\Tea\\OSSUtils\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "Apache-2.0" + ], + "authors": [ + { + "name": "Alibaba Cloud SDK", + "email": "sdk-team@alibabacloud.com" + } + ], + "description": "Alibaba Cloud Tea OSS Utils Library for PHP", + "support": { + "source": "https://github.com/alibabacloud-sdk-php/tea-oss-utils/tree/0.3.1" + }, + "install-path": "../alibabacloud/tea-oss-utils" + }, { "name": "alibabacloud/tea-utils", "version": "0.2.19", diff --git a/vendor/composer/installed.php b/vendor/composer/installed.php index dcb194b7..c93cd83b 100644 --- a/vendor/composer/installed.php +++ b/vendor/composer/installed.php @@ -1,211 +1,256 @@ array( - 'name' => 'topthink/think', 'pretty_version' => 'dev-master', 'version' => 'dev-master', - 'reference' => '0224f6113a669845fb3455cadb381a6931e9c508', 'type' => 'project', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), + 'reference' => '641a1cf576a0931341e979fcb021728a5f208868', + 'name' => 'topthink/think', 'dev' => true, ), 'versions' => array( 'adbario/php-dot-notation' => array( 'pretty_version' => '2.5.0', 'version' => '2.5.0.0', - 'reference' => '081e2cca50c84bfeeea2e3ef9b2c8d206d80ccae', 'type' => 'library', 'install_path' => __DIR__ . '/../adbario/php-dot-notation', 'aliases' => array(), + 'reference' => '081e2cca50c84bfeeea2e3ef9b2c8d206d80ccae', 'dev_requirement' => false, ), 'alibabacloud/credentials' => array( 'pretty_version' => '1.1.5', 'version' => '1.1.5.0', - 'reference' => '1d8383ceef695974a88a3859c42e235fd2e3981a', 'type' => 'library', 'install_path' => __DIR__ . '/../alibabacloud/credentials', 'aliases' => array(), + 'reference' => '1d8383ceef695974a88a3859c42e235fd2e3981a', 'dev_requirement' => false, ), 'alibabacloud/darabonba-openapi' => array( 'pretty_version' => '0.2.9', 'version' => '0.2.9.0', - 'reference' => '4cdfc36615f345786d668dfbaf68d9a301b6dbe2', 'type' => 'library', 'install_path' => __DIR__ . '/../alibabacloud/darabonba-openapi', 'aliases' => array(), + 'reference' => '4cdfc36615f345786d668dfbaf68d9a301b6dbe2', 'dev_requirement' => false, ), 'alibabacloud/dysmsapi-20170525' => array( 'pretty_version' => '2.0.9', 'version' => '2.0.9.0', - 'reference' => 'f3098cdd4196aa42413e60fececcea08a3374ff1', 'type' => 'library', 'install_path' => __DIR__ . '/../alibabacloud/dysmsapi-20170525', 'aliases' => array(), + 'reference' => 'f3098cdd4196aa42413e60fececcea08a3374ff1', 'dev_requirement' => false, ), 'alibabacloud/endpoint-util' => array( 'pretty_version' => '0.1.1', 'version' => '0.1.1.0', - 'reference' => 'f3fe88a25d8df4faa3b0ae14ff202a9cc094e6c5', 'type' => 'library', 'install_path' => __DIR__ . '/../alibabacloud/endpoint-util', 'aliases' => array(), + 'reference' => 'f3fe88a25d8df4faa3b0ae14ff202a9cc094e6c5', 'dev_requirement' => false, ), 'alibabacloud/gateway-spi' => array( 'pretty_version' => '1.0.0', 'version' => '1.0.0.0', - 'reference' => '7440f77750c329d8ab252db1d1d967314ccd1fcb', 'type' => 'library', 'install_path' => __DIR__ . '/../alibabacloud/gateway-spi', 'aliases' => array(), + 'reference' => '7440f77750c329d8ab252db1d1d967314ccd1fcb', + 'dev_requirement' => false, + ), + 'alibabacloud/ocr-20191230' => array( + 'pretty_version' => '3.0.0', + 'version' => '3.0.0.0', + 'type' => 'library', + 'install_path' => __DIR__ . '/../alibabacloud/ocr-20191230', + 'aliases' => array(), + 'reference' => '8d7ad521074b2fd6c392cf0f2b114ce43f0612b8', 'dev_requirement' => false, ), 'alibabacloud/openapi-util' => array( 'pretty_version' => '0.1.13', 'version' => '0.1.13.0', - 'reference' => '870e59984f05e104aa303c85b8214e339ba0a0ac', 'type' => 'library', 'install_path' => __DIR__ . '/../alibabacloud/openapi-util', 'aliases' => array(), + 'reference' => '870e59984f05e104aa303c85b8214e339ba0a0ac', + 'dev_requirement' => false, + ), + 'alibabacloud/openplatform-20191219' => array( + 'pretty_version' => '2.0.1', + 'version' => '2.0.1.0', + 'type' => 'library', + 'install_path' => __DIR__ . '/../alibabacloud/openplatform-20191219', + 'aliases' => array(), + 'reference' => '02ffa72369f8649214f1cfa336b52a544735f517', 'dev_requirement' => false, ), 'alibabacloud/tea' => array( 'pretty_version' => '3.2.1', 'version' => '3.2.1.0', - 'reference' => '1619cb96c158384f72b873e1f85de8b299c9c367', 'type' => 'library', 'install_path' => __DIR__ . '/../alibabacloud/tea', 'aliases' => array(), + 'reference' => '1619cb96c158384f72b873e1f85de8b299c9c367', + 'dev_requirement' => false, + ), + 'alibabacloud/tea-fileform' => array( + 'pretty_version' => '0.3.4', + 'version' => '0.3.4.0', + 'type' => 'library', + 'install_path' => __DIR__ . '/../alibabacloud/tea-fileform', + 'aliases' => array(), + 'reference' => '4bf0c75a045c8115aa8cb1a394bd08d8bb833181', + 'dev_requirement' => false, + ), + 'alibabacloud/tea-oss-sdk' => array( + 'pretty_version' => '0.3.6', + 'version' => '0.3.6.0', + 'type' => 'library', + 'install_path' => __DIR__ . '/../alibabacloud/tea-oss-sdk', + 'aliases' => array(), + 'reference' => 'e28e70e2842b2e4da031a774209231bf08d7965c', + 'dev_requirement' => false, + ), + 'alibabacloud/tea-oss-utils' => array( + 'pretty_version' => '0.3.1', + 'version' => '0.3.1.0', + 'type' => 'library', + 'install_path' => __DIR__ . '/../alibabacloud/tea-oss-utils', + 'aliases' => array(), + 'reference' => '19f58fc509347f075664e377742d4f9e18465372', 'dev_requirement' => false, ), 'alibabacloud/tea-utils' => array( 'pretty_version' => '0.2.19', 'version' => '0.2.19.0', - 'reference' => '8dfc1a93e9415818e93a621b644abbb84981aea4', 'type' => 'library', 'install_path' => __DIR__ . '/../alibabacloud/tea-utils', 'aliases' => array(), + 'reference' => '8dfc1a93e9415818e93a621b644abbb84981aea4', 'dev_requirement' => false, ), 'alibabacloud/tea-xml' => array( 'pretty_version' => '0.2.4', 'version' => '0.2.4.0', - 'reference' => '3e0c000bf536224eebbac913c371bef174c0a16a', 'type' => 'library', 'install_path' => __DIR__ . '/../alibabacloud/tea-xml', 'aliases' => array(), + 'reference' => '3e0c000bf536224eebbac913c371bef174c0a16a', 'dev_requirement' => false, ), 'aliyuncs/oss-sdk-php' => array( 'pretty_version' => 'v2.6.0', 'version' => '2.6.0.0', - 'reference' => '572d0f8e099e8630ae7139ed3fdedb926c7a760f', 'type' => 'library', 'install_path' => __DIR__ . '/../aliyuncs/oss-sdk-php', 'aliases' => array(), + 'reference' => '572d0f8e099e8630ae7139ed3fdedb926c7a760f', 'dev_requirement' => false, ), 'bacon/bacon-qr-code' => array( 'pretty_version' => '2.0.8', 'version' => '2.0.8.0', - 'reference' => '8674e51bb65af933a5ffaf1c308a660387c35c22', 'type' => 'library', 'install_path' => __DIR__ . '/../bacon/bacon-qr-code', 'aliases' => array(), + 'reference' => '8674e51bb65af933a5ffaf1c308a660387c35c22', 'dev_requirement' => false, ), 'dasprid/enum' => array( 'pretty_version' => '1.0.5', 'version' => '1.0.5.0', - 'reference' => '6faf451159fb8ba4126b925ed2d78acfce0dc016', 'type' => 'library', 'install_path' => __DIR__ . '/../dasprid/enum', 'aliases' => array(), + 'reference' => '6faf451159fb8ba4126b925ed2d78acfce0dc016', 'dev_requirement' => false, ), 'doctrine/annotations' => array( 'pretty_version' => 'v1.2.7', 'version' => '1.2.7.0', - 'reference' => 'f25c8aab83e0c3e976fd7d19875f198ccf2f7535', 'type' => 'library', 'install_path' => __DIR__ . '/../doctrine/annotations', 'aliases' => array(), + 'reference' => 'f25c8aab83e0c3e976fd7d19875f198ccf2f7535', 'dev_requirement' => false, ), 'doctrine/cache' => array( 'pretty_version' => 'v1.4.4', 'version' => '1.4.4.0', - 'reference' => '6433826dd02c9e5be8a127320dc13e7e6625d020', 'type' => 'library', 'install_path' => __DIR__ . '/../doctrine/cache', 'aliases' => array(), + 'reference' => '6433826dd02c9e5be8a127320dc13e7e6625d020', 'dev_requirement' => false, ), 'doctrine/lexer' => array( 'pretty_version' => '1.2.3', 'version' => '1.2.3.0', - 'reference' => 'c268e882d4dbdd85e36e4ad69e02dc284f89d229', 'type' => 'library', 'install_path' => __DIR__ . '/../doctrine/lexer', 'aliases' => array(), + 'reference' => 'c268e882d4dbdd85e36e4ad69e02dc284f89d229', 'dev_requirement' => false, ), 'endroid/qr-code' => array( 'pretty_version' => '3.9.7', 'version' => '3.9.7.0', - 'reference' => '94563d7b3105288e6ac53a67ae720e3669fac1f6', 'type' => 'library', 'install_path' => __DIR__ . '/../endroid/qr-code', 'aliases' => array(), + 'reference' => '94563d7b3105288e6ac53a67ae720e3669fac1f6', 'dev_requirement' => false, ), 'ezyang/htmlpurifier' => array( 'pretty_version' => 'v4.16.0', 'version' => '4.16.0.0', - 'reference' => '523407fb06eb9e5f3d59889b3978d5bfe94299c8', 'type' => 'library', 'install_path' => __DIR__ . '/../ezyang/htmlpurifier', 'aliases' => array(), + 'reference' => '523407fb06eb9e5f3d59889b3978d5bfe94299c8', 'dev_requirement' => false, ), 'fastknife/ajcaptcha' => array( 'pretty_version' => 'v1.2.2', 'version' => '1.2.2.0', - 'reference' => '87c122b6cd950fd98702e929685e5e7c0c517ddc', 'type' => 'library', 'install_path' => __DIR__ . '/../fastknife/ajcaptcha', 'aliases' => array(), + 'reference' => '87c122b6cd950fd98702e929685e5e7c0c517ddc', 'dev_requirement' => false, ), 'firebase/php-jwt' => array( 'pretty_version' => 'v5.5.1', 'version' => '5.5.1.0', - 'reference' => '83b609028194aa042ea33b5af2d41a7427de80e6', 'type' => 'library', 'install_path' => __DIR__ . '/../firebase/php-jwt', 'aliases' => array(), + 'reference' => '83b609028194aa042ea33b5af2d41a7427de80e6', 'dev_requirement' => false, ), 'graham-campbell/result-type' => array( 'pretty_version' => 'v1.1.1', 'version' => '1.1.1.0', - 'reference' => '672eff8cf1d6fe1ef09ca0f89c4b287d6a3eb831', 'type' => 'library', 'install_path' => __DIR__ . '/../graham-campbell/result-type', 'aliases' => array(), + 'reference' => '672eff8cf1d6fe1ef09ca0f89c4b287d6a3eb831', 'dev_requirement' => false, ), 'gregwar/captcha' => array( 'pretty_version' => 'v1.2.1', 'version' => '1.2.1.0', - 'reference' => '229d3cdfe33d6f1349e0aec94a26e9205a6db08e', 'type' => 'library', 'install_path' => __DIR__ . '/../gregwar/captcha', 'aliases' => array(), + 'reference' => '229d3cdfe33d6f1349e0aec94a26e9205a6db08e', 'dev_requirement' => false, ), 'guzzle/batch' => array( @@ -229,10 +274,10 @@ 'guzzle/guzzle' => array( 'pretty_version' => 'v3.9.3', 'version' => '3.9.3.0', - 'reference' => '0645b70d953bc1c067bbc8d5bc53194706b628d9', 'type' => 'library', 'install_path' => __DIR__ . '/../guzzle/guzzle', 'aliases' => array(), + 'reference' => '0645b70d953bc1c067bbc8d5bc53194706b628d9', 'dev_requirement' => false, ), 'guzzle/http' => array( @@ -352,298 +397,298 @@ 'guzzlehttp/command' => array( 'pretty_version' => '1.0.0', 'version' => '1.0.0.0', - 'reference' => '2aaa2521a8f8269d6f5dfc13fe2af12c76921034', 'type' => 'library', 'install_path' => __DIR__ . '/../guzzlehttp/command', 'aliases' => array(), + 'reference' => '2aaa2521a8f8269d6f5dfc13fe2af12c76921034', 'dev_requirement' => false, ), 'guzzlehttp/guzzle' => array( 'pretty_version' => '6.5.8', 'version' => '6.5.8.0', - 'reference' => 'a52f0440530b54fa079ce76e8c5d196a42cad981', 'type' => 'library', 'install_path' => __DIR__ . '/../guzzlehttp/guzzle', 'aliases' => array(), + 'reference' => 'a52f0440530b54fa079ce76e8c5d196a42cad981', 'dev_requirement' => false, ), 'guzzlehttp/guzzle-services' => array( 'pretty_version' => '1.1.3', 'version' => '1.1.3.0', - 'reference' => '9e3abf20161cbf662d616cbb995f2811771759f7', 'type' => 'library', 'install_path' => __DIR__ . '/../guzzlehttp/guzzle-services', 'aliases' => array(), + 'reference' => '9e3abf20161cbf662d616cbb995f2811771759f7', 'dev_requirement' => false, ), 'guzzlehttp/promises' => array( 'pretty_version' => '1.5.3', 'version' => '1.5.3.0', - 'reference' => '67ab6e18aaa14d753cc148911d273f6e6cb6721e', 'type' => 'library', 'install_path' => __DIR__ . '/../guzzlehttp/promises', 'aliases' => array(), + 'reference' => '67ab6e18aaa14d753cc148911d273f6e6cb6721e', 'dev_requirement' => false, ), 'guzzlehttp/psr7' => array( 'pretty_version' => '1.9.1', 'version' => '1.9.1.0', - 'reference' => 'e4490cabc77465aaee90b20cfc9a770f8c04be6b', 'type' => 'library', 'install_path' => __DIR__ . '/../guzzlehttp/psr7', 'aliases' => array(), + 'reference' => 'e4490cabc77465aaee90b20cfc9a770f8c04be6b', 'dev_requirement' => false, ), 'intervention/image' => array( 'pretty_version' => '2.7.2', 'version' => '2.7.2.0', - 'reference' => '04be355f8d6734c826045d02a1079ad658322dad', 'type' => 'library', 'install_path' => __DIR__ . '/../intervention/image', 'aliases' => array(), + 'reference' => '04be355f8d6734c826045d02a1079ad658322dad', 'dev_requirement' => false, ), 'jpush/jpush' => array( 'pretty_version' => 'v3.6.8', 'version' => '3.6.8.0', - 'reference' => 'ebb191e8854a35c3fb7a6626028b3a23132cbe2c', 'type' => 'library', 'install_path' => __DIR__ . '/../jpush/jpush', 'aliases' => array(), + 'reference' => 'ebb191e8854a35c3fb7a6626028b3a23132cbe2c', 'dev_requirement' => false, ), 'khanamiryan/qrcode-detector-decoder' => array( 'pretty_version' => '1.0.6', 'version' => '1.0.6.0', - 'reference' => '45326fb83a2a375065dbb3a134b5b8a5872da569', 'type' => 'library', 'install_path' => __DIR__ . '/../khanamiryan/qrcode-detector-decoder', 'aliases' => array(), + 'reference' => '45326fb83a2a375065dbb3a134b5b8a5872da569', 'dev_requirement' => false, ), 'league/flysystem' => array( 'pretty_version' => '1.1.10', 'version' => '1.1.10.0', - 'reference' => '3239285c825c152bcc315fe0e87d6b55f5972ed1', 'type' => 'library', 'install_path' => __DIR__ . '/../league/flysystem', 'aliases' => array(), + 'reference' => '3239285c825c152bcc315fe0e87d6b55f5972ed1', 'dev_requirement' => false, ), 'league/flysystem-cached-adapter' => array( 'pretty_version' => '1.1.0', 'version' => '1.1.0.0', - 'reference' => 'd1925efb2207ac4be3ad0c40b8277175f99ffaff', 'type' => 'library', 'install_path' => __DIR__ . '/../league/flysystem-cached-adapter', 'aliases' => array(), + 'reference' => 'd1925efb2207ac4be3ad0c40b8277175f99ffaff', 'dev_requirement' => false, ), 'league/mime-type-detection' => array( 'pretty_version' => '1.14.0', 'version' => '1.14.0.0', - 'reference' => 'b6a5854368533df0295c5761a0253656a2e52d9e', 'type' => 'library', 'install_path' => __DIR__ . '/../league/mime-type-detection', 'aliases' => array(), + 'reference' => 'b6a5854368533df0295c5761a0253656a2e52d9e', 'dev_requirement' => false, ), 'lizhichao/one-sm' => array( 'pretty_version' => '1.10', 'version' => '1.10.0.0', - 'reference' => '687a012a44a5bfd4d9143a0234e1060543be455a', 'type' => 'library', 'install_path' => __DIR__ . '/../lizhichao/one-sm', 'aliases' => array(), + 'reference' => '687a012a44a5bfd4d9143a0234e1060543be455a', 'dev_requirement' => false, ), 'lizhichao/word' => array( 'pretty_version' => 'v2.1', 'version' => '2.1.0.0', - 'reference' => 'f17172d45f505e7140da0bde2103defc13255326', 'type' => 'library', 'install_path' => __DIR__ . '/../lizhichao/word', 'aliases' => array(), + 'reference' => 'f17172d45f505e7140da0bde2103defc13255326', 'dev_requirement' => false, ), 'maennchen/zipstream-php' => array( 'pretty_version' => '2.2.6', 'version' => '2.2.6.0', - 'reference' => '30ad6f93cf3efe4192bc7a4c9cad11ff8f4f237f', 'type' => 'library', 'install_path' => __DIR__ . '/../maennchen/zipstream-php', 'aliases' => array(), + 'reference' => '30ad6f93cf3efe4192bc7a4c9cad11ff8f4f237f', 'dev_requirement' => false, ), 'markbaker/complex' => array( 'pretty_version' => '3.0.2', 'version' => '3.0.2.0', - 'reference' => '95c56caa1cf5c766ad6d65b6344b807c1e8405b9', 'type' => 'library', 'install_path' => __DIR__ . '/../markbaker/complex', 'aliases' => array(), + 'reference' => '95c56caa1cf5c766ad6d65b6344b807c1e8405b9', 'dev_requirement' => false, ), 'markbaker/matrix' => array( 'pretty_version' => '3.0.1', 'version' => '3.0.1.0', - 'reference' => '728434227fe21be27ff6d86621a1b13107a2562c', 'type' => 'library', 'install_path' => __DIR__ . '/../markbaker/matrix', 'aliases' => array(), + 'reference' => '728434227fe21be27ff6d86621a1b13107a2562c', 'dev_requirement' => false, ), 'monolog/monolog' => array( 'pretty_version' => '1.27.1', 'version' => '1.27.1.0', - 'reference' => '904713c5929655dc9b97288b69cfeedad610c9a1', 'type' => 'library', 'install_path' => __DIR__ . '/../monolog/monolog', 'aliases' => array(), + 'reference' => '904713c5929655dc9b97288b69cfeedad610c9a1', 'dev_requirement' => false, ), 'myclabs/php-enum' => array( 'pretty_version' => '1.8.4', 'version' => '1.8.4.0', - 'reference' => 'a867478eae49c9f59ece437ae7f9506bfaa27483', 'type' => 'library', 'install_path' => __DIR__ . '/../myclabs/php-enum', 'aliases' => array(), + 'reference' => 'a867478eae49c9f59ece437ae7f9506bfaa27483', 'dev_requirement' => false, ), 'nelexa/zip' => array( 'pretty_version' => '4.0.2', 'version' => '4.0.2.0', - 'reference' => '88a1b6549be813278ff2dd3b6b2ac188827634a7', 'type' => 'library', 'install_path' => __DIR__ . '/../nelexa/zip', 'aliases' => array(), + 'reference' => '88a1b6549be813278ff2dd3b6b2ac188827634a7', 'dev_requirement' => false, ), 'nesbot/carbon' => array( 'pretty_version' => '2.71.0', 'version' => '2.71.0.0', - 'reference' => '98276233188583f2ff845a0f992a235472d9466a', 'type' => 'library', 'install_path' => __DIR__ . '/../nesbot/carbon', 'aliases' => array(), + 'reference' => '98276233188583f2ff845a0f992a235472d9466a', 'dev_requirement' => false, ), 'nette/php-generator' => array( 'pretty_version' => 'v3.6.9', 'version' => '3.6.9.0', - 'reference' => 'd31782f7bd2ae84ad06f863391ec3fb77ca4d0a6', 'type' => 'library', 'install_path' => __DIR__ . '/../nette/php-generator', 'aliases' => array(), + 'reference' => 'd31782f7bd2ae84ad06f863391ec3fb77ca4d0a6', 'dev_requirement' => false, ), 'nette/utils' => array( 'pretty_version' => 'v3.2.10', 'version' => '3.2.10.0', - 'reference' => 'a4175c62652f2300c8017fb7e640f9ccb11648d2', 'type' => 'library', 'install_path' => __DIR__ . '/../nette/utils', 'aliases' => array(), + 'reference' => 'a4175c62652f2300c8017fb7e640f9ccb11648d2', 'dev_requirement' => false, ), 'obs/esdk-obs-php' => array( 'pretty_version' => '3.23.5', 'version' => '3.23.5.0', - 'reference' => 'caf8506144f11377b048c88f6c8aa1338e87bab9', 'type' => 'library', 'install_path' => __DIR__ . '/../obs/esdk-obs-php', 'aliases' => array(), + 'reference' => 'caf8506144f11377b048c88f6c8aa1338e87bab9', 'dev_requirement' => false, ), 'open-smf/connection-pool' => array( 'pretty_version' => 'v1.0.16', 'version' => '1.0.16.0', - 'reference' => 'f70e47dbf56f1869d3207e15825cf38810b865e0', 'type' => 'library', 'install_path' => __DIR__ . '/../open-smf/connection-pool', 'aliases' => array(), + 'reference' => 'f70e47dbf56f1869d3207e15825cf38810b865e0', 'dev_requirement' => false, ), 'overtrue/pinyin' => array( 'pretty_version' => '4.1.0', 'version' => '4.1.0.0', - 'reference' => '4d0fb4f27f0c79e81c9489e0c0ae4a4f8837eae7', 'type' => 'library', 'install_path' => __DIR__ . '/../overtrue/pinyin', 'aliases' => array(), + 'reference' => '4d0fb4f27f0c79e81c9489e0c0ae4a4f8837eae7', 'dev_requirement' => false, ), 'overtrue/socialite' => array( 'pretty_version' => '1.3.0', 'version' => '1.3.0.0', - 'reference' => 'fda55f0acef43a144799b1957a8f93d9f5deffce', 'type' => 'library', 'install_path' => __DIR__ . '/../overtrue/socialite', 'aliases' => array(), + 'reference' => 'fda55f0acef43a144799b1957a8f93d9f5deffce', 'dev_requirement' => false, ), 'overtrue/wechat' => array( 'pretty_version' => '3.3.33', 'version' => '3.3.33.0', - 'reference' => '78e5476df330754040d1c400d0bca640d5b77cb7', 'type' => 'library', 'install_path' => __DIR__ . '/../overtrue/wechat', 'aliases' => array(), + 'reference' => '78e5476df330754040d1c400d0bca640d5b77cb7', 'dev_requirement' => false, ), 'phpoffice/phpexcel' => array( 'pretty_version' => '1.8.2', 'version' => '1.8.2.0', - 'reference' => '1441011fb7ecdd8cc689878f54f8b58a6805f870', 'type' => 'library', 'install_path' => __DIR__ . '/../phpoffice/phpexcel', 'aliases' => array(), + 'reference' => '1441011fb7ecdd8cc689878f54f8b58a6805f870', 'dev_requirement' => false, ), 'phpoffice/phpspreadsheet' => array( 'pretty_version' => '1.29.0', 'version' => '1.29.0.0', - 'reference' => 'fde2ccf55eaef7e86021ff1acce26479160a0fa0', 'type' => 'library', 'install_path' => __DIR__ . '/../phpoffice/phpspreadsheet', 'aliases' => array(), + 'reference' => 'fde2ccf55eaef7e86021ff1acce26479160a0fa0', 'dev_requirement' => false, ), 'phpoption/phpoption' => array( 'pretty_version' => '1.9.1', 'version' => '1.9.1.0', - 'reference' => 'dd3a383e599f49777d8b628dadbb90cae435b87e', 'type' => 'library', 'install_path' => __DIR__ . '/../phpoption/phpoption', 'aliases' => array(), + 'reference' => 'dd3a383e599f49777d8b628dadbb90cae435b87e', 'dev_requirement' => false, ), 'pimple/pimple' => array( 'pretty_version' => 'v3.5.0', 'version' => '3.5.0.0', - 'reference' => 'a94b3a4db7fb774b3d78dad2315ddc07629e1bed', 'type' => 'library', 'install_path' => __DIR__ . '/../pimple/pimple', 'aliases' => array(), + 'reference' => 'a94b3a4db7fb774b3d78dad2315ddc07629e1bed', 'dev_requirement' => false, ), 'psr/cache' => array( 'pretty_version' => '1.0.1', 'version' => '1.0.1.0', - 'reference' => 'd11b50ad223250cf17b86e38383413f5a6764bf8', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/cache', 'aliases' => array(), + 'reference' => 'd11b50ad223250cf17b86e38383413f5a6764bf8', 'dev_requirement' => false, ), 'psr/clock' => array( 'pretty_version' => '1.0.0', 'version' => '1.0.0.0', - 'reference' => 'e41a24703d4560fd0acb709162f73b8adfc3aa0d', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/clock', 'aliases' => array(), + 'reference' => 'e41a24703d4560fd0acb709162f73b8adfc3aa0d', 'dev_requirement' => false, ), 'psr/clock-implementation' => array( @@ -655,37 +700,37 @@ 'psr/container' => array( 'pretty_version' => '1.1.2', 'version' => '1.1.2.0', - 'reference' => '513e0666f7216c7459170d56df27dfcefe1689ea', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/container', 'aliases' => array(), + 'reference' => '513e0666f7216c7459170d56df27dfcefe1689ea', 'dev_requirement' => false, ), 'psr/http-client' => array( 'pretty_version' => '1.0.3', 'version' => '1.0.3.0', - 'reference' => 'bb5906edc1c324c9a05aa0873d40117941e5fa90', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/http-client', 'aliases' => array(), + 'reference' => 'bb5906edc1c324c9a05aa0873d40117941e5fa90', 'dev_requirement' => false, ), 'psr/http-factory' => array( 'pretty_version' => '1.0.2', 'version' => '1.0.2.0', - 'reference' => 'e616d01114759c4c489f93b099585439f795fe35', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/http-factory', 'aliases' => array(), + 'reference' => 'e616d01114759c4c489f93b099585439f795fe35', 'dev_requirement' => false, ), 'psr/http-message' => array( 'pretty_version' => '1.1', 'version' => '1.1.0.0', - 'reference' => 'cb6ce4845ce34a8ad9e68117c10ee90a29919eba', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/http-message', 'aliases' => array(), + 'reference' => 'cb6ce4845ce34a8ad9e68117c10ee90a29919eba', 'dev_requirement' => false, ), 'psr/http-message-implementation' => array( @@ -697,10 +742,10 @@ 'psr/log' => array( 'pretty_version' => '1.1.4', 'version' => '1.1.4.0', - 'reference' => 'd49695b909c3b7628b6289db5479a1c204601f11', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/log', 'aliases' => array(), + 'reference' => 'd49695b909c3b7628b6289db5479a1c204601f11', 'dev_requirement' => false, ), 'psr/log-implementation' => array( @@ -712,244 +757,244 @@ 'psr/simple-cache' => array( 'pretty_version' => '1.0.1', 'version' => '1.0.1.0', - 'reference' => '408d5eafb83c57f6365a3ca330ff23aa4a5fa39b', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/simple-cache', 'aliases' => array(), + 'reference' => '408d5eafb83c57f6365a3ca330ff23aa4a5fa39b', 'dev_requirement' => false, ), 'qcloud/cos-sdk-v5' => array( 'pretty_version' => 'v1.3.5', 'version' => '1.3.5.0', - 'reference' => 'e67ad8143695192ee206bcbcafc78c08da92c621', 'type' => 'library', 'install_path' => __DIR__ . '/../qcloud/cos-sdk-v5', 'aliases' => array(), + 'reference' => 'e67ad8143695192ee206bcbcafc78c08da92c621', 'dev_requirement' => false, ), 'qiniu/php-sdk' => array( 'pretty_version' => 'v7.11.0', 'version' => '7.11.0.0', - 'reference' => '9ee81f0acd57fa7bb435ffe9e515d7a9fdd0489b', 'type' => 'library', 'install_path' => __DIR__ . '/../qiniu/php-sdk', 'aliases' => array(), + 'reference' => '9ee81f0acd57fa7bb435ffe9e515d7a9fdd0489b', 'dev_requirement' => false, ), 'ralouphie/getallheaders' => array( 'pretty_version' => '3.0.3', 'version' => '3.0.3.0', - 'reference' => '120b605dfeb996808c31b6477290a714d356e822', 'type' => 'library', 'install_path' => __DIR__ . '/../ralouphie/getallheaders', 'aliases' => array(), + 'reference' => '120b605dfeb996808c31b6477290a714d356e822', 'dev_requirement' => false, ), 'riverslei/payment' => array( 'pretty_version' => 'v5.1.0', 'version' => '5.1.0.0', - 'reference' => '77f671b68b0285a6af77dc7c5afa36eabcae35aa', 'type' => 'library', 'install_path' => __DIR__ . '/../riverslei/payment', 'aliases' => array(), + 'reference' => '77f671b68b0285a6af77dc7c5afa36eabcae35aa', 'dev_requirement' => false, ), 'swoole/ide-helper' => array( 'pretty_version' => '4.8.13', 'version' => '4.8.13.0', - 'reference' => 'd100c446b2e3d56430cbcab5dc3fa20a9f35c4ef', 'type' => 'library', 'install_path' => __DIR__ . '/../swoole/ide-helper', 'aliases' => array(), + 'reference' => 'd100c446b2e3d56430cbcab5dc3fa20a9f35c4ef', 'dev_requirement' => false, ), 'symfony/deprecation-contracts' => array( 'pretty_version' => 'v2.5.2', 'version' => '2.5.2.0', - 'reference' => 'e8b495ea28c1d97b5e0c121748d6f9b53d075c66', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/deprecation-contracts', 'aliases' => array(), + 'reference' => 'e8b495ea28c1d97b5e0c121748d6f9b53d075c66', 'dev_requirement' => false, ), 'symfony/event-dispatcher' => array( 'pretty_version' => 'v2.8.52', 'version' => '2.8.52.0', - 'reference' => 'a77e974a5fecb4398833b0709210e3d5e334ffb0', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/event-dispatcher', 'aliases' => array(), + 'reference' => 'a77e974a5fecb4398833b0709210e3d5e334ffb0', 'dev_requirement' => false, ), 'symfony/finder' => array( 'pretty_version' => 'v5.4.27', 'version' => '5.4.27.0', - 'reference' => 'ff4bce3c33451e7ec778070e45bd23f74214cd5d', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/finder', 'aliases' => array(), + 'reference' => 'ff4bce3c33451e7ec778070e45bd23f74214cd5d', 'dev_requirement' => false, ), 'symfony/http-foundation' => array( 'pretty_version' => 'v3.4.47', 'version' => '3.4.47.0', - 'reference' => 'b9885fcce6fe494201da4f70a9309770e9d13dc8', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/http-foundation', 'aliases' => array(), + 'reference' => 'b9885fcce6fe494201da4f70a9309770e9d13dc8', 'dev_requirement' => false, ), 'symfony/options-resolver' => array( 'pretty_version' => 'v5.4.21', 'version' => '5.4.21.0', - 'reference' => '4fe5cf6ede71096839f0e4b4444d65dd3a7c1eb9', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/options-resolver', 'aliases' => array(), + 'reference' => '4fe5cf6ede71096839f0e4b4444d65dd3a7c1eb9', 'dev_requirement' => false, ), 'symfony/polyfill-ctype' => array( 'pretty_version' => 'v1.28.0', 'version' => '1.28.0.0', - 'reference' => 'ea208ce43cbb04af6867b4fdddb1bdbf84cc28cb', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/polyfill-ctype', 'aliases' => array(), + 'reference' => 'ea208ce43cbb04af6867b4fdddb1bdbf84cc28cb', 'dev_requirement' => false, ), 'symfony/polyfill-intl-grapheme' => array( 'pretty_version' => 'v1.28.0', 'version' => '1.28.0.0', - 'reference' => '875e90aeea2777b6f135677f618529449334a612', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/polyfill-intl-grapheme', 'aliases' => array(), + 'reference' => '875e90aeea2777b6f135677f618529449334a612', 'dev_requirement' => false, ), 'symfony/polyfill-intl-idn' => array( 'pretty_version' => 'v1.28.0', 'version' => '1.28.0.0', - 'reference' => 'ecaafce9f77234a6a449d29e49267ba10499116d', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/polyfill-intl-idn', 'aliases' => array(), + 'reference' => 'ecaafce9f77234a6a449d29e49267ba10499116d', 'dev_requirement' => false, ), 'symfony/polyfill-intl-normalizer' => array( 'pretty_version' => 'v1.28.0', 'version' => '1.28.0.0', - 'reference' => '8c4ad05dd0120b6a53c1ca374dca2ad0a1c4ed92', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/polyfill-intl-normalizer', 'aliases' => array(), + 'reference' => '8c4ad05dd0120b6a53c1ca374dca2ad0a1c4ed92', 'dev_requirement' => false, ), 'symfony/polyfill-mbstring' => array( 'pretty_version' => 'v1.28.0', 'version' => '1.28.0.0', - 'reference' => '42292d99c55abe617799667f454222c54c60e229', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/polyfill-mbstring', 'aliases' => array(), + 'reference' => '42292d99c55abe617799667f454222c54c60e229', 'dev_requirement' => false, ), 'symfony/polyfill-php70' => array( 'pretty_version' => 'v1.20.0', 'version' => '1.20.0.0', - 'reference' => '5f03a781d984aae42cebd18e7912fa80f02ee644', 'type' => 'metapackage', 'install_path' => NULL, 'aliases' => array(), + 'reference' => '5f03a781d984aae42cebd18e7912fa80f02ee644', 'dev_requirement' => false, ), 'symfony/polyfill-php72' => array( 'pretty_version' => 'v1.28.0', 'version' => '1.28.0.0', - 'reference' => '70f4aebd92afca2f865444d30a4d2151c13c3179', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/polyfill-php72', 'aliases' => array(), + 'reference' => '70f4aebd92afca2f865444d30a4d2151c13c3179', 'dev_requirement' => false, ), 'symfony/polyfill-php73' => array( 'pretty_version' => 'v1.28.0', 'version' => '1.28.0.0', - 'reference' => 'fe2f306d1d9d346a7fee353d0d5012e401e984b5', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/polyfill-php73', 'aliases' => array(), + 'reference' => 'fe2f306d1d9d346a7fee353d0d5012e401e984b5', 'dev_requirement' => false, ), 'symfony/polyfill-php80' => array( 'pretty_version' => 'v1.28.0', 'version' => '1.28.0.0', - 'reference' => '6caa57379c4aec19c0a12a38b59b26487dcfe4b5', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/polyfill-php80', 'aliases' => array(), + 'reference' => '6caa57379c4aec19c0a12a38b59b26487dcfe4b5', 'dev_requirement' => false, ), 'symfony/process' => array( 'pretty_version' => 'v5.4.28', 'version' => '5.4.28.0', - 'reference' => '45261e1fccad1b5447a8d7a8e67aa7b4a9798b7b', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/process', 'aliases' => array(), + 'reference' => '45261e1fccad1b5447a8d7a8e67aa7b4a9798b7b', 'dev_requirement' => false, ), 'symfony/property-access' => array( 'pretty_version' => 'v5.4.26', 'version' => '5.4.26.0', - 'reference' => '0249e46f69e92049a488f39fcf531cb42c50caaa', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/property-access', 'aliases' => array(), + 'reference' => '0249e46f69e92049a488f39fcf531cb42c50caaa', 'dev_requirement' => false, ), 'symfony/property-info' => array( 'pretty_version' => 'v5.4.24', 'version' => '5.4.24.0', - 'reference' => 'd43b85b00699b4484964c297575b5c6f9dc5f6e1', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/property-info', 'aliases' => array(), + 'reference' => 'd43b85b00699b4484964c297575b5c6f9dc5f6e1', 'dev_requirement' => false, ), 'symfony/psr-http-message-bridge' => array( 'pretty_version' => 'v1.2.0', 'version' => '1.2.0.0', - 'reference' => '9ab9d71f97d5c7d35a121a7fb69f74fee95cd0ad', 'type' => 'symfony-bridge', 'install_path' => __DIR__ . '/../symfony/psr-http-message-bridge', 'aliases' => array(), + 'reference' => '9ab9d71f97d5c7d35a121a7fb69f74fee95cd0ad', 'dev_requirement' => false, ), 'symfony/string' => array( 'pretty_version' => 'v5.4.29', 'version' => '5.4.29.0', - 'reference' => 'e41bdc93def20eaf3bfc1537c4e0a2b0680a152d', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/string', 'aliases' => array(), + 'reference' => 'e41bdc93def20eaf3bfc1537c4e0a2b0680a152d', 'dev_requirement' => false, ), 'symfony/translation' => array( 'pretty_version' => 'v5.4.30', 'version' => '5.4.30.0', - 'reference' => '8560dc532e4e48d331937532a7cbfd2a9f9f53ce', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/translation', 'aliases' => array(), + 'reference' => '8560dc532e4e48d331937532a7cbfd2a9f9f53ce', 'dev_requirement' => false, ), 'symfony/translation-contracts' => array( 'pretty_version' => 'v2.5.2', 'version' => '2.5.2.0', - 'reference' => '136b19dd05cdf0709db6537d058bcab6dd6e2dbe', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/translation-contracts', 'aliases' => array(), + 'reference' => '136b19dd05cdf0709db6537d058bcab6dd6e2dbe', 'dev_requirement' => false, ), 'symfony/translation-implementation' => array( @@ -961,118 +1006,118 @@ 'symfony/var-dumper' => array( 'pretty_version' => 'v4.4.47', 'version' => '4.4.47.0', - 'reference' => '1069c7a3fca74578022fab6f81643248d02f8e63', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/var-dumper', 'aliases' => array(), + 'reference' => '1069c7a3fca74578022fab6f81643248d02f8e63', 'dev_requirement' => true, ), 'topthink/framework' => array( 'pretty_version' => 'v6.0.7', 'version' => '6.0.7.0', - 'reference' => 'db8fe22520a9660dd5e4c87e304034ac49e39270', 'type' => 'library', 'install_path' => __DIR__ . '/../topthink/framework', 'aliases' => array(), + 'reference' => 'db8fe22520a9660dd5e4c87e304034ac49e39270', 'dev_requirement' => false, ), 'topthink/think' => array( 'pretty_version' => 'dev-master', 'version' => 'dev-master', - 'reference' => '0224f6113a669845fb3455cadb381a6931e9c508', 'type' => 'project', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), + 'reference' => '641a1cf576a0931341e979fcb021728a5f208868', 'dev_requirement' => false, ), 'topthink/think-api' => array( 'pretty_version' => 'v1.0.27', 'version' => '1.0.27.0', - 'reference' => '36d7caac89ab5153493d1e0ad64f96d442e59b69', 'type' => 'library', 'install_path' => __DIR__ . '/../topthink/think-api', 'aliases' => array(), + 'reference' => '36d7caac89ab5153493d1e0ad64f96d442e59b69', 'dev_requirement' => false, ), 'topthink/think-helper' => array( 'pretty_version' => 'v3.1.6', 'version' => '3.1.6.0', - 'reference' => '769acbe50a4274327162f9c68ec2e89a38eb2aff', 'type' => 'library', 'install_path' => __DIR__ . '/../topthink/think-helper', 'aliases' => array(), + 'reference' => '769acbe50a4274327162f9c68ec2e89a38eb2aff', 'dev_requirement' => false, ), 'topthink/think-image' => array( 'pretty_version' => 'v1.0.7', 'version' => '1.0.7.0', - 'reference' => '8586cf47f117481c6d415b20f7dedf62e79d5512', 'type' => 'library', 'install_path' => __DIR__ . '/../topthink/think-image', 'aliases' => array(), + 'reference' => '8586cf47f117481c6d415b20f7dedf62e79d5512', 'dev_requirement' => false, ), 'topthink/think-orm' => array( 'pretty_version' => 'v2.0.61', 'version' => '2.0.61.0', - 'reference' => '10528ebf4a5106b19c3bac9c6deae7a67ff49de6', 'type' => 'library', 'install_path' => __DIR__ . '/../topthink/think-orm', 'aliases' => array(), + 'reference' => '10528ebf4a5106b19c3bac9c6deae7a67ff49de6', 'dev_requirement' => false, ), 'topthink/think-queue' => array( 'pretty_version' => 'v3.0.9', 'version' => '3.0.9.0', - 'reference' => '654812b47dd7c708c4443deed27f212f8382e8da', 'type' => 'library', 'install_path' => __DIR__ . '/../topthink/think-queue', 'aliases' => array(), + 'reference' => '654812b47dd7c708c4443deed27f212f8382e8da', 'dev_requirement' => false, ), 'topthink/think-swoole' => array( 'pretty_version' => 'v3.1.2', 'version' => '3.1.2.0', - 'reference' => 'eb7f78b7eb53dde79257f4254fe61f9514f3c7d8', 'type' => 'library', 'install_path' => __DIR__ . '/../topthink/think-swoole', 'aliases' => array(), + 'reference' => 'eb7f78b7eb53dde79257f4254fe61f9514f3c7d8', 'dev_requirement' => false, ), 'topthink/think-trace' => array( 'pretty_version' => 'v1.6', 'version' => '1.6.0.0', - 'reference' => '136cd5d97e8bdb780e4b5c1637c588ed7ca3e142', 'type' => 'library', 'install_path' => __DIR__ . '/../topthink/think-trace', 'aliases' => array(), + 'reference' => '136cd5d97e8bdb780e4b5c1637c588ed7ca3e142', 'dev_requirement' => true, ), 'ucloud/ufile-php-sdk' => array( 'pretty_version' => '1.0.1', 'version' => '1.0.1.0', - 'reference' => '42f739ecd55dec488e9b2185795cdc5ea7be12d0', 'type' => 'library', 'install_path' => __DIR__ . '/../ucloud/ufile-php-sdk', 'aliases' => array(), + 'reference' => '42f739ecd55dec488e9b2185795cdc5ea7be12d0', 'dev_requirement' => false, ), 'vlucas/phpdotenv' => array( 'pretty_version' => 'v5.5.0', 'version' => '5.5.0.0', - 'reference' => '1a7ea2afc49c3ee6d87061f5a233e3a035d0eae7', 'type' => 'library', 'install_path' => __DIR__ . '/../vlucas/phpdotenv', 'aliases' => array(), + 'reference' => '1a7ea2afc49c3ee6d87061f5a233e3a035d0eae7', 'dev_requirement' => false, ), 'xaboy/form-builder' => array( 'pretty_version' => '2.0.15', 'version' => '2.0.15.0', - 'reference' => '20cf96927c7aed273dd0db5b2c7c83f56e535bf1', 'type' => 'library', 'install_path' => __DIR__ . '/../xaboy/form-builder', 'aliases' => array(), + 'reference' => '20cf96927c7aed273dd0db5b2c7c83f56e535bf1', 'dev_requirement' => false, ), ), diff --git a/vendor/services.php b/vendor/services.php index ddd14bdb..bb20d8b7 100644 --- a/vendor/services.php +++ b/vendor/services.php @@ -1,5 +1,5 @@ 'think\\queue\\Service', From 4e5e187763f9fb5296186affb6e73926255f5d3a Mon Sep 17 00:00:00 2001 From: shengchanzhe <179998674@qq.com> Date: Sat, 23 Dec 2023 11:15:54 +0800 Subject: [PATCH 08/44] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/api/store/merchant/Merchant.php | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/app/controller/api/store/merchant/Merchant.php b/app/controller/api/store/merchant/Merchant.php index 559e979d..cbbcb097 100755 --- a/app/controller/api/store/merchant/Merchant.php +++ b/app/controller/api/store/merchant/Merchant.php @@ -268,15 +268,16 @@ class Merchant extends BaseController if (empty($id)) { return app('json')->fail('参数错误'); } + $merchant = app()->make(MerchantRepository::class)->search(['mer_id' => $id])->find(); - $data = Db::name('merchant')->where('mer_id', $id)->find(); - $data['mer_certificate'] = merchantConfig($id, 'mer_certificate'); - $data['mer_certificate'] = $data['mer_certificate'][0] ?? ''; - // $append = ['merchantCategory', 'merchantType', 'mer_certificate']; - // if ($merchant['is_margin'] == -10) - // $append[] = 'refundMarginOrder'; + // $data = Db::name('merchant')->where('mer_id', $id)->find(); + $merchant['mer_certificate'] = merchantConfig($id, 'mer_certificate'); + // $data['mer_certificate'] = $data['mer_certificate'][0] ?? ''; + $append = ['merchantCategory', 'merchantType', 'mer_certificate']; + if ($merchant['is_margin'] == -10) + $append[] = 'refundMarginOrder'; - // $data = $merchant->append($append)->hidden(['mark', 'reg_admin_id', 'sort'])->toArray(); + $data = $merchant->append($append)->hidden(['mark', 'reg_admin_id', 'sort','financial_bank'])->toArray(); $delivery = $repository->get($id) + systemConfig(['tx_map_key']); $data = array_merge($data, $delivery); $data['sys_bases_status'] = systemConfig('sys_bases_status') === '0' ? 0 : 1; From 0d744027c9d8f3cf81de6344f17633cf538343ef Mon Sep 17 00:00:00 2001 From: shengchanzhe <179998674@qq.com> Date: Sat, 23 Dec 2023 15:20:01 +0800 Subject: [PATCH 09/44] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=A0=87=E7=AD=BE?= =?UTF-8?q?=E5=95=86=E5=93=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../store/product/ProductRepository.php | 45 +++++- app/controller/api/server/StoreProduct.php | 30 ++++ .../merchant/store/product/Product.php | 148 +++++++++++------- route/api.php | 3 +- route/merchant/product.php | 6 + 5 files changed, 166 insertions(+), 66 deletions(-) diff --git a/app/common/repositories/store/product/ProductRepository.php b/app/common/repositories/store/product/ProductRepository.php index 26a8391e..d584372e 100644 --- a/app/common/repositories/store/product/ProductRepository.php +++ b/app/common/repositories/store/product/ProductRepository.php @@ -541,7 +541,7 @@ class ProductRepository extends BaseRepository { $result = []; foreach ($data as $value) { - if (is_int($value)||$value['category']) { + if (is_int($value) || $value['category']) { $result[] = [ 'product_id' => $productId, 'mer_cate_id' => $value, @@ -1939,13 +1939,13 @@ class ProductRepository extends BaseRepository } else { //加入购物车 //购物车现有 - $_num = $this->productOnceCountCart($where['product_id'], $data['product_attr_unique'], $userInfo->uid, $data['product_type'],$data['source']); + $_num = $this->productOnceCountCart($where['product_id'], $data['product_attr_unique'], $userInfo->uid, $data['product_type'], $data['source']); $cart_num = $_num + $data['cart_num']; } if ($sku['stock'] < $cart_num) throw new ValidateException('库存不足'); //添加购物车 if (!$data['is_new']) { - $cart = app()->make(StoreCartRepository::class)->getCartByProductSku($data['product_attr_unique'], $userInfo->uid, $data['product_type'],$data['source']); + $cart = app()->make(StoreCartRepository::class)->getCartByProductSku($data['product_attr_unique'], $userInfo->uid, $data['product_type'], $data['source']); } return compact('product', 'sku', 'cart'); } @@ -1958,7 +1958,7 @@ class ProductRepository extends BaseRepository * @author Qinii * @day 5/26/21 */ - public function productOnceCountCart($productId, $product_attr_unique, $uid, $product_type = 0,$source=0) + public function productOnceCountCart($productId, $product_attr_unique, $uid, $product_type = 0, $source = 0) { $make = app()->make(StoreCartRepository::class); $where = [ @@ -1970,7 +1970,7 @@ class ProductRepository extends BaseRepository 'product_id' => $productId, 'uid' => $uid, 'product_attr_unique' => $product_attr_unique, - 'source'=>$source + 'source' => $source ]; $cart_num = $make->getSearch($where)->sum('cart_num'); return $cart_num; @@ -2575,4 +2575,39 @@ class ProductRepository extends BaseRepository ); return compact('count', 'list'); } + + /** + * 添加商品到云市场 + */ + public function add_cloud_product($data, $merchant) + { + if ($data['is_del'] == 1) { + return Db::name('cloud_product')->where('product_id', $data['product_id'])->delete(); + } + if ($data['product_id'] && $data['type']) { + switch ($data['type']) { + case 'two': + $data['type'] = 6; + break; + case 'three': + $data['mer_id'] = 7; + case 'seven': + $data['type'] = 8; + } + $datas = [ + 'product_id' => $data['product_id'], + 'mer_id' => $merchant['mer_id'], + 'source_mer_id' => 0, + 'street_code' => $merchant['street_id'], + 'type_id' => $merchant['type_id'], + 'category_id' => $merchant['category_id'], + 'weight' => 1, + 'status' => 1, + 'create_time' => date('Y-m-d H:i:s'), + 'mer_labels' => ',' . $data['type'] . ',', + ]; + return Db::name('cloud_product')->insert($datas); + } + return false; + } } diff --git a/app/controller/api/server/StoreProduct.php b/app/controller/api/server/StoreProduct.php index f210075a..77701c93 100644 --- a/app/controller/api/server/StoreProduct.php +++ b/app/controller/api/server/StoreProduct.php @@ -256,4 +256,34 @@ class StoreProduct extends BaseController return app('json')->fail('入库失败'); } } + + + + /** + * 商户添加商品到云仓 + */ + public function add_cloud_product() + { + $data = $this->request->params(['product_id', 'type', 'is_del']); + $merchant = app()->make(MerchantRepository::class)->search(['mer_id' => $this->merId,])->find(); + $res = $this->repository->add_cloud_product($data, $merchant); + if ($res) { + return app('json')->success('设置成功'); + } else { + return app('json')->fail('设置失败'); + } + } + + + /** + * 云仓商品列表 + */ + public function cloud_product_list(){ + [$page, $limit] = $this->getPage(); + $merchant = app()->make(MerchantRepository::class)->search(['mer_id' => $this->merId,])->find(); + $select=Db::name('store_product_cloud')->where('mer_id',$merchant['mer_id']) + ->page($page)->limit($limit)->select()->toArray(); + $count = Db::name('store_product_cloud')->where('mer_id',$merchant['mer_id'])->count(); + return app('json')->success(['list'=>$select,'count'=>$count]); + } } diff --git a/app/controller/merchant/store/product/Product.php b/app/controller/merchant/store/product/Product.php index 294ee9f5..bd50b45d 100644 --- a/app/controller/merchant/store/product/Product.php +++ b/app/controller/merchant/store/product/Product.php @@ -29,14 +29,14 @@ use think\facade\Db; class Product extends BaseController { - protected $repository ; + protected $repository; /** * Product constructor. * @param App $app * @param repository $repository */ - public function __construct(App $app ,repository $repository) + public function __construct(App $app, repository $repository) { parent::__construct($app); $this->repository = $repository; @@ -50,17 +50,17 @@ class Product extends BaseController public function lst() { [$page, $limit] = $this->getPage(); - $where = $this->request->params(['temp_id','cate_id','keyword',['type',1],'mer_cate_id','is_gift_bag','status','us_status','product_id','mer_labels',['order','sort'],'is_ficti','svip_price_type']); - $where = array_merge($where,$this->repository->switchType($where['type'],$this->request->merId(),0)); - $type=$this->request->merchant()['type_id']; - $typeCode=Db::name('merchant_type')->where('mer_type_id',$type)->value('type_code'); - $product_type=0; + $where = $this->request->params(['temp_id', 'cate_id', 'keyword', ['type', 1], 'mer_cate_id', 'is_gift_bag', 'status', 'us_status', 'product_id', 'mer_labels', ['order', 'sort'], 'is_ficti', 'svip_price_type']); + $where = array_merge($where, $this->repository->switchType($where['type'], $this->request->merId(), 0)); + $type = $this->request->merchant()['type_id']; + $typeCode = Db::name('merchant_type')->where('mer_type_id', $type)->value('type_code'); + $product_type = 0; // if ($type==12){ - if ($typeCode==Merchant::TypeCode['TypeSupplyChain']){ - $where['product_type']=98;//供应链 + if ($typeCode == Merchant::TypeCode['TypeSupplyChain']) { + $where['product_type'] = 98; //供应链 } - return app('json')->success($this->repository->getList($this->request->merId(),$where, $page, $limit)); + return app('json')->success($this->repository->getList($this->request->merId(), $where, $page, $limit)); } /** @@ -71,9 +71,9 @@ class Product extends BaseController */ public function detail($id) { - if(!$this->repository->merExists($this->request->merId(),$id)) + if (!$this->repository->merExists($this->request->merId(), $id)) return app('json')->fail('数据不存在'); - return app('json')->success($this->repository->getAdminOneProduct($id,null)); + return app('json')->success($this->repository->getAdminOneProduct($id, null)); } /** @@ -85,7 +85,7 @@ class Product extends BaseController public function create() { $params = $this->request->params($this->repository::CREATE_PARAMS); - $data = $this->repository->checkParams($params,$this->request->merId()); + $data = $this->repository->checkParams($params, $this->request->merId()); // $cate_id=StoreCategory::where('pid',$data['cate_id'])->where('level',2)->value('store_category_id'); // if(!$cate_id){ // return app('json')->fail('请先添加第三级分类'); @@ -97,15 +97,15 @@ class Product extends BaseController $data['status'] = $this->request->merchant()->is_audit ? 0 : 1; $data['mer_status'] = ($this->request->merchant()->is_del || !$this->request->merchant()->mer_state || !$this->request->merchant()->status) ? 0 : 1; $data['rate'] = 3; - $typeCode=Db::name('merchant_type')->where('mer_type_id',$this->request->merchant()->type_id)->value('type_code'); + $typeCode = Db::name('merchant_type')->where('mer_type_id', $this->request->merchant()->type_id)->value('type_code'); // if ($this->request->merchant()->type_id==12){ - if ($typeCode==Merchant::TypeCode['TypeSupplyChain']){ - $product_type=98;//供应链 - }else{ - $product_type=0;//普通商品 + if ($typeCode == Merchant::TypeCode['TypeSupplyChain']) { + $product_type = 98; //供应链 + } else { + $product_type = 0; //普通商品 } $data['update_time'] = date('Y-m-d H:i:s'); - $this->repository->create($data,$product_type,1); + $this->repository->create($data, $product_type, 1); return app('json')->success('添加成功'); } @@ -119,7 +119,7 @@ class Product extends BaseController public function update($id) { $params = $this->request->params($this->repository::CREATE_PARAMS); - $data = $this->repository->checkParams($params,$this->request->merId(), $id); + $data = $this->repository->checkParams($params, $this->request->merId(), $id); if (!$this->repository->merExists($this->request->merId(), $id)) return app('json')->fail('数据不存在'); $pro = $this->repository->getWhere(['product_id' => $id]); @@ -133,7 +133,7 @@ class Product extends BaseController $data['update_time'] = date('Y-m-d H:i:s'); $typeSupplyChainId = Db::name('MerchantType')->where('type_code', Merchant::TypeCode['TypeSupplyChain'])->value('mer_type_id'); $productType = $this->request->merchant()->type_id == $typeSupplyChainId ? 98 : 0; - $this->repository->edit($id, $data, $this->request->merId(), $productType,1); + $this->repository->edit($id, $data, $this->request->merId(), $productType, 1); return app('json')->success('编辑成功'); } @@ -145,9 +145,9 @@ class Product extends BaseController */ public function delete($id) { - if(!$this->repository->merExists($this->request->merId(),$id)) + if (!$this->repository->merExists($this->request->merId(), $id)) return app('json')->fail('数据不存在'); - if($this->repository->getWhereCount(['product_id' => $id,'is_show' => 1,'status' => 1])) + if ($this->repository->getWhereCount(['product_id' => $id, 'is_show' => 1, 'status' => 1])) return app('json')->fail('商品上架中'); $this->repository->delete($id); //queue(ChangeSpuStatusJob::class,['product_type' => 0,'id' => $id]); @@ -157,9 +157,9 @@ class Product extends BaseController public function destory($id) { - if(!$this->repository->merDeleteExists($this->request->merId(),$id)) + if (!$this->repository->merDeleteExists($this->request->merId(), $id)) return app('json')->fail('只能删除回收站的商品'); - if(app()->make(StoreCartRepository::class)->getProductById($id)) + if (app()->make(StoreCartRepository::class)->getProductById($id)) return app('json')->fail('商品有被加入购物车不可删除'); $this->repository->destory($id); return app('json')->success('删除成功'); @@ -174,14 +174,14 @@ class Product extends BaseController */ public function getStatusFilter() { - $type=$this->request->merchant()['type_id']; - $product_type=0; - $typeCode=Db::name('merchant_type')->where('mer_type_id',$type)->value('type_code'); + $type = $this->request->merchant()['type_id']; + $product_type = 0; + $typeCode = Db::name('merchant_type')->where('mer_type_id', $type)->value('type_code'); // if ($type==12){ - if ($typeCode==Merchant::TypeCode['TypeSupplyChain']){ - $product_type=98;//供应链 + if ($typeCode == Merchant::TypeCode['TypeSupplyChain']) { + $product_type = 98; //供应链 } - return app('json')->success($this->repository->getFilter($this->request->merId(),'商品',$product_type)); + return app('json')->success($this->repository->getFilter($this->request->merId(), '商品', $product_type)); } /** @@ -192,10 +192,10 @@ class Product extends BaseController */ public function config() { - $data = systemConfig(['extension_status','svip_switch_status','integral_status']); - $merData= merchantConfig($this->request->merId(),['mer_integral_status','mer_integral_rate','mer_svip_status','svip_store_rate']); - $svip_store_rate = $merData['svip_store_rate'] > 0 ? bcdiv($merData['svip_store_rate'],100,2) : 0; - $data['mer_svip_status'] = ($data['svip_switch_status'] && $merData['mer_svip_status'] != 0 ) ? 1 : 0; + $data = systemConfig(['extension_status', 'svip_switch_status', 'integral_status']); + $merData = merchantConfig($this->request->merId(), ['mer_integral_status', 'mer_integral_rate', 'mer_svip_status', 'svip_store_rate']); + $svip_store_rate = $merData['svip_store_rate'] > 0 ? bcdiv($merData['svip_store_rate'], 100, 2) : 0; + $data['mer_svip_status'] = ($data['svip_switch_status'] && $merData['mer_svip_status'] != 0) ? 1 : 0; $data['svip_store_rate'] = $svip_store_rate; $data['integral_status'] = $data['integral_status'] && $merData['mer_integral_status'] ? 1 : 0; $data['integral_rate'] = $merData['mer_integral_rate'] ?: 0; @@ -213,7 +213,7 @@ class Product extends BaseController */ public function restore($id) { - if(!$this->repository->merDeleteExists($this->request->merId(),$id)) + if (!$this->repository->merDeleteExists($this->request->merId(), $id)) return app('json')->fail('只能恢复回收站的商品'); $this->repository->restore($id); return app('json')->success('商品已恢复'); @@ -235,7 +235,7 @@ class Product extends BaseController public function updateSort($id) { $sort = $this->request->param('sort'); - $this->repository->updateSort($id,$this->request->merId(),['sort' => $sort]); + $this->repository->updateSort($id, $this->request->merId(), ['sort' => $sort]); return app('json')->success('修改成功'); } @@ -265,7 +265,7 @@ class Product extends BaseController public function setLabels($id) { $data = $this->request->params(['mer_labels']); - app()->make(SpuRepository::class)->setLabels($id,0,$data,$this->request->merId()); + app()->make(SpuRepository::class)->setLabels($id, 0, $data, $this->request->merId()); return app('json')->success('修改成功'); } @@ -279,7 +279,7 @@ class Product extends BaseController { $params = [ "mer_cate_id", - "sort" , + "sort", "is_show", "is_good", "attr", @@ -291,12 +291,12 @@ class Product extends BaseController // $count = app()->make(StoreCategoryRepository::class)->getWhereCount(['store_category_id' => $data['mer_cate_id'],'is_show' => 1,'mer_id' => $this->request->merId()]); // if (!$count) throw new ValidateException('商户分类不存在或不可用'); $data['status'] = 1; - $res=$this->repository->freeTrial($id, $data,$this->request->merId()); - if($res && $params['is_stock']==1){ - $arr=[ - 'mer_id'=>$this->request->merId(), - 'product_id'=>$data['attrValue'][0]['product_id'], - 'create_time'=>date('Y-m-d H:i:s') + $res = $this->repository->freeTrial($id, $data, $this->request->merId()); + if ($res && $params['is_stock'] == 1) { + $arr = [ + 'mer_id' => $this->request->merId(), + 'product_id' => $data['attrValue'][0]['product_id'], + 'create_time' => date('Y-m-d H:i:s') ]; Db::name('store_product_stock')->insert($arr); } @@ -313,7 +313,7 @@ class Product extends BaseController public function switchStatus($id) { $status = $this->request->param('status', 0) == 1 ? 1 : 0; - $this->repository->switchShow($id, $status,'is_show',$this->request->merId()); + $this->repository->switchShow($id, $status, 'is_show', $this->request->merId()); return app('json')->success('修改成功'); } @@ -329,7 +329,7 @@ class Product extends BaseController $ids = $this->request->param('ids'); if (empty($ids)) return app('json')->fail('请选择商品'); $status = $this->request->param('status') == 1 ? 1 : 0; - $this->repository->batchSwitchShow($ids,$status,'is_show',$this->request->merId()); + $this->repository->batchSwitchShow($ids, $status, 'is_show', $this->request->merId()); return app('json')->success('修改成功'); } @@ -342,7 +342,7 @@ class Product extends BaseController public function batchTemplate() { $ids = $this->request->param('ids'); - $ids = is_array($ids) ? $ids : explode(',',$ids); + $ids = is_array($ids) ? $ids : explode(',', $ids); $data = $this->request->params(['temp_id']); if (empty($ids)) return app('json')->fail('请选择商品'); if (empty($data['temp_id'])) return app('json')->fail('请选择运费模板'); @@ -351,7 +351,7 @@ class Product extends BaseController if (!$make->merInExists($this->request->merId(), [$data['temp_id']])) return app('json')->fail('请选择您自己的运费模板'); $data['delivery_free'] = 0; - $this->repository->updates($ids,$data); + $this->repository->updates($ids, $data); return app('json')->success('修改成功'); } @@ -368,7 +368,7 @@ class Product extends BaseController if (empty($ids)) return app('json')->fail('请选择商品'); if (!$this->repository->merInExists($this->request->merId(), $ids)) return app('json')->fail('请选择您自己商品'); - app()->make(SpuRepository::class)->batchLabels($ids, $data,$this->request->merId()); + app()->make(SpuRepository::class)->batchLabels($ids, $data, $this->request->merId()); return app('json')->success('修改成功'); } @@ -385,7 +385,7 @@ class Product extends BaseController if (empty($ids)) return app('json')->fail('请选择商品'); if (!$this->repository->merInExists($this->request->merId(), $ids)) return app('json')->fail('请选择您自己商品'); - $this->repository->updates($ids,$data); + $this->repository->updates($ids, $data); return app('json')->success('修改成功'); } @@ -399,37 +399,65 @@ class Product extends BaseController public function batchExtension(ProductAttrValueRepository $repository) { $ids = $this->request->param('ids'); - $data = $this->request->params(['extension_one','extension_two']); + $data = $this->request->params(['extension_one', 'extension_two']); if ($data['extension_one'] > 1 || $data['extension_one'] < 0 || $data['extension_two'] < 0 || $data['extension_two'] > 1) { return app('json')->fail('比例0~1之间'); } if (empty($ids)) return app('json')->fail('请选择商品'); if (!$this->repository->merInExists($this->request->merId(), $ids)) return app('json')->fail('请选择您自己商品'); - $repository->updatesExtension($ids,$data); + $repository->updatesExtension($ids, $data); return app('json')->success('修改成功'); } public function batchSvipType() { $ids = $this->request->param('ids'); - $data = $this->request->params([['svip_price_type',0]]); + $data = $this->request->params([['svip_price_type', 0]]); if (empty($ids)) return app('json')->fail('请选择商品'); if (!$this->repository->merInExists($this->request->merId(), $ids)) return app('json')->fail('请选择您自己商品'); - $this->repository->updates($ids,$data); + $this->repository->updates($ids, $data); return app('json')->success('修改成功'); } /** * 导入商品列表管理 */ - public function xlsx_import_list(){ + public function xlsx_import_list() + { [$page, $limit] = $this->getPage(); - $select=Db::name('store_product_import')->where('mer_id',$this->request->merId())->page($page)->limit($limit)->select()->toArray(); - $count=Db::name('store_product_import')->where('mer_id',$this->request->merId())->count(); - return app('json')->success(['list'=>$select,'count'=>$count]); - + $select = Db::name('store_product_import')->where('mer_id', $this->request->merId())->page($page)->limit($limit)->select()->toArray(); + $count = Db::name('store_product_import')->where('mer_id', $this->request->merId())->count(); + return app('json')->success(['list' => $select, 'count' => $count]); } + + /** + * 商户添加商品到云仓 + */ + public function add_cloud_product() + { + $data = $this->request->params(['product_id', 'type', 'is_del']); + $res = $this->repository->add_cloud_product($data, $this->request->merchant()); + if ($res) { + return app('json')->success('设置成功'); + } else { + return app('json')->fail('设置失败'); + } + } + + + /** + * 云仓商品列表 + */ + public function cloud_product_list(){ + [$page, $limit] = $this->getPage(); + + $select=Db::name('store_product_cloud')->where('mer_id',$this->request->merId()) + ->page($page)->limit($limit)->select()->toArray(); + $count = Db::name('store_product_cloud')->where('mer_id',$this->request->merId())->count(); + return app('json')->success(['list'=>$select,'count'=>$count]); + } + } diff --git a/route/api.php b/route/api.php index 397f3572..ec72ebc4 100644 --- a/route/api.php +++ b/route/api.php @@ -304,7 +304,8 @@ Route::group('api/', function () { Route::post('product/good/:id', 'StoreProduct/updateGood'); Route::get('product/config', 'StoreProduct/config'); Route::post('product/stockIn', 'StoreProduct/stockIn'); - + Route::post('product/add_cloud_product', 'StoreProduct/add_cloud_product'); + Route::get('product/cloud_product_list', 'StoreProduct/cloud_product_list'); //商品分类 Route::get('category/lst', 'StoreCategory/lst'); Route::post('category/create', 'StoreCategory/create'); diff --git a/route/merchant/product.php b/route/merchant/product.php index b6cf3134..cdb1d2dd 100644 --- a/route/merchant/product.php +++ b/route/merchant/product.php @@ -204,6 +204,12 @@ Route::group(function () { Route::post('labels/:id', '/setLabels')->name('merchantStoreProductLabels')->option([ '_alias' => '标签', ]); + Route::post('add_cloud_product', '/add_cloud_product')->option([ + '_alias' => '商户设置云商品', + ]); + Route::get('cloud_product_list', '/cloud_product_list')->option([ + '_alias' => '云商品列表', + ]); Route::get('attr_value/:id', '/getAttrValue')->name('merchantStoreProductAttrValue')->option([ '_alias' => '获取规格', ]); From 9a822e6267a26491c3fb09b33a25889a5ce5abc3 Mon Sep 17 00:00:00 2001 From: shengchanzhe <179998674@qq.com> Date: Sat, 23 Dec 2023 15:34:38 +0800 Subject: [PATCH 10/44] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/api/server/StoreProduct.php | 4 ++-- app/controller/merchant/store/product/Product.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/controller/api/server/StoreProduct.php b/app/controller/api/server/StoreProduct.php index 77701c93..1bbd0676 100644 --- a/app/controller/api/server/StoreProduct.php +++ b/app/controller/api/server/StoreProduct.php @@ -281,9 +281,9 @@ class StoreProduct extends BaseController public function cloud_product_list(){ [$page, $limit] = $this->getPage(); $merchant = app()->make(MerchantRepository::class)->search(['mer_id' => $this->merId,])->find(); - $select=Db::name('store_product_cloud')->where('mer_id',$merchant['mer_id']) + $select=Db::name('cloud_product')->where('mer_id',$merchant['mer_id']) ->page($page)->limit($limit)->select()->toArray(); - $count = Db::name('store_product_cloud')->where('mer_id',$merchant['mer_id'])->count(); + $count = Db::name('cloud_product')->where('mer_id',$merchant['mer_id'])->count(); return app('json')->success(['list'=>$select,'count'=>$count]); } } diff --git a/app/controller/merchant/store/product/Product.php b/app/controller/merchant/store/product/Product.php index bd50b45d..925218ba 100644 --- a/app/controller/merchant/store/product/Product.php +++ b/app/controller/merchant/store/product/Product.php @@ -454,9 +454,9 @@ class Product extends BaseController public function cloud_product_list(){ [$page, $limit] = $this->getPage(); - $select=Db::name('store_product_cloud')->where('mer_id',$this->request->merId()) + $select=Db::name('cloud_product')->where('mer_id',$this->request->merId()) ->page($page)->limit($limit)->select()->toArray(); - $count = Db::name('store_product_cloud')->where('mer_id',$this->request->merId())->count(); + $count = Db::name('cloud_product')->where('mer_id',$this->request->merId())->count(); return app('json')->success(['list'=>$select,'count'=>$count]); } From b15a510c1cb5ff9995bef5e811928f4e26997c91 Mon Sep 17 00:00:00 2001 From: shengchanzhe <179998674@qq.com> Date: Sat, 23 Dec 2023 16:30:53 +0800 Subject: [PATCH 11/44] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/api/store/merchant/MerchantIntention.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controller/api/store/merchant/MerchantIntention.php b/app/controller/api/store/merchant/MerchantIntention.php index 1e429c88..b5ec4edf 100644 --- a/app/controller/api/store/merchant/MerchantIntention.php +++ b/app/controller/api/store/merchant/MerchantIntention.php @@ -143,7 +143,7 @@ class MerchantIntention extends BaseController 'cardno_back', ]); - if (empty($data['bank_username']) || empty($data['bank_opening']) || empty($data['bank_front']) || empty($data['bank_back']) || empty($data['cardno_front']) || empty($data['cardno_back'])) { + if (empty($data['bank_username']) || empty($data['bank_opening'])||empty($data['bank_code'])) { return app('json')->fail('请完善银行卡及身份信息'); } From 1ef494997ac3a62902a7206c33cb2dff79d7bd84 Mon Sep 17 00:00:00 2001 From: shengchanzhe <179998674@qq.com> Date: Sat, 23 Dec 2023 16:53:13 +0800 Subject: [PATCH 12/44] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E9=93=B6=E8=A1=8C?= =?UTF-8?q?=E5=8D=A1=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../repositories/store/order/StoreOrderRepository.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/common/repositories/store/order/StoreOrderRepository.php b/app/common/repositories/store/order/StoreOrderRepository.php index d5830de5..96682a73 100644 --- a/app/common/repositories/store/order/StoreOrderRepository.php +++ b/app/common/repositories/store/order/StoreOrderRepository.php @@ -1491,6 +1491,12 @@ class StoreOrderRepository extends BaseRepository ] ); if (!$res) throw new ValidateException('数据不存在'); + if(in_array($res['source'],[13])){ + $res['bank_info']=Db::name('merchant_intention')->where('status',1)->where('uid',$res['uid'])->field('company_name,bank_username,bank_opening,bank_code')->find(); + }else{ + $res['bank_info']=[]; + } + $res['integral'] = (int)$res['integral']; return $res->append(['refund_extension_one', 'refund_extension_two']); } From 65da43724155533e82b4f729966ae2a634c1f1f3 Mon Sep 17 00:00:00 2001 From: shengchanzhe <179998674@qq.com> Date: Sat, 23 Dec 2023 17:06:59 +0800 Subject: [PATCH 13/44] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=93=88=E5=BF=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/api/server/StoreProduct.php | 5 +++-- app/controller/merchant/store/product/Product.php | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/app/controller/api/server/StoreProduct.php b/app/controller/api/server/StoreProduct.php index 1bbd0676..a2425d5f 100644 --- a/app/controller/api/server/StoreProduct.php +++ b/app/controller/api/server/StoreProduct.php @@ -281,8 +281,9 @@ class StoreProduct extends BaseController public function cloud_product_list(){ [$page, $limit] = $this->getPage(); $merchant = app()->make(MerchantRepository::class)->search(['mer_id' => $this->merId,])->find(); - $select=Db::name('cloud_product')->where('mer_id',$merchant['mer_id']) - ->page($page)->limit($limit)->select()->toArray(); + $product_ids=Db::name('cloud_product')->where('mer_id',$this->merId()) + ->page($page)->limit($limit)->column('product_id'); + $select = Db::name('store_product')->where('mer_id', $this->merId())->whereIn('product_id',$product_ids)->select()->toArray(); $count = Db::name('cloud_product')->where('mer_id',$merchant['mer_id'])->count(); return app('json')->success(['list'=>$select,'count'=>$count]); } diff --git a/app/controller/merchant/store/product/Product.php b/app/controller/merchant/store/product/Product.php index 925218ba..f2cd09af 100644 --- a/app/controller/merchant/store/product/Product.php +++ b/app/controller/merchant/store/product/Product.php @@ -454,8 +454,9 @@ class Product extends BaseController public function cloud_product_list(){ [$page, $limit] = $this->getPage(); - $select=Db::name('cloud_product')->where('mer_id',$this->request->merId()) - ->page($page)->limit($limit)->select()->toArray(); + $product_ids=Db::name('cloud_product')->where('mer_id',$this->request->merId()) + ->page($page)->limit($limit)->column('product_id'); + $select = Db::name('store_product')->where('mer_id', $this->request->merId())->whereIn('product_id',$product_ids)->select()->toArray(); $count = Db::name('cloud_product')->where('mer_id',$this->request->merId())->count(); return app('json')->success(['list'=>$select,'count'=>$count]); } From 9e80e6babfb2665a48cdacf185e7c56699ce3675 Mon Sep 17 00:00:00 2001 From: shengchanzhe <179998674@qq.com> Date: Sat, 23 Dec 2023 17:12:38 +0800 Subject: [PATCH 14/44] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=AF=B9=E5=85=AC?= =?UTF-8?q?=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/api/Auth.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/controller/api/Auth.php b/app/controller/api/Auth.php index 01560b84..6d70db10 100644 --- a/app/controller/api/Auth.php +++ b/app/controller/api/Auth.php @@ -369,10 +369,11 @@ class Auth extends BaseController if ($store_service) { $mer_arr = Db::name('merchant')->where('mer_id', $store_service['mer_id'])->where('is_del', 0)->field('type_id,mer_avatar,mer_banner,business_status,mer_info,category_id,service_phone,mer_address,uid,mer_name,create_time,update_time,mer_settlement_agree_status,is_margin,street_id')->find(); + $bank_info = Db::name('merchant_intention')->where('mer_id', $store_service['mer_id'])->field('company_name,bank_username,bank_opening,bank_code')->find(); if ($mer_arr && $mer_arr['mer_avatar'] != '' && $mer_arr['mer_banner'] != '' && $mer_arr['mer_info'] && $mer_arr['service_phone'] != '' && $mer_arr['mer_address'] != '') { $data['is_wsxx'] = 1; } - $data['mer_info'] = $mer_arr; + $data['mer_info'] = array_merge($mer_arr,$bank_info); $typCode = Db::name('merchant_type')->where('mer_type_id', $mer_arr['type_id'] ?? 0)->value('type_code'); $data['mer_info']['type_code'] = $typCode; $data['mer_info']['setting_status'] = 0; From eedcccff1c1d29f349b723331f7a76d0bc239add Mon Sep 17 00:00:00 2001 From: shengchanzhe <179998674@qq.com> Date: Sat, 23 Dec 2023 17:18:08 +0800 Subject: [PATCH 15/44] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common/repositories/store/product/ProductRepository.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/common/repositories/store/product/ProductRepository.php b/app/common/repositories/store/product/ProductRepository.php index d584372e..3d5917d5 100644 --- a/app/common/repositories/store/product/ProductRepository.php +++ b/app/common/repositories/store/product/ProductRepository.php @@ -2606,7 +2606,11 @@ class ProductRepository extends BaseRepository 'create_time' => date('Y-m-d H:i:s'), 'mer_labels' => ',' . $data['type'] . ',', ]; - return Db::name('cloud_product')->insert($datas); + $res= Db::name('cloud_product')->where('product_id',$data['product_id'])->where('mer_id',$merchant['mer_id'])->find(); + if($res){ + throw new ValidateException('该商品已设置过'); + } + return Db::name('cloud_product')->insert($datas); } return false; } From 8846b6b4a844371628b8692775e18fc9f2f37a5f Mon Sep 17 00:00:00 2001 From: shengchanzhe <179998674@qq.com> Date: Sat, 23 Dec 2023 18:20:23 +0800 Subject: [PATCH 16/44] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api/store/product/CloudWarehouse.php | 49 ++++++++++++------- 1 file changed, 32 insertions(+), 17 deletions(-) diff --git a/app/controller/api/store/product/CloudWarehouse.php b/app/controller/api/store/product/CloudWarehouse.php index 75f6a67d..e4378479 100644 --- a/app/controller/api/store/product/CloudWarehouse.php +++ b/app/controller/api/store/product/CloudWarehouse.php @@ -30,7 +30,7 @@ class CloudWarehouse extends BaseController * @param SpuRepository $repository * @param MerchantDao $merchantDao */ - public function __construct(App $app, MerchantDao $merchantDao, SpuRepository $spuRepository,SpuDao $SpuDao) + public function __construct(App $app, MerchantDao $merchantDao, SpuRepository $spuRepository, SpuDao $SpuDao) { parent::__construct($app); $this->merchantDao = $merchantDao; @@ -43,28 +43,43 @@ class CloudWarehouse extends BaseController * type_id 13云仓商品列表 * @return mixed */ - public function index($street_code, $page = 1, $category_id = 0,$location='') + public function index($street_code, $page = 1, $category_id = 0, $location = '') { - $cloud_product = Db::name('cloud_product') - ->where('cate_id',$category_id) - ->where('street_code', $street_code)->where('status', 1)->page($page)->column('product_id'); + $cloud_product_arr = Db::name('cloud_product') + ->where('cate_id', $category_id) + ->whereOR('street_code', $street_code)->whereOR('mer_labels', ',6,')->where('status', 1)->page($page)->field('product_id,mer_labels')->select(); + $cloud_product = []; + foreach ($cloud_product_arr as $key => $value) { + $cloud_product[] = $value['product_id']; + } $where = [ 'is_show' => 1, 'is_used' => 1, 'status' => 1, 'is_del' => 0, 'mer_status' => 1, - 'product_type'=>98, - 'product_id'=>$cloud_product + 'product_type' => 98, + 'product_id' => $cloud_product ]; - if (!$cloud_product && $category_id==0) { + if (!$cloud_product && $category_id == 0) { return app('json')->success(['count' => 0, 'list' => []]); } - $count = Db::name('cloud_product')->where('street_code', $street_code)->where('status', 1)->count(); - - $products = $this->spuRepository->getApiSearch($where,$page,10, false,true); - if($products['list']){ - $list=$products['list']; + $count = Db::name('cloud_product')->whereOR('street_code', $street_code)->whereOR('mer_labels', ',6,')->where('status', 1)->count(); + + $products = $this->spuRepository->getApiSearch($where, $page, 10, false, true); + if ($products['list']) { + $list = $products['list']; + foreach ($cloud_product_arr as $key => $value) { + foreach ($list as $k => $v) { + if ($value['product_id'] == $v['product_id']) { + if ($value['mer_labels'] == ',6,') { + $list[$k]['mer_labels_name'] = '五日达'; + } else { + $list[$k]['mer_labels_name'] = '次日达'; + } + } + } + } } return app('json')->success(['count' => $count, 'list' => $list]); } @@ -75,10 +90,10 @@ class CloudWarehouse extends BaseController */ public function town() { - $params = $this->request->params(['category_id', 'street_code', 'order', ['product_type', 0], 'keyword', 'page','cate_pid']); + $params = $this->request->params(['category_id', 'street_code', 'order', ['product_type', 0], 'keyword', 'page', 'cate_pid']); $search = [ 'street_id' => $params['street_code'], - 'type_id' =>[Merchant::TypeStore,Merchant::TypeTownSupplyChain], + 'type_id' => [Merchant::TypeStore, Merchant::TypeTownSupplyChain], 'status' => 1, 'is_del' => 0, 'mer_state' => 1, @@ -101,10 +116,10 @@ class CloudWarehouse extends BaseController if (!empty($params['category_id'])) { $where['cate_id'] = $params['category_id']; } - if($params['cate_pid']!=''){ + if ($params['cate_pid'] != '') { $where['cate_pid'] = $params['cate_pid']; } - $products = $this->spuRepository->getApiSearch($where, $page, $limit, false,true); + $products = $this->spuRepository->getApiSearch($where, $page, $limit, false, true); return app('json')->success($products); } } From 9dee1d2174e5c9367b3c5e74dbb02197041afabc Mon Sep 17 00:00:00 2001 From: chenbo <709206448@qq.com> Date: Mon, 25 Dec 2023 11:23:45 +0800 Subject: [PATCH 17/44] =?UTF-8?q?=E4=BE=9B=E9=94=80=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=E9=95=87=E5=90=88=E4=BC=99=E4=BA=BA=E5=85=AC=E5=8F=B8=E4=B8=8B?= =?UTF-8?q?=20=E9=95=87=E7=BA=A7=E4=BE=9B=E5=BA=94=E9=93=BE=E5=88=97?= =?UTF-8?q?=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/api/Statistics.php | 22 ++++++++++++++++++++++ route/api.php | 1 + 2 files changed, 23 insertions(+) diff --git a/app/controller/api/Statistics.php b/app/controller/api/Statistics.php index b4dcca17..7f911abf 100644 --- a/app/controller/api/Statistics.php +++ b/app/controller/api/Statistics.php @@ -2,6 +2,7 @@ namespace app\controller\api; +use app\common\model\system\merchant\MerchantType; use crmeb\basic\BaseController; use think\facade\Db; @@ -40,6 +41,9 @@ class Statistics extends BaseController } $where[] = ['is_del', '=', 0]; $where[] = ['status', '=', 1]; + // 镇级供应链 type_code = TypeTownSupplyChain + $merchantType = MerchantType::where('type_code', 'TypeTownSupplyChain')->find(); + $where[] = ['type_id', '=', $merchantType['mer_type_id']]; $count = Db::name('merchant')->where($where)->count(); return app('json')->success(['count' => $count]); } @@ -311,4 +315,22 @@ class Statistics extends BaseController ->sum('p.total_price'); return app('json')->success(['trade_amount' => $count]); } + + // 镇级下的镇级供应链商户 + public function SupplyChainMerchant() + { + $parmas = $this->request->param(); + + $where[] = ['street_id', '=', $parmas['street_code']]; + $where[] = ['is_del', '=', 0]; + $where[] = ['status', '=', 1]; + // 镇级供应链 type_code = TypeTownSupplyChain + $merchantType = MerchantType::where('type_code', 'TypeTownSupplyChain')->find()->toArray(); + + $where[] = ['type_id', '=', $merchantType['mer_type_id']]; + + $list = Db::name('merchant')->where($where)->select(); + + return app('json')->success(compact('list')); + } } diff --git a/route/api.php b/route/api.php index 3606e8f7..ba87473d 100644 --- a/route/api.php +++ b/route/api.php @@ -734,6 +734,7 @@ Route::group('api/', function () { Route::get('supply_chain_breeding_street_product_count', '/SupplyChainBreedingStreetProductCount'); Route::get('supply_chain_village_breeding_price_count', '/SupplyChainVillageBreedingPriceCount'); Route::get('store_order_user_trade_amount', '/StoreOrderUserTradeAmount'); + Route::get('supply_chain_merchant', '/SupplyChainMerchant'); })->prefix('api.Statistics'); //滑块验证码 From 5a9aa8eceb03ceb236d8fd8a75f3a62ef401fd1d Mon Sep 17 00:00:00 2001 From: shengchanzhe <179998674@qq.com> Date: Mon, 25 Dec 2023 11:38:29 +0800 Subject: [PATCH 18/44] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=BA=91=E4=BB=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api/store/product/CloudWarehouse.php | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/app/controller/api/store/product/CloudWarehouse.php b/app/controller/api/store/product/CloudWarehouse.php index e4378479..118004cb 100644 --- a/app/controller/api/store/product/CloudWarehouse.php +++ b/app/controller/api/store/product/CloudWarehouse.php @@ -46,8 +46,13 @@ class CloudWarehouse extends BaseController public function index($street_code, $page = 1, $category_id = 0, $location = '') { $cloud_product_arr = Db::name('cloud_product') - ->where('cate_id', $category_id) - ->whereOR('street_code', $street_code)->whereOR('mer_labels', ',6,')->where('status', 1)->page($page)->field('product_id,mer_labels')->select(); + ->where('category_id', $category_id) + ->where('street_code', $street_code) + ->where(function($query){ + $query->whereOr('mer_labels', '') + ->whereOr('mer_labels',',6,'); + }) + ->where('status', 1)->page($page)->field('product_id,mer_labels')->select(); $cloud_product = []; foreach ($cloud_product_arr as $key => $value) { $cloud_product[] = $value['product_id']; @@ -64,7 +69,13 @@ class CloudWarehouse extends BaseController if (!$cloud_product && $category_id == 0) { return app('json')->success(['count' => 0, 'list' => []]); } - $count = Db::name('cloud_product')->whereOR('street_code', $street_code)->whereOR('mer_labels', ',6,')->where('status', 1)->count(); + $count = Db::name('cloud_product')->where('category_id', $category_id) + ->where('street_code', $street_code) + ->where(function($query){ + $query->whereOr('mer_labels', '') + ->whereOr('mer_labels',',6,'); + }) + ->where('status', 1)->count(); $products = $this->spuRepository->getApiSearch($where, $page, 10, false, true); if ($products['list']) { From 07504a4b47693ed3ccd384a9a4a10f62533fc72d Mon Sep 17 00:00:00 2001 From: shengchanzhe <179998674@qq.com> Date: Mon, 25 Dec 2023 11:55:54 +0800 Subject: [PATCH 19/44] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../repositories/store/product/ProductRepository.php | 2 ++ app/controller/api/store/product/CloudWarehouse.php | 11 +++++++---- app/listener/ProductCreate.php | 1 + 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/app/common/repositories/store/product/ProductRepository.php b/app/common/repositories/store/product/ProductRepository.php index 3d5917d5..f18eea03 100644 --- a/app/common/repositories/store/product/ProductRepository.php +++ b/app/common/repositories/store/product/ProductRepository.php @@ -2594,8 +2594,10 @@ class ProductRepository extends BaseRepository case 'seven': $data['type'] = 8; } + $store_product=Db::name('store_product')->where('product_id',$data['product_id'])->find(); $datas = [ 'product_id' => $data['product_id'], + 'cate_id' => $store_product['cate_id'], 'mer_id' => $merchant['mer_id'], 'source_mer_id' => 0, 'street_code' => $merchant['street_id'], diff --git a/app/controller/api/store/product/CloudWarehouse.php b/app/controller/api/store/product/CloudWarehouse.php index 118004cb..5a52151a 100644 --- a/app/controller/api/store/product/CloudWarehouse.php +++ b/app/controller/api/store/product/CloudWarehouse.php @@ -43,10 +43,13 @@ class CloudWarehouse extends BaseController * type_id 13云仓商品列表 * @return mixed */ - public function index($street_code, $page = 1, $category_id = 0, $location = '') + public function index($street_code, $page = 1, $category_id = 0, $cate_pid = 0,$cate_id = 0,$location = '') { + if($cate_pid!=0){ + $cate_id=Db::name('store_category')->where('pid',$cate_pid)->where('is_show',1)->column('store_category_id'); + } $cloud_product_arr = Db::name('cloud_product') - ->where('category_id', $category_id) + ->whereIn('cate_id', $cate_id) ->where('street_code', $street_code) ->where(function($query){ $query->whereOr('mer_labels', '') @@ -66,10 +69,10 @@ class CloudWarehouse extends BaseController 'product_type' => 98, 'product_id' => $cloud_product ]; - if (!$cloud_product && $category_id == 0) { + if (!$cloud_product) { return app('json')->success(['count' => 0, 'list' => []]); } - $count = Db::name('cloud_product')->where('category_id', $category_id) + $count = Db::name('cloud_product')->whereIn('cate_id', $cate_id) ->where('street_code', $street_code) ->where(function($query){ $query->whereOr('mer_labels', '') diff --git a/app/listener/ProductCreate.php b/app/listener/ProductCreate.php index f753b2ee..c50d2075 100644 --- a/app/listener/ProductCreate.php +++ b/app/listener/ProductCreate.php @@ -53,6 +53,7 @@ class ProductCreate $datas = [ 'product_id' => $product_id, 'mer_id' => $merchant['mer_id'], + 'cate_id' => $product['cate_id'], 'source_mer_id' => $cityMerchant['mer_id'], 'street_code' => $merchant['street_id'], 'type_id' => $merchant['type_id'], From 97b84e737ca88c97a14943dca3e79eb4fe5fc8aa Mon Sep 17 00:00:00 2001 From: shengchanzhe <179998674@qq.com> Date: Mon, 25 Dec 2023 12:01:37 +0800 Subject: [PATCH 20/44] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common/repositories/store/product/ProductRepository.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/common/repositories/store/product/ProductRepository.php b/app/common/repositories/store/product/ProductRepository.php index f18eea03..ecbacbe2 100644 --- a/app/common/repositories/store/product/ProductRepository.php +++ b/app/common/repositories/store/product/ProductRepository.php @@ -2586,6 +2586,9 @@ class ProductRepository extends BaseRepository } if ($data['product_id'] && $data['type']) { switch ($data['type']) { + case 'five': + $data['five'] = 5; + break; case 'two': $data['type'] = 6; break; From a5d6415dde3153bc11f6362873268f431bed080a Mon Sep 17 00:00:00 2001 From: shengchanzhe <179998674@qq.com> Date: Mon, 25 Dec 2023 12:02:02 +0800 Subject: [PATCH 21/44] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/api/store/product/CloudWarehouse.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controller/api/store/product/CloudWarehouse.php b/app/controller/api/store/product/CloudWarehouse.php index 5a52151a..9f926871 100644 --- a/app/controller/api/store/product/CloudWarehouse.php +++ b/app/controller/api/store/product/CloudWarehouse.php @@ -53,7 +53,7 @@ class CloudWarehouse extends BaseController ->where('street_code', $street_code) ->where(function($query){ $query->whereOr('mer_labels', '') - ->whereOr('mer_labels',',6,'); + ->whereOr('mer_labels',',5,'); }) ->where('status', 1)->page($page)->field('product_id,mer_labels')->select(); $cloud_product = []; @@ -76,7 +76,7 @@ class CloudWarehouse extends BaseController ->where('street_code', $street_code) ->where(function($query){ $query->whereOr('mer_labels', '') - ->whereOr('mer_labels',',6,'); + ->whereOr('mer_labels',',5,'); }) ->where('status', 1)->count(); From 327ba73be8a657946e7ea20a4c2cd265dd82be54 Mon Sep 17 00:00:00 2001 From: shengchanzhe <179998674@qq.com> Date: Mon, 25 Dec 2023 12:02:14 +0800 Subject: [PATCH 22/44] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/api/store/product/CloudWarehouse.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controller/api/store/product/CloudWarehouse.php b/app/controller/api/store/product/CloudWarehouse.php index 9f926871..4e899fab 100644 --- a/app/controller/api/store/product/CloudWarehouse.php +++ b/app/controller/api/store/product/CloudWarehouse.php @@ -86,7 +86,7 @@ class CloudWarehouse extends BaseController foreach ($cloud_product_arr as $key => $value) { foreach ($list as $k => $v) { if ($value['product_id'] == $v['product_id']) { - if ($value['mer_labels'] == ',6,') { + if ($value['mer_labels'] == ',5,') { $list[$k]['mer_labels_name'] = '五日达'; } else { $list[$k]['mer_labels_name'] = '次日达'; From 80d34c5c3c15b4f0c032e773f08fd36dcf0ec8a6 Mon Sep 17 00:00:00 2001 From: shengchanzhe <179998674@qq.com> Date: Mon, 25 Dec 2023 13:49:29 +0800 Subject: [PATCH 23/44] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api/store/product/CloudWarehouse.php | 22 +++++++++++++------ 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/app/controller/api/store/product/CloudWarehouse.php b/app/controller/api/store/product/CloudWarehouse.php index 4e899fab..c3fe0315 100644 --- a/app/controller/api/store/product/CloudWarehouse.php +++ b/app/controller/api/store/product/CloudWarehouse.php @@ -45,13 +45,15 @@ class CloudWarehouse extends BaseController */ public function index($street_code, $page = 1, $category_id = 0, $cate_pid = 0,$cate_id = 0,$location = '') { - if($cate_pid!=0){ - $cate_id=Db::name('store_category')->where('pid',$cate_pid)->where('is_show',1)->column('store_category_id'); - } $cloud_product_arr = Db::name('cloud_product') - ->whereIn('cate_id', $cate_id) ->where('street_code', $street_code) - ->where(function($query){ + ->where(function($query)use($cate_pid,$cate_id){ + if($cate_pid!=0){ + $cate_id=Db::name('store_category')->where('pid',$cate_pid)->where('is_show',1)->column('store_category_id'); + } + if($cate_id>0){ + $query ->whereIn('cate_id', $cate_id); + } $query->whereOr('mer_labels', '') ->whereOr('mer_labels',',5,'); }) @@ -72,9 +74,15 @@ class CloudWarehouse extends BaseController if (!$cloud_product) { return app('json')->success(['count' => 0, 'list' => []]); } - $count = Db::name('cloud_product')->whereIn('cate_id', $cate_id) + $count = Db::name('cloud_product') ->where('street_code', $street_code) - ->where(function($query){ + ->where(function($query) use($cate_pid,$cate_id){ + if($cate_pid!=0){ + $cate_id=Db::name('store_category')->where('pid',$cate_pid)->where('is_show',1)->column('store_category_id'); + } + if($cate_id>0){ + $query ->whereIn('cate_id', $cate_id); + } $query->whereOr('mer_labels', '') ->whereOr('mer_labels',',5,'); }) From f9645c9ac5513c1b23d20854ed46294f217f3b87 Mon Sep 17 00:00:00 2001 From: shengchanzhe <179998674@qq.com> Date: Mon, 25 Dec 2023 13:56:57 +0800 Subject: [PATCH 24/44] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common/repositories/store/product/ProductRepository.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/common/repositories/store/product/ProductRepository.php b/app/common/repositories/store/product/ProductRepository.php index ecbacbe2..fa29b0a6 100644 --- a/app/common/repositories/store/product/ProductRepository.php +++ b/app/common/repositories/store/product/ProductRepository.php @@ -2587,15 +2587,17 @@ class ProductRepository extends BaseRepository if ($data['product_id'] && $data['type']) { switch ($data['type']) { case 'five': - $data['five'] = 5; + $data['type'] = 5; break; case 'two': $data['type'] = 6; break; case 'three': - $data['mer_id'] = 7; + $data['type'] = 7; + break; case 'seven': $data['type'] = 8; + break; } $store_product=Db::name('store_product')->where('product_id',$data['product_id'])->find(); $datas = [ From c00a035370037ff953f8869e3b95c1c97c62de77 Mon Sep 17 00:00:00 2001 From: shengchanzhe <179998674@qq.com> Date: Mon, 25 Dec 2023 14:07:17 +0800 Subject: [PATCH 25/44] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api/store/product/CloudWarehouse.php | 35 ++++++++----------- 1 file changed, 15 insertions(+), 20 deletions(-) diff --git a/app/controller/api/store/product/CloudWarehouse.php b/app/controller/api/store/product/CloudWarehouse.php index c3fe0315..576fd5d4 100644 --- a/app/controller/api/store/product/CloudWarehouse.php +++ b/app/controller/api/store/product/CloudWarehouse.php @@ -45,19 +45,21 @@ class CloudWarehouse extends BaseController */ public function index($street_code, $page = 1, $category_id = 0, $cate_pid = 0,$cate_id = 0,$location = '') { + + $cloud_where['street_code']=$street_code; + $cloud_where['status']=1; + if($cate_pid!=0){ + $cate_id=Db::name('store_category')->where('pid',$cate_pid)->where('is_show',1)->column('store_category_id'); + } + if($cate_id>0){ + $cloud_where['cate_id']=$cate_id; + } $cloud_product_arr = Db::name('cloud_product') - ->where('street_code', $street_code) - ->where(function($query)use($cate_pid,$cate_id){ - if($cate_pid!=0){ - $cate_id=Db::name('store_category')->where('pid',$cate_pid)->where('is_show',1)->column('store_category_id'); - } - if($cate_id>0){ - $query ->whereIn('cate_id', $cate_id); - } + ->where($cloud_where) + ->where(function($query){ $query->whereOr('mer_labels', '') ->whereOr('mer_labels',',5,'); - }) - ->where('status', 1)->page($page)->field('product_id,mer_labels')->select(); + })->page($page)->field('product_id,mer_labels')->select(); $cloud_product = []; foreach ($cloud_product_arr as $key => $value) { $cloud_product[] = $value['product_id']; @@ -75,18 +77,11 @@ class CloudWarehouse extends BaseController return app('json')->success(['count' => 0, 'list' => []]); } $count = Db::name('cloud_product') - ->where('street_code', $street_code) - ->where(function($query) use($cate_pid,$cate_id){ - if($cate_pid!=0){ - $cate_id=Db::name('store_category')->where('pid',$cate_pid)->where('is_show',1)->column('store_category_id'); - } - if($cate_id>0){ - $query ->whereIn('cate_id', $cate_id); - } + ->where($cloud_where) + ->where(function($query){ $query->whereOr('mer_labels', '') ->whereOr('mer_labels',',5,'); - }) - ->where('status', 1)->count(); + })->count(); $products = $this->spuRepository->getApiSearch($where, $page, 10, false, true); if ($products['list']) { From 8f094bd97f648d6a4e9f62aead70d95010ee0dfa Mon Sep 17 00:00:00 2001 From: shengchanzhe <179998674@qq.com> Date: Mon, 25 Dec 2023 14:35:43 +0800 Subject: [PATCH 26/44] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E7=94=B3=E8=AF=B7?= =?UTF-8?q?=E6=89=A7=E7=85=A7=E6=95=B0=E7=BB=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/api/Auth.php | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/app/controller/api/Auth.php b/app/controller/api/Auth.php index 6d70db10..f697f7b9 100644 --- a/app/controller/api/Auth.php +++ b/app/controller/api/Auth.php @@ -1593,19 +1593,12 @@ class Auth extends BaseController if ($status == 1) { $repository->updateStatus($id, $data); $intention = Db::name('merchant_intention')->where('mer_intention_id', $id)->where('type', 1)->find(); - $merLicenseImage = ''; if (!empty($intention['images'])) { $merLicenseImageArray = explode(',', $intention['images']); - $merLicenseImage = $merLicenseImageArray[0] ?? ''; + app()->make(ConfigValueRepository::class)->setFormData([ + 'mer_certificate' => $merLicenseImageArray + ], $intention['mer_id']); } - $merCertificate = merchantConfig($intention['mer_id'], 'mer_certificate'); - if (!is_array($merCertificate)) { - $merCertificate = explode(',', $merCertificate); - } - $merCertificate[0] = $merLicenseImage; - app()->make(ConfigValueRepository::class)->setFormData([ - 'mer_certificate' => $merCertificate - ], $intention['mer_id']); } Db::name('merchant_intention')->where('mer_intention_id', $id)->where('type', 1)->update($updData); } else { From 3752de112f46aad39518aefa79365277bcd4c1b9 Mon Sep 17 00:00:00 2001 From: shengchanzhe <179998674@qq.com> Date: Mon, 25 Dec 2023 15:29:10 +0800 Subject: [PATCH 27/44] =?UTF-8?q?=E6=B3=A8=E9=87=8A=E7=AE=80=E4=BB=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/validate/merchant/MerchantUpdateValidate.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/validate/merchant/MerchantUpdateValidate.php b/app/validate/merchant/MerchantUpdateValidate.php index 33e0732f..0a55eb65 100644 --- a/app/validate/merchant/MerchantUpdateValidate.php +++ b/app/validate/merchant/MerchantUpdateValidate.php @@ -21,7 +21,7 @@ class MerchantUpdateValidate extends Validate protected $failException = true; protected $rule = [ - 'mer_info|店铺简介' => 'require|max:200', + // 'mer_info|店铺简介' => 'require|max:200', 'mer_avatar|店铺头像' => 'require|max:128', 'mer_banner|店铺banner' => 'require|max:128', 'mini_banner|店铺街banner' => 'max:128', From 7a3903dfec587e2a181923b70788bc2d8c1aaacd Mon Sep 17 00:00:00 2001 From: shengchanzhe <179998674@qq.com> Date: Mon, 25 Dec 2023 15:54:11 +0800 Subject: [PATCH 28/44] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=BA=91=E5=95=86?= =?UTF-8?q?=E5=93=81=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../merchant/store/product/Product.php | 23 ++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/app/controller/merchant/store/product/Product.php b/app/controller/merchant/store/product/Product.php index f2cd09af..54a5c341 100644 --- a/app/controller/merchant/store/product/Product.php +++ b/app/controller/merchant/store/product/Product.php @@ -454,10 +454,27 @@ class Product extends BaseController public function cloud_product_list(){ [$page, $limit] = $this->getPage(); - $product_ids=Db::name('cloud_product')->where('mer_id',$this->request->merId()) - ->page($page)->limit($limit)->column('product_id'); - $select = Db::name('store_product')->where('mer_id', $this->request->merId())->whereIn('product_id',$product_ids)->select()->toArray(); + $cloud_product_arr=Db::name('cloud_product')->where('mer_id',$this->request->merId()) + ->page($page)->limit($limit)->field('product_id,mer_labels')->select(); + $cloud_product = []; + foreach ($cloud_product_arr as $key => $value) { + $cloud_product[] = $value['product_id']; + } + $select = Db::name('store_product')->where('mer_id', $this->request->merId())->whereIn('product_id',$cloud_product)->select()->toArray(); $count = Db::name('cloud_product')->where('mer_id',$this->request->merId())->count(); + if ($select) { + foreach ($cloud_product_arr as $key => $value) { + foreach ($select as $k => $v) { + if ($value['product_id'] == $v['product_id']) { + if ($value['mer_labels'] == ',5,') { + $select[$k]['mer_labels_name'] = '五日达'; + } else { + $select[$k]['mer_labels_name'] = '次日达'; + } + } + } + } + } return app('json')->success(['list'=>$select,'count'=>$count]); } From a20d9e9999cee7a3ffad83a8b61c355ec7414d16 Mon Sep 17 00:00:00 2001 From: shengchanzhe <179998674@qq.com> Date: Mon, 25 Dec 2023 16:06:39 +0800 Subject: [PATCH 29/44] =?UTF-8?q?=E5=88=A0=E9=99=A4=E4=B8=8D=E9=9C=80?= =?UTF-8?q?=E8=A6=81=E7=9A=84=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../store/order/StoreOtherOrderRepository.php | 98 +------------------ 1 file changed, 3 insertions(+), 95 deletions(-) diff --git a/app/common/repositories/store/order/StoreOtherOrderRepository.php b/app/common/repositories/store/order/StoreOtherOrderRepository.php index 8a6b4c84..8d6a19e0 100644 --- a/app/common/repositories/store/order/StoreOtherOrderRepository.php +++ b/app/common/repositories/store/order/StoreOtherOrderRepository.php @@ -201,42 +201,7 @@ class StoreOtherOrderRepository extends BaseRepository $order->transaction_id = $subOrders[$order->order_sn]['transaction_id']; } $presell = false; - //todo 等待付尾款 - if ($order->activity_type == 2) { - $_make = app()->make(ProductPresellSkuRepository::class); - if ($order->orderProduct[0]['cart_info']['productPresell']['presell_type'] == 2) { - $order->status = 10; - $presell = true; - } else { - $_make->incCount($order->orderProduct[0]['activity_id'], $order->orderProduct[0]['product_sku'], 'two_pay'); - } - $_make->incCount($order->orderProduct[0]['activity_id'], $order->orderProduct[0]['product_sku'], 'one_pay'); - } else if ($order->activity_type == 4) { - $order->status = 9; - $order->save(); - $group_buying_id = app()->make(ProductGroupBuyingRepository::class)->create( - $groupOrder->user, - $order->orderProduct[0]['cart_info']['activeSku']['product_group_id'], - $order->orderProduct[0]['activity_id'], - $order->order_id - ); - $order->orderProduct[0]->activity_id = $group_buying_id; - $order->orderProduct[0]->save(); - } else if ($order->activity_type == 3) { - //更新助力状态 - app()->make(ProductAssistSetRepository::class)->changStatus($order->orderProduct[0]['activity_id']); - } - - //更新委托订单处理 - if ($order->activity_type == 99) { - $cartIdArray = explode(',', $order->cart_id); - $ecartList = Db::name('store_cart')->whereIn('cart_id', $cartIdArray)->select(); - foreach ($ecartList as $ecart) { - if (!empty($ecart['source_id'])) { - Db::name('community')->where('community_id', $ecart['source_id'])->update(['entrust_order_id' => $order->order_id ?? 0]); - } - } - } + // 订单的类型 0 发货 1 自提 if ($order->order_type == 1 && $order->status != 10) { $order->verify_code = $this->verifyCode(); @@ -253,13 +218,6 @@ class StoreOtherOrderRepository extends BaseRepository 'user_type' => $storeOrderStatusRepository::U_TYPE_USER, ]; - //TODO 成为推广员 - foreach ($order->orderProduct as $product) { - if ($flag && $product['cart_info']['product']['is_gift_bag']) { - app()->make(UserRepository::class)->promoter($order->uid); - $flag = false; - } - } if ($order->order_type == 0) { //发起队列物流信息处理 //event('order.sendGoodsCode', $order); @@ -305,36 +263,7 @@ class StoreOtherOrderRepository extends BaseRepository } if (!$presell) { - if ($order['extension_one'] > 0) { - $finance[] = [ - 'order_id' => $order->order_id, - 'order_sn' => $order->order_sn, - 'user_info' => $groupOrder->user->nickname, - 'user_id' => $uid, - 'financial_type' => 'brokerage_one', - 'financial_pm' => 0, - 'type' => 1, - 'number' => $order['extension_one'], - 'mer_id' => $order->mer_id, - 'financial_record_sn' => $financeSn . ($i++) - ]; - } - - if ($order['extension_two'] > 0) { - $finance[] = [ - 'order_id' => $order->order_id, - 'order_sn' => $order->order_sn, - 'user_info' => $groupOrder->user->nickname, - 'user_id' => $uid, - 'financial_type' => 'brokerage_two', - 'financial_pm' => 0, - 'type' => 1, - 'number' => $order['extension_two'], - 'mer_id' => $order->mer_id, - 'financial_record_sn' => $financeSn . ($i++) - ]; - } - + if ($order['commission_rate'] > 0) { $finance[] = [ 'order_id' => $order->order_id, @@ -409,14 +338,8 @@ class StoreOtherOrderRepository extends BaseRepository 'id' => $order->order_id ] ], $order->mer_id); - //自动打印订单 - $this->autoPrinter($order->order_id, $order->mer_id); } - //分销判断 - // if ($groupOrder->user->spread_uid) { - // Queue::push(UserBrokerageLevelJob::class, ['uid' => $groupOrder->user->spread_uid, 'type' => 'spread_pay_num', 'inc' => 1]); - // Queue::push(UserBrokerageLevelJob::class, ['uid' => $groupOrder->user->spread_uid, 'type' => 'spread_money', 'inc' => $groupOrder->pay_price]); - // } + app()->make(UserRepository::class)->update($groupOrder->uid, [ 'pay_count' => Db::raw('pay_count+' . count($groupOrder->orderList)), 'pay_price' => Db::raw('pay_price+' . $groupOrder->pay_price), @@ -445,21 +368,6 @@ class StoreOtherOrderRepository extends BaseRepository Queue::push(UserBrokerageLevelJob::class, ['uid' => $groupOrder->uid, 'type' => 'pay_money', 'inc' => $groupOrder->pay_price]); Queue::push(UserBrokerageLevelJob::class, ['uid' => $groupOrder->uid, 'type' => 'pay_num', 'inc' => 1]); app()->make(UserBrokerageRepository::class)->incMemberValue($groupOrder->uid, 'member_pay_num', $groupOrder->group_order_id); - $groupOrder = $groupOrder->toArray(); - event('order.paySuccess', compact('groupOrder')); - //店内扫码支付 - if (isset($groupOrder['micro_pay']) && $groupOrder['micro_pay'] == 1) { - $order = $this->dao->search(['uid' => $groupOrder->uid])->where('group_order_id', $groupOrder->group_order_id)->find(); - $order->status = 2; - $order->verify_time = date('Y-m-d H:i:s'); - $user = $order->user; - event('order.take.before', compact('order')); - Db::transaction(function () use ($order, $user) { - $this->takeAfter($order, $user); - $order->save(); - }); - event('order.take', compact('order')); - } } From 73c2b6863096570d468200cafe312350e651eed7 Mon Sep 17 00:00:00 2001 From: chenbo <709206448@qq.com> Date: Mon, 25 Dec 2023 16:44:48 +0800 Subject: [PATCH 30/44] =?UTF-8?q?=E4=BE=9B=E9=94=80=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=E9=95=87=E5=90=88=E4=BC=99=E4=BA=BA=E5=85=AC=E5=8F=B8=E4=B8=8B?= =?UTF-8?q?=20=E9=95=87=E7=BA=A7=E4=BE=9B=E5=BA=94=E9=93=BE=E5=88=97?= =?UTF-8?q?=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/api/Statistics.php | 39 +++++++++++++++++++++++++++++++ route/api.php | 2 ++ 2 files changed, 41 insertions(+) diff --git a/app/controller/api/Statistics.php b/app/controller/api/Statistics.php index 7f911abf..c1c89d67 100644 --- a/app/controller/api/Statistics.php +++ b/app/controller/api/Statistics.php @@ -2,6 +2,7 @@ namespace app\controller\api; +use app\common\model\system\merchant\Merchant; use app\common\model\system\merchant\MerchantType; use crmeb\basic\BaseController; use think\facade\Db; @@ -333,4 +334,42 @@ class Statistics extends BaseController return app('json')->success(compact('list')); } + + + /** + * 商户商品数量查询 + */ + public function SupplyChainProduct() + { + $parmas = $this->request->param(); + + $merchant = Merchant::where('mer_intention_id', $parmas['mer_intention_id'])->find(); + if (empty($merchant) || $merchant['type_id'] == 17) { + return app('json')->success(); + } + $merchantName = $merchant['mer_name']; + $where[] = ['mer_id', '=', $merchant['mer_id']]; + $where[] = ['mer_status', '=', 1]; + $where[] = ['status', '=', 1]; + $where[] = ['is_used', '=', 1]; + $where[] = ['is_show', '=', 1]; + $count = Db::name('store_product')->where($where)->count(); + return app('json')->success(compact('count', 'merchantName')); + } + + /** + * 商户商品库存更新查询 + */ + public function SupplyChainProductStockCount1() + { + $parmas = $this->request->param(); + + $merchant = Merchant::where('mer_intention_id', $parmas['mer_intention_id'])->find(); + if (empty($merchant) || $merchant['type_id'] == 17) { + return app('json')->success(); + } + $where[] = ['mer_id', '=', $merchant['mer_id']]; + $count = Db::name('store_product_stock')->where($where)->count(); + return app('json')->success(['count' => $count]); + } } diff --git a/route/api.php b/route/api.php index 7296ca0b..42a8c8f6 100644 --- a/route/api.php +++ b/route/api.php @@ -738,6 +738,8 @@ Route::group('api/', function () { Route::get('supply_chain_village_breeding_price_count', '/SupplyChainVillageBreedingPriceCount'); Route::get('store_order_user_trade_amount', '/StoreOrderUserTradeAmount'); Route::get('supply_chain_merchant', '/SupplyChainMerchant'); + Route::get('supply_chain_product', '/SupplyChainProduct'); + Route::get('supply_chain_product_stock_count1', '/SupplyChainProductStockCount1'); })->prefix('api.Statistics'); //滑块验证码 From 89b00738329409c174582672a2bfb7712d54952d Mon Sep 17 00:00:00 2001 From: shengchanzhe <179998674@qq.com> Date: Mon, 25 Dec 2023 17:02:25 +0800 Subject: [PATCH 31/44] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=95=86=E5=93=81?= =?UTF-8?q?=E6=A0=87=E7=AD=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../store/order/StoreOtherOrderRepository.php | 15 --------------- app/controller/api/Common.php | 13 +++++++++++++ route/api.php | 1 + 3 files changed, 14 insertions(+), 15 deletions(-) diff --git a/app/common/repositories/store/order/StoreOtherOrderRepository.php b/app/common/repositories/store/order/StoreOtherOrderRepository.php index 8d6a19e0..4f935036 100644 --- a/app/common/repositories/store/order/StoreOtherOrderRepository.php +++ b/app/common/repositories/store/order/StoreOtherOrderRepository.php @@ -218,12 +218,6 @@ class StoreOtherOrderRepository extends BaseRepository 'user_type' => $storeOrderStatusRepository::U_TYPE_USER, ]; - if ($order->order_type == 0) { - //发起队列物流信息处理 - //event('order.sendGoodsCode', $order); - Queue::push(SendGoodsCodeJob::class, $order); - } - // 商户流水账单数据 $finance[] = [ 'order_id' => $order->order_id, @@ -351,18 +345,9 @@ class StoreOtherOrderRepository extends BaseRepository } $financialRecordRepository->insertAll($finance); $storeOrderStatusRepository->batchCreateLog($orderStatus); - if (count($groupOrder['give_coupon_ids']) > 0) - $groupOrder['give_coupon_ids'] = app()->make(StoreCouponRepository::class)->getGiveCoupon($groupOrder['give_coupon_ids'])->column('coupon_id'); $groupOrder->save(); }); - if (count($groupOrder['give_coupon_ids']) > 0) { - try { - Queue::push(PayGiveCouponJob::class, ['ids' => $groupOrder['give_coupon_ids'], 'uid' => $groupOrder['uid']]); - } catch (Exception $e) { - } - } - Queue::push(SendSmsJob::class, ['tempId' => 'ORDER_PAY_SUCCESS', 'id' => $groupOrder->group_order_id]); Queue::push(SendSmsJob::class, ['tempId' => 'ADMIN_PAY_SUCCESS_CODE', 'id' => $groupOrder->group_order_id]); Queue::push(UserBrokerageLevelJob::class, ['uid' => $groupOrder->uid, 'type' => 'pay_money', 'inc' => $groupOrder->pay_price]); diff --git a/app/controller/api/Common.php b/app/controller/api/Common.php index 680bd4fe..1ba6ea6d 100644 --- a/app/controller/api/Common.php +++ b/app/controller/api/Common.php @@ -32,6 +32,8 @@ use app\common\repositories\user\UserSignRepository; use app\common\repositories\user\UserVisitRepository; use app\common\repositories\wechat\TemplateMessageRepository; use app\common\repositories\wechat\WechatUserRepository; +use app\common\repositories\store\product\ProductLabelRepository; + use app\common\model\system\merchant\Merchant; use crmeb\basic\BaseController; use crmeb\services\AlipayService; @@ -593,4 +595,15 @@ class Common extends BaseController } } + + /** + * 商品标签 + */ + public function label_lst(ProductLabelRepository $repository) + { + [$page, $limit] = $this->getPage(); + $where = $this->request->params(['name', 'type', 'status']); + $data = $repository->getList($where,$page, $limit); + return app('json')->success($data); + } } diff --git a/route/api.php b/route/api.php index 7296ca0b..9c82c21e 100644 --- a/route/api.php +++ b/route/api.php @@ -21,6 +21,7 @@ use think\facade\Route; Route::group('api/', function () { Route::any('test', 'api.Auth/test'); + Route::get('label_lst', 'api.Common/label_lst'); Route::any('system_group_value', 'api.Common/system_group_value'); Route::any('demo_ceshi', 'api.Demo/index'); Route::any('dotest', 'api.Auth/dotest'); From e2641be239c6aae5e84f275190ab8a394a52c2c2 Mon Sep 17 00:00:00 2001 From: shengchanzhe <179998674@qq.com> Date: Mon, 25 Dec 2023 17:24:21 +0800 Subject: [PATCH 32/44] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=A0=87=E7=AD=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/merchant/store/product/ProductLabel.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/controller/merchant/store/product/ProductLabel.php b/app/controller/merchant/store/product/ProductLabel.php index 56dca928..4aa28e59 100644 --- a/app/controller/merchant/store/product/ProductLabel.php +++ b/app/controller/merchant/store/product/ProductLabel.php @@ -30,7 +30,9 @@ class ProductLabel extends BaseController { [$page, $limit] = $this->getPage(); $where = $this->request->params(['name', 'type', 'status']); - $where['mer_id'] = $this->request->merId(); + if($where['type']!=1){ + $where['mer_id'] = $this->request->merId(); + } $data = $this->repository->getList($where,$page, $limit); return app('json')->success($data); } From 0336d6a59bfa14c8df32e4ba193d318ad3b377d7 Mon Sep 17 00:00:00 2001 From: shengchanzhe <179998674@qq.com> Date: Mon, 25 Dec 2023 17:30:57 +0800 Subject: [PATCH 33/44] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/merchant/store/product/ProductLabel.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/controller/merchant/store/product/ProductLabel.php b/app/controller/merchant/store/product/ProductLabel.php index 4aa28e59..c1a5bf66 100644 --- a/app/controller/merchant/store/product/ProductLabel.php +++ b/app/controller/merchant/store/product/ProductLabel.php @@ -62,7 +62,8 @@ class ProductLabel extends BaseController $data = $this->checkParams($validate); if (!$this->repository->check($data['label_name'], $this->request->merId(),$id)) return app('json')->fail('名称重复'); - $getOne = $this->repository->getWhere(['product_label_id' => $id,'mer_id' => $this->request->merId()]); + //'mer_id' => $this->request->merId() + $getOne = $this->repository->getWhere(['product_label_id' => $id]); if (!$getOne) return app('json')->fail('数据不存在'); $this->repository->update($id, $data); return app('json')->success('编辑成功'); From 968504744a47808217c4ed2f7888cac9bc816cda Mon Sep 17 00:00:00 2001 From: shengchanzhe <179998674@qq.com> Date: Mon, 25 Dec 2023 17:36:07 +0800 Subject: [PATCH 34/44] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common/repositories/store/product/ProductRepository.php | 2 +- app/controller/merchant/store/product/ProductLabel.php | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app/common/repositories/store/product/ProductRepository.php b/app/common/repositories/store/product/ProductRepository.php index fa29b0a6..4e9a127f 100644 --- a/app/common/repositories/store/product/ProductRepository.php +++ b/app/common/repositories/store/product/ProductRepository.php @@ -2346,7 +2346,7 @@ class ProductRepository extends BaseRepository foreach ($data['attrValue'] as $k => $item) { //$data['attrValue'][$k]['stock'] = 0; } - app()->make(ProductLabelRepository::class)->checkHas($merId, $data['mer_labels']); + app()->make(ProductLabelRepository::class)->checkHas(0, $data['mer_labels']); $count = app()->make(StoreCategoryRepository::class)->getWhereCount(['store_category_id' => $data['cate_id'], 'is_show' => 1]); if (!$count) throw new ValidateException('平台分类不存在或不可用'); app()->make(StoreProductValidate::class)->check($data); diff --git a/app/controller/merchant/store/product/ProductLabel.php b/app/controller/merchant/store/product/ProductLabel.php index c1a5bf66..4aa28e59 100644 --- a/app/controller/merchant/store/product/ProductLabel.php +++ b/app/controller/merchant/store/product/ProductLabel.php @@ -62,8 +62,7 @@ class ProductLabel extends BaseController $data = $this->checkParams($validate); if (!$this->repository->check($data['label_name'], $this->request->merId(),$id)) return app('json')->fail('名称重复'); - //'mer_id' => $this->request->merId() - $getOne = $this->repository->getWhere(['product_label_id' => $id]); + $getOne = $this->repository->getWhere(['product_label_id' => $id,'mer_id' => $this->request->merId()]); if (!$getOne) return app('json')->fail('数据不存在'); $this->repository->update($id, $data); return app('json')->success('编辑成功'); From 932faec26dff4c7b33f0c16c7ca42429e72ece13 Mon Sep 17 00:00:00 2001 From: chenbo <709206448@qq.com> Date: Mon, 25 Dec 2023 17:38:45 +0800 Subject: [PATCH 35/44] =?UTF-8?q?=E6=9F=A5=E9=95=87=E7=BA=A7=E4=BE=9B?= =?UTF-8?q?=E5=BA=94=E9=93=BE=20=E9=87=87=E8=B4=AD=E9=87=91=E9=A2=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/api/Statistics.php | 29 +++++++++++++++++++++++++++++ route/api.php | 1 + 2 files changed, 30 insertions(+) diff --git a/app/controller/api/Statistics.php b/app/controller/api/Statistics.php index c1c89d67..0024509b 100644 --- a/app/controller/api/Statistics.php +++ b/app/controller/api/Statistics.php @@ -372,4 +372,33 @@ class Statistics extends BaseController $count = Db::name('store_product_stock')->where($where)->count(); return app('json')->success(['count' => $count]); } + + /** + * 采购金额和销售金额 + */ + public function SupplyChainProductPrice() + { + $parmas = $this->request->param(); + if (isset($parmas['type']) && $parmas['type'] != '') { + switch ($parmas['type']) { + case 200: + $where[] = ['p.source', '=', 200]; + break; + case 300: + $where[] = ['p.source', '=', 0]; + break; + } + } else { + $where[] = ['p.source', '=', 0]; + } + + $mer_id = Db::name('merchant_intention')->where('mer_intention_id', $parmas['mer_intention_id'])->value('mer_id'); + $where[] = ['p.is_refund', '=', 0]; + $count = Db::name('store_order_product')->alias('p') + ->where($where) + ->join('store_order o', 'o.mer_id=' . $mer_id . ' and o.paid=1 and o.is_del=0') + ->sum('p.total_price'); + $merName = Merchant::where('mer_id', $mer_id)->value('mer_name'); + return app('json')->success(compact('merName', 'count')); + } } diff --git a/route/api.php b/route/api.php index 42a8c8f6..6c5c5b31 100644 --- a/route/api.php +++ b/route/api.php @@ -740,6 +740,7 @@ Route::group('api/', function () { Route::get('supply_chain_merchant', '/SupplyChainMerchant'); Route::get('supply_chain_product', '/SupplyChainProduct'); Route::get('supply_chain_product_stock_count1', '/SupplyChainProductStockCount1'); + Route::get('supply_chain_product_price', '/SupplyChainProductPrice'); })->prefix('api.Statistics'); //滑块验证码 From c04292e06d864cc87ea6695d35c36093fc6fb789 Mon Sep 17 00:00:00 2001 From: shengchanzhe <179998674@qq.com> Date: Mon, 25 Dec 2023 17:45:26 +0800 Subject: [PATCH 36/44] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=A0=87=E7=AD=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common/repositories/store/product/ProductRepository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/common/repositories/store/product/ProductRepository.php b/app/common/repositories/store/product/ProductRepository.php index 4e9a127f..3bf18a26 100644 --- a/app/common/repositories/store/product/ProductRepository.php +++ b/app/common/repositories/store/product/ProductRepository.php @@ -726,7 +726,7 @@ class ProductRepository extends BaseRepository if ($data['product_type'] == 3) $make = app()->make(ProductAssistSkuRepository::class); if ($data['product_type'] == 4) $make = app()->make(ProductGroupSkuRepository::class); - $spu_where = ['activity_id' => $activeId, 'product_type' => $data['product_type'], 'product_id' => $id]; + $spu_where = ['activity_id' => $activeId??0, 'product_type' => $data['product_type'], 'product_id' => $id]; $spu = $spu_make->getSearch($spu_where)->find(); $data['star'] = $spu['star'] ?? ''; $data['mer_labels'] = $spu['mer_labels'] ?? ''; From dbe731f6289e9e7458d6886f2ffa19a71c6a85ba Mon Sep 17 00:00:00 2001 From: shengchanzhe <179998674@qq.com> Date: Mon, 25 Dec 2023 17:55:18 +0800 Subject: [PATCH 37/44] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=A0=87=E7=AD=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../repositories/store/product/ProductRepository.php | 10 +++++++++- app/controller/api/store/product/StoreProduct.php | 3 ++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/app/common/repositories/store/product/ProductRepository.php b/app/common/repositories/store/product/ProductRepository.php index 3bf18a26..b901f34b 100644 --- a/app/common/repositories/store/product/ProductRepository.php +++ b/app/common/repositories/store/product/ProductRepository.php @@ -344,7 +344,15 @@ class ProductRepository extends BaseRepository $ret = Spu::getInstance()->where('product_id', $id)->whereIn('product_type', [0, 98, 99])->find(); Db::transaction(function () use ($id, $data, $settleParams, $ret) { $this->save($id, $settleParams, null, [], 0); - app()->make(SpuRepository::class)->update($ret->spu_id, ['price' => $data['price']]); + $value = $data['mer_labels']; + if (!empty($value)) { + if (!is_array($value)) { + $data['mer_labels'] = ',' . $value . ','; + } else { + $data['mer_labels'] = ',' . implode(',', $value) . ','; + } + } + app()->make(SpuRepository::class)->update($ret->spu_id, ['price' => $data['price'],'mer_labels'=>$data['mer_labels']]); Queue(SendSmsJob::class, ['tempId' => 'PRODUCT_INCREASE', 'id' => $id]); }); } diff --git a/app/controller/api/store/product/StoreProduct.php b/app/controller/api/store/product/StoreProduct.php index cb001a22..5625a0c2 100644 --- a/app/controller/api/store/product/StoreProduct.php +++ b/app/controller/api/store/product/StoreProduct.php @@ -211,7 +211,8 @@ class StoreProduct extends BaseController "attr", "attrValue", 'spec_type', - 'is_stock' + 'is_stock', + 'mer_labels' ]; $data = $this->request->params($params); // $count = app()->make(StoreCategoryRepository::class)->getWhereCount(['store_category_id' => $data['mer_cate_id'],'is_show' => 1,'mer_id' => $this->request->merId()]); From 66bfb05b8fc5d08e2f702e9e50d356d204365e8a Mon Sep 17 00:00:00 2001 From: chenbo <709206448@qq.com> Date: Mon, 25 Dec 2023 18:02:38 +0800 Subject: [PATCH 38/44] =?UTF-8?q?=E6=9F=A5=E9=95=87=E7=BA=A7=E4=BE=9B?= =?UTF-8?q?=E5=BA=94=E9=93=BE=20=E9=87=87=E8=B4=AD/=E9=94=80=E5=94=AE?= =?UTF-8?q?=E9=87=91=E9=A2=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/api/Statistics.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/app/controller/api/Statistics.php b/app/controller/api/Statistics.php index 0024509b..44a8a1f1 100644 --- a/app/controller/api/Statistics.php +++ b/app/controller/api/Statistics.php @@ -391,14 +391,17 @@ class Statistics extends BaseController } else { $where[] = ['p.source', '=', 0]; } - - $mer_id = Db::name('merchant_intention')->where('mer_intention_id', $parmas['mer_intention_id'])->value('mer_id'); + $merchant = Merchant::where('mer_intention_id', $parmas['mer_intention_id'])->find(); + if (empty($merchant) || $merchant['type_id'] == 17) { + return app('json')->success(); + } + $mer_id = $merchant['mer_id']; $where[] = ['p.is_refund', '=', 0]; $count = Db::name('store_order_product')->alias('p') ->where($where) ->join('store_order o', 'o.mer_id=' . $mer_id . ' and o.paid=1 and o.is_del=0') ->sum('p.total_price'); - $merName = Merchant::where('mer_id', $mer_id)->value('mer_name'); + $merName = $merchant('mer_name'); return app('json')->success(compact('merName', 'count')); } } From 07a982fd682a2ceea9f73a01dbf12825f36a6ce3 Mon Sep 17 00:00:00 2001 From: chenbo <709206448@qq.com> Date: Mon, 25 Dec 2023 18:05:29 +0800 Subject: [PATCH 39/44] =?UTF-8?q?=E6=9F=A5=E9=95=87=E7=BA=A7=E4=BE=9B?= =?UTF-8?q?=E5=BA=94=E9=93=BE=20=E9=87=87=E8=B4=AD/=E9=94=80=E5=94=AE?= =?UTF-8?q?=E9=87=91=E9=A2=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/api/Statistics.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controller/api/Statistics.php b/app/controller/api/Statistics.php index 44a8a1f1..0168f1cd 100644 --- a/app/controller/api/Statistics.php +++ b/app/controller/api/Statistics.php @@ -401,7 +401,7 @@ class Statistics extends BaseController ->where($where) ->join('store_order o', 'o.mer_id=' . $mer_id . ' and o.paid=1 and o.is_del=0') ->sum('p.total_price'); - $merName = $merchant('mer_name'); + $merName = $merchant['mer_name']; return app('json')->success(compact('merName', 'count')); } } From 6b7cc23adfcc103fa84d386449a4fa56f30b30fa Mon Sep 17 00:00:00 2001 From: chenbo <709206448@qq.com> Date: Mon, 25 Dec 2023 18:16:31 +0800 Subject: [PATCH 40/44] =?UTF-8?q?=E6=9F=A5=E9=95=87=E7=BA=A7=E4=BE=9B?= =?UTF-8?q?=E5=BA=94=E9=93=BE=20=E9=87=87=E8=B4=AD/=E9=94=80=E5=94=AE?= =?UTF-8?q?=E9=87=91=E9=A2=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/api/Statistics.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/controller/api/Statistics.php b/app/controller/api/Statistics.php index 0168f1cd..55242641 100644 --- a/app/controller/api/Statistics.php +++ b/app/controller/api/Statistics.php @@ -42,9 +42,7 @@ class Statistics extends BaseController } $where[] = ['is_del', '=', 0]; $where[] = ['status', '=', 1]; - // 镇级供应链 type_code = TypeTownSupplyChain - $merchantType = MerchantType::where('type_code', 'TypeTownSupplyChain')->find(); - $where[] = ['type_id', '=', $merchantType['mer_type_id']]; + $where[] = ['type_id', '=', $parmas['mer_type_id']]; $count = Db::name('merchant')->where($where)->count(); return app('json')->success(['count' => $count]); } From cba457a123b04d6c32e4fdd05ba154c91284cce9 Mon Sep 17 00:00:00 2001 From: chenbo <709206448@qq.com> Date: Mon, 25 Dec 2023 18:23:12 +0800 Subject: [PATCH 41/44] =?UTF-8?q?=E6=9F=A5=E9=95=87=E7=BA=A7=E4=BE=9B?= =?UTF-8?q?=E5=BA=94=E9=93=BE=20=E6=99=AE=E9=80=9A=E5=95=86=E6=88=B7?= =?UTF-8?q?=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/api/Statistics.php | 16 ++++++++++++++++ route/api.php | 1 + 2 files changed, 17 insertions(+) diff --git a/app/controller/api/Statistics.php b/app/controller/api/Statistics.php index 55242641..92d7d63b 100644 --- a/app/controller/api/Statistics.php +++ b/app/controller/api/Statistics.php @@ -333,6 +333,22 @@ class Statistics extends BaseController return app('json')->success(compact('list')); } + public function GeneralMerchant() + { + $parmas = $this->request->param(); + + $where[] = ['street_id', '=', $parmas['street_code']]; + $where[] = ['is_del', '=', 0]; + $where[] = ['status', '=', 1]; + // 镇级普通商户 type_code = TypeStore + $merchantType = MerchantType::where('type_code', 'TypeStore')->find(); + + $where[] = ['type_id', '=', $merchantType['mer_type_id']]; + + $list = Db::name('merchant')->where($where)->select(); + + return app('json')->success(compact('list')); + } /** * 商户商品数量查询 diff --git a/route/api.php b/route/api.php index e321a766..04cf267c 100644 --- a/route/api.php +++ b/route/api.php @@ -739,6 +739,7 @@ Route::group('api/', function () { Route::get('supply_chain_village_breeding_price_count', '/SupplyChainVillageBreedingPriceCount'); Route::get('store_order_user_trade_amount', '/StoreOrderUserTradeAmount'); Route::get('supply_chain_merchant', '/SupplyChainMerchant'); + Route::get('general_merchant', '/GeneralMerchant'); Route::get('supply_chain_product', '/SupplyChainProduct'); Route::get('supply_chain_product_stock_count1', '/SupplyChainProductStockCount1'); Route::get('supply_chain_product_price', '/SupplyChainProductPrice'); From f65c8045b1424178745ac4fd0d92431ba744f120 Mon Sep 17 00:00:00 2001 From: chenbo <709206448@qq.com> Date: Mon, 25 Dec 2023 18:48:28 +0800 Subject: [PATCH 42/44] =?UTF-8?q?=E6=9F=A5=E9=95=87=E7=BA=A7=E6=99=AE?= =?UTF-8?q?=E9=80=9A=E5=95=86=E6=88=B7=E5=95=86=E5=93=81=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/api/Statistics.php | 29 +++++++++++++++++++++++++---- route/api.php | 1 + 2 files changed, 26 insertions(+), 4 deletions(-) diff --git a/app/controller/api/Statistics.php b/app/controller/api/Statistics.php index 92d7d63b..49b79706 100644 --- a/app/controller/api/Statistics.php +++ b/app/controller/api/Statistics.php @@ -63,8 +63,9 @@ class Statistics extends BaseController if (!isset($parmas['mer_intention_id']) || $parmas['mer_intention_id'] == '') { return app('json')->fail('mer_intention_id:格式错误'); } + $merchant = Merchant::where('mer_intention_id', $parmas['mer_intention_id'])->find(); $where[] = ['create_time', 'between time', [date("Y-m-d H:i:s", $parmas['start_time']), date("Y-m-d H:i:s", $parmas['end_time'])]]; - $where[] = ['mer_id', '=', $parmas['mer_intention_id']]; + $where[] = ['mer_id', '=', $merchant['mer_id']]; $where[] = ['mer_status', '=', 1]; $where[] = ['status', '=', 1]; $where[] = ['is_used', '=', 1]; @@ -350,15 +351,35 @@ class Statistics extends BaseController return app('json')->success(compact('list')); } + + /** - * 商户商品数量查询 + * 镇级供应链商户商品数量查询 */ public function SupplyChainProduct() { $parmas = $this->request->param(); $merchant = Merchant::where('mer_intention_id', $parmas['mer_intention_id'])->find(); - if (empty($merchant) || $merchant['type_id'] == 17) { + if (empty($merchant) || $merchant['type_id'] != 17) { + return app('json')->success(); + } + $merchantName = $merchant['mer_name']; + $where[] = ['mer_id', '=', $merchant['mer_id']]; + $where[] = ['mer_status', '=', 1]; + $where[] = ['status', '=', 1]; + $where[] = ['is_used', '=', 1]; + $where[] = ['is_show', '=', 1]; + $count = Db::name('store_product')->where($where)->count(); + return app('json')->success(compact('count', 'merchantName')); + } + + public function GeneralMerchantProduct() + { + $parmas = $this->request->param(); + + $merchant = Merchant::where('mer_intention_id', $parmas['mer_intention_id'])->find(); + if (empty($merchant) || $merchant['type_id'] != 10) { return app('json')->success(); } $merchantName = $merchant['mer_name']; @@ -379,7 +400,7 @@ class Statistics extends BaseController $parmas = $this->request->param(); $merchant = Merchant::where('mer_intention_id', $parmas['mer_intention_id'])->find(); - if (empty($merchant) || $merchant['type_id'] == 17) { + if (empty($merchant) || $merchant['type_id'] != 17) { return app('json')->success(); } $where[] = ['mer_id', '=', $merchant['mer_id']]; diff --git a/route/api.php b/route/api.php index 04cf267c..ceacc3f7 100644 --- a/route/api.php +++ b/route/api.php @@ -741,6 +741,7 @@ Route::group('api/', function () { Route::get('supply_chain_merchant', '/SupplyChainMerchant'); Route::get('general_merchant', '/GeneralMerchant'); Route::get('supply_chain_product', '/SupplyChainProduct'); + Route::get('general_merchant_product', '/GeneralMerchantProduct'); Route::get('supply_chain_product_stock_count1', '/SupplyChainProductStockCount1'); Route::get('supply_chain_product_price', '/SupplyChainProductPrice'); })->prefix('api.Statistics'); From c382eb9cf258e8604bad33ff1e409d807a72e745 Mon Sep 17 00:00:00 2001 From: chenbo <709206448@qq.com> Date: Mon, 25 Dec 2023 18:53:27 +0800 Subject: [PATCH 43/44] =?UTF-8?q?=E6=9F=A5=E9=95=87=E7=BA=A7=E6=99=AE?= =?UTF-8?q?=E9=80=9A=E5=95=86=E6=88=B7=E5=95=86=E5=93=81=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/api/Statistics.php | 16 ++++++++++++++++ route/api.php | 1 + 2 files changed, 17 insertions(+) diff --git a/app/controller/api/Statistics.php b/app/controller/api/Statistics.php index 49b79706..484ed87a 100644 --- a/app/controller/api/Statistics.php +++ b/app/controller/api/Statistics.php @@ -408,6 +408,22 @@ class Statistics extends BaseController return app('json')->success(['count' => $count]); } + /** + * 商户商品库存更新查询 + */ + public function ProductStockCount1() + { + $parmas = $this->request->param(); + + $merchant = Merchant::where('mer_intention_id', $parmas['mer_intention_id'])->find(); + if (empty($merchant) || $merchant['type_id'] != 10) { + return app('json')->success(); + } + $where[] = ['mer_id', '=', $merchant['mer_id']]; + $count = Db::name('store_product_stock')->where($where)->count(); + return app('json')->success(['count' => $count]); + } + /** * 采购金额和销售金额 */ diff --git a/route/api.php b/route/api.php index ceacc3f7..4155f31f 100644 --- a/route/api.php +++ b/route/api.php @@ -743,6 +743,7 @@ Route::group('api/', function () { Route::get('supply_chain_product', '/SupplyChainProduct'); Route::get('general_merchant_product', '/GeneralMerchantProduct'); Route::get('supply_chain_product_stock_count1', '/SupplyChainProductStockCount1'); + Route::get('product_stock_count1', '/ProductStockCount1'); Route::get('supply_chain_product_price', '/SupplyChainProductPrice'); })->prefix('api.Statistics'); From 8b5a8b7cafd746576cb02bf77c9069d039df742a Mon Sep 17 00:00:00 2001 From: shengchanzhe <179998674@qq.com> Date: Tue, 26 Dec 2023 09:51:24 +0800 Subject: [PATCH 44/44] =?UTF-8?q?=E6=9B=B4=E6=96=B0pc=E5=90=8E=E5=8F=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/mer.html | 2 +- ...{chunk-6f9bbde8.0de76519.css => chunk-34ab329b.118ae5c7.css} | 2 +- ...{chunk-eab0bfaa.4c97d7c3.css => chunk-68370b84.a0cf77b6.css} | 2 +- public/mer/css/chunk-b62bf9da.fc476d73.css | 1 + public/mer/js/{app.71c60b28.js => app.0f2cc2f5.js} | 2 +- public/mer/js/chunk-01454a3c.261615ee.js | 1 + public/mer/js/chunk-01454a3c.ff2c918e.js | 1 - .../{chunk-031de214.5f89adf5.js => chunk-031de214.8ba8df18.js} | 2 +- .../{chunk-0b1f3772.c04eaf39.js => chunk-0b1f3772.7086f94f.js} | 2 +- .../{chunk-0d2c1415.ba523645.js => chunk-0d2c1415.5728c33d.js} | 2 +- .../{chunk-2d0ab2c5.d815ca5c.js => chunk-2d0ab2c5.0f2e2ef4.js} | 2 +- .../{chunk-2d0c212a.f2789af9.js => chunk-2d0c212a.cff57074.js} | 2 +- .../{chunk-2d209391.d7ac1fed.js => chunk-2d209391.02a01b17.js} | 2 +- public/mer/js/chunk-34ab329b.b1fcc2ff.js | 1 + .../{chunk-39a0bfcb.9e39ce69.js => chunk-39a0bfcb.198b022c.js} | 2 +- .../{chunk-3e2c114c.23b319f7.js => chunk-3e2c114c.da84215f.js} | 2 +- .../{chunk-3ec8e821.9b2e0ff9.js => chunk-3ec8e821.2c48b3ac.js} | 2 +- .../{chunk-412d33f7.2e80f203.js => chunk-412d33f7.b3b1ebce.js} | 2 +- .../{chunk-4428d098.763673e0.js => chunk-4428d098.5964ddab.js} | 2 +- .../{chunk-59e52b70.7b18a2f1.js => chunk-59e52b70.28b87cb7.js} | 2 +- .../{chunk-634734f0.5ffc5539.js => chunk-634734f0.d0ecdaa2.js} | 2 +- public/mer/js/chunk-68370b84.fbb92026.js | 1 + public/mer/js/chunk-6f9bbde8.2ac80547.js | 1 - .../{chunk-738c6ac1.622727df.js => chunk-738c6ac1.182dff86.js} | 2 +- .../{chunk-7c43671d.14fe87ee.js => chunk-7c43671d.a389042d.js} | 2 +- .../{chunk-82bee4a8.86f737e1.js => chunk-82bee4a8.5a3150fe.js} | 2 +- .../{chunk-9afa8a36.db72bcd7.js => chunk-9afa8a36.1713da08.js} | 2 +- .../{chunk-9d6d22b0.5051a0f0.js => chunk-9d6d22b0.ae4d8e02.js} | 2 +- .../{chunk-a0fbc2e4.c9af77ea.js => chunk-a0fbc2e4.53c911cc.js} | 2 +- .../{chunk-afbd5864.a0529673.js => chunk-afbd5864.097cd544.js} | 2 +- .../{chunk-b28bec38.2e1c4ce9.js => chunk-b28bec38.14285a00.js} | 2 +- public/mer/js/chunk-b62bf9da.2e44e46a.js | 1 + .../js/{chunk-commons.94052249.js => chunk-commons.b954f401.js} | 2 +- public/mer/js/chunk-eab0bfaa.d02f153e.js | 1 - .../{chunk-edb267f4.644b4ecc.js => chunk-edb267f4.d753a0e1.js} | 2 +- 35 files changed, 32 insertions(+), 30 deletions(-) rename public/mer/css/{chunk-6f9bbde8.0de76519.css => chunk-34ab329b.118ae5c7.css} (53%) rename public/mer/css/{chunk-eab0bfaa.4c97d7c3.css => chunk-68370b84.a0cf77b6.css} (85%) create mode 100644 public/mer/css/chunk-b62bf9da.fc476d73.css rename public/mer/js/{app.71c60b28.js => app.0f2cc2f5.js} (71%) create mode 100644 public/mer/js/chunk-01454a3c.261615ee.js delete mode 100644 public/mer/js/chunk-01454a3c.ff2c918e.js rename public/mer/js/{chunk-031de214.5f89adf5.js => chunk-031de214.8ba8df18.js} (69%) rename public/mer/js/{chunk-0b1f3772.c04eaf39.js => chunk-0b1f3772.7086f94f.js} (97%) rename public/mer/js/{chunk-0d2c1415.ba523645.js => chunk-0d2c1415.5728c33d.js} (95%) rename public/mer/js/{chunk-2d0ab2c5.d815ca5c.js => chunk-2d0ab2c5.0f2e2ef4.js} (95%) rename public/mer/js/{chunk-2d0c212a.f2789af9.js => chunk-2d0c212a.cff57074.js} (96%) rename public/mer/js/{chunk-2d209391.d7ac1fed.js => chunk-2d209391.02a01b17.js} (90%) create mode 100644 public/mer/js/chunk-34ab329b.b1fcc2ff.js rename public/mer/js/{chunk-39a0bfcb.9e39ce69.js => chunk-39a0bfcb.198b022c.js} (97%) rename public/mer/js/{chunk-3e2c114c.23b319f7.js => chunk-3e2c114c.da84215f.js} (99%) rename public/mer/js/{chunk-3ec8e821.9b2e0ff9.js => chunk-3ec8e821.2c48b3ac.js} (58%) rename public/mer/js/{chunk-412d33f7.2e80f203.js => chunk-412d33f7.b3b1ebce.js} (94%) rename public/mer/js/{chunk-4428d098.763673e0.js => chunk-4428d098.5964ddab.js} (98%) rename public/mer/js/{chunk-59e52b70.7b18a2f1.js => chunk-59e52b70.28b87cb7.js} (95%) rename public/mer/js/{chunk-634734f0.5ffc5539.js => chunk-634734f0.d0ecdaa2.js} (58%) create mode 100644 public/mer/js/chunk-68370b84.fbb92026.js delete mode 100644 public/mer/js/chunk-6f9bbde8.2ac80547.js rename public/mer/js/{chunk-738c6ac1.622727df.js => chunk-738c6ac1.182dff86.js} (98%) rename public/mer/js/{chunk-7c43671d.14fe87ee.js => chunk-7c43671d.a389042d.js} (99%) rename public/mer/js/{chunk-82bee4a8.86f737e1.js => chunk-82bee4a8.5a3150fe.js} (99%) rename public/mer/js/{chunk-9afa8a36.db72bcd7.js => chunk-9afa8a36.1713da08.js} (97%) rename public/mer/js/{chunk-9d6d22b0.5051a0f0.js => chunk-9d6d22b0.ae4d8e02.js} (99%) rename public/mer/js/{chunk-a0fbc2e4.c9af77ea.js => chunk-a0fbc2e4.53c911cc.js} (95%) rename public/mer/js/{chunk-afbd5864.a0529673.js => chunk-afbd5864.097cd544.js} (97%) rename public/mer/js/{chunk-b28bec38.2e1c4ce9.js => chunk-b28bec38.14285a00.js} (69%) create mode 100644 public/mer/js/chunk-b62bf9da.2e44e46a.js rename public/mer/js/{chunk-commons.94052249.js => chunk-commons.b954f401.js} (97%) delete mode 100644 public/mer/js/chunk-eab0bfaa.d02f153e.js rename public/mer/js/{chunk-edb267f4.644b4ecc.js => chunk-edb267f4.d753a0e1.js} (99%) diff --git a/public/mer.html b/public/mer.html index c9f83c1f..37140559 100644 --- a/public/mer.html +++ b/public/mer.html @@ -1 +1 @@ -加载中...
\ No newline at end of file +加载中...
\ No newline at end of file diff --git a/public/mer/css/chunk-6f9bbde8.0de76519.css b/public/mer/css/chunk-34ab329b.118ae5c7.css similarity index 53% rename from public/mer/css/chunk-6f9bbde8.0de76519.css rename to public/mer/css/chunk-34ab329b.118ae5c7.css index 65596ad9..8a81f1ce 100644 --- a/public/mer/css/chunk-6f9bbde8.0de76519.css +++ b/public/mer/css/chunk-34ab329b.118ae5c7.css @@ -1 +1 @@ -.title[data-v-6d70337e]{margin-bottom:16px;color:#17233d;font-weight:500;font-size:14px}.description-term[data-v-6d70337e]{display:table-cell;padding-bottom:10px;line-height:20px;width:50%;font-size:12px}[data-v-5245ffd2] .el-cascader{display:block}.dialog-scustom[data-v-5245ffd2]{width:1200px;height:600px}.ela-btn[data-v-5245ffd2]{color:#2d8cf0}.Box .ivu-radio-wrapper[data-v-5245ffd2]{margin-right:25px}.Box .numPut[data-v-5245ffd2]{width:80%!important}.lunBox[data-v-5245ffd2]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;border:1px solid #0bb20c}.pictrueBox[data-v-5245ffd2]{display:inline-block}.pictrue[data-v-5245ffd2]{width:50px;height:50px;border:1px dotted rgba(0,0,0,.1);display:inline-block;position:relative;cursor:pointer}.pictrue img[data-v-5245ffd2]{width:100%;height:100%}.pictrueTab[data-v-5245ffd2]{width:40px!important;height:40px!important}.upLoad[data-v-5245ffd2]{width:40px;height:40px;border:1px dotted rgba(0,0,0,.1);border-radius:4px;background:rgba(0,0,0,.02);cursor:pointer}.ft[data-v-5245ffd2]{color:red}.buttonGroup[data-v-5245ffd2]{position:relative;display:inline-block;vertical-align:middle;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.buttonGroup .small-btn[data-v-5245ffd2]{position:relative;float:left;height:24px;padding:0 7px;font-size:14px;border-radius:3px}.buttonGroup .small-btn[data-v-5245ffd2]:first-child{margin-left:0;border-bottom-right-radius:0;border-top-right-radius:0}.virtual_boder[data-v-5245ffd2]{border:1px solid #1890ff}.virtual_boder2[data-v-5245ffd2]{border:1px solid #e7e7e7}.virtual_san[data-v-5245ffd2]{position:absolute;bottom:0;right:0;width:0;height:0;border-bottom:26px solid #1890ff;border-left:26px solid transparent}.virtual_dui[data-v-5245ffd2]{position:absolute;bottom:-2px;right:2px;color:#fff;font-family:system-ui}.virtual[data-v-5245ffd2]{width:120px;height:60px;background:#fff;border-radius:3px;float:left;text-align:center;padding-top:8px;position:relative;cursor:pointer;line-height:23px}.virtual .virtual_top[data-v-5245ffd2]{font-size:14px;font-weight:600;color:rgba(0,0,0,.85)}.virtual .virtual_bottom[data-v-5245ffd2]{font-size:12px;font-weight:400;color:#999}.virtual[data-v-5245ffd2]:nth-child(2n){margin:0 12px}.bg[data-v-703d2707]{z-index:100;position:fixed;left:0;top:0;width:100%;height:100%;background:rgba(0,0,0,.5)}.goods_detail .goods_detail_wrapper[data-v-703d2707]{z-index:-10}[data-v-703d2707] .upLoadPicBox .upLoad{-webkit-box-orient:vertical;-o-box-orient:vertical;-ms-flex-direction:column;flex-direction:column;line-height:20px}[data-v-703d2707] .upLoadPicBox span{font-size:10px}.proCoupon[data-v-703d2707] .el-form-item__content{margin-top:5px}.tabPic[data-v-703d2707]{width:40px!important;height:40px!important}.tabPic img[data-v-703d2707]{width:100%;height:100%}.noLeft[data-v-703d2707] .el-form-item__content{margin-left:0!important}.tabNumWidth[data-v-703d2707] .el-input-number--medium{width:100px}.tabNumWidth[data-v-703d2707] .el-input-number__decrease,.tabNumWidth[data-v-703d2707] .el-input-number__increase{width:20px!important;font-size:12px!important}.tabNumWidth[data-v-703d2707] .el-input-number--medium .el-input__inner{padding-left:25px!important;padding-right:25px!important}.tabNumWidth[data-v-703d2707] .priceBox .el-input-number__decrease,.tabNumWidth[data-v-703d2707] .priceBox .el-input-number__increase{display:none}.tabNumWidth[data-v-703d2707] .priceBox .el-input-number.is-controls-right .el-input__inner{padding:0 5px}.tabNumWidth[data-v-703d2707] thead{line-height:normal!important}.tabNumWidth[data-v-703d2707] .cell{line-height:normal!important;text-overflow:clip!important}.virtual_boder[data-v-703d2707]{border:1px solid #1890ff}.virtual_boder2[data-v-703d2707]{border:1px solid #e7e7e7}.virtual_san[data-v-703d2707]{position:absolute;bottom:0;right:0;width:0;height:0;border-bottom:26px solid #1890ff;border-left:26px solid transparent}.virtual_dui[data-v-703d2707]{position:absolute;bottom:-2px;right:2px;color:#fff;font-family:system-ui}.virtual[data-v-703d2707]{width:120px;height:60px;background:#fff;border-radius:3px;float:left;text-align:center;padding-top:8px;position:relative;cursor:pointer;line-height:23px}.virtual .virtual_top[data-v-703d2707]{font-size:14px;font-weight:600;color:rgba(0,0,0,.85)}.virtual .virtual_bottom[data-v-703d2707]{font-size:12px;font-weight:400;color:#999}.virtual[data-v-703d2707]:nth-child(2n){margin:0 12px}.addfont[data-v-703d2707]{display:inline-block;font-size:13px;font-weight:400;color:#1890ff;margin-left:14px;cursor:pointer}.titTip[data-v-703d2707]{display:inline-bolck;font-size:12px;font-weight:400;color:#999}.addCustom_content[data-v-703d2707]{margin-top:20px}.addCustom_content .custom_box[data-v-703d2707]{margin-bottom:10px}.addCustomBox[data-v-703d2707]{margin-top:12px;font-size:13px;font-weight:400;color:#1890ff}.addCustomBox .btn[data-v-703d2707]{cursor:pointer;width:-webkit-max-content;width:-moz-max-content;width:max-content}.addCustomBox .remark[data-v-703d2707]{display:-webkit-box;display:-ms-flexbox;display:flex;margin-top:14px}.selWidth[data-v-703d2707]{width:50%}.ml15[data-v-703d2707]{margin-left:15px}.button-new-tag[data-v-703d2707]{height:28px;line-height:26px;padding-top:0;padding-bottom:0}.input-new-tag[data-v-703d2707]{width:90px;margin-left:10px;vertical-align:bottom}.pictrue[data-v-703d2707]{width:60px;height:60px;border:1px dotted rgba(0,0,0,.1);margin-right:10px;position:relative;cursor:pointer}.pictrue img[data-v-703d2707]{width:100%;height:100%}.details_pictrue[data-v-703d2707]{width:120px;height:120px}.iview-video-style[data-v-703d2707]{width:40%;height:180px;border-radius:10px;background-color:#707070;margin-top:10px;position:relative;overflow:hidden}.iconv[data-v-703d2707]{color:#fff;line-height:180px;display:inherit;font-size:26px;position:absolute;top:-74px;left:50%;margin-left:-25px}.iview-video-style .mark[data-v-703d2707]{position:absolute;width:100%;height:30px;top:0;background-color:rgba(0,0,0,.5);text-align:center}.uploadVideo[data-v-703d2707]{margin-left:10px}.perW50[data-v-703d2707]{width:50%}.submission[data-v-703d2707]{margin-left:10px}.btndel[data-v-703d2707]{position:absolute;z-index:1;width:20px!important;height:20px!important;left:46px;top:-4px}.labeltop[data-v-703d2707] .el-form-item__label{float:none!important;display:inline-block!important;margin-left:120px!important;width:auto!important} \ No newline at end of file +.title[data-v-6d70337e]{margin-bottom:16px;color:#17233d;font-weight:500;font-size:14px}.description-term[data-v-6d70337e]{display:table-cell;padding-bottom:10px;line-height:20px;width:50%;font-size:12px}[data-v-5245ffd2] .el-cascader{display:block}.dialog-scustom[data-v-5245ffd2]{width:1200px;height:600px}.ela-btn[data-v-5245ffd2]{color:#2d8cf0}.Box .ivu-radio-wrapper[data-v-5245ffd2]{margin-right:25px}.Box .numPut[data-v-5245ffd2]{width:80%!important}.lunBox[data-v-5245ffd2]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;border:1px solid #0bb20c}.pictrueBox[data-v-5245ffd2]{display:inline-block}.pictrue[data-v-5245ffd2]{width:50px;height:50px;border:1px dotted rgba(0,0,0,.1);display:inline-block;position:relative;cursor:pointer}.pictrue img[data-v-5245ffd2]{width:100%;height:100%}.pictrueTab[data-v-5245ffd2]{width:40px!important;height:40px!important}.upLoad[data-v-5245ffd2]{width:40px;height:40px;border:1px dotted rgba(0,0,0,.1);border-radius:4px;background:rgba(0,0,0,.02);cursor:pointer}.ft[data-v-5245ffd2]{color:red}.buttonGroup[data-v-5245ffd2]{position:relative;display:inline-block;vertical-align:middle;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.buttonGroup .small-btn[data-v-5245ffd2]{position:relative;float:left;height:24px;padding:0 7px;font-size:14px;border-radius:3px}.buttonGroup .small-btn[data-v-5245ffd2]:first-child{margin-left:0;border-bottom-right-radius:0;border-top-right-radius:0}.virtual_boder[data-v-5245ffd2]{border:1px solid #1890ff}.virtual_boder2[data-v-5245ffd2]{border:1px solid #e7e7e7}.virtual_san[data-v-5245ffd2]{position:absolute;bottom:0;right:0;width:0;height:0;border-bottom:26px solid #1890ff;border-left:26px solid transparent}.virtual_dui[data-v-5245ffd2]{position:absolute;bottom:-2px;right:2px;color:#fff;font-family:system-ui}.virtual[data-v-5245ffd2]{width:120px;height:60px;background:#fff;border-radius:3px;float:left;text-align:center;padding-top:8px;position:relative;cursor:pointer;line-height:23px}.virtual .virtual_top[data-v-5245ffd2]{font-size:14px;font-weight:600;color:rgba(0,0,0,.85)}.virtual .virtual_bottom[data-v-5245ffd2]{font-size:12px;font-weight:400;color:#999}.virtual[data-v-5245ffd2]:nth-child(2n){margin:0 12px}.bg[data-v-db3a7be4]{z-index:100;position:fixed;left:0;top:0;width:100%;height:100%;background:rgba(0,0,0,.5)}.goods_detail .goods_detail_wrapper[data-v-db3a7be4]{z-index:-10}[data-v-db3a7be4] .upLoadPicBox .upLoad{-webkit-box-orient:vertical;-o-box-orient:vertical;-ms-flex-direction:column;flex-direction:column;line-height:20px}[data-v-db3a7be4] .upLoadPicBox span{font-size:10px}.proCoupon[data-v-db3a7be4] .el-form-item__content{margin-top:5px}.tabPic[data-v-db3a7be4]{width:40px!important;height:40px!important}.tabPic img[data-v-db3a7be4]{width:100%;height:100%}.noLeft[data-v-db3a7be4] .el-form-item__content{margin-left:0!important}.tabNumWidth[data-v-db3a7be4] .el-input-number--medium{width:100px}.tabNumWidth[data-v-db3a7be4] .el-input-number__decrease,.tabNumWidth[data-v-db3a7be4] .el-input-number__increase{width:20px!important;font-size:12px!important}.tabNumWidth[data-v-db3a7be4] .el-input-number--medium .el-input__inner{padding-left:25px!important;padding-right:25px!important}.tabNumWidth[data-v-db3a7be4] .priceBox .el-input-number__decrease,.tabNumWidth[data-v-db3a7be4] .priceBox .el-input-number__increase{display:none}.tabNumWidth[data-v-db3a7be4] .priceBox .el-input-number.is-controls-right .el-input__inner{padding:0 5px}.tabNumWidth[data-v-db3a7be4] thead{line-height:normal!important}.tabNumWidth[data-v-db3a7be4] .cell{line-height:normal!important;text-overflow:clip!important}.virtual_boder[data-v-db3a7be4]{border:1px solid #1890ff}.virtual_boder2[data-v-db3a7be4]{border:1px solid #e7e7e7}.virtual_san[data-v-db3a7be4]{position:absolute;bottom:0;right:0;width:0;height:0;border-bottom:26px solid #1890ff;border-left:26px solid transparent}.virtual_dui[data-v-db3a7be4]{position:absolute;bottom:-2px;right:2px;color:#fff;font-family:system-ui}.virtual[data-v-db3a7be4]{width:120px;height:60px;background:#fff;border-radius:3px;float:left;text-align:center;padding-top:8px;position:relative;cursor:pointer;line-height:23px}.virtual .virtual_top[data-v-db3a7be4]{font-size:14px;font-weight:600;color:rgba(0,0,0,.85)}.virtual .virtual_bottom[data-v-db3a7be4]{font-size:12px;font-weight:400;color:#999}.virtual[data-v-db3a7be4]:nth-child(2n){margin:0 12px}.addfont[data-v-db3a7be4]{display:inline-block;font-size:13px;font-weight:400;color:#1890ff;margin-left:14px;cursor:pointer}.titTip[data-v-db3a7be4]{display:inline-bolck;font-size:12px;font-weight:400;color:#999}.addCustom_content[data-v-db3a7be4]{margin-top:20px}.addCustom_content .custom_box[data-v-db3a7be4]{margin-bottom:10px}.addCustomBox[data-v-db3a7be4]{margin-top:12px;font-size:13px;font-weight:400;color:#1890ff}.addCustomBox .btn[data-v-db3a7be4]{cursor:pointer;width:-webkit-max-content;width:-moz-max-content;width:max-content}.addCustomBox .remark[data-v-db3a7be4]{display:-webkit-box;display:-ms-flexbox;display:flex;margin-top:14px}.selWidth[data-v-db3a7be4]{width:50%}.ml15[data-v-db3a7be4]{margin-left:15px}.button-new-tag[data-v-db3a7be4]{height:28px;line-height:26px;padding-top:0;padding-bottom:0}.input-new-tag[data-v-db3a7be4]{width:90px;margin-left:10px;vertical-align:bottom}.pictrue[data-v-db3a7be4]{width:60px;height:60px;border:1px dotted rgba(0,0,0,.1);margin-right:10px;position:relative;cursor:pointer}.pictrue img[data-v-db3a7be4]{width:100%;height:100%}.details_pictrue[data-v-db3a7be4]{width:120px;height:120px}.iview-video-style[data-v-db3a7be4]{width:40%;height:180px;border-radius:10px;background-color:#707070;margin-top:10px;position:relative;overflow:hidden}.iconv[data-v-db3a7be4]{color:#fff;line-height:180px;display:inherit;font-size:26px;position:absolute;top:-74px;left:50%;margin-left:-25px}.iview-video-style .mark[data-v-db3a7be4]{position:absolute;width:100%;height:30px;top:0;background-color:rgba(0,0,0,.5);text-align:center}.uploadVideo[data-v-db3a7be4]{margin-left:10px}.perW50[data-v-db3a7be4]{width:50%}.submission[data-v-db3a7be4]{margin-left:10px}.btndel[data-v-db3a7be4]{position:absolute;z-index:1;width:20px!important;height:20px!important;left:46px;top:-4px}.labeltop[data-v-db3a7be4] .el-form-item__label{float:none!important;display:inline-block!important;margin-left:120px!important;width:auto!important} \ No newline at end of file diff --git a/public/mer/css/chunk-eab0bfaa.4c97d7c3.css b/public/mer/css/chunk-68370b84.a0cf77b6.css similarity index 85% rename from public/mer/css/chunk-eab0bfaa.4c97d7c3.css rename to public/mer/css/chunk-68370b84.a0cf77b6.css index ebf4e1ee..b8d777c4 100644 --- a/public/mer/css/chunk-eab0bfaa.4c97d7c3.css +++ b/public/mer/css/chunk-68370b84.a0cf77b6.css @@ -1 +1 @@ -.title[data-v-3500ed7a]{margin-bottom:16px;color:#17233d;font-weight:500;font-size:14px}.description-term[data-v-3500ed7a]{display:table-cell;padding-bottom:10px;line-height:20px;width:50%;font-size:12px}[data-v-3cd1b9b0] .el-cascader{display:block}.dialog-scustom[data-v-3cd1b9b0]{width:1200px;height:600px}.ela-btn[data-v-3cd1b9b0]{color:#2d8cf0}.Box .ivu-radio-wrapper[data-v-3cd1b9b0]{margin-right:25px}.Box .numPut[data-v-3cd1b9b0]{width:80%!important}.lunBox[data-v-3cd1b9b0]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;border:1px solid #0bb20c}.pictrueBox[data-v-3cd1b9b0]{display:inline-block}.pictrue[data-v-3cd1b9b0]{width:50px;height:50px;border:1px dotted rgba(0,0,0,.1);display:inline-block;position:relative;cursor:pointer}.pictrue img[data-v-3cd1b9b0]{width:100%;height:100%}.pictrueTab[data-v-3cd1b9b0]{width:40px!important;height:40px!important}.upLoad[data-v-3cd1b9b0]{width:40px;height:40px;border:1px dotted rgba(0,0,0,.1);border-radius:4px;background:rgba(0,0,0,.02);cursor:pointer}.ft[data-v-3cd1b9b0]{color:red}.buttonGroup[data-v-3cd1b9b0]{position:relative;display:inline-block;vertical-align:middle;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.buttonGroup .small-btn[data-v-3cd1b9b0]{position:relative;float:left;height:24px;padding:0 7px;font-size:14px;border-radius:3px}.buttonGroup .small-btn[data-v-3cd1b9b0]:first-child{margin-left:0;border-bottom-right-radius:0;border-top-right-radius:0}.virtual_boder[data-v-3cd1b9b0]{border:1px solid #1890ff}.virtual_boder2[data-v-3cd1b9b0]{border:1px solid #e7e7e7}.virtual_san[data-v-3cd1b9b0]{position:absolute;bottom:0;right:0;width:0;height:0;border-bottom:26px solid #1890ff;border-left:26px solid transparent}.virtual_dui[data-v-3cd1b9b0]{position:absolute;bottom:-2px;right:2px;color:#fff;font-family:system-ui}.virtual[data-v-3cd1b9b0]{width:120px;height:60px;background:#fff;border-radius:3px;float:left;text-align:center;padding-top:8px;position:relative;cursor:pointer;line-height:23px}.virtual .virtual_top[data-v-3cd1b9b0]{font-size:14px;font-weight:600;color:rgba(0,0,0,.85)}.virtual .virtual_bottom[data-v-3cd1b9b0]{font-size:12px;font-weight:400;color:#999}.virtual[data-v-3cd1b9b0]:nth-child(2n){margin:0 12px}[data-v-7d87bc0d] .el-cascader{display:block}.ela-btn[data-v-7d87bc0d]{color:#2d8cf0}.priceBox[data-v-7d87bc0d]{width:80px}.pictrue[data-v-7d87bc0d]{width:50px;height:50px;border:1px dotted rgba(0,0,0,.1);display:inline-block;position:relative;cursor:pointer}.pictrue img[data-v-7d87bc0d]{width:100%;height:100%}[data-v-7d87bc0d] .el-input-number__decrease,[data-v-7d87bc0d] .el-input-number__increase{display:none}[data-v-7d87bc0d] .el-input-number.is-controls-right .el-input__inner,[data-v-7d87bc0d] .el-input__inner{padding:0 5px}.pictrueTab[data-v-7d87bc0d]{width:40px!important;height:40px!important}.upLoad[data-v-7d87bc0d]{width:40px;height:40px;border:1px dotted rgba(0,0,0,.1);border-radius:4px;background:rgba(0,0,0,.02);cursor:pointer}.bg[data-v-82d6320e]{z-index:100;position:fixed;left:0;top:0;width:100%;height:100%;background:rgba(0,0,0,.5)}.goods_detail .goods_detail_wrapper[data-v-82d6320e]{z-index:-10}[data-v-82d6320e] table.el-input__inner{padding:0}.demo-table-expand[data-v-82d6320e]{font-size:0}.demo-table-expand1[data-v-82d6320e] label{width:77px!important;color:#99a9bf}.demo-table-expand .el-form-item[data-v-82d6320e]{margin-right:0;margin-bottom:0;width:33.33%}.selWidth[data-v-82d6320e]{width:350px!important}.seachTiele[data-v-82d6320e]{line-height:35px} \ No newline at end of file +.title[data-v-3500ed7a]{margin-bottom:16px;color:#17233d;font-weight:500;font-size:14px}.description-term[data-v-3500ed7a]{display:table-cell;padding-bottom:10px;line-height:20px;width:50%;font-size:12px}[data-v-3cd1b9b0] .el-cascader{display:block}.dialog-scustom[data-v-3cd1b9b0]{width:1200px;height:600px}.ela-btn[data-v-3cd1b9b0]{color:#2d8cf0}.Box .ivu-radio-wrapper[data-v-3cd1b9b0]{margin-right:25px}.Box .numPut[data-v-3cd1b9b0]{width:80%!important}.lunBox[data-v-3cd1b9b0]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;border:1px solid #0bb20c}.pictrueBox[data-v-3cd1b9b0]{display:inline-block}.pictrue[data-v-3cd1b9b0]{width:50px;height:50px;border:1px dotted rgba(0,0,0,.1);display:inline-block;position:relative;cursor:pointer}.pictrue img[data-v-3cd1b9b0]{width:100%;height:100%}.pictrueTab[data-v-3cd1b9b0]{width:40px!important;height:40px!important}.upLoad[data-v-3cd1b9b0]{width:40px;height:40px;border:1px dotted rgba(0,0,0,.1);border-radius:4px;background:rgba(0,0,0,.02);cursor:pointer}.ft[data-v-3cd1b9b0]{color:red}.buttonGroup[data-v-3cd1b9b0]{position:relative;display:inline-block;vertical-align:middle;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.buttonGroup .small-btn[data-v-3cd1b9b0]{position:relative;float:left;height:24px;padding:0 7px;font-size:14px;border-radius:3px}.buttonGroup .small-btn[data-v-3cd1b9b0]:first-child{margin-left:0;border-bottom-right-radius:0;border-top-right-radius:0}.virtual_boder[data-v-3cd1b9b0]{border:1px solid #1890ff}.virtual_boder2[data-v-3cd1b9b0]{border:1px solid #e7e7e7}.virtual_san[data-v-3cd1b9b0]{position:absolute;bottom:0;right:0;width:0;height:0;border-bottom:26px solid #1890ff;border-left:26px solid transparent}.virtual_dui[data-v-3cd1b9b0]{position:absolute;bottom:-2px;right:2px;color:#fff;font-family:system-ui}.virtual[data-v-3cd1b9b0]{width:120px;height:60px;background:#fff;border-radius:3px;float:left;text-align:center;padding-top:8px;position:relative;cursor:pointer;line-height:23px}.virtual .virtual_top[data-v-3cd1b9b0]{font-size:14px;font-weight:600;color:rgba(0,0,0,.85)}.virtual .virtual_bottom[data-v-3cd1b9b0]{font-size:12px;font-weight:400;color:#999}.virtual[data-v-3cd1b9b0]:nth-child(2n){margin:0 12px}[data-v-7d87bc0d] .el-cascader{display:block}.ela-btn[data-v-7d87bc0d]{color:#2d8cf0}.priceBox[data-v-7d87bc0d]{width:80px}.pictrue[data-v-7d87bc0d]{width:50px;height:50px;border:1px dotted rgba(0,0,0,.1);display:inline-block;position:relative;cursor:pointer}.pictrue img[data-v-7d87bc0d]{width:100%;height:100%}[data-v-7d87bc0d] .el-input-number__decrease,[data-v-7d87bc0d] .el-input-number__increase{display:none}[data-v-7d87bc0d] .el-input-number.is-controls-right .el-input__inner,[data-v-7d87bc0d] .el-input__inner{padding:0 5px}.pictrueTab[data-v-7d87bc0d]{width:40px!important;height:40px!important}.upLoad[data-v-7d87bc0d]{width:40px;height:40px;border:1px dotted rgba(0,0,0,.1);border-radius:4px;background:rgba(0,0,0,.02);cursor:pointer}.bg[data-v-6c0d84ec]{z-index:100;position:fixed;left:0;top:0;width:100%;height:100%;background:rgba(0,0,0,.5)}.goods_detail .goods_detail_wrapper[data-v-6c0d84ec]{z-index:-10}[data-v-6c0d84ec] table.el-input__inner{padding:0}.demo-table-expand[data-v-6c0d84ec]{font-size:0}.demo-table-expand1[data-v-6c0d84ec] label{width:77px!important;color:#99a9bf}.demo-table-expand .el-form-item[data-v-6c0d84ec]{margin-right:0;margin-bottom:0;width:33.33%}.selWidth[data-v-6c0d84ec]{width:350px!important}.seachTiele[data-v-6c0d84ec]{line-height:35px} \ No newline at end of file diff --git a/public/mer/css/chunk-b62bf9da.fc476d73.css b/public/mer/css/chunk-b62bf9da.fc476d73.css new file mode 100644 index 00000000..91bf7037 --- /dev/null +++ b/public/mer/css/chunk-b62bf9da.fc476d73.css @@ -0,0 +1 @@ +.selWidth[data-v-2b71738f]{width:360px!important}.seachTiele[data-v-2b71738f]{line-height:35px}.fr[data-v-2b71738f]{float:right}.bg[data-v-38890f86]{z-index:100;position:fixed;left:0;top:0;width:100%;height:100%;background:rgba(0,0,0,.5)}.goods_detail .goods_detail_wrapper[data-v-38890f86]{z-index:-10}[data-v-38890f86] table.el-input__inner{padding:0}.demo-table-expand[data-v-38890f86]{font-size:0}.demo-table-expand1[data-v-38890f86] label{width:77px!important;color:#99a9bf}.demo-table-expand .el-form-item[data-v-38890f86]{margin-right:0;margin-bottom:0;width:33.33%}.selWidth[data-v-38890f86]{width:350px!important}.seachTiele[data-v-38890f86]{line-height:35px} \ No newline at end of file diff --git a/public/mer/js/app.71c60b28.js b/public/mer/js/app.0f2cc2f5.js similarity index 71% rename from public/mer/js/app.71c60b28.js rename to public/mer/js/app.0f2cc2f5.js index a92a95a5..3115939f 100644 --- a/public/mer/js/app.71c60b28.js +++ b/public/mer/js/app.0f2cc2f5.js @@ -1 +1 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["app"],{0:function(t,e,n){t.exports=n("56d7")},"0781":function(t,e,n){"use strict";n.r(e);n("24ab");var i=n("83d6"),a=n.n(i),r=a.a.showSettings,o=a.a.tagsView,c=a.a.fixedHeader,s=a.a.sidebarLogo,u={theme:JSON.parse(localStorage.getItem("themeColor"))?JSON.parse(localStorage.getItem("themeColor")):"#1890ff",showSettings:r,tagsView:o,fixedHeader:c,sidebarLogo:s,isEdit:!1},l={CHANGE_SETTING:function(t,e){var n=e.key,i=e.value;t.hasOwnProperty(n)&&(t[n]=i)},SET_ISEDIT:function(t,e){t.isEdit=e}},d={changeSetting:function(t,e){var n=t.commit;n("CHANGE_SETTING",e)},setEdit:function(t,e){var n=t.commit;n("SET_ISEDIT",e)}};e["default"]={namespaced:!0,state:u,mutations:l,actions:d}},"096e":function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-skill",use:"icon-skill-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},"0a4d":function(t,e,n){"use strict";n("ddd5")},"0c6d":function(t,e,n){"use strict";n("ac6a");var i=n("bc3a"),a=n.n(i),r=n("4360"),o=n("bbcc"),c=a.a.create({baseURL:o["a"].https,timeout:6e4}),s={login:!0};function u(t){var e=r["a"].getters.token,n=t.headers||{};return e&&(n["X-Token"]=e,t.headers=n),new Promise((function(e,n){c(t).then((function(t){var i=t.data||{};return 200!==t.status?n({message:"请求失败",res:t,data:i}):-1===[41e4,410001,410002,4e4].indexOf(i.status)?200===i.status?e(i,t):n({message:i.message,res:t,data:i}):void r["a"].dispatch("user/resetToken").then((function(){location.reload()}))})).catch((function(t){return n({message:t})}))}))}var l=["post","put","patch","delete"].reduce((function(t,e){return t[e]=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return u(Object.assign({url:t,data:n,method:e},s,i))},t}),{});["get","head"].forEach((function(t){l[t]=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return u(Object.assign({url:e,params:n,method:t},s,i))}})),e["a"]=l},"0f9a":function(t,e,n){"use strict";n.r(e);var i=n("c7eb"),a=(n("96cf"),n("1da1")),r=(n("7f7f"),n("c24f")),o=n("5f87"),c=n("a18c"),s=n("a78e"),u=n.n(s),l={token:Object(o["a"])(),name:"",avatar:"",introduction:"",roles:[],menuList:JSON.parse(localStorage.getItem("MenuList")),sidebarWidth:window.localStorage.getItem("sidebarWidth"),sidebarStyle:window.localStorage.getItem("sidebarStyle"),merchantType:JSON.parse(window.localStorage.getItem("merchantType")||"{}")},d={SET_MENU_LIST:function(t,e){t.menuList=e},SET_TOKEN:function(t,e){t.token=e},SET_INTRODUCTION:function(t,e){t.introduction=e},SET_NAME:function(t,e){t.name=e},SET_AVATAR:function(t,e){t.avatar=e},SET_ROLES:function(t,e){t.roles=e},SET_SIDEBAR_WIDTH:function(t,e){t.sidebarWidth=e},SET_SIDEBAR_STYLE:function(t,e){t.sidebarStyle=e,window.localStorage.setItem("sidebarStyle",e)},SET_MERCHANT_TYPE:function(t,e){t.merchantType=e,window.localStorage.setItem("merchantType",JSON.stringify(e))}},h={login:function(t,e){var n=t.commit;return new Promise((function(t,i){Object(r["q"])(e).then((function(e){var i=e.data;n("SET_TOKEN",i.token),u.a.set("MerName",i.admin.account),Object(o["c"])(i.token),t(i)})).catch((function(t){i(t)}))}))},getMenus:function(t){var e=this,n=t.commit;return new Promise((function(t,i){Object(r["k"])().then((function(e){n("SET_MENU_LIST",e.data),localStorage.setItem("MenuList",JSON.stringify(e.data)),t(e)})).catch((function(t){e.$message.error(t.message),i(t)}))}))},getInfo:function(t){var e=t.commit,n=t.state;return new Promise((function(t,i){Object(r["j"])(n.token).then((function(n){var a=n.data;a||i("Verification failed, please Login again.");var r=a.roles,o=a.name,c=a.avatar,s=a.introduction;(!r||r.length<=0)&&i("getInfo: roles must be a non-null array!"),e("SET_ROLES",r),e("SET_NAME",o),e("SET_AVATAR",c),e("SET_INTRODUCTION",s),t(a)})).catch((function(t){i(t)}))}))},logout:function(t){var e=t.commit,n=t.state,i=t.dispatch;return new Promise((function(t,a){Object(r["s"])(n.token).then((function(){e("SET_TOKEN",""),e("SET_ROLES",[]),Object(o["b"])(),Object(c["d"])(),u.a.remove(),i("tagsView/delAllViews",null,{root:!0}),t()})).catch((function(t){a(t)}))}))},resetToken:function(t){var e=t.commit;return new Promise((function(t){e("SET_TOKEN",""),e("SET_ROLES",[]),Object(o["b"])(),t()}))},changeRoles:function(t,e){var n=t.commit,r=t.dispatch;return new Promise(function(){var t=Object(a["a"])(Object(i["a"])().mark((function t(a){var s,u,l,d;return Object(i["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return s=e+"-token",n("SET_TOKEN",s),Object(o["c"])(s),t.next=5,r("getInfo");case 5:return u=t.sent,l=u.roles,Object(c["d"])(),t.next=10,r("permission/generateRoutes",l,{root:!0});case 10:d=t.sent,c["c"].addRoutes(d),r("tagsView/delAllViews",null,{root:!0}),a();case 14:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())}};e["default"]={namespaced:!0,state:l,mutations:d,actions:h}},1:function(t,e){},"12a5":function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-shopping",use:"icon-shopping-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},1430:function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-qq",use:"icon-qq-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},"15ae":function(t,e,n){"use strict";n("7680")},1779:function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-bug",use:"icon-bug-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},"17df":function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-international",use:"icon-international-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},"18f0":function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-link",use:"icon-link-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},"1e38":function(t,e,n){"use strict";n("c6b6")},"225f":function(t,e,n){"use strict";n("3ddf")},"24ab":function(t,e,n){t.exports={theme:"#1890ff"}},2580:function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-language",use:"icon-language-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},2801:function(t,e,n){"use strict";n.d(e,"m",(function(){return a})),n.d(e,"q",(function(){return r})),n.d(e,"o",(function(){return o})),n.d(e,"p",(function(){return c})),n.d(e,"n",(function(){return s})),n.d(e,"c",(function(){return u})),n.d(e,"b",(function(){return l})),n.d(e,"u",(function(){return d})),n.d(e,"j",(function(){return h})),n.d(e,"k",(function(){return m})),n.d(e,"a",(function(){return f})),n.d(e,"s",(function(){return p})),n.d(e,"r",(function(){return g})),n.d(e,"t",(function(){return b})),n.d(e,"h",(function(){return v})),n.d(e,"g",(function(){return A})),n.d(e,"f",(function(){return w})),n.d(e,"e",(function(){return y})),n.d(e,"i",(function(){return k})),n.d(e,"d",(function(){return C}));var i=n("0c6d");function a(t){return i["a"].get("store/order/reconciliation/lst",t)}function r(t,e){return i["a"].post("store/order/reconciliation/status/".concat(t),e)}function o(t,e){return i["a"].get("store/order/reconciliation/".concat(t,"/order"),e)}function c(t,e){return i["a"].get("store/order/reconciliation/".concat(t,"/refund"),e)}function s(t){return i["a"].get("store/order/reconciliation/mark/".concat(t,"/form"))}function u(t){return i["a"].get("financial_record/list",t)}function l(t){return i["a"].get("financial_record/export",t)}function d(t){return i["a"].get("financial/export",t)}function h(){return i["a"].get("version")}function m(){return i["a"].get("financial/account/form")}function f(){return i["a"].get("financial/create/form")}function p(t){return i["a"].get("financial/lst",t)}function g(t){return i["a"].get("financial/detail/".concat(t))}function b(t){return i["a"].get("financial/mark/".concat(t,"/form"))}function v(t){return i["a"].get("financial_record/lst",t)}function A(t,e){return i["a"].get("financial_record/detail/".concat(t),e)}function w(t){return i["a"].get("financial_record/title",t)}function y(t,e){return i["a"].get("financial_record/detail_export/".concat(t),e)}function k(t){return i["a"].get("financial_record/count",t)}function C(t){return i["a"].get("/bill/deposit",t)}},"29c0":function(t,e,n){},"2a3d":function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-password",use:"icon-password-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},"2f11":function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-peoples",use:"icon-peoples-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},3046:function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-money",use:"icon-money-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},3087:function(t,e,n){"use strict";n.r(e);n("ac6a"),n("456d"),n("7f7f");e["default"]={namespaced:!0,state:{configName:"",pageTitle:"",pageName:"",pageShow:1,pageColor:0,pagePic:0,pageColorPicker:"#f5f5f5",pageTabVal:0,pagePicUrl:"",defaultArray:{},pageFooter:{name:"pageFoot",setUp:{tabVal:"0"},status:{title:"是否自定义",name:"status",status:!1},txtColor:{title:"文字颜色",name:"txtColor",default:[{item:"#282828"}],color:[{item:"#282828"}]},activeTxtColor:{title:"选中文字颜色",name:"txtColor",default:[{item:"#F62C2C"}],color:[{item:"#F62C2C"}]},bgColor:{title:"背景颜色",name:"bgColor",default:[{item:"#fff"}],color:[{item:"#fff"}]},menuList:[{imgList:[n("5946"),n("641c")],name:"首页",link:"/pages/index/index"},{imgList:[n("410e"),n("5640")],name:"分类",link:"/pages/goods_cate/goods_cate"},{imgList:[n("e03b"),n("905e")],name:"逛逛",link:"/pages/plant_grass/index"},{imgList:[n("af8c"),n("73fc")],name:"购物车",link:"/pages/order_addcart/order_addcart"},{imgList:[n("3dde"),n("8ea6")],name:"我的",link:"/pages/user/index"}]}},mutations:{FOOTER:function(t,e){t.pageFooter.status.title=e.title,t.pageFooter.menuList[2]=e.name},ADDARRAY:function(t,e){e.val.id="id"+e.val.timestamp,t.defaultArray[e.num]=e.val},DELETEARRAY:function(t,e){delete t.defaultArray[e.num]},ARRAYREAST:function(t,e){delete t.defaultArray[e]},defaultArraySort:function(t,e){var n=r(t.defaultArray),i=[],a={};function r(t){var e=Object.keys(t),n=e.map((function(e){return t[e]}));return n}function o(t,n,i){return t.forEach((function(t,n){t.id||(t.id="id"+t.timestamp),e.list.forEach((function(e,n){t.id==e.id&&(t.timestamp=e.num)}))})),t}void 0!=e.oldIndex?i=JSON.parse(JSON.stringify(o(n,e.newIndex,e.oldIndex))):(n.splice(e.newIndex,0,e.element.data().defaultConfig),i=JSON.parse(JSON.stringify(o(n,0,0))));for(var c=0;c'});o.a.add(c);e["default"]=c},"31c2":function(t,e,n){"use strict";n.r(e),n.d(e,"filterAsyncRoutes",(function(){return o}));var i=n("5530"),a=(n("ac6a"),n("6762"),n("2fdb"),n("a18c"));function r(t,e){return!e.meta||!e.meta.roles||t.some((function(t){return e.meta.roles.includes(t)}))}function o(t,e){var n=[];return t.forEach((function(t){var a=Object(i["a"])({},t);r(e,a)&&(a.children&&(a.children=o(a.children,e)),n.push(a))})),n}var c={routes:[],addRoutes:[]},s={SET_ROUTES:function(t,e){t.addRoutes=e,t.routes=a["b"].concat(e)}},u={generateRoutes:function(t,e){var n=t.commit;return new Promise((function(t){var i;i=e.includes("admin2")?a["asyncRoutes"]||[]:o(a["asyncRoutes"],e),n("SET_ROUTES",i),t(i)}))}};e["default"]={namespaced:!0,state:c,mutations:s,actions:u}},3289:function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-list",use:"icon-list-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},"3acf":function(t,e,n){"use strict";n("d3ae")},"3dde":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFEAAABRCAYAAACqj0o2AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA25pVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDo2OWRlYjViMi04ZTEzLWNmNDgtODFlNi0yNzk5OTk1OWFjZjgiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6REFEQTg5MUU0MzlFMTFFOThDMzZDQjMzNTFCMDc3NUEiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6REFEQTg5MUQ0MzlFMTFFOThDMzZDQjMzNTFCMDc3NUEiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKFdpbmRvd3MpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MkQxNzQyQjZFRjA2MTFFODhBREFDNDFBMUJFNDQxREIiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6MkQxNzQyQjdFRjA2MTFFODhBREFDNDFBMUJFNDQxREIiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz4dXT0nAAAECElEQVR42uycW0gVURSG5+ixTIlCshN0e8iiC0LRMSUwiiKKQOlGQQXSSwQR0YUo6jV8KYkKeiiKsvAliCLCohQiwlS6oJWUlaWVngq6oVhp/2K2ICF0zD17z6xZC362D+fsOfubmb0us8ZIb2+vIzY0SxEEAlEgCkQxgSgQBaJAFBvAosl8KBKJGP9h7XOn0AmOQcOhTqgjVt9sPDNIJhmJJPUhAxABjQ6yEFoJLYBm/XWSf0FN0F3oKlQJqD8FogsvFcMmaD80dRBffQcdhY4BZmdoIQLgTAxnobwhTNMClQBktS2I1hwLAK7FUDtEgGSToduYb2+ovDMWvBlDBZShaUq6VUoxb6mN9Ri/nbHQFRiueHgCd+PWPsx2TwTAiRgeQ6M9vDB+Q4UAeY/rnnjcY4Bk5O1P4YRFTS3KGEQsqhBDkaHDkdffyNGx7DJ81e9h5VhwFWZhSFjYPuLYG+u57InLLIVTyzndzvmW4uB5nCBOswRxOieIMUsQszhBtJWjRzkt7qMliN85QWyzBPENJ4iPLEFs5ASxyhLEKjYQkTU8wPDKMMAu6Bo3r3nSMMQKnLwvHCEmDB2LaorGqtzGIOKq+Iphn6HDleF4TewgKpCnMVw2EAkcNLkuG5kEPWN+6GE8WoyT1cUaIhZIWcQSqEbz1K+hRZi/xfSarOS0WOgnWjB0RtOUN6F8zPvcxnr80EZCBdsj0Iz/+Pp76ACdDK+anQLT0KQ6wIqhEmgplP6P8OUOdA66AHjdXv62QHWF9QNKAOOOW1Ad77hdEp0qxqSwpQbgvpn6PYGE6DfzdUMTJxOIAtEfFvXTj4FTGYNhEpQN0d9p0CiIHAm1G9NjBoox31J4Y6OH2zeOBbAITJ7ywrmO25+dA2UOYhoKbV5CDY5bwa6DagG2naV3BrRMlepRlrJYQfPK5TdD1dAtx22O/xxYiAA3EsNqaI0Cl27hTutRgfklxy3SJgIBEfCoZWQbtMrR106sw2hPvQ6dgG4ku58ahajaiCmPLQiAQ33quJXvcsDssQ4R8KhpqAyaH8Do5Am0EyArrUAEvBEYDkHbGcSb56EdAzkhzyACIL07QmX+2YxiZgqXqCre4DlEAMxV4UM2w+SDqu5FAFnlGUT1CsV9aBzjLI6eVRcA5DPtVRz1Fmg5c4COSjMvqhc3tRcg+l6hDYPNgTZ4AXFryIozW7QWIDriOVTt+QENCxFEepaTMbbuRbeuKzEWMoBkqcnu/8lCTHPCaSk6IYoJRIEoEAWimED0G8Sw/uPZHp0QW6EPIQNIbXtt2iDG6pspBVoXIpC0zvVq3Xpy5371REqFJjjePTP2gxGQ1j6A2oqyYuKdBaJAFIhiAlEgCkSBKDZ4+yPAAP/CgFUoJ7ivAAAAAElFTkSuQmCC"},"3ddf":function(t,e,n){},"410e":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFEAAABRCAYAAACqj0o2AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA25pVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDo2OWRlYjViMi04ZTEzLWNmNDgtODFlNi0yNzk5OTk1OWFjZjgiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MDA1MjZDM0I0MzlGMTFFOTkxMTdCN0ZFMDQzOTIyMkEiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MDA1MjZDM0E0MzlGMTFFOTkxMTdCN0ZFMDQzOTIyMkEiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKFdpbmRvd3MpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MkQxNzQyQjZFRjA2MTFFODhBREFDNDFBMUJFNDQxREIiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6MkQxNzQyQjdFRjA2MTFFODhBREFDNDFBMUJFNDQxREIiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz6rO72jAAABsUlEQVR42uzcsU4CQRDG8TtFGhLtKIydJJQ0VD4CRisfQe2oLCyECiwoqHwJ38PEiobGChMri+skoVHIOZtoQi4k7nqZUbj/l0yIEy93/nBng5zEaZpGJF+2IAARRBAJiCCCCCIBEUQQNzmlkG9OmrUjebiRqihe01SqKzXO9BtSPaldxXPPpG6ro8mjGqLkSqpl8OQmUueZXlvqxOiX61hzOW//4QopGZ07eJUxE9lY1nBj+Ydxs+spx/EHUg9FR3yVemE5MxMJiCCCCCIBEUQQQSQggggiiOTnrPufwuo5j98HMYruWc7MRPJbxA+j63r37Glkqj0T+1JvyrPUYQ1W9L97ZcVzz6XuQg+KQ/4FI2nWCrE8q6MJM5GNBUResfjE3d7WNtpYnjP9Q6lro41lrInYkTozeoIvM187wAuLfUXqVHM57xgBlj17Ggm+iZSZyMYCIogERBBBBJGACCKIIBIQQQQRRAIiiCCCSEAEsSiIC6Prmnv2NDILPSD0zfvh16PmR7u4eyBX3d7menuR7nvfi6Wf0Tsxn27MTAQRRAIiiCCCSEAEEcRNzqcAAwAGvzdJXw0gUgAAAABJRU5ErkJggg=="},"432f":function(t,e,n){},4360:function(t,e,n){"use strict";n("a481"),n("ac6a");var i=n("2b0e"),a=n("2f62"),r=(n("7f7f"),{sidebar:function(t){return t.app.sidebar},size:function(t){return t.app.size},device:function(t){return t.app.device},visitedViews:function(t){return t.tagsView.visitedViews},isEdit:function(t){return t.settings.isEdit},cachedViews:function(t){return t.tagsView.cachedViews},token:function(t){return t.user.token},avatar:function(t){return t.user.avatar},name:function(t){return t.user.name},introduction:function(t){return t.user.introduction},roles:function(t){return t.user.roles},permission_routes:function(t){return t.permission.routes},errorLogs:function(t){return t.errorLog.logs},menuList:function(t){return t.user.menuList}}),o=r,c=n("bfa9");i["default"].use(a["a"]);var s=n("c653"),u=s.keys().reduce((function(t,e){var n=e.replace(/^\.\/(.*)\.\w+$/,"$1"),i=s(e);return t[n]=i.default,t}),{}),l=(new c["a"]({storage:window.localStorage}),new a["a"].Store({modules:u,getters:o}));e["a"]=l},4678:function(t,e,n){var i={"./af":"2bfb","./af.js":"2bfb","./ar":"8e73","./ar-dz":"a356","./ar-dz.js":"a356","./ar-kw":"423e","./ar-kw.js":"423e","./ar-ly":"1cfd","./ar-ly.js":"1cfd","./ar-ma":"0a84","./ar-ma.js":"0a84","./ar-sa":"8230","./ar-sa.js":"8230","./ar-tn":"6d83","./ar-tn.js":"6d83","./ar.js":"8e73","./az":"485c","./az.js":"485c","./be":"1fc1","./be.js":"1fc1","./bg":"84aa","./bg.js":"84aa","./bm":"a7fa","./bm.js":"a7fa","./bn":"9043","./bn-bd":"9686","./bn-bd.js":"9686","./bn.js":"9043","./bo":"d26a","./bo.js":"d26a","./br":"6887","./br.js":"6887","./bs":"2554","./bs.js":"2554","./ca":"d716","./ca.js":"d716","./cs":"3c0d","./cs.js":"3c0d","./cv":"03ec","./cv.js":"03ec","./cy":"9797","./cy.js":"9797","./da":"0f14","./da.js":"0f14","./de":"b469","./de-at":"b3eb","./de-at.js":"b3eb","./de-ch":"bb71","./de-ch.js":"bb71","./de.js":"b469","./dv":"598a","./dv.js":"598a","./el":"8d47","./el.js":"8d47","./en-au":"0e6b","./en-au.js":"0e6b","./en-ca":"3886","./en-ca.js":"3886","./en-gb":"39a6","./en-gb.js":"39a6","./en-ie":"e1d3","./en-ie.js":"e1d3","./en-il":"7333","./en-il.js":"7333","./en-in":"ec2e","./en-in.js":"ec2e","./en-nz":"6f50","./en-nz.js":"6f50","./en-sg":"b7e9","./en-sg.js":"b7e9","./eo":"65db","./eo.js":"65db","./es":"898b","./es-do":"0a3c","./es-do.js":"0a3c","./es-mx":"b5b7","./es-mx.js":"b5b7","./es-us":"55c9","./es-us.js":"55c9","./es.js":"898b","./et":"ec18","./et.js":"ec18","./eu":"0ff2","./eu.js":"0ff2","./fa":"8df4","./fa.js":"8df4","./fi":"81e9","./fi.js":"81e9","./fil":"d69a","./fil.js":"d69a","./fo":"0721","./fo.js":"0721","./fr":"9f26","./fr-ca":"d9f8","./fr-ca.js":"d9f8","./fr-ch":"0e49","./fr-ch.js":"0e49","./fr.js":"9f26","./fy":"7118","./fy.js":"7118","./ga":"5120","./ga.js":"5120","./gd":"f6b4","./gd.js":"f6b4","./gl":"8840","./gl.js":"8840","./gom-deva":"aaf2","./gom-deva.js":"aaf2","./gom-latn":"0caa","./gom-latn.js":"0caa","./gu":"e0c5","./gu.js":"e0c5","./he":"c7aa","./he.js":"c7aa","./hi":"dc4d","./hi.js":"dc4d","./hr":"4ba9","./hr.js":"4ba9","./hu":"5b14","./hu.js":"5b14","./hy-am":"d6b6","./hy-am.js":"d6b6","./id":"5038","./id.js":"5038","./is":"0558","./is.js":"0558","./it":"6e98","./it-ch":"6f12","./it-ch.js":"6f12","./it.js":"6e98","./ja":"079e","./ja.js":"079e","./jv":"b540","./jv.js":"b540","./ka":"201b","./ka.js":"201b","./kk":"6d79","./kk.js":"6d79","./km":"e81d","./km.js":"e81d","./kn":"3e92","./kn.js":"3e92","./ko":"22f8","./ko.js":"22f8","./ku":"2421","./ku.js":"2421","./ky":"9609","./ky.js":"9609","./lb":"440c","./lb.js":"440c","./lo":"b29d","./lo.js":"b29d","./lt":"26f9","./lt.js":"26f9","./lv":"b97c","./lv.js":"b97c","./me":"293c","./me.js":"293c","./mi":"688b","./mi.js":"688b","./mk":"6909","./mk.js":"6909","./ml":"02fb","./ml.js":"02fb","./mn":"958b","./mn.js":"958b","./mr":"39bd","./mr.js":"39bd","./ms":"ebe4","./ms-my":"6403","./ms-my.js":"6403","./ms.js":"ebe4","./mt":"1b45","./mt.js":"1b45","./my":"8689","./my.js":"8689","./nb":"6ce3","./nb.js":"6ce3","./ne":"3a39","./ne.js":"3a39","./nl":"facd","./nl-be":"db29","./nl-be.js":"db29","./nl.js":"facd","./nn":"b84c","./nn.js":"b84c","./oc-lnc":"167b","./oc-lnc.js":"167b","./pa-in":"f3ff","./pa-in.js":"f3ff","./pl":"8d57","./pl.js":"8d57","./pt":"f260","./pt-br":"d2d4","./pt-br.js":"d2d4","./pt.js":"f260","./ro":"972c","./ro.js":"972c","./ru":"957c","./ru.js":"957c","./sd":"6784","./sd.js":"6784","./se":"ffff","./se.js":"ffff","./si":"eda5","./si.js":"eda5","./sk":"7be6","./sk.js":"7be6","./sl":"8155","./sl.js":"8155","./sq":"c8f3","./sq.js":"c8f3","./sr":"cf1e","./sr-cyrl":"13e9","./sr-cyrl.js":"13e9","./sr.js":"cf1e","./ss":"52bd","./ss.js":"52bd","./sv":"5fbd","./sv.js":"5fbd","./sw":"74dc","./sw.js":"74dc","./ta":"3de5","./ta.js":"3de5","./te":"5cbb","./te.js":"5cbb","./tet":"576c","./tet.js":"576c","./tg":"3b1b","./tg.js":"3b1b","./th":"10e8","./th.js":"10e8","./tk":"5aff","./tk.js":"5aff","./tl-ph":"0f38","./tl-ph.js":"0f38","./tlh":"cf75","./tlh.js":"cf75","./tr":"0e81","./tr.js":"0e81","./tzl":"cf51","./tzl.js":"cf51","./tzm":"c109","./tzm-latn":"b53d","./tzm-latn.js":"b53d","./tzm.js":"c109","./ug-cn":"6117","./ug-cn.js":"6117","./uk":"ada2","./uk.js":"ada2","./ur":"5294","./ur.js":"5294","./uz":"2e8c","./uz-latn":"010e","./uz-latn.js":"010e","./uz.js":"2e8c","./vi":"2921","./vi.js":"2921","./x-pseudo":"fd7e","./x-pseudo.js":"fd7e","./yo":"7f33","./yo.js":"7f33","./zh-cn":"5c3a","./zh-cn.js":"5c3a","./zh-hk":"49ab","./zh-hk.js":"49ab","./zh-mo":"3a6c","./zh-mo.js":"3a6c","./zh-tw":"90ea","./zh-tw.js":"90ea"};function a(t){var e=r(t);return n(e)}function r(t){var e=i[t];if(!(e+1)){var n=new Error("Cannot find module '"+t+"'");throw n.code="MODULE_NOT_FOUND",n}return e}a.keys=function(){return Object.keys(i)},a.resolve=r,t.exports=a,a.id="4678"},"47f1":function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-table",use:"icon-table-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},"47ff":function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-message",use:"icon-message-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},"4b27":function(t,e,n){"use strict";n("5445")},"4d49":function(t,e,n){"use strict";n.r(e);var i={logs:[]},a={ADD_ERROR_LOG:function(t,e){t.logs.push(e)},CLEAR_ERROR_LOG:function(t){t.logs.splice(0)}},r={addErrorLog:function(t,e){var n=t.commit;n("ADD_ERROR_LOG",e)},clearErrorLog:function(t){var e=t.commit;e("CLEAR_ERROR_LOG")}};e["default"]={namespaced:!0,state:i,mutations:a,actions:r}},"4d7e":function(t,e,n){"use strict";n("de9d")},"4df5":function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-eye",use:"icon-eye-usage",viewBox:"0 0 128 64",content:''});o.a.add(c);e["default"]=c},"4fb4":function(t,e,n){t.exports=n.p+"mer/img/no.7de91001.png"},"50da":function(t,e,n){},"51ff":function(t,e,n){var i={"./404.svg":"a14a","./bug.svg":"1779","./chart.svg":"c829","./clipboard.svg":"bc35","./component.svg":"56d6","./dashboard.svg":"f782","./documentation.svg":"90fb","./drag.svg":"9bbf","./edit.svg":"aa46","./education.svg":"ad1c","./email.svg":"cbb7","./example.svg":"30c3","./excel.svg":"6599","./exit-fullscreen.svg":"dbc7","./eye-open.svg":"d7ec","./eye.svg":"4df5","./form.svg":"eb1b","./fullscreen.svg":"9921","./guide.svg":"6683","./icon.svg":"9d91","./international.svg":"17df","./language.svg":"2580","./link.svg":"18f0","./list.svg":"3289","./lock.svg":"ab00","./message.svg":"47ff","./money.svg":"3046","./nested.svg":"dcf8","./password.svg":"2a3d","./pdf.svg":"f9a1","./people.svg":"d056","./peoples.svg":"2f11","./qq.svg":"1430","./search.svg":"8e8d","./shopping.svg":"12a5","./size.svg":"8644","./skill.svg":"096e","./star.svg":"708a","./tab.svg":"8fb7","./table.svg":"47f1","./theme.svg":"e534","./tree-table.svg":"e7c8","./tree.svg":"93cd","./user.svg":"b3b5","./wechat.svg":"80da","./zip.svg":"8aa6"};function a(t){var e=r(t);return n(e)}function r(t){var e=i[t];if(!(e+1)){var n=new Error("Cannot find module '"+t+"'");throw n.code="MODULE_NOT_FOUND",n}return e}a.keys=function(){return Object.keys(i)},a.resolve=r,t.exports=a,a.id="51ff"},5445:function(t,e,n){},"55d1":function(t,e,n){"use strict";n("bd3e")},5640:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFEAAABRCAYAAACqj0o2AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA25pVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDo2OWRlYjViMi04ZTEzLWNmNDgtODFlNi0yNzk5OTk1OWFjZjgiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6QkExQUM1Q0Y0MzlFMTFFOUFFN0FFMjQzRUM3RTIxODkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6QkExQUM1Q0U0MzlFMTFFOUFFN0FFMjQzRUM3RTIxODkiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKFdpbmRvd3MpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MkQxNzQyQjZFRjA2MTFFODhBREFDNDFBMUJFNDQxREIiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6MkQxNzQyQjdFRjA2MTFFODhBREFDNDFBMUJFNDQxREIiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz5UuLmcAAACF0lEQVR42uycMUvDUBDHG61dBHVyKN0chC7ugl9AUWhx8AOoWycHB3VSBwcnv4RTM+UTFJztUuggOJQOTlroYlvqBSqU0kKS13tJm98fjkcffVz6S+6OXl7iDIfDDDLTCgiACEQgIiACEYhAREAEIhCXWdkwXy6Xy/sy3IitKx5TR+zOdd36+GSpVNqT4V5sQ9F3V+yxWq2+qUEUXYkdWji5X2LnE3MVsWNLF9eRZjivxhghWUu+Q0cZOZHCsoCFZYYOxFoG64tinkHuahj4LojVkgCxJZX0M+piqbpbBr7bhr4JZ3IiEBEQgQhEICIgAhGIQERABCIQU6N5tMKKhu2sXZO1hu2sfFIgejFeBK+EMzkRRYXYs3RcvwHnNNTRzokPYj8Z3XvAPqynKfP/czlF332xl7CLnDCPYDiOk4rwDPtYCjmRwgLEdP5jGW1vq9goLK7rfkz43pHh2lJhqWtW51uxU0sn+HLisw/wwoLfbbETzXBeswQwF3BOQ6E3kZITKSwLWFhmyN/e1jZY77fConZjzsSaBr79VpiXBIiNGLe3NcX3u4Hvb8KZnAhEBEQgAhGICIhABCIQERCBCMS0aB6tsEKM29vyhu2sQlIg1mK8CDzCmZyIokIcWDqufsA5DXW1c+LzaNR8tYu/B3La9jZ/bjOje+97MPYbA8vh7cbkRCACEQERiEAEIgIiEIG4zPoTYAALKF4dRnTU+gAAAABJRU5ErkJggg=="},"56d6":function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-component",use:"icon-component-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},"56d7":function(t,e,n){"use strict";n.r(e);var i={};n.r(i),n.d(i,"parseTime",(function(){return ie["c"]})),n.d(i,"formatTime",(function(){return ie["b"]})),n.d(i,"timeAgo",(function(){return Fe})),n.d(i,"numberFormatter",(function(){return Te})),n.d(i,"toThousandFilter",(function(){return Ne})),n.d(i,"uppercaseFirst",(function(){return Qe})),n.d(i,"filterEmpty",(function(){return ae})),n.d(i,"filterYesOrNo",(function(){return re})),n.d(i,"filterShowOrHide",(function(){return oe})),n.d(i,"filterShowOrHideForFormConfig",(function(){return ce})),n.d(i,"filterYesOrNoIs",(function(){return se})),n.d(i,"paidFilter",(function(){return ue})),n.d(i,"payTypeFilter",(function(){return le})),n.d(i,"orderStatusFilter",(function(){return de})),n.d(i,"activityOrderStatus",(function(){return he})),n.d(i,"cancelOrderStatusFilter",(function(){return me})),n.d(i,"orderPayType",(function(){return fe})),n.d(i,"takeOrderStatusFilter",(function(){return pe})),n.d(i,"orderRefundFilter",(function(){return ge})),n.d(i,"accountStatusFilter",(function(){return be})),n.d(i,"reconciliationFilter",(function(){return ve})),n.d(i,"reconciliationStatusFilter",(function(){return Ae})),n.d(i,"productStatusFilter",(function(){return we})),n.d(i,"couponTypeFilter",(function(){return ye})),n.d(i,"couponUseTypeFilter",(function(){return ke})),n.d(i,"broadcastStatusFilter",(function(){return Ce})),n.d(i,"liveReviewStatusFilter",(function(){return Ee})),n.d(i,"broadcastType",(function(){return je})),n.d(i,"broadcastDisplayType",(function(){return Ie})),n.d(i,"filterClose",(function(){return Se})),n.d(i,"exportOrderStatusFilter",(function(){return xe})),n.d(i,"transactionTypeFilter",(function(){return Oe})),n.d(i,"seckillStatusFilter",(function(){return Re})),n.d(i,"seckillReviewStatusFilter",(function(){return _e})),n.d(i,"deliveryStatusFilter",(function(){return Me})),n.d(i,"organizationType",(function(){return De})),n.d(i,"id_docType",(function(){return ze})),n.d(i,"deliveryType",(function(){return Ve})),n.d(i,"runErrandStatus",(function(){return Be}));n("456d"),n("ac6a"),n("cadf"),n("551c"),n("f751"),n("097d");var a=n("2b0e"),r=n("a78e"),o=n.n(r),c=(n("f5df"),n("5c96")),s=n.n(c),u=n("c1df"),l=n.n(u),d=n("c7ad"),h=n.n(d),m=(n("24ab"),n("b20f"),n("fc4a"),n("de6e"),n("caf9")),f=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.isRouterAlive?n("div",{attrs:{id:"app"}},[n("router-view")],1):t._e()},p=[],g={name:"App",provide:function(){return{reload:this.reload}},data:function(){return{isRouterAlive:!0}},methods:{reload:function(){this.isRouterAlive=!1,this.$nextTick((function(){this.isRouterAlive=!0}))}}},b=g,v=n("2877"),A=Object(v["a"])(b,f,p,!1,null,null,null),w=A.exports,y=n("4360"),k=n("a18c"),C=n("30ba"),E=n.n(C),j=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("el-dialog",{attrs:{title:"上传图片",visible:t.visible,width:"896px","before-close":t.handleClose},on:{"update:visible":function(e){t.visible=e}}},[t.visible?n("upload-index",{attrs:{"is-more":t.isMore},on:{getImage:t.getImage}}):t._e()],1)],1)},I=[],S=n("b5b8"),x={name:"UploadFroms",components:{UploadIndex:S["default"]},data:function(){return{visible:!1,callback:function(){},isMore:""}},watch:{},methods:{handleClose:function(){this.visible=!1},getImage:function(t){this.callback(t),this.visible=!1}}},O=x,R=Object(v["a"])(O,j,I,!1,null,"76ff32bf",null),_=R.exports;a["default"].use(s.a,{size:o.a.get("size")||"medium"});var M,D={install:function(t,e){var n=t.extend(_),i=new n;i.$mount(document.createElement("div")),document.body.appendChild(i.$el),t.prototype.$modalUpload=function(t,e){i.visible=!0,i.callback=t,i.isMore=e}}},z=D,V=n("6625"),B=n.n(V),L=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("el-form",{ref:"formDynamic",staticClass:"attrFrom mb20",attrs:{size:"small",model:t.formDynamic,rules:t.rules,"label-width":"100px"},nativeOn:{submit:function(t){t.preventDefault()}}},[n("el-row",{attrs:{gutter:24}},[n("el-col",{attrs:{span:8}},[n("el-form-item",{attrs:{label:"模板名称:",prop:"template_name"}},[n("el-input",{attrs:{placeholder:"请输入模板名称"},model:{value:t.formDynamic.template_name,callback:function(e){t.$set(t.formDynamic,"template_name",e)},expression:"formDynamic.template_name"}})],1)],1),t._v(" "),t._l(t.formDynamic.template_value,(function(e,i){return n("el-col",{key:i,staticClass:"noForm",attrs:{span:24}},[n("el-form-item",[n("div",{staticClass:"acea-row row-middle"},[n("span",{staticClass:"mr5"},[t._v(t._s(e.value))]),n("i",{staticClass:"el-icon-circle-close",on:{click:function(e){return t.handleRemove(i)}}})]),t._v(" "),n("div",{staticClass:"rulesBox"},[t._l(e.detail,(function(i,a){return n("el-tag",{key:a,staticClass:"mb5 mr10",attrs:{closable:"",size:"medium","disable-transitions":!1},on:{close:function(n){return t.handleClose(e.detail,a)}}},[t._v("\n "+t._s(i)+"\n ")])})),t._v(" "),e.inputVisible?n("el-input",{ref:"saveTagInput",refInFor:!0,staticClass:"input-new-tag",attrs:{size:"small",maxlength:"30"},on:{blur:function(n){return t.createAttr(e.detail.attrsVal,i)}},nativeOn:{keyup:function(n){return!n.type.indexOf("key")&&t._k(n.keyCode,"enter",13,n.key,"Enter")?null:t.createAttr(e.detail.attrsVal,i)}},model:{value:e.detail.attrsVal,callback:function(n){t.$set(e.detail,"attrsVal",n)},expression:"item.detail.attrsVal"}}):n("el-button",{staticClass:"button-new-tag",attrs:{size:"small"},on:{click:function(n){return t.showInput(e)}}},[t._v("+ 添加")])],2)])],1)})),t._v(" "),t.isBtn?n("el-col",{staticClass:"mt10",staticStyle:{"padding-left":"0","padding-right":"0"},attrs:{span:24}},[n("el-col",{attrs:{span:8}},[n("el-form-item",{attrs:{label:"规格:"}},[n("el-input",{attrs:{maxlength:"30",placeholder:"请输入规格"},model:{value:t.attrsName,callback:function(e){t.attrsName=e},expression:"attrsName"}})],1)],1),t._v(" "),n("el-col",{attrs:{span:8}},[n("el-form-item",{attrs:{label:"规格值:"}},[n("el-input",{attrs:{maxlength:"30",placeholder:"请输入规格值"},model:{value:t.attrsVal,callback:function(e){t.attrsVal=e},expression:"attrsVal"}})],1)],1),t._v(" "),n("el-col",{attrs:{span:8}},[n("el-button",{staticClass:"mr10",attrs:{type:"primary"},on:{click:t.createAttrName}},[t._v("确定")]),t._v(" "),n("el-button",{on:{click:t.offAttrName}},[t._v("取消")])],1)],1):t._e(),t._v(" "),t.spinShow?n("Spin",{attrs:{size:"large",fix:""}}):t._e()],2),t._v(" "),n("el-form-item",[t.isBtn?t._e():n("el-button",{staticClass:"mt10",attrs:{type:"primary",icon:"md-add"},on:{click:t.addBtn}},[t._v("添加新规格")])],1),t._v(" "),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(e){t.dialogFormVisible=!1}}},[t._v("取 消")]),t._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:function(e){t.dialogFormVisible=!1}}},[t._v("确 定")])],1)],1),t._v(" "),n("span",{staticClass:"footer acea-row"},[n("el-button",{on:{click:function(e){return t.resetForm("formDynamic")}}},[t._v("取消")]),t._v(" "),n("el-button",{attrs:{loading:t.loading,type:"primary"},on:{click:function(e){return t.handleSubmit("formDynamic")}}},[t._v("确 定")])],1)],1)},F=[],T=(n("7f7f"),n("c4c8")),N={name:"CreatAttr",props:{currentRow:{type:Object,default:null}},data:function(){return{dialogVisible:!1,inputVisible:!1,inputValue:"",spinShow:!1,loading:!1,grid:{xl:3,lg:3,md:12,sm:24,xs:24},modal:!1,index:1,rules:{template_name:[{required:!0,message:"请输入模板名称",trigger:"blur"}]},formDynamic:{template_name:"",template_value:[]},attrsName:"",attrsVal:"",formDynamicNameData:[],isBtn:!1,formDynamicName:[],results:[],result:[],ids:0}},watch:{currentRow:{handler:function(t,e){this.formDynamic=t},immediate:!0}},mounted:function(){var t=this;this.formDynamic.template_value.map((function(e){t.$set(e,"inputVisible",!1)}))},methods:{resetForm:function(t){this.$msgbox.close(),this.clear(),this.$refs[t].resetFields()},addBtn:function(){this.isBtn=!0},handleClose:function(t,e){t.splice(e,1)},offAttrName:function(){this.isBtn=!1},handleRemove:function(t){this.formDynamic.template_value.splice(t,1)},createAttrName:function(){if(this.attrsName&&this.attrsVal){var t={value:this.attrsName,detail:[this.attrsVal]};this.formDynamic.template_value.push(t);var e={};this.formDynamic.template_value=this.formDynamic.template_value.reduce((function(t,n){return!e[n.value]&&(e[n.value]=t.push(n)),t}),[]),this.attrsName="",this.attrsVal="",this.isBtn=!1}else{if(!this.attrsName)return void this.$message.warning("请输入规格名称!");if(!this.attrsVal)return void this.$message.warning("请输入规格值!")}},createAttr:function(t,e){if(t){this.formDynamic.template_value[e].detail.push(t);var n={};this.formDynamic.template_value[e].detail=this.formDynamic.template_value[e].detail.reduce((function(t,e){return!n[e]&&(n[e]=t.push(e)),t}),[]),this.formDynamic.template_value[e].inputVisible=!1}else this.$message.warning("请添加属性")},showInput:function(t){this.$set(t,"inputVisible",!0)},handleSubmit:function(t){var e=this;this.$refs[t].validate((function(t){return!!t&&(0===e.formDynamic.template_value.length?e.$message.warning("请至少添加一条属性规格!"):(e.loading=!0,void setTimeout((function(){e.currentRow.attr_template_id?Object(T["l"])(e.currentRow.attr_template_id,e.formDynamic).then((function(t){e.$message.success(t.message),e.loading=!1,setTimeout((function(){e.$msgbox.close()}),500),setTimeout((function(){e.clear(),e.$emit("getList")}),600)})).catch((function(t){e.loading=!1,e.$message.error(t.message)})):Object(T["j"])(e.formDynamic).then((function(t){e.$message.success(t.message),e.loading=!1,setTimeout((function(){e.$msgbox.close()}),500),setTimeout((function(){e.$emit("getList"),e.clear()}),600)})).catch((function(t){e.loading=!1,e.$message.error(t.message)}))}),1200)))}))},clear:function(){this.$refs["formDynamic"].resetFields(),this.formDynamic.template_value=[],this.formDynamic.template_name="",this.isBtn=!1,this.attrsName="",this.attrsVal=""},handleInputConfirm:function(){var t=this.inputValue;t&&this.dynamicTags.push(t),this.inputVisible=!1,this.inputValue=""}}},Q=N,P=(n("1e38"),Object(v["a"])(Q,L,F,!1,null,"5523fc24",null)),H=P.exports,U=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("el-form",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"ruleForm",attrs:{model:t.ruleForm,"label-width":"120px",size:"mini",rules:t.rules}},[n("el-form-item",{attrs:{label:"模板名称",prop:"name"}},[n("el-input",{staticClass:"withs",attrs:{placeholder:"请输入模板名称"},model:{value:t.ruleForm.name,callback:function(e){t.$set(t.ruleForm,"name",e)},expression:"ruleForm.name"}})],1),t._v(" "),n("el-form-item",{attrs:{label:"运费说明",prop:"info"}},[n("el-input",{staticClass:"withs",attrs:{type:"textarea",placeholder:"请输入运费说明"},model:{value:t.ruleForm.info,callback:function(e){t.$set(t.ruleForm,"info",e)},expression:"ruleForm.info"}})],1),t._v(" "),n("el-form-item",{attrs:{label:"计费方式",prop:"type"}},[n("el-radio-group",{on:{change:function(e){return t.changeRadio(t.ruleForm.type)}},model:{value:t.ruleForm.type,callback:function(e){t.$set(t.ruleForm,"type",e)},expression:"ruleForm.type"}},[n("el-radio",{attrs:{label:0}},[t._v("按件数")]),t._v(" "),n("el-radio",{attrs:{label:1}},[t._v("按重量")]),t._v(" "),n("el-radio",{attrs:{label:2}},[t._v("按体积")])],1)],1),t._v(" "),n("el-form-item",{attrs:{label:"配送区域及运费",prop:"region"}},[n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticClass:"tempBox",staticStyle:{width:"100%"},attrs:{data:t.ruleForm.region,border:"",fit:"","highlight-current-row":"",size:"mini"}},[n("el-table-column",{attrs:{align:"center",label:"可配送区域","min-width":"260"},scopedSlots:t._u([{key:"default",fn:function(e){return[0===e.$index?n("span",[t._v("默认全国 "),n("span",{staticStyle:{"font-weight":"bold"}},[t._v("(开启指定区域不配送时无效)")])]):n("LazyCascader",{staticStyle:{width:"98%"},attrs:{props:t.props,"collapse-tags":"",clearable:"",filterable:!1},model:{value:e.row.city_ids,callback:function(n){t.$set(e.row,"city_ids",n)},expression:"scope.row.city_ids"}})]}}])}),t._v(" "),n("el-table-column",{attrs:{"min-width":"130px",align:"center",label:t.columns.title},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[n("el-input-number",{attrs:{"controls-position":"right",min:0},model:{value:i.first,callback:function(e){t.$set(i,"first",e)},expression:"row.first"}})]}}])}),t._v(" "),n("el-table-column",{attrs:{"min-width":"120px",align:"center",label:"运费(元)"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[n("el-input-number",{attrs:{"controls-position":"right",min:0},model:{value:i.first_price,callback:function(e){t.$set(i,"first_price",e)},expression:"row.first_price"}})]}}])}),t._v(" "),n("el-table-column",{attrs:{"min-width":"120px",align:"center",label:t.columns.title2},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[n("el-input-number",{attrs:{"controls-position":"right",min:.1},model:{value:i.continue,callback:function(e){t.$set(i,"continue",e)},expression:"row.continue"}})]}}])}),t._v(" "),n("el-table-column",{attrs:{"class-name":"status-col",align:"center",label:"续费(元)","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[n("el-input-number",{attrs:{"controls-position":"right",min:0},model:{value:i.continue_price,callback:function(e){t.$set(i,"continue_price",e)},expression:"row.continue_price"}})]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",label:"操作","min-width":"80",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.$index>0?n("el-button",{attrs:{type:"text",size:"small"},on:{click:function(n){return t.confirmEdit(t.ruleForm.region,e.$index)}}},[t._v("\n 删除\n ")]):t._e()]}}])})],1)],1),t._v(" "),n("el-form-item",[n("el-button",{attrs:{type:"primary",size:"mini",icon:"el-icon-edit"},on:{click:function(e){return t.addRegion(t.ruleForm.region)}}},[t._v("\n 添加配送区域\n ")])],1),t._v(" "),n("el-form-item",{attrs:{label:"指定包邮",prop:"appoint"}},[n("el-radio-group",{model:{value:t.ruleForm.appoint,callback:function(e){t.$set(t.ruleForm,"appoint",e)},expression:"ruleForm.appoint"}},[n("el-radio",{attrs:{label:1}},[t._v("开启")]),t._v(" "),n("el-radio",{attrs:{label:0}},[t._v("关闭")])],1)],1),t._v(" "),1===t.ruleForm.appoint?n("el-form-item",{attrs:{prop:"free"}},[n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{data:t.ruleForm.free,border:"",fit:"","highlight-current-row":"",size:"mini"}},[n("el-table-column",{attrs:{align:"center",label:"选择地区","min-width":"220"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[n("LazyCascader",{staticStyle:{width:"95%"},attrs:{props:t.props,"collapse-tags":"",clearable:"",filterable:!1},model:{value:i.city_ids,callback:function(e){t.$set(i,"city_ids",e)},expression:"row.city_ids"}})]}}],null,!1,719238884)}),t._v(" "),n("el-table-column",{attrs:{"min-width":"180px",align:"center",label:t.columns.title3},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[n("el-input-number",{attrs:{"controls-position":"right",min:1},model:{value:i.number,callback:function(e){t.$set(i,"number",e)},expression:"row.number"}})]}}],null,!1,2893068961)}),t._v(" "),n("el-table-column",{attrs:{"min-width":"120px",align:"center",label:"最低购买金额(元)"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[n("el-input-number",{attrs:{"controls-position":"right",min:.01},model:{value:i.price,callback:function(e){t.$set(i,"price",e)},expression:"row.price"}})]}}],null,!1,2216462721)}),t._v(" "),n("el-table-column",{attrs:{align:"center",label:"操作","min-width":"120",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{attrs:{type:"text",size:"small"},on:{click:function(n){return t.confirmEdit(t.ruleForm.free,e.$index)}}},[t._v("\n 删除\n ")])]}}],null,!1,4029474057)})],1)],1):t._e(),t._v(" "),1===t.ruleForm.appoint?n("el-form-item",[n("el-button",{attrs:{type:"primary",size:"mini",icon:"el-icon-edit"},on:{click:function(e){return t.addFree(t.ruleForm.free)}}},[t._v("\n 添加指定包邮区域\n ")])],1):t._e(),t._v(" "),n("el-row",{attrs:{gutter:20}},[n("el-col",{attrs:{span:12}},[n("el-form-item",{attrs:{label:"指定区域不配送",prop:"undelivery"}},[n("el-radio-group",{model:{value:t.ruleForm.undelivery,callback:function(e){t.$set(t.ruleForm,"undelivery",e)},expression:"ruleForm.undelivery"}},[n("el-radio",{attrs:{label:1}},[t._v("自定义")]),t._v(" "),n("el-radio",{attrs:{label:2}},[t._v("开启")]),t._v(" "),n("el-radio",{attrs:{label:0}},[t._v("关闭")])],1),t._v(" "),n("br"),t._v('\n (说明: 选择"开启"时, 仅支持上表添加的配送区域)\n ')],1)],1),t._v(" "),n("el-col",{attrs:{span:12}},[1===t.ruleForm.undelivery?n("el-form-item",{staticClass:"noBox",attrs:{prop:"city_id3"}},[n("LazyCascader",{staticStyle:{width:"46%"},attrs:{placeholder:"请选择不配送区域",props:t.props,"collapse-tags":"",clearable:"",filterable:!1},model:{value:t.ruleForm.city_id3,callback:function(e){t.$set(t.ruleForm,"city_id3",e)},expression:"ruleForm.city_id3"}})],1):t._e()],1)],1),t._v(" "),n("el-form-item",{attrs:{label:"排序"}},[n("el-input",{staticClass:"withs",attrs:{placeholder:"请输入排序"},model:{value:t.ruleForm.sort,callback:function(e){t.$set(t.ruleForm,"sort",e)},expression:"ruleForm.sort"}})],1)],1),t._v(" "),n("span",{staticClass:"footer acea-row"},[n("el-button",{on:{click:function(e){return t.resetForm("ruleForm")}}},[t._v("取 消")]),t._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.onsubmit("ruleForm")}}},[t._v("确 定")])],1)],1)},G=[],W=(n("55dd"),n("2909")),Z=(n("c5f6"),n("8a9d")),Y=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"lazy-cascader",style:{width:t.width}},[t.disabled?n("div",{staticClass:"el-input__inner lazy-cascader-input lazy-cascader-input-disabled"},[n("span",{directives:[{name:"show",rawName:"v-show",value:t.placeholderVisible,expression:"placeholderVisible"}],staticClass:"lazy-cascader-placeholder"},[t._v("\n "+t._s(t.placeholder)+"\n ")]),t._v(" "),t.props.multiple?n("div",{staticClass:"lazy-cascader-tags"},t._l(t.labelArray,(function(e,i){return n("el-tag",{key:i,staticClass:"lazy-cascader-tag",attrs:{type:"info","disable-transitions":"",closable:""}},[n("span",[t._v(" "+t._s(e.label.join(t.separator)))])])})),1):n("div",{staticClass:"lazy-cascader-label"},[n("el-tooltip",{attrs:{placement:"top-start",content:t.labelObject.label.join(t.separator)}},[n("span",[t._v(t._s(t.labelObject.label.join(t.separator)))])])],1)]):n("el-popover",{ref:"popover",attrs:{trigger:"click",placement:"bottom-start"}},[n("div",{staticClass:"lazy-cascader-search"},[t.filterable?n("el-autocomplete",{staticClass:"inline-input",style:{width:t.searchWidth||"100%"},attrs:{"popper-class":t.suggestionsPopperClass,"prefix-icon":"el-icon-search",label:"name","fetch-suggestions":t.querySearch,"trigger-on-focus":!1,placeholder:"请输入"},on:{select:t.handleSelect,blur:function(e){t.isSearchEmpty=!1}},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.item;return[n("div",{staticClass:"name",class:t.isChecked(i[t.props.value])},[t._v("\n "+t._s(i[t.props.label].join(t.separator))+"\n ")])]}}],null,!1,1538741936),model:{value:t.keyword,callback:function(e){t.keyword=e},expression:"keyword"}}):t._e(),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:t.isSearchEmpty,expression:"isSearchEmpty"}],staticClass:"empty"},[t._v(t._s(t.searchEmptyText))])],1),t._v(" "),n("div",{staticClass:"lazy-cascader-panel"},[n("el-cascader-panel",{ref:"panel",attrs:{options:t.options,props:t.currentProps},on:{change:t.change},model:{value:t.current,callback:function(e){t.current=e},expression:"current"}})],1),t._v(" "),n("div",{staticClass:"el-input__inner lazy-cascader-input",class:t.disabled?"lazy-cascader-input-disabled":"",attrs:{slot:"reference"},slot:"reference"},[n("span",{directives:[{name:"show",rawName:"v-show",value:t.placeholderVisible,expression:"placeholderVisible"}],staticClass:"lazy-cascader-placeholder"},[t._v("\n "+t._s(t.placeholder)+"\n ")]),t._v(" "),t.props.multiple?n("div",{staticClass:"lazy-cascader-tags"},t._l(t.labelArray,(function(e,i){return n("el-tag",{key:i,staticClass:"lazy-cascader-tag",attrs:{type:"info",size:"small","disable-transitions":"",closable:""},on:{close:function(n){return t.handleClose(e)}}},[n("span",[t._v(" "+t._s(e.label.join(t.separator)))])])})),1):n("div",{staticClass:"lazy-cascader-label"},[n("el-tooltip",{attrs:{placement:"top-start",content:t.labelObject.label.join(t.separator)}},[n("span",[t._v(t._s(t.labelObject.label.join(t.separator)))])])],1),t._v(" "),t.clearable&&t.current.length>0?n("span",{staticClass:"lazy-cascader-clear",on:{click:function(e){return e.stopPropagation(),t.clearBtnClick(e)}}},[n("i",{staticClass:"el-icon-close"})]):t._e()])])],1)},J=[],q=n("c7eb"),X=(n("96cf"),n("1da1")),K=(n("20d6"),{props:{value:{type:Array,default:function(){return[]}},separator:{type:String,default:"/"},placeholder:{type:String,default:"请选择"},width:{type:String,default:"400px"},filterable:Boolean,clearable:Boolean,disabled:Boolean,props:{type:Object,default:function(){return{}}},suggestionsPopperClass:{type:String,default:"suggestions-popper-class"},searchWidth:{type:String},searchEmptyText:{type:String,default:"暂无数据"}},data:function(){return{isSearchEmpty:!1,keyword:"",options:[],current:[],labelObject:{label:[],value:[]},labelArray:[],currentProps:{multiple:this.props.multiple,checkStrictly:this.props.checkStrictly,value:this.props.value,label:this.props.label,leaf:this.props.leaf,lazy:!0,lazyLoad:this.lazyLoad}}},computed:{placeholderVisible:function(){return!this.current||0==this.current.length}},watch:{current:function(){this.getLabelArray()},value:function(t){this.current=t},keyword:function(){this.isSearchEmpty=!1}},created:function(){this.initOptions()},methods:{isChecked:function(t){if(this.props.multiple){var e=this.current.findIndex((function(e){return e.join()==t.join()}));return e>-1?"el-link el-link--primary":""}return t.join()==this.current.join()?"el-link el-link--primary":""},querySearch:function(t,e){var n=this;this.props.lazySearch(t,(function(t){e(t),t&&t.length||(n.isSearchEmpty=!0)}))},handleSelect:function(t){var e=this;if(this.props.multiple){var n=this.current.findIndex((function(n){return n.join()==t[e.props.value].join()}));-1==n&&(this.$refs.panel.clearCheckedNodes(),this.current.push(t[this.props.value]),this.$emit("change",this.current))}else null!=this.current&&t[this.props.value].join()===this.current.join()||(this.$refs.panel.activePath=[],this.current=t[this.props.value],this.$emit("change",this.current));this.keyword=""},initOptions:function(){var t=Object(X["a"])(Object(q["a"])().mark((function t(){var e=this;return Object(q["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:this.props.lazyLoad(0,(function(t){e.$set(e,"options",t),e.props.multiple?e.current=Object(W["a"])(e.value):e.current=e.value}));case 1:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),getLabelArray:function(){var t=Object(X["a"])(Object(q["a"])().mark((function t(){var e,n,i,a=this;return Object(q["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!this.props.multiple){t.next=16;break}e=[],n=0;case 3:if(!(n-1&&(this.$refs.panel.clearCheckedNodes(),this.current.splice(e,1),this.$emit("change",this.current))},clearBtnClick:function(){this.$refs.panel.clearCheckedNodes(),this.current=[],this.$emit("change",this.current)},change:function(){this.$emit("change",this.current)}}}),$=K,tt=(n("15ae"),Object(v["a"])($,Y,J,!1,null,null,null)),et=tt.exports,nt={name:"",type:0,appoint:0,sort:0,info:"",region:[{first:1,first_price:0,continue:1,continue_price:0,city_id:[],city_ids:[]}],undelivery:0,free:[],undelives:{},city_id3:[]},it={},at="重量(kg)",rt="体积(m³)",ot=[{title:"首件",title2:"续件",title3:"最低购买件数"},{title:"首件".concat(at),title2:"续件".concat(at),title3:"最低购买".concat(at)},{title:"首件".concat(rt),title2:"续件".concat(rt),title3:"最低购买".concat(rt)}],ct={name:"CreatTemplates",components:{LazyCascader:et},props:{tempId:{type:Number,default:0},componentKey:{type:Number,default:0}},data:function(){return{loading:!1,rules:{name:[{required:!0,message:"请输入模板名称",trigger:"change"}],info:[{required:!0,message:"请输入运费说明",trigger:"blur"},{min:3,max:500,message:"长度在 3 到 500 个字符",trigger:"blur"}],free:[{type:"array",required:!0,message:"请至少添加一个地区",trigger:"change"}],appoint:[{required:!0,message:"请选择是否指定包邮",trigger:"change"}],undelivery:[{required:!0,message:"请选择是否指定区域不配送",trigger:"change"}],type:[{required:!0,message:"请选择计费方式",trigger:"change"}],region:[{required:!0,message:"请选择活动区域",trigger:"change"}]},nodeKey:"city_id",props:{children:"children",label:"name",value:"id",multiple:!0,lazy:!0,lazyLoad:this.lazyLoad,checkStrictly:!0},dialogVisible:!1,ruleForm:Object.assign({},nt),listLoading:!1,cityList:[],columns:{title:"首件",title2:"续件",title3:"最低购买件数"}}},watch:{componentKey:{handler:function(t,e){t?this.getInfo():this.ruleForm={name:"",type:0,appoint:0,sort:0,region:[{first:1,first_price:0,continue:1,continue_price:0,city_id:[],city_ids:[]}],undelivery:0,free:[],undelives:{},city_id3:[]}}}},mounted:function(){this.tempId>0&&this.getInfo()},methods:{resetForm:function(t){this.$msgbox.close(),this.$refs[t].resetFields()},onClose:function(t){this.dialogVisible=!1,this.$refs[t].resetFields()},confirmEdit:function(t,e){t.splice(e,1)},changeRadio:function(t){this.columns=Object.assign({},ot[t])},addRegion:function(t){t.push(Object.assign({},{first:1,first_price:1,continue:1,continue_price:0,city_id:[],city_ids:[]}))},addFree:function(t){t.push(Object.assign({},{city_id:[],number:1,price:.01,city_ids:[]}))},lazyLoad:function(t,e){var n=this;if(it[t])it[t]().then((function(t){e(Object(W["a"])(t.data))}));else{var i=Object(Z["a"])(t);it[t]=function(){return i},i.then((function(n){n.data.forEach((function(t){t.leaf=0===t.snum})),it[t]=function(){return new Promise((function(t){setTimeout((function(){return t(n)}),300)}))},e(n.data)})).catch((function(t){n.$message.error(t.message)}))}},getInfo:function(){var t=this;this.loading=!0,Object(Z["d"])(this.tempId).then((function(e){t.dialogVisible=!0;var n=e.data;t.ruleForm={name:n.name,type:n.type,info:n.info,appoint:n.appoint,sort:n.sort,region:n.region,undelivery:n.undelivery,free:n.free,undelives:n.undelives,city_id3:n.undelives.city_ids||[]},t.ruleForm.region.map((function(e){t.$set(e,"city_id",e.city_ids[0]),t.$set(e,"city_ids",e.city_ids)})),t.ruleForm.free.map((function(e){t.$set(e,"city_id",e.city_ids[0]),t.$set(e,"city_ids",e.city_ids)})),t.changeRadio(n.type),t.loading=!1})).catch((function(e){t.$message.error(e.message),t.loading=!1}))},change:function(t){return t.map((function(t){var e=[];0!==t.city_ids.length&&(t.city_ids.map((function(t){e.push(t[t.length-1])})),t.city_id=e)})),t},changeOne:function(t){var e=[];if(0!==t.length)return t.map((function(t){e.push(t[t.length-1])})),e},onsubmit:function(t){var e=this,n={name:this.ruleForm.name,type:this.ruleForm.type,info:this.ruleForm.info,appoint:this.ruleForm.appoint,sort:this.ruleForm.sort,region:this.change(this.ruleForm.region),undelivery:this.ruleForm.undelivery,free:this.change(this.ruleForm.free),undelives:{city_id:this.changeOne(this.ruleForm.city_id3)}};this.$refs[t].validate((function(i){if(!i)return!1;0===e.tempId?Object(Z["b"])(n).then((function(n){e.$message.success(n.message),setTimeout((function(){e.$msgbox.close()}),500),setTimeout((function(){e.$emit("getList"),e.$refs[t].resetFields()}),600)})).catch((function(t){e.$message.error(t.message)})):Object(Z["f"])(e.tempId,n).then((function(n){e.$message.success(n.message),setTimeout((function(){e.$msgbox.close()}),500),setTimeout((function(){e.$emit("getList"),e.$refs[t].resetFields()}),600)})).catch((function(t){e.$message.error(t.message)}))}))}}},st=ct,ut=(n("967a"),Object(v["a"])(st,U,G,!1,null,"173db85a",null)),lt=ut.exports,dt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"divBox"},[n("div",{staticClass:"header clearfix"},[n("div",{staticClass:"container"},[n("el-form",{attrs:{inline:"",size:"small"}},[n("el-form-item",{attrs:{label:"优惠劵名称:"}},[n("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入优惠券名称",size:"small"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getList(e)}},model:{value:t.tableFrom.coupon_name,callback:function(e){t.$set(t.tableFrom,"coupon_name",e)},expression:"tableFrom.coupon_name"}},[n("el-button",{staticClass:"el-button-solt",attrs:{slot:"append",icon:"el-icon-search",size:"small"},on:{click:t.getList},slot:"append"})],1)],1)],1)],1)]),t._v(" "),n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],ref:"table",staticStyle:{width:"100%"},attrs:{data:t.tableData.data,size:"mini","max-height":"400","tooltip-effect":"dark"},on:{"selection-change":t.handleSelectionChange}},["wu"===t.handle?n("el-table-column",{attrs:{type:"selection",width:"55"}}):t._e(),t._v(" "),n("el-table-column",{attrs:{prop:"coupon_id",label:"ID","min-width":"50"}}),t._v(" "),n("el-table-column",{attrs:{prop:"title",label:"优惠券名称","min-width":"120"}}),t._v(" "),n("el-table-column",{attrs:{label:"优惠劵类型","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[n("span",[t._v(t._s(t._f("couponTypeFilter")(i.type)))])]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"coupon_price",label:"优惠券面值","min-width":"90"}}),t._v(" "),n("el-table-column",{attrs:{label:"最低消费额","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(0===e.row.use_min_price?"不限制":e.row.use_min_price))])]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"有效期限","min-width":"250"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(1===e.row.coupon_type?e.row.use_start_time+" 一 "+e.row.use_end_time:e.row.coupon_time))])]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"剩余数量","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(0===e.row.is_limited?"不限量":e.row.remain_count))])]}}])}),t._v(" "),"send"===t.handle?n("el-table-column",{attrs:{label:"操作","min-width":"120",fixed:"right",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{staticClass:"mr10",attrs:{type:"text",size:"small"},on:{click:function(n){return t.send(e.row.id)}}},[t._v("发送")])]}}],null,!1,2106495788)}):t._e()],1),t._v(" "),n("div",{staticClass:"block mb20"},[n("el-pagination",{attrs:{"page-sizes":[2,20,30,40],"page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"total, sizes, prev, pager, next, jumper",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1),t._v(" "),n("div",[n("el-button",{staticClass:"fr",attrs:{size:"small",type:"primary"},on:{click:t.ok}},[t._v("确定")]),t._v(" "),n("el-button",{staticClass:"fr mr20",attrs:{size:"small"},on:{click:t.close}},[t._v("取消")])],1)],1)},ht=[],mt=n("ade3"),ft=n("b7be"),pt=n("83d6"),gt=(M={name:"CouponList",props:{handle:{type:String,default:""},couponId:{type:Array,default:function(){return[]}},keyNum:{type:Number,default:0},couponData:{type:Array,default:function(){return[]}}},data:function(){return{roterPre:pt["roterPre"],listLoading:!0,tableData:{data:[],total:0},tableFrom:{page:1,limit:2,coupon_name:"",send_type:3},multipleSelection:[],attr:[],multipleSelectionAll:[],idKey:"coupon_id",nextPageFlag:!1}},watch:{keyNum:{deep:!0,handler:function(t){this.getList()}}},mounted:function(){this.tableFrom.page=1,this.getList(),this.multipleSelectionAll=this.couponData}},Object(mt["a"])(M,"watch",{couponData:{deep:!0,handler:function(t){this.multipleSelectionAll=this.couponData,this.getList()}}}),Object(mt["a"])(M,"methods",{close:function(){this.$msgbox.close(),this.multipleSelection=[]},handleSelectionChange:function(t){var e=this;this.multipleSelection=t,setTimeout((function(){e.changePageCoreRecordData()}),50)},setSelectRow:function(){if(this.multipleSelectionAll&&!(this.multipleSelectionAll.length<=0)){var t=this.idKey,e=[];this.multipleSelectionAll.forEach((function(n){e.push(n[t])})),this.$refs.table.clearSelection();for(var n=0;n=0&&this.$refs.table.toggleRowSelection(this.tableData.data[n],!0)}},changePageCoreRecordData:function(){var t=this.idKey,e=this;if(this.multipleSelectionAll.length<=0)this.multipleSelectionAll=this.multipleSelection;else{var n=[];this.multipleSelectionAll.forEach((function(e){n.push(e[t])}));var i=[];this.multipleSelection.forEach((function(a){i.push(a[t]),n.indexOf(a[t])<0&&e.multipleSelectionAll.push(a)}));var a=[];this.tableData.data.forEach((function(e){i.indexOf(e[t])<0&&a.push(e[t])})),a.forEach((function(i){if(n.indexOf(i)>=0)for(var a=0;a0?(this.$emit("getCouponId",this.multipleSelectionAll),this.close()):this.$message.warning("请先选择优惠劵")},getList:function(){var t=this;this.listLoading=!0,Object(ft["F"])(this.tableFrom).then((function(e){t.tableData.data=e.data.list,t.tableData.total=e.data.count,t.listLoading=!1,t.$nextTick((function(){this.setSelectRow()}))})).catch((function(e){t.listLoading=!1,t.$message.error(e.message)}))},pageChange:function(t){this.changePageCoreRecordData(),this.tableFrom.page=t,this.getList()},handleSizeChange:function(t){this.changePageCoreRecordData(),this.tableFrom.limit=t,this.getList()}}),M),bt=gt,vt=(n("55d1"),Object(v["a"])(bt,dt,ht,!1,null,"34dbe50b",null)),At=vt.exports,wt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.isExternal?n("div",t._g({staticClass:"svg-external-icon svg-icon",style:t.styleExternalIcon},t.$listeners)):n("svg",t._g({class:t.svgClass,attrs:{"aria-hidden":"true"}},t.$listeners),[n("use",{attrs:{"xlink:href":t.iconName}})])},yt=[],kt=n("61f7"),Ct={name:"SvgIcon",props:{iconClass:{type:String,required:!0},className:{type:String,default:""}},computed:{isExternal:function(){return Object(kt["b"])(this.iconClass)},iconName:function(){return"#icon-".concat(this.iconClass)},svgClass:function(){return this.className?"svg-icon "+this.className:"svg-icon"},styleExternalIcon:function(){return{mask:"url(".concat(this.iconClass,") no-repeat 50% 50%"),"-webkit-mask":"url(".concat(this.iconClass,") no-repeat 50% 50%")}}}},Et=Ct,jt=(n("cf1c"),Object(v["a"])(Et,wt,yt,!1,null,"61194e00",null)),It=jt.exports;a["default"].component("svg-icon",It);var St=n("51ff"),xt=function(t){return t.keys().map(t)};xt(St);var Ot=n("323e"),Rt=n.n(Ot),_t=(n("a5d8"),n("5f87")),Mt=n("bbcc"),Dt=Mt["a"].title;function zt(t){return t?"".concat(t," - ").concat(Dt):"".concat(Dt)}var Vt=n("c24f");Rt.a.configure({showSpinner:!1});var Bt=["".concat(pt["roterPre"],"/login"),"/auth-redirect"];k["c"].beforeEach(function(){var t=Object(X["a"])(Object(q["a"])().mark((function t(e,n,i){var a,r;return Object(q["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(a=y["a"].getters.isEdit,!a){t.next=5;break}c["MessageBox"].confirm("离开该编辑页面,已编辑信息会丢失,请问您确认离开吗?","提示",{confirmButtonText:"离开",cancelButtonText:"不离开",confirmButtonClass:"btnTrue",cancelButtonClass:"btnFalse",type:"warning"}).then((function(){y["a"].dispatch("settings/setEdit",!1),Rt.a.start(),document.title=zt(e.meta.title);var t=Object(_t["a"])();t?e.path==="".concat(pt["roterPre"],"/login")?(i({path:"/"}),Rt.a.done()):"/"===n.fullPath&&n.path!=="".concat(pt["roterPre"],"/login")?Object(Vt["h"])().then((function(t){i()})).catch((function(t){i()})):i():-1!==Bt.indexOf(e.path)?i():(i("".concat(pt["roterPre"],"/login?redirect=").concat(e.path)),Rt.a.done())})),t.next=21;break;case 5:if(Rt.a.start(),document.title=zt(e.meta.title),r=Object(_t["a"])(),!r){t.next=12;break}e.path==="".concat(pt["roterPre"],"/login")?(i({path:"/"}),Rt.a.done()):"/"===n.fullPath&&n.path!=="".concat(pt["roterPre"],"/login")?Object(Vt["h"])().then((function(t){i()})).catch((function(t){i()})):i(),t.next=20;break;case 12:if(-1===Bt.indexOf(e.path)){t.next=16;break}i(),t.next=20;break;case 16:return t.next=18,y["a"].dispatch("user/resetToken");case 18:i("".concat(pt["roterPre"],"/login?redirect=").concat(e.path)),Rt.a.done();case 20:y["a"].dispatch("settings/setEdit",!1);case 21:case"end":return t.stop()}}),t)})));return function(e,n,i){return t.apply(this,arguments)}}()),k["c"].afterEach((function(){Rt.a.done()}));var Lt,Ft=n("7212"),Tt=n.n(Ft),Nt=(n("dfa4"),n("5530")),Qt=n("0c6d"),Pt=1,Ht=function(){return++Pt};function Ut(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=this.$createElement;return new Promise((function(r){t.then((function(t){var o=t.data;o.config.submitBtn=!1,o.config.resetBtn=!1,o.config.form||(o.config.form={}),o.config.formData||(o.config.formData={}),o.config.formData=Object(Nt["a"])(Object(Nt["a"])({},o.config.formData),n.formData),o.config.form.labelWidth="120px",o.config.global={upload:{props:{onSuccess:function(t,e){200===t.status&&(e.url=t.data.src)}}}},o=a["default"].observable(o),e.$msgbox({title:o.title,customClass:n.class||"modal-form",message:i("div",{class:"common-form-create",key:Ht()},[i("formCreate",{props:{rule:o.rule,option:o.config},on:{mounted:function(t){Lt=t}}})]),beforeClose:function(t,n,i){var a=function(){setTimeout((function(){n.confirmButtonLoading=!1}),500)};"confirm"===t?(n.confirmButtonLoading=!0,Lt.submit((function(t){Qt["a"][o.method.toLowerCase()](o.api,t).then((function(t){i(),e.$message.success(t.message||"提交成功"),r(t)})).catch((function(t){e.$message.error(t.message||"提交失败")})).finally((function(){a()}))}),(function(){return a()}))):(a(),i())}})})).catch((function(t){e.$message.error(t.message)}))}))}function Gt(t,e){var n=this,i=this.$createElement;return new Promise((function(a,r){n.$msgbox({title:"属性规格",customClass:"upload-form",closeOnClickModal:!1,showClose:!1,message:i("div",{class:"common-form-upload"},[i("attrFrom",{props:{currentRow:t},on:{getList:function(){e()}}})]),showCancelButton:!1,showConfirmButton:!1}).then((function(){a()})).catch((function(){r(),n.$message({type:"info",message:"已取消"})}))}))}function Wt(t,e,n){var i=this,a=this.$createElement;return new Promise((function(r,o){i.$msgbox({title:"运费模板",customClass:"upload-form-temp",closeOnClickModal:!1,showClose:!1,message:a("div",{class:"common-form-upload"},[a("templatesFrom",{props:{tempId:t,componentKey:n},on:{getList:function(){e()}}})]),showCancelButton:!1,showConfirmButton:!1}).then((function(){r()})).catch((function(){o(),i.$message({type:"info",message:"已取消"})}))}))}n("a481");var Zt=n("cea2"),Yt=n("40b3"),Jt=n.n(Yt),qt=n("bc3a"),Xt=n.n(qt),Kt=function(t,e,i,a,r,o,c,s){var u=n("3452"),l="/".concat(c,"/").concat(s),d=t+"\n"+a+"\n"+r+"\n"+o+"\n"+l,h=u.HmacSHA1(d,i);return h=u.enc.Base64.stringify(h),"UCloud "+e+":"+h},$t={videoUpload:function(t){return"COS"===t.type?this.cosUpload(t.evfile,t.res.data,t.uploading):"OSS"===t.type?this.ossHttp(t.evfile,t.res,t.uploading):"local"===t.type?this.uploadMp4ToLocal(t.evfile,t.res,t.uploading):"OBS"===t.type?this.obsHttp(t.evfile,t.res,t.uploading):"US3"===t.type?this.us3Http(t.evfile,t.res,t.uploading):this.qiniuHttp(t.evfile,t.res,t.uploading)},cosUpload:function(t,e,n){var i=new Jt.a({getAuthorization:function(t,n){n({TmpSecretId:e.credentials.tmpSecretId,TmpSecretKey:e.credentials.tmpSecretKey,XCosSecurityToken:e.credentials.sessionToken,ExpiredTime:e.expiredTime})}}),a=t.target.files[0],r=a.name,o=r.lastIndexOf("."),c="";-1!==o&&(c=r.substring(o));var s=(new Date).getTime()+c;return new Promise((function(t,r){i.sliceUploadFile({Bucket:e.bucket,Region:e.region,Key:s,Body:a,onProgress:function(t){n(t)}},(function(n,i){n?r({msg:n}):t({url:e.cdn?e.cdn+s:"http://"+i.Location,ETag:i.ETag})}))}))},obsHttp:function(t,e,n){var i=t.target.files[0],a=i.name,r=a.lastIndexOf("."),o="";-1!==r&&(o=a.substring(r));var c=(new Date).getTime()+o,s=new FormData,u=e.data;s.append("key",c),s.append("AccessKeyId",u.accessid),s.append("policy",u.policy),s.append("signature",u.signature),s.append("file",i),s.append("success_action_status",200);var l=u.host,d=l+"/"+c;return n(!0,100),new Promise((function(t,e){Xt.a.defaults.withCredentials=!1,Xt.a.post(l,s).then((function(){n(!1,0),t({url:u.cdn?u.cdn+"/"+c:d})})).catch((function(t){e({msg:t})}))}))},us3Http:function(t,e,n){var i=t.target.files[0],a=i.name,r=a.lastIndexOf("."),o="";-1!==r&&(o=a.substring(r));var c=(new Date).getTime()+o,s=e.data,u=Kt("PUT",s.accessid,s.secretKey,"",i.type,"",s.storageName,c);return new Promise((function(t,e){Xt.a.defaults.withCredentials=!1;var a="https://".concat(s.storageName,".cn-bj.ufileos.com/").concat(c);Xt.a.put(a,i,{headers:{Authorization:u,"content-type":i.type}}).then((function(e){n(!1,0),t({url:s.cdn?s.cdn+"/"+c:a})})).catch((function(t){e({msg:t})}))}))},cosHttp:function(t,e,n){var i=function(t){return encodeURIComponent(t).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A")},a=t.target.files[0],r=a.name,o=r.lastIndexOf("."),c="";-1!==o&&(c=r.substring(o));var s=(new Date).getTime()+c,u=e.data,l=u.credentials.sessionToken,d=u.url+i(s).replace(/%2F/g,"/"),h=new XMLHttpRequest;return h.open("PUT",d,!0),l&&h.setRequestHeader("x-cos-security-token",l),h.upload.onprogress=function(t){var e=Math.round(t.loaded/t.total*1e4)/100;n(!0,e)},new Promise((function(t,e){h.onload=function(){if(/^2\d\d$/.test(""+h.status)){var a=h.getResponseHeader("etag");n(!1,0),t({url:u.cdn?u.cdn+i(s).replace(/%2F/g,"/"):d,ETag:a})}else e({msg:"文件 "+s+" 上传失败,状态码:"+h.statu})},h.onerror=function(){e({msg:"文件 "+s+"上传失败,请检查是否没配置 CORS 跨域规"})},h.send(a),h.onreadystatechange=function(){}}))},ossHttp:function(t,e,n){var i=t.target.files[0],a=i.name,r=a.lastIndexOf("."),o="";-1!==r&&(o=a.substring(r));var c=(new Date).getTime()+o,s=new FormData,u=e.data;s.append("key",c),s.append("OSSAccessKeyId",u.accessid),s.append("policy",u.policy),s.append("Signature",u.signature),s.append("file",i),s.append("success_action_status",200);var l=u.host,d=l+"/"+c;return n(!0,100),new Promise((function(t,e){Xt.a.defaults.withCredentials=!1,Xt.a.post(l,s).then((function(){n(!1,0),t({url:u.cdn?u.cdn+"/"+c:d})})).catch((function(t){e({msg:t})}))}))},qiniuHttp:function(t,e,n){var i=e.data.token,a=t.target.files[0],r=a.name,o=r.lastIndexOf("."),c="";-1!==o&&(c=r.substring(o));var s=(new Date).getTime()+c,u=e.data.domain+"/"+s,l={useCdnDomain:!0},d={fname:"",params:{},mimeType:null},h=Zt["upload"](a,s,i,d,l);return new Promise((function(t,i){h.subscribe({next:function(t){var e=Math.round(t.total.loaded/t.total.size);n(!0,e)},error:function(t){i({msg:t})},complete:function(i){n(!1,0),t({url:e.data.cdn?e.data.cdn+"/"+s:u})}})}))},uploadMp4ToLocal:function(t,e,n){var i=t.target.files[0],a=new FormData;return a.append("file",i),n(!0,100),Object(T["Vb"])(a)}};function te(t,e,n,i,a){var r=this,o=this.$createElement;return new Promise((function(c,s){r.$msgbox({title:"优惠券列表",customClass:"upload-form-coupon",closeOnClickModal:!1,showClose:!1,message:o("div",{class:"common-form-upload"},[o("couponList",{props:{couponData:t,handle:e,couponId:n,keyNum:i},on:{getCouponId:function(t){a(t)}}})]),showCancelButton:!1,showConfirmButton:!1}).then((function(){c()})).catch((function(){s(),r.$message({type:"info",message:"已取消"})}))}))}function ee(t){var e=this;return new Promise((function(n,i){e.$confirm("确定".concat(t||"删除该条数据吗","?"),"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){n()})).catch((function(){e.$message({type:"info",message:"已取消"})}))}))}function ne(t){var e=this;return new Promise((function(n,i){e.$confirm("".concat(t||"该记录删除后不可恢复,您确认删除吗","?"),"提示",{confirmButtonText:"删除",cancelButtonText:"不删除",type:"warning"}).then((function(){n()})).catch((function(t){e.$message({type:"info",message:"已取消"})}))}))}n("6b54");var ie=n("ed08");function ae(t){var e="-";return t?(e=t,e):e}function re(t){return t?"是":"否"}function oe(t){return t?"显示":"不显示"}function ce(t){return"‘0’"===t?"显示":"不显示"}function se(t){return t?"否":"是"}function ue(t){var e={0:"未支付",1:"已支付"};return e[t]}function le(t){var e={0:"余额",1:"微信",2:"微信",3:"微信",4:"支付宝",5:"支付宝"};return e[t]}function de(t){var e={0:"待发货",1:"待收货",2:"待评价",3:"已完成","-1":"已退款",9:"未成团",10:"待付尾款",11:"尾款过期未付"};return e[t]}function he(t){var e={"-1":"未完成",10:"已完成",0:"进行中"};return e[t]}function me(t){var e={0:"待核销",2:"待评价",3:"已完成","-1":"已退款",10:"待付尾款",11:"尾款过期未付"};return e[t]}function fe(t){var e={0:"余额支付",1:"微信支付",2:"小程序",3:"微信支付",4:"支付宝",5:"支付宝扫码",6:"微信扫码"};return e[t]}function pe(t){var e={0:"待核销",1:"待提货",2:"待评价",3:"已完成","-1":"已退款",9:"未成团",10:"待付尾款",11:"尾款过期未付"};return e[t]}function ge(t){var e={0:"待审核","-1":"审核未通过",1:"待退货",2:"待收货",3:"已退款"};return e[t]}function be(t){var e={0:"未转账",1:"已转账"};return e[t]}function ve(t){return t>0?"已对账":"未对账"}function Ae(t){var e={0:"未确认",1:"已拒绝",2:"已确认"};return e[t]}function we(t){var e={0:"下架",1:"上架显示","-1":"平台关闭"};return e[t]}function ye(t){var e={0:"店铺券",1:"商品券"};return e[t]}function ke(t){var e={0:"领取",1:"赠送券",2:"新人券",3:"赠送券"};return e[t]}function Ce(t){var e={101:"直播中",102:"未开始",103:"已结束",104:"禁播",105:"暂停",106:"异常",107:"已过期"};return e[t]}function Ee(t){var e={0:"未审核",1:"微信审核中",2:"审核通过","-1":"审核未通过"};return e[t]}function je(t){var e={0:"手机直播",1:"推流"};return e[t]}function Ie(t){var e={0:"竖屏",1:"横屏"};return e[t]}function Se(t){return t?"✔":"✖"}function xe(t){var e={0:"正在导出,请稍后再来",1:"完成",2:"失败"};return e[t]}function Oe(t){var e={mer_accoubts:"财务对账",refund_order:"退款订单",brokerage_one:"一级分佣",brokerage_two:"二级分佣",refund_brokerage_one:"返还一级分佣",refund_brokerage_two:"返还二级分佣",order:"订单支付",commission_to_platform:"剩余平台手续费",commission_to_service_team:"订单平台佣金",commission_to_village:"订单平台佣金",commission_to_town:"订单平台佣金",commission_to_entry_merchant:"订单平台佣金",commission_to_cloud_warehouse:"订单平台佣金",commission_to_entry_merchant_refund:"退回平台佣金",commission_to_cloud_warehouse_refund:"退回平台佣金",commission_to_platform_refund:"退回平台手续费",commission_to_service_team_refund:"退回平台佣金",commission_to_village_refund:"退回平台佣金",commission_to_town_refund:"退回平台佣金"};return e[t]}function Re(t){var e={0:"未开始",1:"正在进行","-1":"已结束"};return e[t]}function _e(t){var e={0:"审核中",1:"审核通过","-2":"强制下架","-1":"未通过"};return e[t]}function Me(t){var e={0:"处理中",1:"成功",10:"部分完成","-1":"失败"};return e[t]}function De(t){var e={2401:"小微商户",2500:"个人卖家",4:"个体工商户",2:"企业",3:"党政、机关及事业单位",1708:"其他组织"};return e[t]}function ze(t){var e={1:"中国大陆居民-身份证",2:"其他国家或地区居民-护照",3:"中国香港居民–来往内地通行证",4:"中国澳门居民–来往内地通行证",5:"中国台湾居民–来往大陆通行证"};return e[t]}function Ve(t){var e={1:"发货",2:"送货",3:"无需物流",4:"电子面单"};return e[t]}function Be(t){var e={"-1":"已取消",0:"待接单",2:"待取货",3:"配送中",4:"已完成",9:"物品返回中",10:"物品返回完成",100:"骑士到店"};return e[t]}function Le(t,e){return 1===t?t+e:t+e+"s"}function Fe(t){var e=Date.now()/1e3-Number(t);return e<3600?Le(~~(e/60)," minute"):e<86400?Le(~~(e/3600)," hour"):Le(~~(e/86400)," day")}function Te(t,e){for(var n=[{value:1e18,symbol:"E"},{value:1e15,symbol:"P"},{value:1e12,symbol:"T"},{value:1e9,symbol:"G"},{value:1e6,symbol:"M"},{value:1e3,symbol:"k"}],i=0;i=n[i].value)return(t/n[i].value).toFixed(e).replace(/\.0+$|(\.[0-9]*[1-9])0+$/,"$1")+n[i].symbol;return t.toString()}function Ne(t){return(+t||0).toString().replace(/^-?\d+/g,(function(t){return t.replace(/(?=(?!\b)(\d{3})+$)/g,",")}))}function Qe(t){return t.charAt(0).toUpperCase()+t.slice(1)}var Pe=n("6618");a["default"].use(z),a["default"].use(E.a),a["default"].use(Tt.a),a["default"].use(m["a"],{preLoad:1.3,error:n("4fb4"),loading:n("7153"),attempt:1,listenEvents:["scroll","wheel","mousewheel","resize","animationend","transitionend","touchmove"]}),a["default"].component("vue-ueditor-wrap",B.a),a["default"].component("attrFrom",H),a["default"].component("templatesFrom",lt),a["default"].component("couponList",At),a["default"].prototype.$modalForm=Ut,a["default"].prototype.$modalSure=ee,a["default"].prototype.$videoCloud=$t,a["default"].prototype.$modalSureDelete=ne,a["default"].prototype.$modalAttr=Gt,a["default"].prototype.$modalTemplates=Wt,a["default"].prototype.$modalCoupon=te,a["default"].prototype.moment=l.a,a["default"].use(s.a,{size:o.a.get("size")||"medium"}),a["default"].use(h.a),Object.keys(i).forEach((function(t){a["default"].filter(t,i[t])}));var He=He||[];(function(){var t=document.createElement("script");t.src="https://cdn.oss.9gt.net/js/es.js?version=merchantv2.0";var e=document.getElementsByTagName("script")[0];e.parentNode.insertBefore(t,e)})(),k["c"].beforeEach((function(t,e,n){He&&t.path&&He.push(["_trackPageview","/#"+t.fullPath]),t.meta.title&&(document.title=t.meta.title+"-"+JSON.parse(o.a.get("MerInfo")).login_title),n()}));var Ue,Ge=Object(_t["a"])();Ge&&(Ue=Object(Pe["a"])(Ge)),a["default"].config.productionTip=!1;e["default"]=new a["default"]({el:"#app",data:{notice:Ue},methods:{closeNotice:function(){this.notice&&this.notice()}},router:k["c"],store:y["a"],render:function(t){return t(w)}})},5946:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFEAAABRCAYAAACqj0o2AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA25pVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDo2OWRlYjViMi04ZTEzLWNmNDgtODFlNi0yNzk5OTk1OWFjZjgiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MDdCOUYzQ0M0MzlGMTFFOThGQzg4RjY2RUU1Nzg2NTkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MDdCOUYzQ0I0MzlGMTFFOThGQzg4RjY2RUU1Nzg2NTkiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKFdpbmRvd3MpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MkQxNzQyQjZFRjA2MTFFODhBREFDNDFBMUJFNDQxREIiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6MkQxNzQyQjdFRjA2MTFFODhBREFDNDFBMUJFNDQxREIiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz74tZTQAAACwklEQVR42uycS0hUURzGz7XRsTI01OkFEhEyWr7ATasWQWXqopUbiRZCmK+yRbSIokUQhKX2tFWbaCUUkYIg0iKyNEo3Ltq6adNGjNyM32H+UJCO4z33fb8Pfpu5c+6c+d17/+ecOw8rk8koxiwFVECJlEiJDCVSIiVSIkOJ7iSRa+PP5qN+9+0GuAZ2gDFwE6z60ZnU3I/QnYlHwAdwB5SCEjAI5kEjL+etcwF8Ayc22JYGs+AqsCjx/5SB1+Al2JPjeUVgCEyCA5T4NyfBd9CxjTanwQJoj7vEQnAXTIMqG+0rwFvwBOyMo8Rq8FFGYNN+dMug0xAniV3gK2h2cJ81MugMeD3oeC2xHIyDF2C3C/tPgofgPdgXRYmnZCA478FrnQWLoDUqEvXZcR9MgYMeHrRK8A48AsVhlqjr1CdZuvk1Oe4Bc6A+bBK1sMsBWqYdA59BnxsHs8Cly0jP3R77OXfbpKyMyCWeCrLEFinobSq4OSd9bAmaRF24h72eWhgkJX0ddmLQcUKiLthfQL8KX/qlVh73S6IlqwPjTvicOhm9e+0OOnYl6ltQE7I6SKrwR7+HURkQK72Q2C4rjzMqemmz8962I3EXeCZHq0JFN/tV9obvg3yvsnwlNsnE+ZKKT65Iva91QmKfLN3SKn6pl5PnoonEEplLFan4Rs8jx3I9IbHFDlbAK5W9pWRt8gLJiMhaA783eFx/lXjcRKJOZ45tt8GtiEh8KnUwEDcgYhdKpERKpESGEimREimRoURKpERKZCjR9SQC0o97Kvu5hp3or9Fdp0SllsCMzbaHeTmzJjKUSImUSIkMJVIiJVIiQ4mUSImUyFAiJVIiJeadPw71Y9Wntv/ml92Gph8PPFfZHxvuNdjHMnhj0F631X8Lc8hQ4Kjdxhb/Ipo1kRIpkaFESqRESmQokRIDm3UBBgBHwWAbFrIgUwAAAABJRU5ErkJggg=="},"5bdf":function(t,e,n){"use strict";n("7091")},"5f87":function(t,e,n){"use strict";n.d(e,"a",(function(){return c})),n.d(e,"c",(function(){return s})),n.d(e,"b",(function(){return u}));var i=n("a78e"),a=n.n(i),r=n("56d7"),o="merchantToken";function c(){return a.a.get(o)}function s(t){return a.a.set(o,t)}function u(){return r["default"]&&r["default"].closeNotice(),a.a.remove(o)}},6082:function(t,e,n){},"61d3":function(t,e,n){"use strict";n("6082")},"61f7":function(t,e,n){"use strict";n.d(e,"b",(function(){return i}));n("6b54");function i(t){return/^(https?:|mailto:|tel:)/.test(t)}},6244:function(t,e,n){"use strict";n("8201")},"641c":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFEAAABRCAYAAACqj0o2AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA25pVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDo2OWRlYjViMi04ZTEzLWNmNDgtODFlNi0yNzk5OTk1OWFjZjgiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6QUY0MzkzRDQ0MzlFMTFFOTkwQ0NDREZCQTNCN0JEOEQiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6QUY0MzkzRDM0MzlFMTFFOTkwQ0NDREZCQTNCN0JEOEQiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKFdpbmRvd3MpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MkQxNzQyQjZFRjA2MTFFODhBREFDNDFBMUJFNDQxREIiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6MkQxNzQyQjdFRjA2MTFFODhBREFDNDFBMUJFNDQxREIiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz5PKXo+AAADwklEQVR42uycSWgUQRiFe5JxFyUIihJQENSAJughB/UgIuIS0TYXCdGcRNQkRD2IaHABcSFKxIOoYDTihuhcvCkuqBBcIV48eBLj1YVENI4Z34+/4JKu7vT0xsx78KjDVE/X/1FVb6ozk1Qul7Oo/FRCBIRIiIRIESIhEiIhUoMobXoxlUrFPkDbtktlKJlMJhv3WJwOJinTiSVOiIA3Es0BuFGGAp+BdwHmF0L0BnA2msvwnH9eeg3XAeRLQnSGJzfcCrfBIxy69cO74WOAmSPEvwFORNMBr/B4yR24ASDfxw0xEekMgMvRvBoCQNESuBvXro57/LHORA2PNl3CTuqDv8ITDH1Ow9vDDp3EzUQArETzzAXgc3ieBsxtQ79N0hfvObcoZqKGRzN8xBAeMqijcCtm1/c/rtsBH4SHxxE6iQgWgJiE5jy8zNCtB14PCPcc3kNm21V4RtShE/tyRvErNTxMAG/AlU4ARfoZUZb42aSETugzEYWM0vDY4hIezQB0bojvXaswy6IInViWM4qsQnMFrjB0e6qnkDc+71GO5iK8yNAtkJNOpBA1BFrgw4YQGNBw2fs7PPJ8SLET3m94qJJ36EQGEQVN1vBYauj2Dq5HMQ8C3ner9cw9PYzQiSRYUMQq2dBdAF7X8AgUoIbOEzSS3p1Rhk4gMxEDGq3hsdklPJpQaEdEnwbWaaiMCyp0QlvO+rlNltCssMIjD5DT0FyC5wcROoFD9HiCkPA4JBt+vuGRZ+i0qksMobNHQ2cgEogY2BQ0F3R/cdJbDY+HCXlStEBn5VRDt7vwBoy5J9Rg0Q252wXgNbgqKQA1dB7LmHRsTlqsoWOHEiwaHsf1iYnLeDNrrQQLtdyUxqWbnIS2oZa+QGYibipn1RceAIo+W8mXlzFulJq1dqNKPABsQtMFz7SKT/KkqEsZ+IOIi8eiOQEPs4pXUns7WKR9QcR+0KufAT/CnwbxtwKC1e9Qo9TeafryQNpDqtUbZuo+eYBQIBBPodYWPxfyuzgBiBAJkRAJkSJEQiREQqR8nVjCEk47C9HcCvhta3DqeFQ0EPXe4wuhHi5nQiREBktIkr9n1HjsK6E0hhD/Vxbpet9jume5nLknUoRIiIRIiBQhEiIhEiJFiIRIiEWjMJ7iVNu23e6hX3kI927Evdd4GWPSIVZY5h9EhqlaLmfuiYToV0F/3bg3pL5e9CGuPVF+YCj/FKgsgCJ+WL++H+5VDXAdXBoQwJN+L07xX0RzTyREQqQIkRAJkRApQiTExOqnAAMAXR2Kua55/NAAAAAASUVORK5CYII="},6599:function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-excel",use:"icon-excel-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},"65a0":function(t,e,n){},6618:function(t,e,n){"use strict";var i=n("bbcc"),a=n("5c96"),r=n.n(a),o=n("a18c"),c=n("83d6"),s=n("2b0e");function u(t){t.$on("notice",(function(t){this.$notify.info({title:t.title||"消息",message:t.message,duration:5e3,onClick:function(){console.log("click")}})}))}function l(t){return new WebSocket("".concat(i["a"].wsSocketUrl,"?type=mer&token=").concat(t))}function d(t){var e,n=l(t),i=new s["default"];function a(t,e){n.send(JSON.stringify({type:t,data:e}))}return n.onopen=function(){i.$emit("open"),e=setInterval((function(){a("ping")}),1e4)},n.onmessage=function(t){i.$emit("message",t);var e=JSON.parse(t.data);if(200===e.status&&i.$emit(e.data.status,e.data.result),"notice"===e.type){var n=i.$createElement;r.a.Notification({title:e.data.data.title,message:n("a",{style:"color: teal"},e.data.data.message),onClick:function(){"min_stock"===e.data.type||"product"===e.data.type?o["c"].push({path:"".concat(c["roterPre"],"/product/list")}):"reply"===e.data.type?o["c"].push({path:"".concat(c["roterPre"],"/product/reviews")}):"product_success"===e.data.type?o["c"].push({path:"".concat(c["roterPre"],"/product/list?id=")+e.data.data.id+"&type=2"}):"product_fail"===e.data.type?o["c"].push({path:"".concat(c["roterPre"],"/product/list?id=")+e.data.data.id+"&type=7"}):"product_seckill_success"===e.data.type?o["c"].push({path:"".concat(c["roterPre"],"/marketing/seckill/list?id=")+e.data.data.id+"&type=2"}):"product_seckill_fail"===e.data.type?o["c"].push({path:"".concat(c["roterPre"],"/marketing/seckill/list?id=")+e.data.data.id+"&type=7"}):"new_order"===e.data.type?o["c"].push({path:"".concat(c["roterPre"],"/order/list?id=")+e.data.data.id}):"new_refund_order"===e.data.type?o["c"].push({path:"".concat(c["roterPre"],"/order/refund?id=")+e.data.data.id}):"product_presell_success"===e.data.type?o["c"].push({path:"".concat(c["roterPre"],"/marketing/presell/list?id=")+e.data.data.id+"&type="+e.data.data.type+"&status=1"}):"product_presell_fail"===e.data.type?o["c"].push({path:"".concat(c["roterPre"],"/marketing/presell/list?id=")+e.data.data.id+"&type="+e.data.data.type+"&status=-1"}):"product_group_success"===e.data.type?o["c"].push({path:"".concat(c["roterPre"],"/marketing/combination/combination_goods?id=")+e.data.data.id+"&status=1"}):"product_group_fail"===e.data.type?o["c"].push({path:"".concat(c["roterPre"],"/marketing/combination/combination_goods?id=")+e.data.data.id+"&status=-1"}):"product_assist_success"===e.data.type?o["c"].push({path:"".concat(c["roterPre"],"/marketing/assist/list?id=")+e.data.data.id+"&status=1"}):"product_assist_fail"===e.data.type?o["c"].push({path:"".concat(c["roterPre"],"/marketing/assist/list?id=")+e.data.data.id+"&status=-1"}):"broadcast_status_success"===e.data.type?o["c"].push({path:"".concat(c["roterPre"],"/marketing/studio/list?id=")+e.data.data.id+"&status=1"}):"broadcast_status_fail"===e.data.type?o["c"].push({path:"".concat(c["roterPre"],"/marketing/studio/list?id=")+e.data.data.id+"&status=-1"}):"goods_status_success"===e.data.type?o["c"].push({path:"".concat(c["roterPre"],"/marketing/broadcast/list?id=")+e.data.data.id+"&status=1"}):"goods_status_fail"===e.data.type&&o["c"].push({path:"".concat(c["roterPre"],"/marketing/broadcast/list?id=")+e.data.data.id+"&status=-1"})}})}},n.onclose=function(t){i.$emit("close",t),clearInterval(e)},u(i),function(){n.close()}}e["a"]=d},6683:function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-guide",use:"icon-guide-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},"678b":function(t,e,n){"use strict";n("432f")},"708a":function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-star",use:"icon-star-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},7091:function(t,e,n){},"711b":function(t,e,n){"use strict";n("f677")},7153:function(t,e){t.exports="data:image/jpeg;base64,/9j/4QAYRXhpZgAASUkqAAgAAAAAAAAAAAAAAP/sABFEdWNreQABAAQAAABkAAD/4QMuaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLwA8P3hwYWNrZXQgYmVnaW49Iu+7vyIgaWQ9Ilc1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCI/PiA8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJBZG9iZSBYTVAgQ29yZSA1LjYtYzE0OCA3OS4xNjQwMzYsIDIwMTkvMDgvMTMtMDE6MDY6NTcgICAgICAgICI+IDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+IDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiIHhtbG5zOnhtcD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLyIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bXA6Q3JlYXRvclRvb2w9IkFkb2JlIFBob3Rvc2hvcCAyMS4wIChNYWNpbnRvc2gpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjNENTU5QTc5RkRFMTExRTlBQTQ0OEFDOUYyQTQ3RkZFIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjNENTU5QTdBRkRFMTExRTlBQTQ0OEFDOUYyQTQ3RkZFIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6M0Q1NTlBNzdGREUxMTFFOUFBNDQ4QUM5RjJBNDdGRkUiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6M0Q1NTlBNzhGREUxMTFFOUFBNDQ4QUM5RjJBNDdGRkUiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz7/7gAOQWRvYmUAZMAAAAAB/9sAhAABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAgICAgICAgICAgIDAwMDAwMDAwMDAQEBAQEBAQIBAQICAgECAgMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwP/wAARCADIAMgDAREAAhEBAxEB/8QAcQABAAMAAgMBAAAAAAAAAAAAAAYHCAMFAQIECgEBAAAAAAAAAAAAAAAAAAAAABAAAQQBAgMHAgUFAQAAAAAAAAECAwQFEQYhQRIxIpPUVQcXMhNRYUIjFCQVJXW1NhEBAAAAAAAAAAAAAAAAAAAAAP/aAAwDAQACEQMRAD8A/egAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHhVREVVVERE1VV4IiJ2qq8kQCs8p7s7Uxtl9WN17JujcrJJsdDC+sjmro5GTWLNZJtOSs6mLyUCT7d3dg90Rvdi7KrNE1HT07DPs24WquiOdFq5r49eHUxz2oq6a6gSYAAAAAAAAAAAAAAAAAAAAAAAAAV17p5Gxj9oW0rOdG+9Yr4+SRiqjmwTdck6IqdiSxwrGv5PUDJgEj2lkbOL3JhrVVzmv8A7hWgka3X96vZlZBYhVP1JJFIqJ+C6L2oBtUAAAzl7nb7ktXEwWFsujrY+wyW5bgerXWL9d6Pjiiexdfs0pWoqr+qVNexqKoW5sfdMW6sJFacrW5Cr01snCmidNhreE7Wp2Q2mp1t5IvU3j0qBMQAAAAAAAAAAAAAAAAAAA6PceDr7jw13EWHLG2yxqxTInU6CxE5JYJkTVOpGSNTqTVOpqqmqagZSymxN14qy+vJhb1tqOVsdnHVpr1eZNe65j67HqzqTsa9Gu/FAJ/7e+3GTTJ1c3nqzqNajIyzUpz6NtWbUao6CSWHi6vDBIiO0f0vc5qJppqoGhZ54a0MtixKyGCCN8s00rkZHFHG1XPe9ztEa1rU1VQM73/d66m5Y7NGPr29WV1Z1J7UbLehc9v3biucnVFY7qLEmujWpoqd5wEm3z7k0osJXg27cbNdzNb7n8iJ2j8dUcrmSK9PqhvPc1zEaujo9FdwVG6hm4CXbK3RNtXNQ3dXOoz9NfJQN4/cqucmsjW9izVnd9nNdFbqiOUDYsE8NmGKxXkZNBPGyaGWNUcySKRqPjkY5OCte1UVAOUAAAAAAAAAAAAAAAAAAAABVREVVXRE4qq8ERE7VVQMye5W/Vzcz8HiJv8AEV5P6mxG7hkrEa8OlyfVShend5PcnVxRGgVEAAAANAe0W7utq7Vvy95iSTYiR6/UzjJYo6rzZxkj/LqTk1AL4AAAAAAAAAAAAAAAAAAED3fv7E7VjdBql7LOZrFj4np+11Jq2S7InV/Hj5omivdyTTigUfjPdLcdXNvyd+db1OyrWWcYn7daKBqr0/wWd5K80SOXR3FX/rVy8UCSb/8AcyDJ0WYnbk0qQXIGPyVxWPhl+3K3VccxHaOaui6TOTVF+lFVFcBR4AAAAAc9WzPTsQW6sr4bNaWOeCZi6Pjlicj2Pav4tcgG38NckyOIxWQma1st7G0bkrWaoxslmrFM9rEVVVGo566ar2AdkAAAAAAAAAAAAAAAA6fcM81XAZyzXkdFPXw+TnglYuj45oqU8kcjV5OY9qKn5oBiKSWSaR8s0j5ZZXufJLI9z5JHuXVz3vcque9yrqqquqqB6AAAAAAAAANt7X/8zt3/AEWI/wCfXA70AAAAAAAAAAAAAAAB8mQpx5Ghdx8znsivVLNOV8atSRkdqF8D3Rq5rmo9rXqqaoqa8gKp+FtuepZvxaHkAHwttz1LN+LQ8gA+FtuepZvxaHkAHwttz1LN+LQ8gA+FtuepZvxaHkAHwttz1LN+LQ8gA+FtuepZvxaHkAHwttz1LN+LQ8gA+FtuepZvxaHkALWx9OPHUKWPhc98VGpWpxPkVqyPjqwsgY6RWta1XuaxFXRETXkB9YAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/9k="},"73fc":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFEAAABRCAYAAACqj0o2AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA25pVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDo2OWRlYjViMi04ZTEzLWNmNDgtODFlNi0yNzk5OTk1OWFjZjgiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6Q0I1NzhERDI0MzlFMTFFOTkwOTJBOTgyMTk4RjFDNkQiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6Q0I1NzhERDE0MzlFMTFFOTkwOTJBOTgyMTk4RjFDNkQiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKFdpbmRvd3MpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MkQxNzQyQjZFRjA2MTFFODhBREFDNDFBMUJFNDQxREIiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6MkQxNzQyQjdFRjA2MTFFODhBREFDNDFBMUJFNDQxREIiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz74PCH/AAAEfUlEQVR42uycTUhUURTH35QKRdnHIopIhTYVaKWLCqIvSUlIcwpaFLQI+oKkFrWqZUGfBC2iTURQiOWIBWZZJmYE0ZdZUUZRJrQysoLKpux/8C2m6x3nzby5753nnAOHS/dd35z3m3vuOffcN4UGBwctEXcyRhAIRIEoEEUEokAUiAJRRCCakSynA8Ph8Aw0ixwOH2hoaGgaDYCc7OiykrgfAWxwOri6ujofIHvEnd3JGlkTBSILiKVw6RwJLP9LF3TvCNfXQZfH/HsCdBn0lkC0BUHiLZpTIwSSXgUiSUUmQEynO9+ERjNxXUwbRMzUr2juKd1zMEMLBGJycj0To3TI6RlLKBRykmAXoelUdy/QHwHj8gtaD62JRCLRdEZnpxH8E3RGTF+OrUGTndDukYKpEXfGukjTumUUeWqxX8n2jVEEsTvdyXYyqQ7NSHURfWb3c5VCzaS65nlgiQkwjzSusBDu/pQjPao4oXmvdH+AvQVO+JjaOzdr+soYz8IqTV+j3wUI3bpYzhhipabvqt8Q70O/K31L4TbjGbryJM2evx/a7itErCW/0bQq3ZQrrmA4Cys0AbbJfgZfZ2I8ly4LiCs3JnODjIYIV862Z2KsROMERu8h2vXHd0r3XBg+ixFHWgtzlb422N7PZSYGYTa6dmW/IHJKdarcpDZeQWy1hle76QBrLIP1cD6aPKW7M5WzcqMQYdA3O2eMlanQkqDvUryciZxdujJIENnto+HKMzXeQKeVT7hCJMP6lL4leJBcbntlu6jMDyIM+2sN1RhjhQLLqqAWHPyYiazyRXjARM0XSAGwjTvEFkbBpdwafnDWDI/5leoNjVS248wAOh4oVLqPWt4fpxLExUrfZkC8qBuc7pc80+HSKsT9DFKdP5b+pQN27hxvXeQgdzELPwcFYoe9gHOTOrc38Awivu2fbtIIg1/sebc38TKwzENDR6bZyqXD0Ms+AKQv9XWiBNsJH08gAiD9MR38LFUuPYcWJ3Oe4bX4ee6sylYNQLJuO2eAbNwZs3AamlfQKcqlswC4gzsgLnniSQ1ASrBrAXgBI15/8KV2pfKHRiEC0lo0mzSXxkHvMJt0dDg1mWOKc9rKADENcbpAdC/nMgGi6cCyG/oQWhQAFilXkzzbsQRVOCXbsiaKCMTAB5bYxHusnXhvsIZ+LPQReglan+pRZQo20DHtLuhqa+inxC+hZ/D5D1jvnW3jaYdCP2co1VyOQDfiQaKGAc5Gcxuar7m8D59/nHtgORoHIEkYesAwQHrOK3EAkhzDmFK2a6J9zrstwbAajDO5tKyEJip27OEcWKiinegHklTlyTNoQ0maxvgG0WnRdcCgDT9Nfr4XEKlG9yXBmB4s7L0GbehwMKadLUS7/H8owbCDhm14bI387iHN1CPck+0TUEoh1HyB3j44iIe84IENWyz9O0HkJethw4tAFCAQgQvtlIbqjOS+dTD+jZe7C9hQZqdblHjTaWMtbOhzU4AIyf+zLXtngSgQRQSiQBSIAlFEIJqRfwIMABiyUOLFGxshAAAAAElFTkSuQmCC"},7509:function(t,e,n){"use strict";n.r(e);var i=n("2909"),a=n("3835"),r=(n("ac6a"),n("b85c")),o=(n("7f7f"),n("6762"),n("2fdb"),{visitedViews:[],cachedViews:[]}),c={ADD_VISITED_VIEW:function(t,e){t.visitedViews.some((function(t){return t.path===e.path}))||t.visitedViews.push(Object.assign({},e,{title:e.meta.title||"no-name"}))},ADD_CACHED_VIEW:function(t,e){t.cachedViews.includes(e.name)||e.meta.noCache||t.cachedViews.push(e.name)},DEL_VISITED_VIEW:function(t,e){var n,i=Object(r["a"])(t.visitedViews.entries());try{for(i.s();!(n=i.n()).done;){var o=Object(a["a"])(n.value,2),c=o[0],s=o[1];if(s.path===e.path){t.visitedViews.splice(c,1);break}}}catch(u){i.e(u)}finally{i.f()}},DEL_CACHED_VIEW:function(t,e){var n=t.cachedViews.indexOf(e.name);n>-1&&t.cachedViews.splice(n,1)},DEL_OTHERS_VISITED_VIEWS:function(t,e){t.visitedViews=t.visitedViews.filter((function(t){return t.meta.affix||t.path===e.path}))},DEL_OTHERS_CACHED_VIEWS:function(t,e){var n=t.cachedViews.indexOf(e.name);t.cachedViews=n>-1?t.cachedViews.slice(n,n+1):[]},DEL_ALL_VISITED_VIEWS:function(t){var e=t.visitedViews.filter((function(t){return t.meta.affix}));t.visitedViews=e},DEL_ALL_CACHED_VIEWS:function(t){t.cachedViews=[]},UPDATE_VISITED_VIEW:function(t,e){var n,i=Object(r["a"])(t.visitedViews);try{for(i.s();!(n=i.n()).done;){var a=n.value;if(a.path===e.path){a=Object.assign(a,e);break}}}catch(o){i.e(o)}finally{i.f()}}},s={addView:function(t,e){var n=t.dispatch;n("addVisitedView",e),n("addCachedView",e)},addVisitedView:function(t,e){var n=t.commit;n("ADD_VISITED_VIEW",e)},addCachedView:function(t,e){var n=t.commit;n("ADD_CACHED_VIEW",e)},delView:function(t,e){var n=t.dispatch,a=t.state;return new Promise((function(t){n("delVisitedView",e),n("delCachedView",e),t({visitedViews:Object(i["a"])(a.visitedViews),cachedViews:Object(i["a"])(a.cachedViews)})}))},delVisitedView:function(t,e){var n=t.commit,a=t.state;return new Promise((function(t){n("DEL_VISITED_VIEW",e),t(Object(i["a"])(a.visitedViews))}))},delCachedView:function(t,e){var n=t.commit,a=t.state;return new Promise((function(t){n("DEL_CACHED_VIEW",e),t(Object(i["a"])(a.cachedViews))}))},delOthersViews:function(t,e){var n=t.dispatch,a=t.state;return new Promise((function(t){n("delOthersVisitedViews",e),n("delOthersCachedViews",e),t({visitedViews:Object(i["a"])(a.visitedViews),cachedViews:Object(i["a"])(a.cachedViews)})}))},delOthersVisitedViews:function(t,e){var n=t.commit,a=t.state;return new Promise((function(t){n("DEL_OTHERS_VISITED_VIEWS",e),t(Object(i["a"])(a.visitedViews))}))},delOthersCachedViews:function(t,e){var n=t.commit,a=t.state;return new Promise((function(t){n("DEL_OTHERS_CACHED_VIEWS",e),t(Object(i["a"])(a.cachedViews))}))},delAllViews:function(t,e){var n=t.dispatch,a=t.state;return new Promise((function(t){n("delAllVisitedViews",e),n("delAllCachedViews",e),t({visitedViews:Object(i["a"])(a.visitedViews),cachedViews:Object(i["a"])(a.cachedViews)})}))},delAllVisitedViews:function(t){var e=t.commit,n=t.state;return new Promise((function(t){e("DEL_ALL_VISITED_VIEWS"),t(Object(i["a"])(n.visitedViews))}))},delAllCachedViews:function(t){var e=t.commit,n=t.state;return new Promise((function(t){e("DEL_ALL_CACHED_VIEWS"),t(Object(i["a"])(n.cachedViews))}))},updateVisitedView:function(t,e){var n=t.commit;n("UPDATE_VISITED_VIEW",e)}};e["default"]={namespaced:!0,state:o,mutations:c,actions:s}},7680:function(t,e,n){},"770f":function(t,e,n){},"7b72":function(t,e,n){},"80da":function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-wechat",use:"icon-wechat-usage",viewBox:"0 0 128 110",content:''});o.a.add(c);e["default"]=c},8201:function(t,e,n){},"83d6":function(t,e){t.exports={roterPre:"/merchant",title:"加载中...",showSettings:!0,tagsView:!0,fixedHeader:!1,sidebarLogo:!0,errorLog:"production"}},8544:function(t,e,n){},8593:function(t,e,n){"use strict";n.d(e,"u",(function(){return a})),n.d(e,"n",(function(){return r})),n.d(e,"K",(function(){return o})),n.d(e,"t",(function(){return c})),n.d(e,"s",(function(){return s})),n.d(e,"m",(function(){return u})),n.d(e,"J",(function(){return l})),n.d(e,"r",(function(){return d})),n.d(e,"o",(function(){return h})),n.d(e,"q",(function(){return m})),n.d(e,"g",(function(){return f})),n.d(e,"j",(function(){return p})),n.d(e,"x",(function(){return g})),n.d(e,"h",(function(){return b})),n.d(e,"i",(function(){return v})),n.d(e,"w",(function(){return A})),n.d(e,"k",(function(){return w})),n.d(e,"A",(function(){return y})),n.d(e,"F",(function(){return k})),n.d(e,"C",(function(){return C})),n.d(e,"E",(function(){return E})),n.d(e,"B",(function(){return j})),n.d(e,"L",(function(){return I})),n.d(e,"y",(function(){return S})),n.d(e,"z",(function(){return x})),n.d(e,"D",(function(){return O})),n.d(e,"G",(function(){return R})),n.d(e,"H",(function(){return _})),n.d(e,"l",(function(){return M})),n.d(e,"e",(function(){return D})),n.d(e,"I",(function(){return z})),n.d(e,"f",(function(){return V})),n.d(e,"p",(function(){return B})),n.d(e,"a",(function(){return L})),n.d(e,"v",(function(){return F})),n.d(e,"b",(function(){return T})),n.d(e,"c",(function(){return N})),n.d(e,"d",(function(){return Q}));var i=n("0c6d");function a(t,e){return i["a"].get("group/lst",{page:t,limit:e})}function r(){return i["a"].get("group/create/table")}function o(t){return i["a"].get("group/update/table/"+t)}function c(t){return i["a"].get("group/detail/"+t)}function s(t,e,n){return i["a"].get("group/data/lst/"+t,{page:e,limit:n})}function u(t){return i["a"].get("group/data/create/table/"+t)}function l(t,e){return i["a"].get("group/data/update/table/".concat(t,"/").concat(e))}function d(t,e){return i["a"].post("/group/data/status/".concat(t),{status:e})}function h(t){return i["a"].delete("group/data/delete/"+t)}function m(){return i["a"].get("system/attachment/category/formatLst")}function f(){return i["a"].get("system/attachment/category/create/form")}function p(t){return i["a"].get("system/attachment/category/update/form/".concat(t))}function g(t,e){return i["a"].post("system/attachment/update/".concat(t,".html"),e)}function b(t){return i["a"].delete("system/attachment/category/delete/".concat(t))}function v(t){return i["a"].get("system/attachment/lst",t)}function A(t){return i["a"].delete("system/attachment/delete",t)}function w(t,e){return i["a"].post("system/attachment/category",{ids:t,attachment_category_id:e})}function y(){return i["a"].get("service/create/form")}function k(t){return i["a"].get("service/update/form/".concat(t))}function C(t){return i["a"].get("service/list",t)}function E(t,e){return i["a"].post("service/status/".concat(t),{status:e})}function j(t){return i["a"].delete("service/delete/".concat(t))}function I(t){return i["a"].get("user/lst",t)}function S(t,e){return i["a"].get("service/".concat(t,"/user"),e)}function x(t,e,n){return i["a"].get("service/".concat(t,"/").concat(e,"/lst"),n)}function O(t){return i["a"].post("service/login/"+t)}function R(t){return i["a"].get("notice/lst",t)}function _(t){return i["a"].post("notice/read/".concat(t))}function M(t){return i["a"].post("applyments/create",t)}function D(){return i["a"].get("applyments/detail")}function z(t,e){return i["a"].post("applyments/update/".concat(t),e)}function V(t){return i["a"].get("profitsharing/lst",t)}function B(t){return i["a"].get("expr/lst",t)}function L(t){return i["a"].get("expr/partner/".concat(t,"/form"))}function F(t){return i["a"].get("profitsharing/export",t)}function T(t){return i["a"].get("ajcaptcha",t)}function N(t){return i["a"].post("ajcheck",t)}function Q(t){return i["a"].post("ajstatus",t)}},8644:function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-size",use:"icon-size-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},8646:function(t,e,n){"use strict";n("770f")},"8a9d":function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"e",(function(){return r})),n.d(e,"b",(function(){return o})),n.d(e,"f",(function(){return c})),n.d(e,"d",(function(){return s})),n.d(e,"c",(function(){return u}));var i=n("0c6d");function a(t){return i["a"].get("v2/system/city/lst/"+t)}function r(t){return i["a"].get("store/shipping/lst",t)}function o(t){return i["a"].post("store/shipping/create",t)}function c(t,e){return i["a"].post("store/shipping/update/".concat(t),e)}function s(t){return i["a"].get("/store/shipping/detail/".concat(t))}function u(t){return i["a"].delete("store/shipping/delete/".concat(t))}},"8aa6":function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-zip",use:"icon-zip-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},"8bcc":function(t,e,n){"use strict";n("29c0")},"8e8d":function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-search",use:"icon-search-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},"8ea6":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFEAAABRCAYAAACqj0o2AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA25pVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDo2OWRlYjViMi04ZTEzLWNmNDgtODFlNi0yNzk5OTk1OWFjZjgiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6RDVCRUNFOTg0MzlFMTFFOTkyODA4MTRGOTU2MjgyQUUiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6RDVCRUNFOTc0MzlFMTFFOTkyODA4MTRGOTU2MjgyQUUiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKFdpbmRvd3MpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MkQxNzQyQjZFRjA2MTFFODhBREFDNDFBMUJFNDQxREIiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6MkQxNzQyQjdFRjA2MTFFODhBREFDNDFBMUJFNDQxREIiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz6lVJLmAAAF2klEQVR42uycWWxVRRjH59oismvBvUCImrigRasFjaGCJhjToK1Row2SaELcgsuDuMT4YlJi1KASjWh8KZpAYhuRupCoxQeJgEYeVAhEpBXrUqkoqAi1/v85n0nTfKf39Nw5y53Ol/wzzZlzZvndObN8M6eFgYEB4600O84j8BA9RA/Rm4foIXqIHqI3DzEZq4x6Y6FQSKVAjY2NzGg2dCk0C5oMHYN+g76Fvmhvb9+ZFqAoK7pC1GVf0hAB72wE90G3QKcVuX0/9Cb0EoB+N+ohAt7JCFZCS6GKET7eD70OPQKYB0YlRAC8FsFaaGqJSf0ENQPkh1lAzGxgAcC7EXRYAEg7FdqENO/Ioi6ZtERUdhmCV4rc9ge0C9oDHYHOgC6GphV5bgla5FqnX2cAnI/go2H6vw+g1QwB4+iQZ/nmXAk9BF0f8jyfuRzPfu4kRECYiOBraLoS3QPdicq/FzGtBQhaoTOV6N3QhUjriIt94uMhAPna1kUFSMO9HyOYC32jRJ8D3e9cn4iWcxKCbmjCkKheqBZQumKmO4MTcGWA+hWqRrp/u9QSb1cA0u6KC1BaJJ+9R4ki1CbX1s43Kte2AcJbpSaMNNYj0AYSdyDilRvHEVOJes1iNtqUaYFLLfG8EGfHBot5aINSFX7A012BqE1D+vAa/mgrA6T1PQJt/VztCsQTlGtdCeTTq1yb4ApELZ9xKf1YR12BqL221eivKmxlgLQqZX091H5xBeIu5dp46CKLecxVBi96xPc6AVEGkG4l6laL2dwcMg915nWmdSjXluE1nGrhVT6Fzgsl6l3XViytyrUp0HMW0l6ljMJc9L7hFES8Vp8i+ExbU6MlLS+hFT4Q0i2sR55706hbpUnXVkCdyvXnAWMswmdQ8YGI8OhWetgEm1xDjX7EJ9KqVKr+RADajGBNSPTT7MNk67QYwPMRvB8CkPYk8tqdVr3Sbom0B02wMX+JEsfdv52AxC2CdhN4ZnokjnPAy6AboEVQmINzg/wgqVlWG1V0CmwywUkHm0ZvdwNa4Z+2Esztlikqyda1EPrEYrL0KV5nE2CuW+KgFjkGwWOi42MmwzM6KwBvTRKAyuYsjgwmBHkbNDbiY79DL0PPAmBi6+OyOtAkME80wX7yNVANdJassWkHTXAqbLv0px2A91fSZSo7iHm0XJ/Fcck8RA/RQ3TGKrMugJyUvcAE26o8oz0T4opmmozMkwdNaTiR7pWl4D4TeK15FuerJKc5uRqdZR+E6+Z6aB5UZ/R9kTj2A7RVxOXfdoA95sQUR1pag8z/uNSblFIDOQzx+PHb0EYA/bmsIALcePG2LJWJc9Z9778ClN71NgA9nFuIgMfTBvdCPE5cldNxoM8EZ4BeBMzu3EAEPB48f9QER9zGxKhYvwwU/Mhnj/x9QJZ6B+WeKaIqGXy43j5X/o6zf81dwFehp8SrlA1EOUPNrwBaRtjX7ZPOn/su22R0jbW1KZ4gju502F5hgpNgM0fYd/IE72qUoT9ViCg8v3paB82P8DhHyU4TeJ03Jr2BhLLNksFsMXRVxKncFugmlG1/KhBRyFoBUmx68qUJvnhaF3d0tACUe9L81I3fuMwpcjs/KlqMsm5NFCIKxYJsHjQJ1ox7JC2yMZUbQ9nrpe9eNMxtnNQv/P8TDusQxd+3A5oRchszXi57zLk11IN95wtQ7TAT9xrUozcJV1hLCED2edxTrss7QJqUsU7KrK1q2E2ttL7sa2pq4kDSpUxh+PlYYxIfJ6bUKq82wfbsJGXaNb2tra3HZktsCJkDNpcrQGmVLHuzElVhwj99iw2xRrnWiUK8U+6uLKlDpxI12zZEbTK9w7hjW5RrE21DdN3+ifugh2jBPEQPMR9W6h5LPeZZqxxhMS8riHMiLOr96+zNLsS+UcinzzZEnv87NIoAHjLh58vjOSDEFcZ/ULHEDO9LdMHoU2zl4Xmr/kRvfmDxED1ED9Gbh+gheogeoreR2X8CDACpuyLF6U1ukwAAAABJRU5ErkJggg=="},"8fb7":function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-tab",use:"icon-tab-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},"905e":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFEAAABRCAYAAACqj0o2AAAAAXNSR0IArs4c6QAADbRJREFUeF7tnH1wVNUVwM95bxPysV+RBBK+TPgKEQkBYRRDbWihQgWBKgoaa+yAguJIx3Zqh3aMUzva0U7o0CoolqigCDhGQRumOO6MUBgBTSGSBQKJED4MkXzsbrJJ3t7TuQuh2X1v38e+F3Da3H/33nPP+d1zv849bxH6i2kCaFpCvwDoh2iBE/RD7IdoAQELRPR7Yj9ECwhYIKLfE/9XIbavnjgUWeLoEMEwQLQhQzsIFCQASSDmB6SGZBBr8YUvvrOAgWkR190TGx+/yZ7isBcKQDMJcCYijgYAux7LiKgJEasJyCMgeZL2HdiLHpD0tLWyznWBSEVga58y5S4UhGJAmEsASZYYRdAEANuR2KaUlw7utUSmDiHXFGJdSXbS4IyMxwjgGQDI1KFfVBUj6lIVsdDLqYe+fK+vvdOIVsZtvtKCe17HLVOfIKDfAWD6Nb0nEdUCg1+llh38MG4DNBr2OcT2VVMKmUDrEPBmo0YggJ+A+BTtVXAYANiMygKASlGklUkvHToZR1vVJn0GMex9E2/5A2F46sqLvOcLQFAJENorhYRqJjJv2pqqFqWm/sdvyqTExHEiihOBoIgQigDArQmHyE/IVtrLqt7UrGugQp9A5EZiQtI2AJiuMYRNQLAFmbQ5Ze3h/Qb0jqjKByyQP3mmgPAwAS4AzY2KygPdwScHvXLUH2+fEXPDCiG9ZQSfys8NkVgJhNkqsi8gshe/bWtZn1NeH7RSBz6AQkLib4iwBABVvJPtCUhdc6wAaakntj+RfyuhWBFz5yUMAtDLjYHmP1oNL3og2h4dm25LTCkjwOJYg4QAXsY6Z9hfOXrBzEBaBjG4Ij9XEoT9SDHXpoMSdC9xvfJ1rRmFjbb1LS8oEkR4GwD4hiQrCOTtDOC0tHLl9VdPf5ZAbF+aP4wS8MBlD5SLRGBrkmsO/7qvz2uxDOZeKYrJbwPgbOU6tCeA3XFPbdMQ+QF6UKJzHyAWKAyzBIytSn3tyN/0jGhf1gnfknLz1wLicqV+iNEW+2uHl8Sjg2mIgWX5rwKCkmISY6Eljg1fb49Hsb5q0/7oBL5OrorhkctTXzuy3mjfpiC2/2L8PSQIMSDR0tQN1W8YVeha1A8sm7AWAFbK+iIIhqTOSc7y414jesQNsbkk250oOo6QwoKNRKWpf69+zogi17JueGqPvvkDIpwrX4Jot31D9Swj+sQN0V8yvgxQaVqw3al1R+dcr01Er/FhJ8DUrwgVzrMhVmx/8+hmvbLigthaPGq0KCbVAEbdYXkoCmmCvdzcuUuv8mbrtZbk3SaCsE9BzoWLEMjRe5aNC6Lv53mvI+DS6M4Z0DLnWzUbzBp3LdsHHr7pVQKFjZFYif0tr647tmGI/kXZmZCUXAeAEYFUJNqfuqlmmlEAjYsy7BnJAwfgW964Qv11RdlJ2VnownfrvjXaN6/fvCDbneBIqYsOYBBQrf1MTZ6eZckwxMCDuasJhOcVvHCec7N3px5DAg/kzgfEYgY4G/HKUwDxsD55ELAi5WzNejXl2x/MLWSXZ8JcQEzv6ZOI9iNhRXd7x/q0inrFCJCSfoHicc8SYKnsN0az7e94d2nZZBii74FxJxCAv4P0KlRlf+fYJK3O2heNHRpKELYjwG1qdQmgVpSoJGXrsYgQP/faFNvA1wFhsXpf1CIQLk151/u+lk493mhLGVCH0QELpE32zcce0pJhCGLborHTBRE/l3kh0TLne8dV10L//WMnAmKlLDgRSwMCSWBsccrWE2EQ4WXENuAzABinZdTV3wmesW859ic99QOLc18l+aUh2C5dyhi07aJqyMwQxMB9Y58ljHZ7CrazZtWO2uaNTRdSwndrtfCYkq38iXQxo+69ICR+BoD6AV6RJhC7t2cg1GCGHURQchBpoXPrSR6ZilkMQfQtGrMPASOmIiJUpG49vlCtk8Ci0WsJBPkNgTfS0oCvlQgNcQxAj0oXLjZ25eR4tOOW/vvG8g0maqBpjX3riV9aAjG8HjF3c/TZkCi0wvH+qXWxOmmbNyRdSEw9LztT6pljFtUREFalbDvxFy1x/nvGbASEkqh6VfbtJ1TXey0/uCqv5e6RU2w2gU/JiMK6pTznjvqYd03/wlEPA2K5qgG6tdDCEPN3j/392hlardsWjCoRRNwYXS/1u9oEtdOCbvVbF+QUiyjy4GavdRv8jg9qHapT+Wej1hKh8lTWssqi3wm09eRd+RYOvxlhwJHobqmLJjg+PlkdSx3dEP3zR75AgBEvdwhUZf/wlKqr++eP3EjA3ztUim4t4qfqqDip2Qs/uKe7xQ4ZxFBooXNHfczNRVNwj0D/vJEbSb5ebHd8dGqRmmkx2sVPI86Wjo9O6bLVf3dOHUFkUIKIPeLcUR9zSdIlmOvtn5fzNhFEPPogUrl9R/0jqhDvynmaEF6+rp5IUO3YWTdBD3//3Bwe2YmM0hOUOnaeihna0w3Rd1c2P6fxR/KrBYHW2D+uV93+m3+aXWBD/EqPAX1Xh9Y4NPTs6VvJTkAqdeystwDiHA4xnGnQiyI97/jkm99rGe+bc+PnAKj1kK8lJr7fCSXGuvNcuxp0vTL6uJ2XMyp6l1LHJ1ZAvPPGDwCBZxf09sRye+Vp1enMK7fNHDEdbcA9OZ4cmvjg9bQiWufYdXqFXiG+2SMUBpxKHZWnLfDEWcP5S1nEUQURdtt3ndYVSvfPGvEUIayJaYzuhSWWBAUBBPubur6ZkeMB3VkW/jtHyDYWFgo96drd8FcDPStX9c8a9hSBEAmBqMmx+0yG7lH+yfAyoFgvbXql6KyH4MWujhl2z0VD2Q1ts4b7EDAiU5cx9pDr04ZNpiH6ioYVgYh8XYwoFArlOT3ndL+O+WZykCB/sjTtib3VIi9KnYYB+osyMsmWdD7aRiaxaS7P2ZgJV7pVbyzKsCcLic2ydY3RcofnrKG3Wt+PhpZBzLdfnZ4Wu5oXeX6NQQ/k4lqLsmYLgviPaNES86eleVpiBnl1Q+SCfUVD+aNORBSHgCqdnnNzjJruK+Ige3mkoiaG1AMA8iJ1xQWQ6+8vGvICoRCZT0lwweFpyFKzz5CWvjuyVgNGPg0QkAR+yHIeOheV0aqN1XdHVhmgECMbQbt91MLi7WjvnjHogLE1sLeMth8OkYX6AGmLw3NONb3EEMTm2zMKRDFBdnBGPqX3njc0pXuU9/0g679pHYa0iUDoDXaYA9g4NSMzKTnhTHQqMyNa4f78fMxQH9fCsNq+wswjhFH51wQHnXvPTzXqO1dBFmaVESpsNvoEeoOdkikPDE/l6ZlPM0DZ9ZRC0hjXvouqB3XjEG8fvJoA5a99kjTV/UXTQX12y2v5CgeXERic2gTeYLd5gFybttszj4DMOeig818XNJ3DMMSw29uEM7Jdmli5c3+j5u1FDbJvGgep+xzpDUoh0x4YBnjr4PkgoCzUJQCtsu/7VjMibhhieJe+ddA2Arw3AghCMBhiOWYW9suyB+uZ2t5giFkC8ArEfYCRpw4ECFJ3+3DnIZ/mhhkXxJapA2cKKP5T5lVELzoPXPxtvFP66ho5NaOMFJOl+CqO3iCzDqB/avqDDAXZbQSJ1jgOXFSNUPXoGxfEsMdMyfiKAAoi9yZqCUndOWlVsQ+megH7piiAJPIGESzzwOYCt9uWkFBDgFGfyJFEIchzfam+oZiG2Dp5YDGiEPHmEt7uiUodXzZZkpvom5zee2p7gx0dMwYdDRi6C6sNWuvk9HcRUZZNQUDrXIeadEd+4vZEArD5JqXXgCylBFpCJFnijWGPL+AgaXawM2gpQN/ktMcIRKXzX1OISWOMzKa4IYYX5AJ3CYAoe2IkoFWuqkuau5reqc2nnRGjtOS2F6QVSiB4lL4R5OmB7qpLhtIDTUEMe2P+DefDX472KghU6jh8yZIprQXE6O/+8e6JIZu4BxU/TGcVzn83q2ZzKPVnCiIX2DohjWdTRaReIH/Yqf7+QWwbn1ZIAlYqASSEetbGJqXVG98UzUMc75ZD5A871S3fK0/05bnuZ6KwQREg/yS4m81wH2uN68ZlHmKeuw5Qlu1V6jr6/YDIl5y2PPdLEOtujiARoznumtbdRpcG00ecHgGt41w89Tg6Za7U5b3+ENtyHYUMxXWIEOODdZKIwRL3sVZTHyyZ98RcpxwiUanreNt1m87B0QNGdQoDSnlKs4p3+Rmxh9KO+1RzD/V4p3mIYzjEqOmMcF0gtoxM/bEgCCtJCH/ko/Y824RS10LnqeAePZC06piHOMqhsCZSqavW3+ee2JgB9gGpqYVgw9kEcC9C+P8h1AvRbikYemTg2Q6eOGpJMQ9xpEPmiQRUITAyN03ESPsYw2F4+eMjNwD/AyIaDag//RiJggBY6jjl+zOCtX9AZB5idmodKH3aZckYWyWEKqFbetLV0KkrlcRor+Yh3sg/pFH9vwejOl2ub1ozHgwBTwhDz6XVB/kVr8+KaVVbR4S/rjL6VUCfGcSfSxBguySxN244Z83GoaWseYhDk/tmOhvSjOoR0CMR+7S1Ibg9B/Tn3mgB0vO7IVWVBLYOSeIfB2nvinq0ia7TSztC8AuX/1ANgKAWAGtDEDomAnid57p0p7HEo4ZWG9MQtTr4f/i9H6IFo9wPsR+iBQQsENHvif0QLSBggYh+T+yHaAEBC0T0e6IFEP8D5dohnWmX6X0AAAAASUVORK5CYII="},"90fb":function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-documentation",use:"icon-documentation-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},"93cd":function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-tree",use:"icon-tree-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},"967a":function(t,e,n){"use strict";n("9796")},9796:function(t,e,n){},9921:function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-fullscreen",use:"icon-fullscreen-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},"9bbf":function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-drag",use:"icon-drag-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},"9d91":function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-icon",use:"icon-icon-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},a14a:function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-404",use:"icon-404-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},a18c:function(t,e,n){"use strict";var i,a,r=n("2b0e"),o=n("8c4f"),c=n("83d6"),s=n.n(c),u=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"app-wrapper",class:t.classObj},["mobile"===t.device&&t.sidebar.opened?n("div",{staticClass:"drawer-bg",on:{click:t.handleClickOutside}}):t._e(),t._v(" "),n("sidebar",{staticClass:"sidebar-container",class:"leftBar"+t.sidebarWidth}),t._v(" "),n("div",{staticClass:"main-container",class:["leftBar"+t.sidebarWidth,t.needTagsView?"hasTagsView":""]},[n("div",{class:{"fixed-header":t.fixedHeader}},[n("navbar"),t._v(" "),t.needTagsView?n("tags-view"):t._e()],1),t._v(" "),n("app-main")],1),t._v(" "),n("copy-right")],1)},l=[],d=n("5530"),h=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("section",{staticClass:"app-main"},[n("transition",{attrs:{name:"fade-transform",mode:"out-in"}},[n("keep-alive",{attrs:{include:t.cachedViews}},[n("router-view",{key:t.key})],1)],1)],1)},m=[],f={name:"AppMain",computed:{cachedViews:function(){return this.$store.state.tagsView.cachedViews},key:function(){return this.$route.path}}},p=f,g=(n("6244"),n("eb24"),n("2877")),b=Object(g["a"])(p,h,m,!1,null,"51b022fa",null),v=b.exports,A=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"navbar"},[n("hamburger",{staticClass:"hamburger-container",attrs:{id:"hamburger-container","is-active":t.sidebar.opened},on:{toggleClick:t.toggleSideBar}}),t._v(" "),n("breadcrumb",{staticClass:"breadcrumb-container",attrs:{id:"breadcrumb-container"}}),t._v(" "),n("div",{staticClass:"right-menu"},["mobile"!==t.device?[n("header-notice"),t._v(" "),n("search",{staticClass:"right-menu-item",attrs:{id:"header-search"}}),t._v(" "),n("screenfull",{staticClass:"right-menu-item hover-effect",attrs:{id:"screenfull"}})]:t._e(),t._v(" "),n("div",{staticClass:"platformLabel"},[t._v(t._s(t.label.mer_name))]),t._v(" "),n("el-dropdown",{staticClass:"avatar-container right-menu-item hover-effect",attrs:{trigger:"click","hide-on-click":!1}},[n("span",{staticClass:"el-dropdown-link fontSize"},[t._v("\n "+t._s(t.adminInfo)+"\n "),n("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),t._v(" "),n("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[n("el-dropdown-item",{nativeOn:{click:function(e){return t.goUser(e)}}},[n("span",{staticStyle:{display:"block"}},[t._v("个人中心")])]),t._v(" "),n("el-dropdown-item",{attrs:{divided:""},nativeOn:{click:function(e){return t.goPassword(e)}}},[n("span",{staticStyle:{display:"block"}},[t._v("修改密码")])]),t._v(" "),n("el-dropdown-item",{attrs:{divided:""}},[n("el-dropdown",{attrs:{placement:"right-start"},on:{command:t.handleCommand}},[n("span",[t._v("菜单样式")]),t._v(" "),n("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[n("el-dropdown-item",{attrs:{command:"a"}},[t._v("标准")]),t._v(" "),n("el-dropdown-item",{attrs:{command:"b"}},[t._v("分栏")])],1)],1)],1),t._v(" "),n("el-dropdown-item",{attrs:{divided:""},nativeOn:{click:function(e){return t.logout(e)}}},[n("span",{staticStyle:{display:"block"}},[t._v("退出")])])],1)],1)],2)],1)},w=[],y=n("c7eb"),k=(n("96cf"),n("1da1")),C=n("2f62"),E=n("c24f"),j=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-breadcrumb",{staticClass:"app-breadcrumb",attrs:{separator:"/"}},[n("transition-group",{attrs:{name:"breadcrumb"}},t._l(t.levelList,(function(e,i){return n("el-breadcrumb-item",{key:i},[n("span",{staticClass:"no-redirect"},[t._v(t._s(e.meta.title))])])})),1)],1)},I=[],S=(n("7f7f"),n("f559"),n("bd11")),x=n.n(S),O={data:function(){return{levelList:null,roterPre:c["roterPre"]}},watch:{$route:function(t){t.path.startsWith("/redirect/")||this.getBreadcrumb()}},created:function(){this.getBreadcrumb()},methods:{getBreadcrumb:function(){var t=this.$route.matched.filter((function(t){return t.meta&&t.meta.title})),e=t[0];this.isDashboard(e)||(t=[{path:c["roterPre"]+"/dashboard",meta:{title:"控制台"}}].concat(t)),this.levelList=t.filter((function(t){return t.meta&&t.meta.title&&!1!==t.meta.breadcrumb}))},isDashboard:function(t){var e=t&&t.name;return!!e&&e.trim().toLocaleLowerCase()==="Dashboard".toLocaleLowerCase()},pathCompile:function(t){var e=this.$route.params,n=x.a.compile(t);return n(e)},handleLink:function(t){var e=t.redirect,n=t.path;e?this.$router.push(e):this.$router.push(this.pathCompile(n))}}},R=O,_=(n("d249"),Object(g["a"])(R,j,I,!1,null,"210f2cc6",null)),M=_.exports,D=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticStyle:{padding:"0 15px"},on:{click:t.toggleClick}},[n("svg",{staticClass:"hamburger",class:{"is-active":t.isActive},attrs:{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:"64",height:"64"}},[n("path",{attrs:{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM142.4 642.1L298.7 519a8.84 8.84 0 0 0 0-13.9L142.4 381.9c-5.8-4.6-14.4-.5-14.4 6.9v246.3a8.9 8.9 0 0 0 14.4 7z"}})])])},z=[],V={name:"Hamburger",props:{isActive:{type:Boolean,default:!1}},methods:{toggleClick:function(){this.$emit("toggleClick")}}},B=V,L=(n("c043"),Object(g["a"])(B,D,z,!1,null,"363956eb",null)),F=L.exports,T=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("svg-icon",{attrs:{"icon-class":t.isFullscreen?"exit-fullscreen":"fullscreen"},on:{click:t.click}})],1)},N=[],Q=n("93bf"),P=n.n(Q),H={name:"Screenfull",data:function(){return{isFullscreen:!1}},mounted:function(){this.init()},beforeDestroy:function(){this.destroy()},methods:{click:function(){if(!P.a.enabled)return this.$message({message:"you browser can not work",type:"warning"}),!1;P.a.toggle()},change:function(){this.isFullscreen=P.a.isFullscreen},init:function(){P.a.enabled&&P.a.on("change",this.change)},destroy:function(){P.a.enabled&&P.a.off("change",this.change)}}},U=H,G=(n("4d7e"),Object(g["a"])(U,T,N,!1,null,"07f9857d",null)),W=G.exports,Z=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"header-notice right-menu-item"},[n("el-dropdown",{attrs:{trigger:"click"}},[n("span",{staticClass:"el-dropdown-link"},[t.count>0?n("el-badge",{staticClass:"item",attrs:{"is-dot":"",value:t.count}},[n("i",{staticClass:"el-icon-message-solid"})]):n("span",{staticClass:"item"},[n("i",{staticClass:"el-icon-message-solid"})])],1),t._v(" "),n("el-dropdown-menu",{attrs:{slot:"dropdown",placement:"top-end"},slot:"dropdown"},[n("el-dropdown-item",{staticClass:"clearfix"},[n("el-tabs",{on:{"tab-click":t.handleClick},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[t.messageList.length>0?n("el-card",{staticClass:"box-card"},[n("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[n("span",[t._v("消息")])]),t._v(" "),t._l(t.messageList,(function(e,i){return n("router-link",{key:i,staticClass:"text item_content",attrs:{to:{path:t.roterPre+"/station/notice/"+e.notice_log_id}},nativeOn:{click:function(e){return t.HandleDelete(i)}}},[n("el-badge",{staticClass:"item",attrs:{"is-dot":""}}),t._v(" "+t._s(e.notice_title)+"\n ")],1)}))],2):n("div",{staticClass:"ivu-notifications-container-list"},[n("div",{staticClass:"ivu-notifications-tab-empty"},[n("div",{staticClass:"ivu-notifications-tab-empty-text"},[t._v("目前没有通知")]),t._v(" "),n("img",{staticClass:"ivu-notifications-tab-empty-img",attrs:{src:"https://file.iviewui.com/iview-pro/icon-no-message.svg",alt:""}})])])],1)],1)],1)],1)],1)},Y=[],J=n("8593"),q={name:"headerNotice",data:function(){return{activeName:"second",messageList:[],needList:[],count:0,tabPosition:"right",roterPre:c["roterPre"]}},computed:{},watch:{},mounted:function(){this.getList()},methods:{handleClick:function(t,e){console.log(t,e)},goDetail:function(t){t.is_read=1,console.log(this.$router),this.$router.push({path:this.roterPre+"/station/notice",query:{id:t.notice_log_id}})},getList:function(){var t=this;Object(J["G"])({is_read:0}).then((function(e){t.messageList=e.data.list,t.count=e.data.count})).catch((function(t){}))},HandleDelete:function(t){this.messageList.splice(t,1)}}},X=q,K=(n("225f"),Object(g["a"])(X,Z,Y,!1,null,"3bc87138",null)),$=K.exports,tt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"header-search",class:{show:t.show}},[n("svg-icon",{attrs:{"class-name":"search-icon","icon-class":"search"},on:{click:function(e){return e.stopPropagation(),t.click(e)}}}),t._v(" "),n("el-select",{ref:"headerSearchSelect",staticClass:"header-search-select",attrs:{"remote-method":t.querySearch,filterable:"","default-first-option":"",remote:"",placeholder:"Search"},on:{change:t.change},model:{value:t.search,callback:function(e){t.search=e},expression:"search"}},[t._l(t.options,(function(e){return[0===e.children.length?n("el-option",{key:e.route,attrs:{value:e,label:e.menu_name.join(" > ")}}):t._e()]}))],2)],1)},et=[],nt=(n("386d"),n("2909")),it=n("b85c"),at=n("ffe7"),rt=n.n(at),ot=n("df7c"),ct=n.n(ot),st={name:"headerSearch",data:function(){return{search:"",options:[],searchPool:[],show:!1,fuse:void 0}},computed:Object(d["a"])({},Object(C["b"])(["menuList"])),watch:{routes:function(){this.searchPool=this.generateRoutes(this.menuList)},searchPool:function(t){this.initFuse(t)},show:function(t){t?document.body.addEventListener("click",this.close):document.body.removeEventListener("click",this.close)}},mounted:function(){this.searchPool=this.generateRoutes(this.menuList)},methods:{click:function(){this.show=!this.show,this.show&&this.$refs.headerSearchSelect&&this.$refs.headerSearchSelect.focus()},close:function(){this.$refs.headerSearchSelect&&this.$refs.headerSearchSelect.blur(),this.options=[],this.show=!1},change:function(t){var e=this;this.$router.push(t.route),this.search="",this.options=[],this.$nextTick((function(){e.show=!1}))},initFuse:function(t){this.fuse=new rt.a(t,{shouldSort:!0,threshold:.4,location:0,distance:100,maxPatternLength:32,minMatchCharLength:1,keys:[{name:"menu_name",weight:.7},{name:"route",weight:.3}]})},generateRoutes:function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],a=[],r=Object(it["a"])(t);try{for(r.s();!(e=r.n()).done;){var o=e.value;if(!o.hidden){var c={route:ct.a.resolve(n,o.route),menu_name:Object(nt["a"])(i),children:o.children||[]};if(o.menu_name&&(c.menu_name=[].concat(Object(nt["a"])(c.menu_name),[o.menu_name]),"noRedirect"!==o.redirect&&a.push(c)),o.children){var s=this.generateRoutes(o.children,c.route,c.menu_name);s.length>=1&&(a=[].concat(Object(nt["a"])(a),Object(nt["a"])(s)))}}}}catch(u){r.e(u)}finally{r.f()}return a},querySearch:function(t){this.options=""!==t?this.fuse.search(t):[]}}},ut=st,lt=(n("8646"),Object(g["a"])(ut,tt,et,!1,null,"2301aee3",null)),dt=lt.exports,ht=n("a78e"),mt=n.n(ht),ft={components:{Breadcrumb:M,Hamburger:F,Screenfull:W,HeaderNotice:$,Search:dt},watch:{sidebarStyle:function(t){this.sidebarStyle=t}},data:function(){return{roterPre:c["roterPre"],sideBar1:"a"!=window.localStorage.getItem("sidebarStyle"),adminInfo:mt.a.set("MerName"),label:""}},computed:Object(d["a"])(Object(d["a"])({},Object(C["b"])(["sidebar","avatar","device"])),Object(C["d"])({sidebar:function(t){return t.app.sidebar},sidebarStyle:function(t){return t.user.sidebarStyle}})),mounted:function(){var t=this;Object(E["i"])().then((function(e){t.label=e.data,t.$store.commit("user/SET_MERCHANT_TYPE",e.data.merchantType||{})})).catch((function(e){var n=e.message;t.$message.error(n)}))},methods:{handleCommand:function(t){this.$store.commit("user/SET_SIDEBAR_STYLE",t),window.localStorage.setItem("sidebarStyle",t),this.sideBar1?this.subMenuList&&this.subMenuList.length>0?this.$store.commit("user/SET_SIDEBAR_WIDTH",270):this.$store.commit("user/SET_SIDEBAR_WIDTH",130):this.$store.commit("user/SET_SIDEBAR_WIDTH",210)},toggleSideBar:function(){this.$store.dispatch("app/toggleSideBar")},goUser:function(){this.$modalForm(Object(E["h"])())},goPassword:function(){this.$modalForm(Object(E["v"])())},logout:function(){var t=Object(k["a"])(Object(y["a"])().mark((function t(){return Object(y["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.$store.dispatch("user/logout");case 2:this.$router.push("".concat(c["roterPre"],"/login?redirect=").concat(this.$route.fullPath));case 3:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()}},pt=ft,gt=(n("cea8"),Object(g["a"])(pt,A,w,!1,null,"8fd88c62",null)),bt=gt.exports,vt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"drawer-container"},[n("div",[n("h3",{staticClass:"drawer-title"},[t._v("Page style setting")]),t._v(" "),n("div",{staticClass:"drawer-item"},[n("span",[t._v("Theme Color")]),t._v(" "),n("theme-picker",{staticStyle:{float:"right",height:"26px",margin:"-3px 8px 0 0"},on:{change:t.themeChange}})],1),t._v(" "),n("div",{staticClass:"drawer-item"},[n("span",[t._v("Open Tags-View")]),t._v(" "),n("el-switch",{staticClass:"drawer-switch",model:{value:t.tagsView,callback:function(e){t.tagsView=e},expression:"tagsView"}})],1),t._v(" "),n("div",{staticClass:"drawer-item"},[n("span",[t._v("Fixed Header")]),t._v(" "),n("el-switch",{staticClass:"drawer-switch",model:{value:t.fixedHeader,callback:function(e){t.fixedHeader=e},expression:"fixedHeader"}})],1),t._v(" "),n("div",{staticClass:"drawer-item"},[n("span",[t._v("Sidebar Logo")]),t._v(" "),n("el-switch",{staticClass:"drawer-switch",model:{value:t.sidebarLogo,callback:function(e){t.sidebarLogo=e},expression:"sidebarLogo"}})],1)])])},At=[],wt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-color-picker",{staticClass:"theme-picker",attrs:{predefine:["#409EFF","#1890ff","#304156","#212121","#11a983","#13c2c2","#6959CD","#f5222d"],"popper-class":"theme-picker-dropdown"},model:{value:t.theme,callback:function(e){t.theme=e},expression:"theme"}})},yt=[],kt=(n("c5f6"),n("6b54"),n("ac6a"),n("3b2b"),n("a481"),n("f6f8").version),Ct="#409EFF",Et={data:function(){return{chalk:"",theme:""}},computed:{defaultTheme:function(){return this.$store.state.settings.theme}},watch:{defaultTheme:{handler:function(t,e){this.theme=t},immediate:!0},theme:function(){var t=Object(k["a"])(Object(y["a"])().mark((function t(e){var n,i,a,r,o,c,s,u,l=this;return Object(y["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(n=this.chalk?this.theme:Ct,"string"===typeof e){t.next=3;break}return t.abrupt("return");case 3:if(i=this.getThemeCluster(e.replace("#","")),a=this.getThemeCluster(n.replace("#","")),r=this.$message({message:" Compiling the theme",customClass:"theme-message",type:"success",duration:0,iconClass:"el-icon-loading"}),o=function(t,e){return function(){var n=l.getThemeCluster(Ct.replace("#","")),a=l.updateStyle(l[t],n,i),r=document.getElementById(e);r||(r=document.createElement("style"),r.setAttribute("id",e),document.head.appendChild(r)),r.innerText=a}},this.chalk){t.next=11;break}return c="https://unpkg.com/element-ui@".concat(kt,"/lib/theme-chalk/index.css"),t.next=11,this.getCSSString(c,"chalk");case 11:s=o("chalk","chalk-style"),s(),u=[].slice.call(document.querySelectorAll("style")).filter((function(t){var e=t.innerText;return new RegExp(n,"i").test(e)&&!/Chalk Variables/.test(e)})),u.forEach((function(t){var e=t.innerText;"string"===typeof e&&(t.innerText=l.updateStyle(e,a,i))})),this.$emit("change",e),r.close();case 17:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()},methods:{updateStyle:function(t,e,n){var i=t;return e.forEach((function(t,e){i=i.replace(new RegExp(t,"ig"),n[e])})),i},getCSSString:function(t,e){var n=this;return new Promise((function(i){var a=new XMLHttpRequest;a.onreadystatechange=function(){4===a.readyState&&200===a.status&&(n[e]=a.responseText.replace(/@font-face{[^}]+}/,""),i())},a.open("GET",t),a.send()}))},getThemeCluster:function(t){for(var e=function(t,e){var n=parseInt(t.slice(0,2),16),i=parseInt(t.slice(2,4),16),a=parseInt(t.slice(4,6),16);return 0===e?[n,i,a].join(","):(n+=Math.round(e*(255-n)),i+=Math.round(e*(255-i)),a+=Math.round(e*(255-a)),n=n.toString(16),i=i.toString(16),a=a.toString(16),"#".concat(n).concat(i).concat(a))},n=function(t,e){var n=parseInt(t.slice(0,2),16),i=parseInt(t.slice(2,4),16),a=parseInt(t.slice(4,6),16);return n=Math.round((1-e)*n),i=Math.round((1-e)*i),a=Math.round((1-e)*a),n=n.toString(16),i=i.toString(16),a=a.toString(16),"#".concat(n).concat(i).concat(a)},i=[t],a=0;a<=9;a++)i.push(e(t,Number((a/10).toFixed(2))));return i.push(n(t,.1)),i}}},jt=Et,It=(n("678b"),Object(g["a"])(jt,wt,yt,!1,null,null,null)),St=It.exports,xt={components:{ThemePicker:St},data:function(){return{}},computed:{fixedHeader:{get:function(){return this.$store.state.settings.fixedHeader},set:function(t){this.$store.dispatch("settings/changeSetting",{key:"fixedHeader",value:t})}},tagsView:{get:function(){return this.$store.state.settings.tagsView},set:function(t){this.$store.dispatch("settings/changeSetting",{key:"tagsView",value:t})}},sidebarLogo:{get:function(){return this.$store.state.settings.sidebarLogo},set:function(t){this.$store.dispatch("settings/changeSetting",{key:"sidebarLogo",value:t})}}},methods:{themeChange:function(t){this.$store.dispatch("settings/changeSetting",{key:"theme",value:t})}}},Ot=xt,Rt=(n("5bdf"),Object(g["a"])(Ot,vt,At,!1,null,"e1b97696",null)),_t=Rt.exports,Mt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{key:t.sideBar1&&t.isCollapse,class:{"has-logo":t.showLogo}},[t.showLogo?n("logo",{attrs:{collapse:t.isCollapse,sideBar1:t.sideBar1}}):t._e(),t._v(" "),n("el-scrollbar",[t.sideBar1?[t.isCollapse?t._e():t._l(t.menuList,(function(e){return n("ul",{key:e.route,staticStyle:{padding:"0"}},[n("li",[n("div",{staticClass:"menu menu-one"},[n("div",{staticClass:"menu-item",class:{active:t.pathCompute(e)},on:{click:function(n){return t.goPath(e)}}},[n("i",{class:"menu-icon el-icon-"+e.icon}),n("span",[t._v(t._s(e.menu_name))])])])])])})),t._v(" "),t.subMenuList&&t.subMenuList.length>0&&!t.isCollapse?n("el-menu",{staticClass:"menuOpen",attrs:{"default-active":t.activeMenu,"background-color":"#ffffff","text-color":"#303133","unique-opened":!1,"active-text-color":"#303133",mode:"vertical"}},[n("div",{staticStyle:{height:"100%"}},[n("div",{staticClass:"sub-title"},[t._v(t._s(t.menu_name))]),t._v(" "),n("el-scrollbar",{attrs:{"wrap-class":"scrollbar-wrapper"}},t._l(t.subMenuList,(function(e,i){return n("div",{key:i},[!t.hasOneShowingChild(e.children,e)||t.onlyOneChild.children&&!t.onlyOneChild.noShowingChildren||e.alwaysShow?n("el-submenu",{ref:"subMenu",refInFor:!0,attrs:{index:t.resolvePath(e.route),"popper-append-to-body":""}},[n("template",{slot:"title"},[e?n("item",{attrs:{icon:e&&e.icon,title:e.menu_name}}):t._e()],1),t._v(" "),t._l(e.children,(function(e,i){return n("sidebar-item",{key:i,staticClass:"nest-menu",attrs:{"is-nest":!0,item:e,"base-path":t.resolvePath(e.route),isCollapse:t.isCollapse}})}))],2):[t.onlyOneChild?n("app-link",{attrs:{to:t.resolvePath(t.onlyOneChild.route)}},[n("el-menu-item",{attrs:{index:t.resolvePath(t.onlyOneChild.route)}},[n("item",{attrs:{icon:t.onlyOneChild.icon||e&&e.icon,title:t.onlyOneChild.menu_name}})],1)],1):t._e()]],2)})),0)],1)]):t._e(),t._v(" "),t.isCollapse?[n("el-menu",{staticClass:"menuStyle2",attrs:{"default-active":t.activeMenu,collapse:t.isCollapse,"background-color":t.variables.menuBg,"text-color":t.variables.menuText,"unique-opened":!0,"active-text-color":"#ffffff","collapse-transition":!1,mode:"vertical","popper-class":"styleTwo"}},[t._l(t.menuList,(function(t){return n("sidebar-item",{key:t.route,staticClass:"style2",attrs:{item:t,"base-path":t.route}})}))],2)]:t._e()]:n("el-menu",{staticClass:"subMenu1",attrs:{"default-active":t.activeMenu,collapse:t.isCollapse,"background-color":t.variables.menuBg,"text-color":t.variables.menuText,"unique-opened":!0,"active-text-color":t.variables.menuActiveText,"collapse-transition":!1,mode:"vertical"}},[t._l(t.menuList,(function(t){return n("sidebar-item",{key:t.route,attrs:{item:t,"base-path":t.route}})}))],2)],2)],1)},Dt=[],zt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"sidebar-logo-container",class:{collapse:t.collapse}},[n("transition",{attrs:{name:"sidebarLogoFade"}},[t.collapse&&!t.sideBar1?n("router-link",{key:"collapse",staticClass:"sidebar-logo-link",attrs:{to:"/"}},[t.slogo?n("img",{staticClass:"sidebar-logo-small",attrs:{src:t.slogo}}):t._e()]):n("router-link",{key:"expand",staticClass:"sidebar-logo-link",attrs:{to:"/"}},[t.logo?n("img",{staticClass:"sidebar-logo-big",attrs:{src:t.logo}}):t._e()])],1)],1)},Vt=[],Bt=s.a.title,Lt={name:"SidebarLogo",props:{collapse:{type:Boolean,required:!0},sideBar1:{type:Boolean,required:!1}},data:function(){return{title:Bt,logo:JSON.parse(mt.a.get("MerInfo")).menu_logo,slogo:JSON.parse(mt.a.get("MerInfo")).menu_slogo}}},Ft=Lt,Tt=(n("4b27"),Object(g["a"])(Ft,zt,Vt,!1,null,"06bf082e",null)),Nt=Tt.exports,Qt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("component",t._b({},"component",t.linkProps(t.to),!1),[t._t("default")],2)},Pt=[],Ht=n("61f7"),Ut={props:{to:{type:String,required:!0}},methods:{linkProps:function(t){return Object(Ht["b"])(t)?{is:"a",href:t,target:"_blank",rel:"noopener"}:{is:"router-link",to:t}}}},Gt=Ut,Wt=Object(g["a"])(Gt,Qt,Pt,!1,null,null,null),Zt=Wt.exports,Yt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.item.hidden?t._e():n("div",{class:{menuTwo:t.isCollapse}},[[!t.hasOneShowingChild(t.item.children,t.item)||t.onlyOneChild.children&&!t.onlyOneChild.noShowingChildren||t.item.alwaysShow?n("el-submenu",{ref:"subMenu",class:{subMenu2:t.sideBar1},attrs:{"popper-class":t.sideBar1?"styleTwo":"",index:t.resolvePath(t.item.route),"popper-append-to-body":""}},[n("template",{slot:"title"},[t.item?n("item",{attrs:{icon:t.item&&t.item.icon,title:t.item.menu_name}}):t._e()],1),t._v(" "),t._l(t.item.children,(function(e,i){return n("sidebar-item",{key:i,staticClass:"nest-menu",attrs:{level:t.level+1,"is-nest":!0,item:e,"base-path":t.resolvePath(e.route)}})}))],2):[t.onlyOneChild?n("app-link",{attrs:{to:t.resolvePath(t.onlyOneChild.route)}},[n("el-menu-item",{class:{"submenu-title-noDropdown":!t.isNest},attrs:{index:t.resolvePath(t.onlyOneChild.route)}},[t.sideBar1&&(!t.item.children||t.item.children.length<=1)?[n("div",{staticClass:"el-submenu__title",class:{titles:0==t.level,hide:!t.sideBar1&&!t.isCollapse}},[n("i",{class:"menu-icon el-icon-"+t.item.icon}),n("span",[t._v(t._s(t.onlyOneChild.menu_name))])])]:n("item",{attrs:{icon:t.onlyOneChild.icon||t.item&&t.item.icon,title:t.onlyOneChild.menu_name}})],2)],1):t._e()]]],2)},Jt=[],qt={name:"MenuItem",functional:!0,props:{icon:{type:String,default:""},title:{type:String,default:""}},render:function(t,e){var n=e.props,i=n.icon,a=n.title,r=[];if(i){var o="el-icon-"+i;r.push(t("i",{class:o}))}return a&&r.push(t("span",{slot:"title"},[a])),r}},Xt=qt,Kt=Object(g["a"])(Xt,i,a,!1,null,null,null),$t=Kt.exports,te={computed:{device:function(){return this.$store.state.app.device}},mounted:function(){this.fixBugIniOS()},methods:{fixBugIniOS:function(){var t=this,e=this.$refs.subMenu;if(e){var n=e.handleMouseleave;e.handleMouseleave=function(e){"mobile"!==t.device&&n(e)}}}}},ee={name:"SidebarItem",components:{Item:$t,AppLink:Zt},mixins:[te],props:{item:{type:Object,required:!0},isNest:{type:Boolean,default:!1},basePath:{type:String,default:""},level:{type:Number,default:0},isCollapse:{type:Boolean,default:!0}},data:function(){return this.onlyOneChild=null,{sideBar1:"a"!=window.localStorage.getItem("sidebarStyle")}},computed:{activeMenu:function(){var t=this.$route,e=t.meta,n=t.path;return e.activeMenu?e.activeMenu:n}},methods:{hasOneShowingChild:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0,i=e.filter((function(e){return!e.hidden&&(t.onlyOneChild=e,!0)}));return 1===i.length||0===i.length&&(this.onlyOneChild=Object(d["a"])(Object(d["a"])({},n),{},{path:"",noShowingChildren:!0}),!0)},resolvePath:function(t){return Object(Ht["b"])(t)?t:Object(Ht["b"])(this.basePath)?this.basePath:ct.a.resolve(this.basePath,t)}}},ne=ee,ie=(n("d0a6"),Object(g["a"])(ne,Yt,Jt,!1,null,"116a0188",null)),ae=ie.exports,re=n("cf1e2"),oe=n.n(re),ce={components:{SidebarItem:ae,Logo:Nt,AppLink:Zt,Item:$t},mixins:[te],data:function(){return this.onlyOneChild=null,{sideBar1:"a"!=window.localStorage.getItem("sidebarStyle"),menu_name:"",list:this.$store.state.user.menuList,subMenuList:[],activePath:"",isShow:!1}},computed:Object(d["a"])(Object(d["a"])(Object(d["a"])({},Object(C["b"])(["permission_routes","sidebar","menuList"])),Object(C["d"])({sidebar:function(t){return t.app.sidebar},sidebarRouters:function(t){return t.user.sidebarRouters},sidebarStyle:function(t){return t.user.sidebarStyle},routers:function(){var t=this.$store.state.user.menuList?this.$store.state.user.menuList:[];return t}})),{},{activeMenu:function(){var t=this.$route,e=t.meta,n=t.path;return e.activeMenu?e.activeMenu:n},showLogo:function(){return this.$store.state.settings.sidebarLogo},variables:function(){return oe.a},isCollapse:function(){return!this.sidebar.opened}}),watch:{sidebarStyle:function(t,e){this.sideBar1="a"!=t||"a"==e,this.setMenuWidth()},sidebar:{handler:function(t,e){this.sideBar1&&this.getSubMenu()},deep:!0},$route:{handler:function(t,e){this.sideBar1&&this.getSubMenu()},deep:!0}},mounted:function(){this.getMenus(),this.sideBar1?this.getSubMenu():this.setMenuWidth()},methods:Object(d["a"])({setMenuWidth:function(){this.sideBar1?this.subMenuList&&this.subMenuList.length>0&&!this.isCollapse?this.$store.commit("user/SET_SIDEBAR_WIDTH",270):this.$store.commit("user/SET_SIDEBAR_WIDTH",130):this.$store.commit("user/SET_SIDEBAR_WIDTH",180)},ishttp:function(t){return-1!==t.indexOf("http://")||-1!==t.indexOf("https://")},getMenus:function(){this.$store.dispatch("user/getMenus",{that:this})},hasOneShowingChild:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0,i=e.filter((function(e){return!e.hidden&&(t.onlyOneChild=e,!0)}));return 1===i.length||0===i.length&&(this.onlyOneChild=Object(d["a"])(Object(d["a"])({},n),{},{path:"",noShowingChildren:!0}),!0)},resolvePath:function(t){return Object(Ht["b"])(t)||Object(Ht["b"])(this.basePath)?t:ct.a.resolve(t,t)},goPath:function(t){if(this.menu_name=t.menu_name,t.children){this.$store.commit("user/SET_SIDEBAR_WIDTH",270),this.subMenuList=t.children,window.localStorage.setItem("subMenuList",this.subMenuList);var e=this.resolvePath(this.getChild(t.children)[0].route);t.route=e,this.$router.push({path:e})}else{this.$store.commit("user/SET_SIDEBAR_WIDTH",130),this.subMenuList=[],window.localStorage.setItem("subMenuList",[]);var n=this.resolvePath(t.route);this.$router.push({path:n})}},getChild:function(t){var e=[];return t.forEach((function(t){var n=function t(n){var i=n.children;if(i)for(var a=0;a0&&(r=a[0],o=a[a.length-1]),r===t)i.scrollLeft=0;else if(o===t)i.scrollLeft=i.scrollWidth-n;else{var c=a.findIndex((function(e){return e===t})),s=a[c-1],u=a[c+1],l=u.$el.offsetLeft+u.$el.offsetWidth+pe,d=s.$el.offsetLeft-pe;l>i.scrollLeft+n?i.scrollLeft=l-n:d1&&void 0!==arguments[1]?arguments[1]:"/",i=[];return t.forEach((function(t){if(t.meta&&t.meta.affix){var a=ct.a.resolve(n,t.path);i.push({fullPath:a,path:a,name:t.name,meta:Object(d["a"])({},t.meta)})}if(t.children){var r=e.filterAffixTags(t.children,t.path);r.length>=1&&(i=[].concat(Object(nt["a"])(i),Object(nt["a"])(r)))}})),i},initTags:function(){var t,e=this.affixTags=this.filterAffixTags(this.routes),n=Object(it["a"])(e);try{for(n.s();!(t=n.n()).done;){var i=t.value;i.name&&this.$store.dispatch("tagsView/addVisitedView",i)}}catch(a){n.e(a)}finally{n.f()}},addTags:function(){var t=this.$route.name;return t&&this.$store.dispatch("tagsView/addView",this.$route),!1},moveToCurrentTag:function(){var t=this,e=this.$refs.tag;this.$nextTick((function(){var n,i=Object(it["a"])(e);try{for(i.s();!(n=i.n()).done;){var a=n.value;if(a.to.path===t.$route.path){t.$refs.scrollPane.moveToTarget(a),a.to.fullPath!==t.$route.fullPath&&t.$store.dispatch("tagsView/updateVisitedView",t.$route);break}}}catch(r){i.e(r)}finally{i.f()}}))},refreshSelectedTag:function(t){this.reload()},closeSelectedTag:function(t){var e=this;this.$store.dispatch("tagsView/delView",t).then((function(n){var i=n.visitedViews;e.isActive(t)&&e.toLastView(i,t)}))},closeOthersTags:function(){var t=this;this.$router.push(this.selectedTag),this.$store.dispatch("tagsView/delOthersViews",this.selectedTag).then((function(){t.moveToCurrentTag()}))},closeAllTags:function(t){var e=this;this.$store.dispatch("tagsView/delAllViews").then((function(n){var i=n.visitedViews;e.affixTags.some((function(e){return e.path===t.path}))||e.toLastView(i,t)}))},toLastView:function(t,e){var n=t.slice(-1)[0];n?this.$router.push(n.fullPath):"Dashboard"===e.name?this.$router.replace({path:"/redirect"+e.fullPath}):this.$router.push("/")},openMenu:function(t,e){var n=105,i=this.$el.getBoundingClientRect().left,a=this.$el.offsetWidth,r=a-n,o=e.clientX-i+15;this.left=o>r?r:o,this.top=e.clientY,this.visible=!0,this.selectedTag=t},closeMenu:function(){this.visible=!1}}},ye=we,ke=(n("0a4d"),n("b428"),Object(g["a"])(ye,de,he,!1,null,"3f349a64",null)),Ce=ke.exports,Ee=function(){var t=this,e=t.$createElement,n=t._self._c||e;return"0"!==t.openVersion?n("div",{staticClass:"ivu-global-footer i-copyright"},[-1==t.version.status?n("div",{staticClass:"ivu-global-footer-copyright"},[t._v(t._s("Copyright "+t.version.year+" ")),n("a",{attrs:{href:"http://"+t.version.url,target:"_blank"}},[t._v(t._s(t.version.version))])]):n("div",{staticClass:"ivu-global-footer-copyright"},[t._v(t._s(t.version.Copyright))])]):t._e()},je=[],Ie=n("2801"),Se={name:"i-copyright",data:function(){return{copyright:"Copyright © 2022 西安众邦网络科技有限公司",openVersion:"0",copyright_status:"0",version:{}}},mounted:function(){this.getVersion()},methods:{getVersion:function(){var t=this;Object(Ie["j"])().then((function(e){e.data.version;t.version=e.data,t.copyright=e.data.copyright,t.openVersion=e.data.sys_open_version})).catch((function(e){t.$message.error(e.message)}))}}},xe=Se,Oe=(n("8bcc"),Object(g["a"])(xe,Ee,je,!1,null,"036cf7b4",null)),Re=Oe.exports,_e=n("4360"),Me=document,De=Me.body,ze=992,Ve={watch:{$route:function(t){"mobile"===this.device&&this.sidebar.opened&&_e["a"].dispatch("app/closeSideBar",{withoutAnimation:!1})}},beforeMount:function(){window.addEventListener("resize",this.$_resizeHandler)},beforeDestroy:function(){window.removeEventListener("resize",this.$_resizeHandler)},mounted:function(){var t=this.$_isMobile();t&&(_e["a"].dispatch("app/toggleDevice","mobile"),_e["a"].dispatch("app/closeSideBar",{withoutAnimation:!0}))},methods:{$_isMobile:function(){var t=De.getBoundingClientRect();return t.width-1'});o.a.add(c);e["default"]=c},ab00:function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-lock",use:"icon-lock-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},ad1c:function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-education",use:"icon-education-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},af8c:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFEAAABRCAYAAACqj0o2AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA25pVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDo2OWRlYjViMi04ZTEzLWNmNDgtODFlNi0yNzk5OTk1OWFjZjgiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6RjlCNUJCRDY0MzlFMTFFOUJCNDM5ODBGRTdCNDNGN0EiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6RjlCNUJCRDU0MzlFMTFFOUJCNDM5ODBGRTdCNDNGN0EiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKFdpbmRvd3MpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MkQxNzQyQjZFRjA2MTFFODhBREFDNDFBMUJFNDQxREIiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6MkQxNzQyQjdFRjA2MTFFODhBREFDNDFBMUJFNDQxREIiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz52uNTZAAADk0lEQVR42uycXYhNURTH92VMKcTLNPNiFA9SJMSLSFOKUkI8KB4UeTDxoDxQXkwZHylPPCBP8tmlBoOhMUgmk4YH46NMEyWEUfNhxvVf3S3jzrn3nuOcvc/a56x//Ztm3z139vxmr73X/jg3k8vllCicxggCgSgQBaJIIApEgSgQRQLRjCr8Vvy4YEYNvizyWX0QbkoCoKr219FB1ACvBKhfC3dLOIfTChkTBSILiHVwpUws/6oT3lXi9dXw0hHfT4CXwLcF4l+9gY+VeL2nACJpZRogRhnOzfBQGsfFKCF+hx8UlM2EpwnEYLqexlk64/eMBSsWP9XmwM88Vi99jnEZgC/B9VixDEU5sfidwT/ANSPKKh1NdbbDXWUmUyPhTN36VoIidV5cyfbNBEHsigtis+6RSdC1uCB+gjsSAPCdxyRpde18IwEQs3FvQCRhXLwaN8RH8A+HAX6DW+OG+BNucRhik/4bYoXoekhng1QWiKM1FHRiNAmR9h/fOgjxnh4TWUB0tTdmg/6AQAyR2tiC2KJG73ZzFq1QurlB7NU5Y2JD2QZE10KaLURX1tF0WtnBFSI17LMjE0qOK8RfKr/HmLhZ2SZEF8bFXp1ks4bI/dyFxu0B7hDfq/xJYKJmZdsQOYf0sPK+dCAQA+g+/MUViG16AOem82HfwCbE/jBphMF/7Jmwb1JhscGz4PUe5Q3whRgA0j/1pYrgjNwWxAx8Ah5XUP4c3q8CnGdwlK1w3gIvLiijHrDNdYC2IFbBjR7lJ+GHKgGyEc5H4SkFZXRf8Rw8l1m+2MkR4ip4o0f5ePgusw5Fh1OTOYbzcZUCmYZYLRDD61QaIJoeE3fA7Sp/IZ67+rhCHE5Db5Qn7wWiQBSI/6Gx8CaV3w57Al+G1+nNCVuaBO+B78CP4dPwwrBvGvVjacVEKxR6nKHO4zWCuUGZv7MzXcOr9XhtN3zYc+Hv44M0bPXExiIASWvgvRYi7mIRgKRDJdrHAuJEeGuZOvWG061lqvxmx07OEGlHu9wDkrTLM9VgG+ZHVCc2iH43XQcNtqHf5O+3AZH26L6WqUMXK3sMtqHNR51W7j3xQJk6+wy34akqfcuBeupB7nniEZ1C5DzW1gTwrIU2bFbed4IoStbCL7jniX80W6c01Tp86eD8leUFxnKdzlDiTaeNdExR9P6knzwxI5+zLWtngSgQRQJRIApEgSgSiGb0W4ABAPZht+rjWKYmAAAAAElFTkSuQmCC"},b20f:function(t,e,n){t.exports={menuText:"#bfcbd9",menuActiveText:"#6394F9",subMenuActiveText:"#f4f4f5",menuBg:"#0B1529",menuHover:"#182848",subMenuBg:"#030C17",subMenuHover:"#182848",sideBarWidth:"180px"}},b3b5:function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-user",use:"icon-user-usage",viewBox:"0 0 130 130",content:''});o.a.add(c);e["default"]=c},b428:function(t,e,n){"use strict";n("ea55")},b55e:function(t,e,n){},b5b8:function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("el-row",[n("el-col",t._b({},"el-col",t.grid,!1),[n("div",{staticClass:"Nav"},[n("div",{staticClass:"input"},[n("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:"选择分类","prefix-icon":"el-icon-search",clearable:""},model:{value:t.filterText,callback:function(e){t.filterText=e},expression:"filterText"}})],1),t._v(" "),n("div",{staticClass:"trees-coadd"},[n("div",{staticClass:"scollhide"},[n("div",{staticClass:"trees"},[n("el-tree",{ref:"tree",attrs:{data:t.treeData2,"filter-node-method":t.filterNode,props:t.defaultProps},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.node,a=e.data;return n("div",{staticClass:"custom-tree-node",on:{click:function(e){return e.stopPropagation(),t.handleNodeClick(a)}}},[n("div",[n("span",[t._v(t._s(i.label))]),t._v(" "),a.space_property_name?n("span",{staticStyle:{"font-size":"11px",color:"#3889b1"}},[t._v("("+t._s(a.attachment_category_name)+")")]):t._e()]),t._v(" "),n("span",{staticClass:"el-ic"},[n("i",{staticClass:"el-icon-circle-plus-outline",on:{click:function(e){return e.stopPropagation(),t.onAdd(a.attachment_category_id)}}}),t._v(" "),"0"==a.space_id||a.children&&"undefined"!=a.children||!a.attachment_category_id?t._e():n("i",{staticClass:"el-icon-edit",attrs:{title:"修改"},on:{click:function(e){return e.stopPropagation(),t.onEdit(a.attachment_category_id)}}}),t._v(" "),"0"==a.space_id||a.children&&"undefined"!=a.children||!a.attachment_category_id?t._e():n("i",{staticClass:"el-icon-delete",attrs:{title:"删除分类"},on:{click:function(e){return e.stopPropagation(),function(){return t.handleDelete(a.attachment_category_id)}()}}})])])}}])})],1)])])])]),t._v(" "),n("el-col",t._b({staticClass:"colLeft"},"el-col",t.grid2,!1),[n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"conter"},[n("div",{staticClass:"bnt"},["/merchant/config/picture"!==t.params?n("el-button",{staticClass:"mb10 mr10",attrs:{size:"small",type:"primary"},on:{click:t.checkPics}},[t._v("使用选中图片")]):t._e(),t._v(" "),n("el-upload",{staticClass:"upload-demo mr10 mb15",attrs:{action:t.fileUrl,"on-success":t.handleSuccess,headers:t.myHeaders,"show-file-list":!1,multiple:""}},[n("el-button",{attrs:{size:"small",type:"primary"}},[t._v("点击上传")])],1),t._v(" "),n("el-button",{attrs:{type:"success",size:"small"},on:{click:function(e){return e.stopPropagation(),t.onAdd(0)}}},[t._v("添加分类")]),t._v(" "),n("el-button",{staticClass:"mr10",attrs:{type:"error",size:"small",disabled:0===t.checkPicList.length},on:{click:function(e){return e.stopPropagation(),t.editPicList("图片")}}},[t._v("删除图片")]),t._v(" "),n("el-input",{staticStyle:{width:"230px"},attrs:{placeholder:"请输入图片名称搜索",size:"small"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getFileList(1)}},model:{value:t.tableData.attachment_name,callback:function(e){t.$set(t.tableData,"attachment_name",e)},expression:"tableData.attachment_name"}},[n("el-button",{staticClass:"el-button-solt",attrs:{slot:"append",icon:"el-icon-search"},on:{click:function(e){return t.getFileList(1)}},slot:"append"})],1),t._v(" "),n("el-select",{staticClass:"mb15",attrs:{placeholder:"图片移动至",size:"small"},model:{value:t.sleOptions.attachment_category_name,callback:function(e){t.$set(t.sleOptions,"attachment_category_name",e)},expression:"sleOptions.attachment_category_name"}},[n("el-option",{staticStyle:{"max-width":"560px",height:"200px",overflow:"auto","background-color":"#fff"},attrs:{label:t.sleOptions.attachment_category_name,value:t.sleOptions.attachment_category_id}},[n("el-tree",{ref:"tree2",attrs:{data:t.treeData2,"filter-node-method":t.filterNode,props:t.defaultProps},on:{"node-click":t.handleSelClick}})],1)],1)],1),t._v(" "),n("div",{staticClass:"pictrueList acea-row mb15"},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.isShowPic,expression:"isShowPic"}],staticClass:"imagesNo"},[n("i",{staticClass:"el-icon-picture",staticStyle:{"font-size":"60px",color:"rgb(219, 219, 219)"}}),t._v(" "),n("span",{staticClass:"imagesNo_sp"},[t._v("图片库为空")])]),t._v(" "),n("div",{staticClass:"conters"},t._l(t.pictrueList.list,(function(e,i){return n("div",{key:i,staticClass:"gridPic"},[e.num>0?n("p",{staticClass:"number"},[n("el-badge",{staticClass:"item",attrs:{value:e.num}},[n("a",{staticClass:"demo-badge",attrs:{href:"#"}})])],1):t._e(),t._v(" "),n("img",{directives:[{name:"lazy",rawName:"v-lazy",value:e.attachment_src,expression:"item.attachment_src"}],class:e.isSelect?"on":"",on:{click:function(n){return t.changImage(e,i,t.pictrueList.list)}}}),t._v(" "),n("div",{staticStyle:{display:"flex","align-items":"center","justify-content":"space-between"}},[t.editId===e.attachment_id?n("el-input",{model:{value:e.attachment_name,callback:function(n){t.$set(e,"attachment_name",n)},expression:"item.attachment_name"}}):n("p",{staticClass:"name",staticStyle:{width:"80%"}},[t._v("\n "+t._s(e.attachment_name)+"\n ")]),t._v(" "),n("i",{staticClass:"el-icon-edit",on:{click:function(n){return t.handleEdit(e.attachment_id,e.attachment_name)}}})],1)])})),0)]),t._v(" "),n("div",{staticClass:"block"},[n("el-pagination",{attrs:{"page-sizes":[12,20,40,60],"page-size":t.tableData.limit,"current-page":t.tableData.page,layout:"total, sizes, prev, pager, next, jumper",total:t.pictrueList.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)])])],1)],1)},a=[],r=(n("4f7f"),n("5df3"),n("1c4c"),n("ac6a"),n("c7eb")),o=(n("96cf"),n("1da1")),c=(n("c5f6"),n("2909")),s=n("8593"),u=n("5f87"),l=n("bbcc"),d={name:"Upload",props:{isMore:{type:String,default:"1"},setModel:{type:String}},data:function(){return{loading:!1,params:"",sleOptions:{attachment_category_name:"",attachment_category_id:""},list:[],grid:{xl:8,lg:8,md:8,sm:8,xs:24},grid2:{xl:16,lg:16,md:16,sm:16,xs:24},filterText:"",treeData:[],treeData2:[],defaultProps:{children:"children",label:"attachment_category_name"},classifyId:0,myHeaders:{"X-Token":Object(u["a"])()},tableData:{page:1,limit:12,attachment_category_id:0,order:"",attachment_name:""},pictrueList:{list:[],total:0},isShowPic:!1,checkPicList:[],ids:[],checkedMore:[],checkedAll:[],selectItem:[],editId:"",editName:""}},computed:{fileUrl:function(){return l["a"].https+"/upload/image/".concat(this.tableData.attachment_category_id,"/file")}},watch:{filterText:function(t){this.$refs.tree.filter(t)}},mounted:function(){this.params=this.$route&&this.$route.path?this.$route.path:"",this.$route&&"dialog"===this.$route.query.field&&n.e("chunk-2d0da983").then(n.bind(null,"6bef")),this.getList(),this.getFileList("")},methods:{filterNode:function(t,e){return!t||-1!==e.attachment_category_name.indexOf(t)},getList:function(){var t=this,e={attachment_category_name:"全部图片",attachment_category_id:0};Object(s["q"])().then((function(n){t.treeData=n.data,t.treeData.unshift(e),t.treeData2=Object(c["a"])(t.treeData)})).catch((function(e){t.$message.error(e.message)}))},handleEdit:function(t,e){var n=this;if(t===this.editId)if(this.editName!==e){if(!e.trim())return void this.$message.warning("请先输入图片名称");Object(s["x"])(t,{attachment_name:e}).then((function(){return n.getFileList("")})),this.editId=""}else this.editId="",this.editName="";else this.editId=t,this.editName=e},onAdd:function(t){var e=this,n={};Number(t)>0&&(n.formData={pid:t}),this.$modalForm(Object(s["g"])(),n).then((function(t){t.message;e.getList()}))},onEdit:function(t){var e=this;this.$modalForm(Object(s["j"])(t)).then((function(){return e.getList()}))},handleDelete:function(t){var e=this;this.$modalSure().then((function(){Object(s["h"])(t).then((function(t){var n=t.message;e.$message.success(n),e.getList()})).catch((function(t){var n=t.message;e.$message.error(n)}))}))},handleNodeClick:function(t){this.tableData.attachment_category_id=t.attachment_category_id,this.selectItem=[],this.checkPicList=[],this.getFileList("")},handleSuccess:function(t){200===t.status?(this.$message.success("上传成功"),this.getFileList("")):this.$message.error(t.message)},getFileList:function(t){var e=this;this.loading=!0,this.tableData.page=t||this.tableData.page,Object(s["i"])(this.tableData).then(function(){var t=Object(o["a"])(Object(r["a"])().mark((function t(n){return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.pictrueList.list=n.data.list,console.log(e.pictrueList.list),e.pictrueList.list.length?e.isShowPic=!1:e.isShowPic=!0,e.$route&&e.$route.query.field&&"dialog"!==e.$route.query.field&&(e.checkedMore=window.form_create_helper.get(e.$route.query.field)||[]),e.pictrueList.total=n.data.count,e.loading=!1;case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.$message.error(t.message),e.loading=!1}))},pageChange:function(t){this.tableData.page=t,this.selectItem=[],this.checkPicList=[],this.getFileList("")},handleSizeChange:function(t){this.tableData.limit=t,this.getFileList("")},changImage:function(t,e,n){var i=this;if(t.isSelect){t.isSelect=!1;e=this.ids.indexOf(t.attachment_id);e>-1&&this.ids.splice(e,1),this.selectItem.forEach((function(e,n){e.attachment_id==t.attachment_id&&i.selectItem.splice(n,1)})),this.checkPicList.map((function(e,n){e==t.attachment_src&&i.checkPicList.splice(n,1)}))}else t.isSelect=!0,this.selectItem.push(t),this.checkPicList.push(t.attachment_src),this.ids.push(t.attachment_id);this.$route&&"/merchant/config/picture"===this.$route.fullPath&&"dialog"!==this.$route.query.field||this.pictrueList.list.map((function(t,e){t.isSelect?i.selectItem.filter((function(e,n){t.attachment_id==e.attachment_id&&(t.num=n+1)})):t.num=0})),console.log(this.pictrueList.list)},checkPics:function(){if(this.checkPicList.length)if(this.$route){if("1"===this.$route.query.type){if(this.checkPicList.length>1)return this.$message.warning("最多只能选一张图片");form_create_helper.set(this.$route.query.field,this.checkPicList[0]),form_create_helper.close(this.$route.query.field)}if("2"===this.$route.query.type&&(this.checkedAll=[].concat(Object(c["a"])(this.checkedMore),Object(c["a"])(this.checkPicList)),form_create_helper.set(this.$route.query.field,Array.from(new Set(this.checkedAll))),form_create_helper.close(this.$route.query.field)),"dialog"===this.$route.query.field){for(var t="",e=0;e';nowEditor.editor.execCommand("insertHtml",t),nowEditor.dialog.close(!0)}}else{if(console.log(this.isMore,this.checkPicList.length),"1"===this.isMore&&this.checkPicList.length>1)return this.$message.warning("最多只能选一张图片");console.log(this.checkPicList),this.$emit("getImage",this.checkPicList)}else this.$message.warning("请先选择图片")},editPicList:function(t){var e=this,n={ids:this.ids};this.$modalSure().then((function(){Object(s["w"])(n).then((function(t){t.message;e.$message.success("删除成功"),e.getFileList(""),e.checkPicList=[]})).catch((function(t){var n=t.message;e.$message.error(n)}))}))},handleSelClick:function(t){this.ids.length?(this.sleOptions={attachment_category_name:t.attachment_category_name,attachment_category_id:t.attachment_category_id},this.getMove()):this.$message.warning("请先选择图片")},getMove:function(){var t=this;Object(s["k"])(this.ids,this.sleOptions.attachment_category_id).then(function(){var e=Object(o["a"])(Object(r["a"])().mark((function e(n){return Object(r["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.$message.success(n.message),t.clearBoth(),t.getFileList("");case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.clearBoth(),t.$message.error(e.message)}))},clearBoth:function(){this.sleOptions={attachment_category_name:"",attachment_category_id:""},this.checkPicList=[],this.ids=[]}}},h=d,m=(n("eab3"),n("2877")),f=Object(m["a"])(h,i,a,!1,null,"81672560",null);e["default"]=f.exports},b7be:function(t,e,n){"use strict";n.d(e,"I",(function(){return a})),n.d(e,"B",(function(){return r})),n.d(e,"D",(function(){return o})),n.d(e,"C",(function(){return c})),n.d(e,"y",(function(){return s})),n.d(e,"U",(function(){return u})),n.d(e,"F",(function(){return l})),n.d(e,"A",(function(){return d})),n.d(e,"z",(function(){return h})),n.d(e,"G",(function(){return m})),n.d(e,"H",(function(){return f})),n.d(e,"J",(function(){return p})),n.d(e,"g",(function(){return g})),n.d(e,"d",(function(){return b})),n.d(e,"l",(function(){return v})),n.d(e,"K",(function(){return A})),n.d(e,"lb",(function(){return w})),n.d(e,"j",(function(){return y})),n.d(e,"i",(function(){return k})),n.d(e,"m",(function(){return C})),n.d(e,"f",(function(){return E})),n.d(e,"k",(function(){return j})),n.d(e,"n",(function(){return I})),n.d(e,"ib",(function(){return S})),n.d(e,"h",(function(){return x})),n.d(e,"c",(function(){return O})),n.d(e,"b",(function(){return R})),n.d(e,"V",(function(){return _})),n.d(e,"jb",(function(){return M})),n.d(e,"W",(function(){return D})),n.d(e,"fb",(function(){return z})),n.d(e,"kb",(function(){return V})),n.d(e,"e",(function(){return B})),n.d(e,"gb",(function(){return L})),n.d(e,"cb",(function(){return F})),n.d(e,"eb",(function(){return T})),n.d(e,"db",(function(){return N})),n.d(e,"bb",(function(){return Q})),n.d(e,"hb",(function(){return P})),n.d(e,"q",(function(){return H})),n.d(e,"p",(function(){return U})),n.d(e,"w",(function(){return G})),n.d(e,"u",(function(){return W})),n.d(e,"t",(function(){return Z})),n.d(e,"s",(function(){return Y})),n.d(e,"x",(function(){return J})),n.d(e,"o",(function(){return q})),n.d(e,"r",(function(){return X})),n.d(e,"Z",(function(){return K})),n.d(e,"v",(function(){return $})),n.d(e,"ab",(function(){return tt})),n.d(e,"X",(function(){return et})),n.d(e,"a",(function(){return nt})),n.d(e,"E",(function(){return it})),n.d(e,"R",(function(){return at})),n.d(e,"T",(function(){return rt})),n.d(e,"S",(function(){return ot})),n.d(e,"Y",(function(){return ct})),n.d(e,"P",(function(){return st})),n.d(e,"O",(function(){return ut})),n.d(e,"L",(function(){return lt})),n.d(e,"N",(function(){return dt})),n.d(e,"M",(function(){return ht})),n.d(e,"Q",(function(){return mt}));var i=n("0c6d");function a(t){return i["a"].get("store/coupon/update/".concat(t,"/form"))}function r(t){return i["a"].get("store/coupon/lst",t)}function o(t,e){return i["a"].post("store/coupon/status/".concat(t),{status:e})}function c(){return i["a"].get("store/coupon/create/form")}function s(t){return i["a"].get("store/coupon/clone/form/".concat(t))}function u(t){return i["a"].get("store/coupon/issue",t)}function l(t){return i["a"].get("store/coupon/select",t)}function d(t){return i["a"].get("store/coupon/detail/".concat(t))}function h(t){return i["a"].delete("store/coupon/delete/".concat(t))}function m(t){return i["a"].post("store/coupon/send",t)}function f(t){return i["a"].get("store/coupon_send/lst",t)}function p(){return i["a"].get("broadcast/room/create/form")}function g(t){return i["a"].get("broadcast/room/lst",t)}function b(t){return i["a"].get("broadcast/room/detail/".concat(t))}function v(t,e){return i["a"].post("broadcast/room/mark/".concat(t),{mark:e})}function A(){return i["a"].get("broadcast/goods/create/form")}function w(t){return i["a"].get("broadcast/goods/update/form/".concat(t))}function y(t){return i["a"].get("broadcast/goods/lst",t)}function k(t){return i["a"].get("broadcast/goods/detail/".concat(t))}function C(t,e){return i["a"].post("broadcast/goods/status/".concat(t),e)}function E(t){return i["a"].post("broadcast/room/export_goods",t)}function j(t,e){return i["a"].post("broadcast/goods/mark/".concat(t),{mark:e})}function I(t,e){return i["a"].post("broadcast/room/status/".concat(t),e)}function S(t,e){return i["a"].get("broadcast/room/goods/".concat(t),e)}function x(t){return i["a"].delete("broadcast/goods/delete/".concat(t))}function O(t){return i["a"].delete("broadcast/room/delete/".concat(t))}function R(t){return i["a"].post("broadcast/goods/batch_create",t)}function _(t,e){return i["a"].post("broadcast/room/feedsPublic/".concat(t),{status:e})}function M(t,e){return i["a"].post("broadcast/room/on_sale/".concat(t),e)}function D(t,e){return i["a"].post("broadcast/room/comment/".concat(t),{status:e})}function z(t,e){return i["a"].post("broadcast/room/closeKf/".concat(t),{status:e})}function V(t){return i["a"].get("broadcast/room/push_message/".concat(t))}function B(t){return i["a"].post("broadcast/room/rm_goods",t)}function L(t){return i["a"].get("broadcast/room/update/form/".concat(t))}function F(){return i["a"].get("broadcast/assistant/create/form")}function T(t){return i["a"].get("broadcast/assistant/update/".concat(t,"/form"))}function N(t){return i["a"].delete("broadcast/assistant/delete/".concat(t))}function Q(t){return i["a"].get("broadcast/assistant/lst",t)}function P(t){return i["a"].get("broadcast/room/addassistant/form/".concat(t))}function H(){return i["a"].get("config/others/group_buying")}function U(t){return i["a"].post("store/product/group/create",t)}function G(t,e){return i["a"].post("store/product/group/update/".concat(t),e)}function W(t){return i["a"].get("store/product/group/lst",t)}function Z(t){return i["a"].get("store/product/group/detail/".concat(t))}function Y(t){return i["a"].delete("store/product/group/delete/".concat(t))}function J(t,e){return i["a"].post("store/product/group/status/".concat(t),{status:e})}function q(t){return i["a"].get("store/product/group/buying/lst",t)}function X(t,e){return i["a"].get("store/product/group/buying/detail/".concat(t),e)}function K(t,e){return i["a"].get("store/seckill_product/detail/".concat(t),e)}function $(t,e){return i["a"].post("/store/product/group/sort/".concat(t),e)}function tt(t,e){return i["a"].post("/store/seckill_product/sort/".concat(t),e)}function et(t,e){return i["a"].post("/store/product/presell/sort/".concat(t),e)}function nt(t,e){return i["a"].post("/store/product/assist/sort/".concat(t),e)}function it(t,e){return i["a"].get("/store/coupon/product/".concat(t),e)}function at(t){return i["a"].get("config/".concat(t))}function rt(){return i["a"].get("integral/title")}function ot(t){return i["a"].get("integral/lst",t)}function ct(t){return i["a"].get("store/product/attr_value/".concat(t))}function st(t){return i["a"].post("discounts/create",t)}function ut(t){return i["a"].get("discounts/lst",t)}function lt(t,e){return i["a"].post("discounts/status/".concat(t),{status:e})}function dt(t){return i["a"].get("discounts/detail/".concat(t))}function ht(t){return i["a"].delete("discounts/delete/".concat(t))}function mt(t,e){return i["a"].post("discounts/update/".concat(t),e)}},bbcc:function(t,e,n){"use strict";var i=n("a78e"),a=n.n(i),r="".concat(location.origin),o=("https:"===location.protocol?"wss":"ws")+":"+location.hostname,c=a.a.get("MerInfo")?JSON.parse(a.a.get("MerInfo")).login_title:"",s={httpUrl:r,https:r+"/mer",wsSocketUrl:o,title:c||"加载中..."};e["a"]=s},bc35:function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-clipboard",use:"icon-clipboard-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},bd3e:function(t,e,n){},c043:function(t,e,n){"use strict";n("c068")},c068:function(t,e,n){},c24f:function(t,e,n){"use strict";n.d(e,"f",(function(){return a})),n.d(e,"q",(function(){return r})),n.d(e,"r",(function(){return o})),n.d(e,"s",(function(){return c})),n.d(e,"v",(function(){return s})),n.d(e,"h",(function(){return u})),n.d(e,"k",(function(){return l})),n.d(e,"j",(function(){return d})),n.d(e,"i",(function(){return h})),n.d(e,"p",(function(){return m})),n.d(e,"o",(function(){return f})),n.d(e,"n",(function(){return p})),n.d(e,"m",(function(){return g})),n.d(e,"a",(function(){return b})),n.d(e,"c",(function(){return v})),n.d(e,"e",(function(){return A})),n.d(e,"b",(function(){return w})),n.d(e,"d",(function(){return y})),n.d(e,"x",(function(){return k})),n.d(e,"y",(function(){return C})),n.d(e,"w",(function(){return E})),n.d(e,"g",(function(){return j})),n.d(e,"u",(function(){return I})),n.d(e,"z",(function(){return S})),n.d(e,"l",(function(){return x})),n.d(e,"t",(function(){return O}));var i=n("0c6d");function a(){return i["a"].get("captcha")}function r(t){return i["a"].post("login",t)}function o(){return i["a"].get("login_config")}function c(){return i["a"].get("logout")}function s(){return i["a"].get("system/admin/edit/password/form")}function u(){return i["a"].get("system/admin/edit/form")}function l(){return i["a"].get("menus")}function d(t){return Object(i["a"])({url:"/vue-element-admin/user/info",method:"get",params:{token:t}})}function h(){return i["a"].get("info")}function m(t){return i["a"].get("user/label/lst",t)}function f(){return i["a"].get("user/label/form")}function p(t){return i["a"].get("user/label/form/"+t)}function g(t){return i["a"].delete("user/label/".concat(t))}function b(t){return i["a"].post("auto_label/create",t)}function v(t){return i["a"].get("auto_label/lst",t)}function A(t,e){return i["a"].post("auto_label/update/"+t,e)}function w(t){return i["a"].delete("auto_label/delete/".concat(t))}function y(t){return i["a"].post("auto_label/sync/"+t)}function k(t){return i["a"].get("user/lst",t)}function C(t,e){return i["a"].get("user/order/".concat(t),e)}function E(t,e){return i["a"].get("user/coupon/".concat(t),e)}function j(t){return i["a"].get("user/change_label/form/"+t)}function I(t){return i["a"].post("/info/update",t)}function S(t){return i["a"].get("user/search_log",t)}function x(){return i["a"].get("../api/version")}function O(t){return i["a"].get("user/svip/order_lst",t)}},c4c8:function(t,e,n){"use strict";n.d(e,"Lb",(function(){return a})),n.d(e,"Jb",(function(){return r})),n.d(e,"Nb",(function(){return o})),n.d(e,"Kb",(function(){return c})),n.d(e,"Mb",(function(){return s})),n.d(e,"Ob",(function(){return u})),n.d(e,"j",(function(){return l})),n.d(e,"l",(function(){return d})),n.d(e,"k",(function(){return h})),n.d(e,"Pb",(function(){return m})),n.d(e,"gb",(function(){return f})),n.d(e,"Wb",(function(){return p})),n.d(e,"db",(function(){return g})),n.d(e,"Eb",(function(){return b})),n.d(e,"cb",(function(){return v})),n.d(e,"hb",(function(){return A})),n.d(e,"Z",(function(){return w})),n.d(e,"ub",(function(){return y})),n.d(e,"sb",(function(){return k})),n.d(e,"nb",(function(){return C})),n.d(e,"eb",(function(){return E})),n.d(e,"vb",(function(){return j})),n.d(e,"r",(function(){return I})),n.d(e,"q",(function(){return S})),n.d(e,"p",(function(){return x})),n.d(e,"yb",(function(){return O})),n.d(e,"O",(function(){return R})),n.d(e,"Hb",(function(){return _})),n.d(e,"Ib",(function(){return M})),n.d(e,"Gb",(function(){return D})),n.d(e,"w",(function(){return z})),n.d(e,"Y",(function(){return V})),n.d(e,"pb",(function(){return B})),n.d(e,"qb",(function(){return L})),n.d(e,"t",(function(){return F})),n.d(e,"Db",(function(){return T})),n.d(e,"ob",(function(){return N})),n.d(e,"Fb",(function(){return Q})),n.d(e,"s",(function(){return P})),n.d(e,"wb",(function(){return H})),n.d(e,"tb",(function(){return U})),n.d(e,"xb",(function(){return G})),n.d(e,"ab",(function(){return W})),n.d(e,"bb",(function(){return Z})),n.d(e,"P",(function(){return Y})),n.d(e,"S",(function(){return J})),n.d(e,"R",(function(){return q})),n.d(e,"Q",(function(){return X})),n.d(e,"V",(function(){return K})),n.d(e,"T",(function(){return $})),n.d(e,"U",(function(){return tt})),n.d(e,"x",(function(){return et})),n.d(e,"a",(function(){return nt})),n.d(e,"i",(function(){return it})),n.d(e,"g",(function(){return at})),n.d(e,"f",(function(){return rt})),n.d(e,"e",(function(){return ot})),n.d(e,"b",(function(){return ct})),n.d(e,"d",(function(){return st})),n.d(e,"h",(function(){return ut})),n.d(e,"c",(function(){return lt})),n.d(e,"fb",(function(){return dt})),n.d(e,"ib",(function(){return ht})),n.d(e,"rb",(function(){return mt})),n.d(e,"y",(function(){return ft})),n.d(e,"C",(function(){return pt})),n.d(e,"E",(function(){return gt})),n.d(e,"G",(function(){return bt})),n.d(e,"A",(function(){return vt})),n.d(e,"z",(function(){return At})),n.d(e,"D",(function(){return wt})),n.d(e,"F",(function(){return yt})),n.d(e,"B",(function(){return kt})),n.d(e,"Vb",(function(){return Ct})),n.d(e,"J",(function(){return Et})),n.d(e,"N",(function(){return jt})),n.d(e,"L",(function(){return It})),n.d(e,"K",(function(){return St})),n.d(e,"M",(function(){return xt})),n.d(e,"v",(function(){return Ot})),n.d(e,"Tb",(function(){return Rt})),n.d(e,"Ub",(function(){return _t})),n.d(e,"Sb",(function(){return Mt})),n.d(e,"Qb",(function(){return Dt})),n.d(e,"Rb",(function(){return zt})),n.d(e,"u",(function(){return Vt})),n.d(e,"n",(function(){return Bt})),n.d(e,"m",(function(){return Lt})),n.d(e,"o",(function(){return Ft})),n.d(e,"jb",(function(){return Tt})),n.d(e,"Cb",(function(){return Nt})),n.d(e,"lb",(function(){return Qt})),n.d(e,"mb",(function(){return Pt})),n.d(e,"Ab",(function(){return Ht})),n.d(e,"zb",(function(){return Ut})),n.d(e,"Bb",(function(){return Gt})),n.d(e,"kb",(function(){return Wt})),n.d(e,"W",(function(){return Zt})),n.d(e,"X",(function(){return Yt})),n.d(e,"I",(function(){return Jt})),n.d(e,"H",(function(){return qt}));var i=n("0c6d");function a(){return i["a"].get("store/category/lst")}function r(){return i["a"].get("store/category/create/form")}function o(t){return i["a"].get("store/category/update/form/".concat(t))}function c(t){return i["a"].delete("store/category/delete/".concat(t))}function s(t,e){return i["a"].post("store/category/status/".concat(t),{status:e})}function u(t){return i["a"].get("store/attr/template/lst",t)}function l(t){return i["a"].post("store/attr/template/create",t)}function d(t,e){return i["a"].post("store/attr/template/".concat(t),e)}function h(t){return i["a"].delete("store/attr/template/".concat(t))}function m(){return i["a"].get("/store/attr/template/list")}function f(t){return i["a"].get("store/product/lst",t)}function p(t){return i["a"].get("store/product/xlsx_import_list",t)}function g(t){return i["a"].delete("store/product/delete/".concat(t))}function b(t){return i["a"].delete("store/seckill_product/delete/".concat(t))}function v(t){return i["a"].post("store/product/create",t)}function A(t){return i["a"].post("store/product/preview",t)}function w(t){return i["a"].post("store/productcopy/save",t)}function y(t){return i["a"].post("store/seckill_product/create",t)}function k(t){return i["a"].post("store/seckill_product/preview",t)}function C(t,e){return i["a"].post("store/product/update/".concat(t),e)}function E(t){return i["a"].get("store/product/detail/".concat(t))}function j(t){return i["a"].get("store/seckill_product/detail/".concat(t))}function I(){return i["a"].get("store/category/select")}function S(){return i["a"].get("store/category/list")}function x(){return i["a"].get("store/category/brandlist")}function O(){return i["a"].get("store/shipping/list")}function R(){return i["a"].get("store/product/lst_filter")}function _(){return i["a"].get("store/seckill_product/lst_filter")}function M(t,e){return i["a"].post("store/product/status/".concat(t),{status:e})}function D(t,e){return i["a"].post("store/seckill_product/status/".concat(t),{status:e})}function z(t){return i["a"].get("store/product/list",t)}function V(){return i["a"].get("store/product/config")}function B(t){return i["a"].get("store/reply/lst",t)}function L(t){return i["a"].get("store/reply/form/".concat(t))}function F(t){return i["a"].delete("store/product/destory/".concat(t))}function T(t){return i["a"].delete("store/seckill_product/destory/".concat(t))}function N(t){return i["a"].post("store/product/restore/".concat(t))}function Q(t){return i["a"].post("store/seckill_product/restore/".concat(t))}function P(t){return i["a"].get("store/productcopy/get",t)}function H(t){return i["a"].get("store/seckill_product/lst",t)}function U(){return i["a"].get("store/seckill_product/lst_time")}function G(t,e){return i["a"].post("store/seckill_product/update/".concat(t),e)}function W(){return i["a"].get("store/productcopy/count")}function Z(t){return i["a"].get("store/productcopy/lst",t)}function Y(t){return i["a"].post("store/product/presell/create",t)}function J(t,e){return i["a"].post("store/product/presell/update/".concat(t),e)}function q(t){return i["a"].get("store/product/presell/lst",t)}function X(t){return i["a"].get("store/product/presell/detail/".concat(t))}function K(t,e){return i["a"].post("store/product/presell/status/".concat(t),{status:e})}function $(t){return i["a"].delete("store/product/presell/delete/".concat(t))}function tt(t){return i["a"].post("store/product/presell/preview",t)}function et(t){return i["a"].post("store/product/group/preview",t)}function nt(t){return i["a"].post("store/product/assist/create",t)}function it(t,e){return i["a"].post("store/product/assist/update/".concat(t),e)}function at(t){return i["a"].get("store/product/assist/lst",t)}function rt(t){return i["a"].get("store/product/assist/detail/".concat(t))}function ot(t){return i["a"].post("store/product/assist/preview",t)}function ct(t){return i["a"].delete("store/product/assist/delete/".concat(t))}function st(t){return i["a"].get("store/product/assist_set/lst",t)}function ut(t,e){return i["a"].post("store/product/assist/status/".concat(t),{status:e})}function lt(t,e){return i["a"].get("store/product/assist_set/detail/".concat(t),e)}function dt(){return i["a"].get("store/product/temp_key")}function ht(t,e){return i["a"].post("/store/product/sort/".concat(t),e)}function mt(t,e){return i["a"].post("/store/reply/sort/".concat(t),e)}function ft(t){return i["a"].post("guarantee/create",t)}function pt(t){return i["a"].get("guarantee/lst",t)}function gt(t,e){return i["a"].post("guarantee/sort/".concat(t),e)}function bt(t,e){return i["a"].post("guarantee/update/".concat(t),e)}function vt(t){return i["a"].get("guarantee/detail/".concat(t))}function At(t){return i["a"].delete("guarantee/delete/".concat(t))}function wt(t){return i["a"].get("guarantee/select",t)}function yt(t,e){return i["a"].post("guarantee/status/".concat(t),e)}function kt(){return i["a"].get("guarantee/list")}function Ct(t){return i["a"].post("upload/video",t)}function Et(){return i["a"].get("product/label/create/form")}function jt(t){return i["a"].get("product/label/update/".concat(t,"/form"))}function It(t){return i["a"].get("product/label/lst",t)}function St(t){return i["a"].delete("product/label/delete/".concat(t))}function xt(t,e){return i["a"].post("product/label/status/".concat(t),{status:e})}function Ot(){return i["a"].get("product/label/option")}function Rt(t,e){return i["a"].post("store/product/labels/".concat(t),e)}function _t(t,e){return i["a"].post("store/seckill_product/labels/".concat(t),e)}function Mt(t,e){return i["a"].post("store/product/presell/labels/".concat(t),e)}function Dt(t,e){return i["a"].post("store/product/assist/labels/".concat(t),e)}function zt(t,e){return i["a"].post("store/product/group/labels/".concat(t),e)}function Vt(t,e){return i["a"].post("store/product/free_trial/".concat(t),e)}function Bt(t){return i["a"].post("store/product/batch_status",t)}function Lt(t){return i["a"].post("store/product/batch_labels",t)}function Ft(t){return i["a"].post("store/product/batch_temp",t)}function Tt(t){return i["a"].post("store/params/temp/create",t)}function Nt(t,e){return i["a"].post("store/params/temp/update/".concat(t),e)}function Qt(t){return i["a"].get("store/params/temp/detail/".concat(t))}function Pt(t){return i["a"].get("store/params/temp/lst",t)}function Ht(t){return i["a"].delete("store/params/temp/delete/".concat(t))}function Ut(t){return i["a"].get("store/params/temp/detail/".concat(t))}function Gt(t){return i["a"].get("store/params/temp/select",t)}function Wt(t){return i["a"].get("store/params/temp/show",t)}function Zt(t){return i["a"].post("store/product/batch_ext",t)}function Yt(t){return i["a"].post("store/product/batch_svip",t)}function Jt(t){return i["a"].post("store/import/product",t)}function qt(t){return i["a"].post("store/import/import_images",t)}},c653:function(t,e,n){var i={"./app.js":"d9cd","./errorLog.js":"4d49","./mobildConfig.js":"3087","./permission.js":"31c2","./settings.js":"0781","./tagsView.js":"7509","./user.js":"0f9a"};function a(t){var e=r(t);return n(e)}function r(t){var e=i[t];if(!(e+1)){var n=new Error("Cannot find module '"+t+"'");throw n.code="MODULE_NOT_FOUND",n}return e}a.keys=function(){return Object.keys(i)},a.resolve=r,t.exports=a,a.id="c653"},c6b6:function(t,e,n){},c829:function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-chart",use:"icon-chart-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},cbb7:function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-email",use:"icon-email-usage",viewBox:"0 0 128 96",content:''});o.a.add(c);e["default"]=c},cea8:function(t,e,n){"use strict";n("50da")},cf1c:function(t,e,n){"use strict";n("7b72")},cf1e2:function(t,e,n){t.exports={menuText:"#bfcbd9",menuActiveText:"#6394F9",subMenuActiveText:"#f4f4f5",menuBg:"#0B1529",menuHover:"#182848",subMenuBg:"#030C17",subMenuHover:"#182848",sideBarWidth:"180px"}},d056:function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-people",use:"icon-people-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},d0a6:function(t,e,n){"use strict";n("8544")},d249:function(t,e,n){"use strict";n("b55e")},d3ae:function(t,e,n){},d7ec:function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-eye-open",use:"icon-eye-open-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(c);e["default"]=c},d9cd:function(t,e,n){"use strict";n.r(e);var i=n("a78e"),a=n.n(i),r={sidebar:{opened:!a.a.get("sidebarStatus")||!!+a.a.get("sidebarStatus"),withoutAnimation:!1},device:"desktop",size:a.a.get("size")||"medium"},o={TOGGLE_SIDEBAR:function(t){t.sidebar.opened=!t.sidebar.opened,t.sidebar.withoutAnimation=!1,t.sidebar.opened?a.a.set("sidebarStatus",1):a.a.set("sidebarStatus",0)},CLOSE_SIDEBAR:function(t,e){a.a.set("sidebarStatus",0),t.sidebar.opened=!1,t.sidebar.withoutAnimation=e},TOGGLE_DEVICE:function(t,e){t.device=e},SET_SIZE:function(t,e){t.size=e,a.a.set("size",e)}},c={toggleSideBar:function(t){var e=t.commit;e("TOGGLE_SIDEBAR")},closeSideBar:function(t,e){var n=t.commit,i=e.withoutAnimation;n("CLOSE_SIDEBAR",i)},toggleDevice:function(t,e){var n=t.commit;n("TOGGLE_DEVICE",e)},setSize:function(t,e){var n=t.commit;n("SET_SIZE",e)}};e["default"]={namespaced:!0,state:r,mutations:o,actions:c}},dbc7:function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-exit-fullscreen",use:"icon-exit-fullscreen-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},dcf8:function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-nested",use:"icon-nested-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},ddd5:function(t,e,n){},de6e:function(t,e,n){},de9d:function(t,e,n){},e03b:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFEAAABRCAYAAACqj0o2AAAAAXNSR0IArs4c6QAACjNJREFUeF7tnH9sFNcRx7/z9owP+84/iG1+p2eCa4vwwxJEgtJKRkoTKAlKIa5MC8qhFIlUoIJaqZFaya6i/oFUCVBRmwok3IYkCEODCClOS5VDSUrSpAkkDhAw+JIQfhjjM+ezsfHuTrVrDI7x3e2+3TVGvf0LyTPzZj477828t+8gZB7HBMixhYwBZCC6kAQZiBmILhBwwUQmEzMQXSDggolRk4n8q7n5NwQqdBbTFSjTjdh0IDQQowCixr81aM2C9OaxOk7T5v9ed4GBYxP3DGL3pjmT9azsR0lQFYAqGgTMalTcDzbCxBEheo/k/O7E11Z13ZQbUYgt4ZC/uKR4BQGrAHoUgM+1YAgqmI8wsPtq69X9pfXRHtdspzE0IhBjGysLxvh8PwdoIwgF3gU3EA53gHnrTVXdVrj1eId34/Vb9hSikXklDxT/GuD1IPIQXhJMbMDE1tb2ts1eZqZnEHs2zl2qCbEd4NvFweuMSG6fo4rG6/zbPnrTCx9ch9j6sxmB3DH+P4Ao7IXDjmwy13fd7NlQ8seTCUd2hii7CrF305yHVd23B8BMN5102VaTT6g12VtOfOaWXdcgdq+vXAhBjQwKuOWcZ3aYE8S8OGf78XfdGMMViN3rZ69gUvaAXWxZ3IhuwMbwUarEWk3O9k/2Ox3KMcTudbNXsCKMKexez+dt0zCYmUrkHKQjiN3rKheyQEQ6Ax2N7jR/buurpKMq50X5qS0dRu/aOQ+rCt4DMPrXwPS8Ez4N87N3yBUbKYit1TMCOeN8x2h0V+H06AZJMNDU3a4uKGmw3/5IQUysnbWLMAr7QFvY7hZmcH1gx6dr7JqxDbHr2ZlLmeiQ3YHSydt2JJ1Byb8z6YsDOz6ztbOx5bu5FxbBUzwqtnKSlIaqDSHAjOY2PTHLzl7bFsSu8IxaJqqz7r4t89bNeixJrNfl1p/8rdVhLEcZC4cKsji3BfDyKGuQ25Y9sxqqLbmOPnSVFtZHLR2jWXa1a1VFLQthIwttOT3qhAmoy/2rtWy0BLGlKuQvnjL2krcHqqOOY8fVr25MLI2kPyG3BDHx4/KfgMRuN8IkcDMT7eQ+vNF25Uaz4WRrdXHA7yusVITyOIPXAVSUYiwVwB5d1/YL9eZ7gYboZUM2VhMKKcJfJQjPAOZ3G+cP66sCr3z+cjpDFiFW/BOA8U1E/mGoJPSNOV+f+TNFYIAY9ok9FSrIGptdC6KNdxVS5ndUVV2T33CuOZUjnTUVVST4JYCmyDsMgNEYePX0knQ20kLsXj59ij5GMQqK9AEDAQlN61uS13D+nXQODfw9XlMWFhA7BsYl4p05l848l+oFDLadqA5NgG/MYTBVWh1zGDkVWu/UgWxPZictxMSPvv0MiOodOAKd+Yd5e88csGujs3r600TiVYC3B/ae3WRX/9ry6VOys5QPAEywq3tbnjkc2HvmL6n000OsLtsFJ1s81ncH9jWvlg0iUV1WGWg4e1xWP768LCx8tEtWH8z1gYazKbeC6SGuKGsB3bmJYNcZ7aZeln8w9Rpm16Zd+cTTZacAVNjVM+UJ0UDD2VLpTDQXeeGLWRp8uNfBaAr8rXmWJX0PhTqXP/QCEf2mf4i0eXOXJ31aX2HhgeSNd0qL158MzVd8vmOy8RH4xdzXzj0nq++W3vVlocWK4jssa09T1QX5r0eNs9Nhn9QQl5WuEkK8JDs4wHXBA+ct70Hlx0mt2bFs2jxFkFFgpB5d11fnH2xJ2ienhNi1bFqtDjjZ6tUFD957iMaMEiSkZxSAlHGkhNj5xLRakDxEAu8OvN4iXZml0mYYpfiToacI4jVpe+QAYmJpaBc7aG8YHM17I5qyskkHZkOx84nQnwBaZ0NlqOjO4KGWtVJrYuIHBkQ4uw7CqAoejh51EIAjVePwpCgHxo5LuuEmoD7w92jSXjH1dF784A6AfuooCiASbPxikUMb0uqJx7/1Cxb0e2kDhiLzzmDjF3KZ2PnYg8ZBgJPCYvpO4OcDb3652VEgEspdjz04VyNEyOnVFuK6YOOXSbuMlJkY//7UMJGDLdNA4MzGLdaa4JELjq9sWGUZXzSpnLJ8ESfTeNBYdcF/SELsqJo4T/H5pPurbwbMxvHXiIA0ASqKWwCNA5TV+f+6INcntlTBX6RMiQHkt5oBKeXMjERN8C3vMtIESEoEJF9IhsagaeojBZFLH0pVZ0Opc9HkYwDNdwWiacTISPIEpAkQInkG2t82mx6reqKwMNKR9KNVWrOdVZNqAefFZfBLYLBKxDXBty65tkaaABkRgKRbmeESxex1IxflT3EMox0LJ85TFPl9Z7IMZkAlo9i87RxkfOGkcvK5D/BWZ1EfOHrR2XmiYSj+vYktAHlwgZ1V0rSa4L9bpTMyvrConERWhF3OwDsvX1+T9/bllCf7aaezuS5+Z/wLLMSt8zj3Vsd+S6ySrkuBNAGSAdC9IjIkOrWnV51a8sFV84uidGExIc4bP5PH0Kdu47tjj1UC2wJpAoQvwuwZQGOX0Jj37mXnX/sGAo3PH38M5GaVHvpKjIzkmuD76ad2fF5ROXxGG+NuEbnLI+Mc8f3WtN/bLU1nc118pDgMIeQ/+FhKY2ONRE3ww+QgTYAuNtK33RpKgtFx7cqViaVRpP2NoGWILSH4HygpcXQaYomjuUbSsCBNgCJFH2htAEtSBL0u+J82S6fyliH2r41FtZy0Z7RlKk0gt6r2x+23q7YJkMj1PnBYR5g7NLWvtPB48gZ7sJ6tyONzg0WA/ysA7mwDU6K8VbU/bt8fn11UjiwDoIdFZJAvxFwX/MhaFvb3kjafzsqiLSxw1z0Zm2YsirMKjZ+HIn45UgDBaL4Wa5tlZS0cCMI2xNYZuRP82f4W8Ehko0XWLoqxzkvyP2lvtGPSNkRzbZw9bgsPc2vLzsCjU5br8060e//rASP42IyCsKJ43e6MMGbiph41tqDkJGz/jFcqE02IwoUT7xHmlGw47r/6t2DcqUSTjEtyECsKwuJeQ5TyfDhErFKftijvTKflu5NDrUi5EqsIhgUpHu9eZHLCpg5BZY1XFnx+fZ9NzW+Iy0EsC4ZFsi2glEUnIUjrqqxqKwuaE44ASvWJZmExILrxFVA6fquKSd4oIUF9vUvyzvdIT2HpHcuAYuyh3LAQ9+d0JuYmlXnluHNyRWS41yc1+UyIuP9aHIJe3xPv2lBy1X4bkyr35SCGjEy8r1qcZui8IT/aZWsn4nDRSK0eMyBiFEMcSA1GB6BvbUf3Zjt7YavwpPfOZmGZ6h/ta6L5f4Xp8e5thR0GSG8fuek82YAosSZKjWYRAJu/0jqisf7y9Qs9+0qR/kTaouW0YlJhxQyII9riJHGTOUqgiAb9qMI9h/Iuoi1txB4ISEFsn+T7rg++Zz3wJ5lJlYELxh81xjlF15r13r7TIzFVrcQoBdGK4f8nmQxEF952BmIGogsEXDCRycQMRBcIuGAik4kuQPwfBUpzf3HDNvAAAAAASUVORK5CYII="},e534:function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-theme",use:"icon-theme-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},e7c8:function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-tree-table",use:"icon-tree-table-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},ea55:function(t,e,n){},eab3:function(t,e,n){"use strict";n("65a0")},eb1b:function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-form",use:"icon-form-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},eb24:function(t,e,n){"use strict";n("f3c0")},ed08:function(t,e,n){"use strict";n.d(e,"c",(function(){return a})),n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return o}));n("4917"),n("4f7f"),n("5df3"),n("1c4c"),n("28a5"),n("ac6a"),n("456d"),n("f576"),n("6b54"),n("3b2b"),n("a481");var i=n("53ca");function a(t,e){if(0===arguments.length)return null;var n,a=e||"{y}-{m}-{d} {h}:{i}:{s}";"object"===Object(i["a"])(t)?n=t:("string"===typeof t&&(t=/^[0-9]+$/.test(t)?parseInt(t):t.replace(new RegExp(/-/gm),"/")),"number"===typeof t&&10===t.toString().length&&(t*=1e3),n=new Date(t));var r={y:n.getFullYear(),m:n.getMonth()+1,d:n.getDate(),h:n.getHours(),i:n.getMinutes(),s:n.getSeconds(),a:n.getDay()},o=a.replace(/{([ymdhisa])+}/g,(function(t,e){var n=r[e];return"a"===e?["日","一","二","三","四","五","六"][n]:n.toString().padStart(2,"0")}));return o}function r(t,e){t=10===(""+t).length?1e3*parseInt(t):+t;var n=new Date(t),i=Date.now(),r=(i-n)/1e3;return r<30?"刚刚":r<3600?Math.ceil(r/60)+"分钟前":r<86400?Math.ceil(r/3600)+"小时前":r<172800?"1天前":e?a(t,e):n.getMonth()+1+"月"+n.getDate()+"日"+n.getHours()+"时"+n.getMinutes()+"分"}function o(t,e,n){var i,a,r,o,c,s=function s(){var u=+new Date-o;u0?i=setTimeout(s,e-u):(i=null,n||(c=t.apply(r,a),i||(r=a=null)))};return function(){for(var a=arguments.length,u=new Array(a),l=0;l'});o.a.add(c);e["default"]=c},f9a1:function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-pdf",use:"icon-pdf-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(c);e["default"]=c},fc4a:function(t,e,n){}},[[0,"runtime","chunk-elementUI","chunk-libs"]]]); \ No newline at end of file +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["app"],{0:function(t,e,n){t.exports=n("56d7")},"0781":function(t,e,n){"use strict";n.r(e);n("24ab");var i=n("83d6"),a=n.n(i),r=a.a.showSettings,o=a.a.tagsView,c=a.a.fixedHeader,s=a.a.sidebarLogo,u={theme:JSON.parse(localStorage.getItem("themeColor"))?JSON.parse(localStorage.getItem("themeColor")):"#1890ff",showSettings:r,tagsView:o,fixedHeader:c,sidebarLogo:s,isEdit:!1},l={CHANGE_SETTING:function(t,e){var n=e.key,i=e.value;t.hasOwnProperty(n)&&(t[n]=i)},SET_ISEDIT:function(t,e){t.isEdit=e}},d={changeSetting:function(t,e){var n=t.commit;n("CHANGE_SETTING",e)},setEdit:function(t,e){var n=t.commit;n("SET_ISEDIT",e)}};e["default"]={namespaced:!0,state:u,mutations:l,actions:d}},"096e":function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-skill",use:"icon-skill-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},"0a4d":function(t,e,n){"use strict";n("ddd5")},"0c6d":function(t,e,n){"use strict";n("ac6a");var i=n("bc3a"),a=n.n(i),r=n("4360"),o=n("bbcc"),c=a.a.create({baseURL:o["a"].https,timeout:6e4}),s={login:!0};function u(t){var e=r["a"].getters.token,n=t.headers||{};return e&&(n["X-Token"]=e,t.headers=n),new Promise((function(e,n){c(t).then((function(t){var i=t.data||{};return 200!==t.status?n({message:"请求失败",res:t,data:i}):-1===[41e4,410001,410002,4e4].indexOf(i.status)?200===i.status?e(i,t):n({message:i.message,res:t,data:i}):void r["a"].dispatch("user/resetToken").then((function(){location.reload()}))})).catch((function(t){return n({message:t})}))}))}var l=["post","put","patch","delete"].reduce((function(t,e){return t[e]=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return u(Object.assign({url:t,data:n,method:e},s,i))},t}),{});["get","head"].forEach((function(t){l[t]=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return u(Object.assign({url:e,params:n,method:t},s,i))}})),e["a"]=l},"0f9a":function(t,e,n){"use strict";n.r(e);var i=n("c7eb"),a=(n("96cf"),n("1da1")),r=(n("7f7f"),n("c24f")),o=n("5f87"),c=n("a18c"),s=n("a78e"),u=n.n(s),l={token:Object(o["a"])(),name:"",avatar:"",introduction:"",roles:[],menuList:JSON.parse(localStorage.getItem("MenuList")),sidebarWidth:window.localStorage.getItem("sidebarWidth"),sidebarStyle:window.localStorage.getItem("sidebarStyle"),merchantType:JSON.parse(window.localStorage.getItem("merchantType")||"{}")},d={SET_MENU_LIST:function(t,e){t.menuList=e},SET_TOKEN:function(t,e){t.token=e},SET_INTRODUCTION:function(t,e){t.introduction=e},SET_NAME:function(t,e){t.name=e},SET_AVATAR:function(t,e){t.avatar=e},SET_ROLES:function(t,e){t.roles=e},SET_SIDEBAR_WIDTH:function(t,e){t.sidebarWidth=e},SET_SIDEBAR_STYLE:function(t,e){t.sidebarStyle=e,window.localStorage.setItem("sidebarStyle",e)},SET_MERCHANT_TYPE:function(t,e){t.merchantType=e,window.localStorage.setItem("merchantType",JSON.stringify(e))}},h={login:function(t,e){var n=t.commit;return new Promise((function(t,i){Object(r["q"])(e).then((function(e){var i=e.data;n("SET_TOKEN",i.token),u.a.set("MerName",i.admin.account),Object(o["c"])(i.token),t(i)})).catch((function(t){i(t)}))}))},getMenus:function(t){var e=this,n=t.commit;return new Promise((function(t,i){Object(r["k"])().then((function(e){n("SET_MENU_LIST",e.data),localStorage.setItem("MenuList",JSON.stringify(e.data)),t(e)})).catch((function(t){e.$message.error(t.message),i(t)}))}))},getInfo:function(t){var e=t.commit,n=t.state;return new Promise((function(t,i){Object(r["j"])(n.token).then((function(n){var a=n.data;a||i("Verification failed, please Login again.");var r=a.roles,o=a.name,c=a.avatar,s=a.introduction;(!r||r.length<=0)&&i("getInfo: roles must be a non-null array!"),e("SET_ROLES",r),e("SET_NAME",o),e("SET_AVATAR",c),e("SET_INTRODUCTION",s),t(a)})).catch((function(t){i(t)}))}))},logout:function(t){var e=t.commit,n=t.state,i=t.dispatch;return new Promise((function(t,a){Object(r["s"])(n.token).then((function(){e("SET_TOKEN",""),e("SET_ROLES",[]),Object(o["b"])(),Object(c["d"])(),u.a.remove(),i("tagsView/delAllViews",null,{root:!0}),t()})).catch((function(t){a(t)}))}))},resetToken:function(t){var e=t.commit;return new Promise((function(t){e("SET_TOKEN",""),e("SET_ROLES",[]),Object(o["b"])(),t()}))},changeRoles:function(t,e){var n=t.commit,r=t.dispatch;return new Promise(function(){var t=Object(a["a"])(Object(i["a"])().mark((function t(a){var s,u,l,d;return Object(i["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return s=e+"-token",n("SET_TOKEN",s),Object(o["c"])(s),t.next=5,r("getInfo");case 5:return u=t.sent,l=u.roles,Object(c["d"])(),t.next=10,r("permission/generateRoutes",l,{root:!0});case 10:d=t.sent,c["c"].addRoutes(d),r("tagsView/delAllViews",null,{root:!0}),a();case 14:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())}};e["default"]={namespaced:!0,state:l,mutations:d,actions:h}},1:function(t,e){},"12a5":function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-shopping",use:"icon-shopping-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},1430:function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-qq",use:"icon-qq-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},"15ae":function(t,e,n){"use strict";n("7680")},1779:function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-bug",use:"icon-bug-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},"17df":function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-international",use:"icon-international-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},"18f0":function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-link",use:"icon-link-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},"1e38":function(t,e,n){"use strict";n("c6b6")},"225f":function(t,e,n){"use strict";n("3ddf")},"24ab":function(t,e,n){t.exports={theme:"#1890ff"}},2580:function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-language",use:"icon-language-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},2801:function(t,e,n){"use strict";n.d(e,"m",(function(){return a})),n.d(e,"q",(function(){return r})),n.d(e,"o",(function(){return o})),n.d(e,"p",(function(){return c})),n.d(e,"n",(function(){return s})),n.d(e,"c",(function(){return u})),n.d(e,"b",(function(){return l})),n.d(e,"u",(function(){return d})),n.d(e,"j",(function(){return h})),n.d(e,"k",(function(){return m})),n.d(e,"a",(function(){return f})),n.d(e,"s",(function(){return p})),n.d(e,"r",(function(){return g})),n.d(e,"t",(function(){return b})),n.d(e,"h",(function(){return v})),n.d(e,"g",(function(){return A})),n.d(e,"f",(function(){return w})),n.d(e,"e",(function(){return y})),n.d(e,"i",(function(){return k})),n.d(e,"d",(function(){return C}));var i=n("0c6d");function a(t){return i["a"].get("store/order/reconciliation/lst",t)}function r(t,e){return i["a"].post("store/order/reconciliation/status/".concat(t),e)}function o(t,e){return i["a"].get("store/order/reconciliation/".concat(t,"/order"),e)}function c(t,e){return i["a"].get("store/order/reconciliation/".concat(t,"/refund"),e)}function s(t){return i["a"].get("store/order/reconciliation/mark/".concat(t,"/form"))}function u(t){return i["a"].get("financial_record/list",t)}function l(t){return i["a"].get("financial_record/export",t)}function d(t){return i["a"].get("financial/export",t)}function h(){return i["a"].get("version")}function m(){return i["a"].get("financial/account/form")}function f(){return i["a"].get("financial/create/form")}function p(t){return i["a"].get("financial/lst",t)}function g(t){return i["a"].get("financial/detail/".concat(t))}function b(t){return i["a"].get("financial/mark/".concat(t,"/form"))}function v(t){return i["a"].get("financial_record/lst",t)}function A(t,e){return i["a"].get("financial_record/detail/".concat(t),e)}function w(t){return i["a"].get("financial_record/title",t)}function y(t,e){return i["a"].get("financial_record/detail_export/".concat(t),e)}function k(t){return i["a"].get("financial_record/count",t)}function C(t){return i["a"].get("/bill/deposit",t)}},"29c0":function(t,e,n){},"2a3d":function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-password",use:"icon-password-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},"2f11":function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-peoples",use:"icon-peoples-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},3046:function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-money",use:"icon-money-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},3087:function(t,e,n){"use strict";n.r(e);n("ac6a"),n("456d"),n("7f7f");e["default"]={namespaced:!0,state:{configName:"",pageTitle:"",pageName:"",pageShow:1,pageColor:0,pagePic:0,pageColorPicker:"#f5f5f5",pageTabVal:0,pagePicUrl:"",defaultArray:{},pageFooter:{name:"pageFoot",setUp:{tabVal:"0"},status:{title:"是否自定义",name:"status",status:!1},txtColor:{title:"文字颜色",name:"txtColor",default:[{item:"#282828"}],color:[{item:"#282828"}]},activeTxtColor:{title:"选中文字颜色",name:"txtColor",default:[{item:"#F62C2C"}],color:[{item:"#F62C2C"}]},bgColor:{title:"背景颜色",name:"bgColor",default:[{item:"#fff"}],color:[{item:"#fff"}]},menuList:[{imgList:[n("5946"),n("641c")],name:"首页",link:"/pages/index/index"},{imgList:[n("410e"),n("5640")],name:"分类",link:"/pages/goods_cate/goods_cate"},{imgList:[n("e03b"),n("905e")],name:"逛逛",link:"/pages/plant_grass/index"},{imgList:[n("af8c"),n("73fc")],name:"购物车",link:"/pages/order_addcart/order_addcart"},{imgList:[n("3dde"),n("8ea6")],name:"我的",link:"/pages/user/index"}]}},mutations:{FOOTER:function(t,e){t.pageFooter.status.title=e.title,t.pageFooter.menuList[2]=e.name},ADDARRAY:function(t,e){e.val.id="id"+e.val.timestamp,t.defaultArray[e.num]=e.val},DELETEARRAY:function(t,e){delete t.defaultArray[e.num]},ARRAYREAST:function(t,e){delete t.defaultArray[e]},defaultArraySort:function(t,e){var n=r(t.defaultArray),i=[],a={};function r(t){var e=Object.keys(t),n=e.map((function(e){return t[e]}));return n}function o(t,n,i){return t.forEach((function(t,n){t.id||(t.id="id"+t.timestamp),e.list.forEach((function(e,n){t.id==e.id&&(t.timestamp=e.num)}))})),t}void 0!=e.oldIndex?i=JSON.parse(JSON.stringify(o(n,e.newIndex,e.oldIndex))):(n.splice(e.newIndex,0,e.element.data().defaultConfig),i=JSON.parse(JSON.stringify(o(n,0,0))));for(var c=0;c'});o.a.add(c);e["default"]=c},"31c2":function(t,e,n){"use strict";n.r(e),n.d(e,"filterAsyncRoutes",(function(){return o}));var i=n("5530"),a=(n("ac6a"),n("6762"),n("2fdb"),n("a18c"));function r(t,e){return!e.meta||!e.meta.roles||t.some((function(t){return e.meta.roles.includes(t)}))}function o(t,e){var n=[];return t.forEach((function(t){var a=Object(i["a"])({},t);r(e,a)&&(a.children&&(a.children=o(a.children,e)),n.push(a))})),n}var c={routes:[],addRoutes:[]},s={SET_ROUTES:function(t,e){t.addRoutes=e,t.routes=a["b"].concat(e)}},u={generateRoutes:function(t,e){var n=t.commit;return new Promise((function(t){var i;i=e.includes("admin2")?a["asyncRoutes"]||[]:o(a["asyncRoutes"],e),n("SET_ROUTES",i),t(i)}))}};e["default"]={namespaced:!0,state:c,mutations:s,actions:u}},3289:function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-list",use:"icon-list-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},"3acf":function(t,e,n){"use strict";n("d3ae")},"3dde":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFEAAABRCAYAAACqj0o2AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA25pVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDo2OWRlYjViMi04ZTEzLWNmNDgtODFlNi0yNzk5OTk1OWFjZjgiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6REFEQTg5MUU0MzlFMTFFOThDMzZDQjMzNTFCMDc3NUEiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6REFEQTg5MUQ0MzlFMTFFOThDMzZDQjMzNTFCMDc3NUEiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKFdpbmRvd3MpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MkQxNzQyQjZFRjA2MTFFODhBREFDNDFBMUJFNDQxREIiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6MkQxNzQyQjdFRjA2MTFFODhBREFDNDFBMUJFNDQxREIiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz4dXT0nAAAECElEQVR42uycW0gVURSG5+ixTIlCshN0e8iiC0LRMSUwiiKKQOlGQQXSSwQR0YUo6jV8KYkKeiiKsvAliCLCohQiwlS6oJWUlaWVngq6oVhp/2K2ICF0zD17z6xZC362D+fsOfubmb0us8ZIb2+vIzY0SxEEAlEgCkQxgSgQBaJAFBvAosl8KBKJGP9h7XOn0AmOQcOhTqgjVt9sPDNIJhmJJPUhAxABjQ6yEFoJLYBm/XWSf0FN0F3oKlQJqD8FogsvFcMmaD80dRBffQcdhY4BZmdoIQLgTAxnobwhTNMClQBktS2I1hwLAK7FUDtEgGSToduYb2+ovDMWvBlDBZShaUq6VUoxb6mN9Ri/nbHQFRiueHgCd+PWPsx2TwTAiRgeQ6M9vDB+Q4UAeY/rnnjcY4Bk5O1P4YRFTS3KGEQsqhBDkaHDkdffyNGx7DJ81e9h5VhwFWZhSFjYPuLYG+u57InLLIVTyzndzvmW4uB5nCBOswRxOieIMUsQszhBtJWjRzkt7qMliN85QWyzBPENJ4iPLEFs5ASxyhLEKjYQkTU8wPDKMMAu6Bo3r3nSMMQKnLwvHCEmDB2LaorGqtzGIOKq+Iphn6HDleF4TewgKpCnMVw2EAkcNLkuG5kEPWN+6GE8WoyT1cUaIhZIWcQSqEbz1K+hRZi/xfSarOS0WOgnWjB0RtOUN6F8zPvcxnr80EZCBdsj0Iz/+Pp76ACdDK+anQLT0KQ6wIqhEmgplP6P8OUOdA66AHjdXv62QHWF9QNKAOOOW1Ad77hdEp0qxqSwpQbgvpn6PYGE6DfzdUMTJxOIAtEfFvXTj4FTGYNhEpQN0d9p0CiIHAm1G9NjBoox31J4Y6OH2zeOBbAITJ7ywrmO25+dA2UOYhoKbV5CDY5bwa6DagG2naV3BrRMlepRlrJYQfPK5TdD1dAtx22O/xxYiAA3EsNqaI0Cl27hTutRgfklxy3SJgIBEfCoZWQbtMrR106sw2hPvQ6dgG4ku58ahajaiCmPLQiAQ33quJXvcsDssQ4R8KhpqAyaH8Do5Am0EyArrUAEvBEYDkHbGcSb56EdAzkhzyACIL07QmX+2YxiZgqXqCre4DlEAMxV4UM2w+SDqu5FAFnlGUT1CsV9aBzjLI6eVRcA5DPtVRz1Fmg5c4COSjMvqhc3tRcg+l6hDYPNgTZ4AXFryIozW7QWIDriOVTt+QENCxFEepaTMbbuRbeuKzEWMoBkqcnu/8lCTHPCaSk6IYoJRIEoEAWimED0G8Sw/uPZHp0QW6EPIQNIbXtt2iDG6pspBVoXIpC0zvVq3Xpy5371REqFJjjePTP2gxGQ1j6A2oqyYuKdBaJAFIhiAlEgCkSBKDZ4+yPAAP/CgFUoJ7ivAAAAAElFTkSuQmCC"},"3ddf":function(t,e,n){},"410e":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFEAAABRCAYAAACqj0o2AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA25pVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDo2OWRlYjViMi04ZTEzLWNmNDgtODFlNi0yNzk5OTk1OWFjZjgiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MDA1MjZDM0I0MzlGMTFFOTkxMTdCN0ZFMDQzOTIyMkEiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MDA1MjZDM0E0MzlGMTFFOTkxMTdCN0ZFMDQzOTIyMkEiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKFdpbmRvd3MpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MkQxNzQyQjZFRjA2MTFFODhBREFDNDFBMUJFNDQxREIiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6MkQxNzQyQjdFRjA2MTFFODhBREFDNDFBMUJFNDQxREIiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz6rO72jAAABsUlEQVR42uzcsU4CQRDG8TtFGhLtKIydJJQ0VD4CRisfQe2oLCyECiwoqHwJ38PEiobGChMri+skoVHIOZtoQi4k7nqZUbj/l0yIEy93/nBng5zEaZpGJF+2IAARRBAJiCCCCCIBEUQQNzmlkG9OmrUjebiRqihe01SqKzXO9BtSPaldxXPPpG6ro8mjGqLkSqpl8OQmUueZXlvqxOiX61hzOW//4QopGZ07eJUxE9lY1nBj+Ydxs+spx/EHUg9FR3yVemE5MxMJiCCCCCIBEUQQQSQggggiiOTnrPufwuo5j98HMYruWc7MRPJbxA+j63r37Glkqj0T+1JvyrPUYQ1W9L97ZcVzz6XuQg+KQ/4FI2nWCrE8q6MJM5GNBUResfjE3d7WNtpYnjP9Q6lro41lrInYkTozeoIvM187wAuLfUXqVHM57xgBlj17Ggm+iZSZyMYCIogERBBBBJGACCKIIBIQQQQRRAIiiCCCSEAEsSiIC6Prmnv2NDILPSD0zfvh16PmR7u4eyBX3d7menuR7nvfi6Wf0Tsxn27MTAQRRAIiiCCCSEAEEcRNzqcAAwAGvzdJXw0gUgAAAABJRU5ErkJggg=="},"432f":function(t,e,n){},4360:function(t,e,n){"use strict";n("a481"),n("ac6a");var i=n("2b0e"),a=n("2f62"),r=(n("7f7f"),{sidebar:function(t){return t.app.sidebar},size:function(t){return t.app.size},device:function(t){return t.app.device},visitedViews:function(t){return t.tagsView.visitedViews},isEdit:function(t){return t.settings.isEdit},cachedViews:function(t){return t.tagsView.cachedViews},token:function(t){return t.user.token},avatar:function(t){return t.user.avatar},name:function(t){return t.user.name},introduction:function(t){return t.user.introduction},roles:function(t){return t.user.roles},permission_routes:function(t){return t.permission.routes},errorLogs:function(t){return t.errorLog.logs},menuList:function(t){return t.user.menuList}}),o=r,c=n("bfa9");i["default"].use(a["a"]);var s=n("c653"),u=s.keys().reduce((function(t,e){var n=e.replace(/^\.\/(.*)\.\w+$/,"$1"),i=s(e);return t[n]=i.default,t}),{}),l=(new c["a"]({storage:window.localStorage}),new a["a"].Store({modules:u,getters:o}));e["a"]=l},4678:function(t,e,n){var i={"./af":"2bfb","./af.js":"2bfb","./ar":"8e73","./ar-dz":"a356","./ar-dz.js":"a356","./ar-kw":"423e","./ar-kw.js":"423e","./ar-ly":"1cfd","./ar-ly.js":"1cfd","./ar-ma":"0a84","./ar-ma.js":"0a84","./ar-sa":"8230","./ar-sa.js":"8230","./ar-tn":"6d83","./ar-tn.js":"6d83","./ar.js":"8e73","./az":"485c","./az.js":"485c","./be":"1fc1","./be.js":"1fc1","./bg":"84aa","./bg.js":"84aa","./bm":"a7fa","./bm.js":"a7fa","./bn":"9043","./bn-bd":"9686","./bn-bd.js":"9686","./bn.js":"9043","./bo":"d26a","./bo.js":"d26a","./br":"6887","./br.js":"6887","./bs":"2554","./bs.js":"2554","./ca":"d716","./ca.js":"d716","./cs":"3c0d","./cs.js":"3c0d","./cv":"03ec","./cv.js":"03ec","./cy":"9797","./cy.js":"9797","./da":"0f14","./da.js":"0f14","./de":"b469","./de-at":"b3eb","./de-at.js":"b3eb","./de-ch":"bb71","./de-ch.js":"bb71","./de.js":"b469","./dv":"598a","./dv.js":"598a","./el":"8d47","./el.js":"8d47","./en-au":"0e6b","./en-au.js":"0e6b","./en-ca":"3886","./en-ca.js":"3886","./en-gb":"39a6","./en-gb.js":"39a6","./en-ie":"e1d3","./en-ie.js":"e1d3","./en-il":"7333","./en-il.js":"7333","./en-in":"ec2e","./en-in.js":"ec2e","./en-nz":"6f50","./en-nz.js":"6f50","./en-sg":"b7e9","./en-sg.js":"b7e9","./eo":"65db","./eo.js":"65db","./es":"898b","./es-do":"0a3c","./es-do.js":"0a3c","./es-mx":"b5b7","./es-mx.js":"b5b7","./es-us":"55c9","./es-us.js":"55c9","./es.js":"898b","./et":"ec18","./et.js":"ec18","./eu":"0ff2","./eu.js":"0ff2","./fa":"8df4","./fa.js":"8df4","./fi":"81e9","./fi.js":"81e9","./fil":"d69a","./fil.js":"d69a","./fo":"0721","./fo.js":"0721","./fr":"9f26","./fr-ca":"d9f8","./fr-ca.js":"d9f8","./fr-ch":"0e49","./fr-ch.js":"0e49","./fr.js":"9f26","./fy":"7118","./fy.js":"7118","./ga":"5120","./ga.js":"5120","./gd":"f6b4","./gd.js":"f6b4","./gl":"8840","./gl.js":"8840","./gom-deva":"aaf2","./gom-deva.js":"aaf2","./gom-latn":"0caa","./gom-latn.js":"0caa","./gu":"e0c5","./gu.js":"e0c5","./he":"c7aa","./he.js":"c7aa","./hi":"dc4d","./hi.js":"dc4d","./hr":"4ba9","./hr.js":"4ba9","./hu":"5b14","./hu.js":"5b14","./hy-am":"d6b6","./hy-am.js":"d6b6","./id":"5038","./id.js":"5038","./is":"0558","./is.js":"0558","./it":"6e98","./it-ch":"6f12","./it-ch.js":"6f12","./it.js":"6e98","./ja":"079e","./ja.js":"079e","./jv":"b540","./jv.js":"b540","./ka":"201b","./ka.js":"201b","./kk":"6d79","./kk.js":"6d79","./km":"e81d","./km.js":"e81d","./kn":"3e92","./kn.js":"3e92","./ko":"22f8","./ko.js":"22f8","./ku":"2421","./ku.js":"2421","./ky":"9609","./ky.js":"9609","./lb":"440c","./lb.js":"440c","./lo":"b29d","./lo.js":"b29d","./lt":"26f9","./lt.js":"26f9","./lv":"b97c","./lv.js":"b97c","./me":"293c","./me.js":"293c","./mi":"688b","./mi.js":"688b","./mk":"6909","./mk.js":"6909","./ml":"02fb","./ml.js":"02fb","./mn":"958b","./mn.js":"958b","./mr":"39bd","./mr.js":"39bd","./ms":"ebe4","./ms-my":"6403","./ms-my.js":"6403","./ms.js":"ebe4","./mt":"1b45","./mt.js":"1b45","./my":"8689","./my.js":"8689","./nb":"6ce3","./nb.js":"6ce3","./ne":"3a39","./ne.js":"3a39","./nl":"facd","./nl-be":"db29","./nl-be.js":"db29","./nl.js":"facd","./nn":"b84c","./nn.js":"b84c","./oc-lnc":"167b","./oc-lnc.js":"167b","./pa-in":"f3ff","./pa-in.js":"f3ff","./pl":"8d57","./pl.js":"8d57","./pt":"f260","./pt-br":"d2d4","./pt-br.js":"d2d4","./pt.js":"f260","./ro":"972c","./ro.js":"972c","./ru":"957c","./ru.js":"957c","./sd":"6784","./sd.js":"6784","./se":"ffff","./se.js":"ffff","./si":"eda5","./si.js":"eda5","./sk":"7be6","./sk.js":"7be6","./sl":"8155","./sl.js":"8155","./sq":"c8f3","./sq.js":"c8f3","./sr":"cf1e","./sr-cyrl":"13e9","./sr-cyrl.js":"13e9","./sr.js":"cf1e","./ss":"52bd","./ss.js":"52bd","./sv":"5fbd","./sv.js":"5fbd","./sw":"74dc","./sw.js":"74dc","./ta":"3de5","./ta.js":"3de5","./te":"5cbb","./te.js":"5cbb","./tet":"576c","./tet.js":"576c","./tg":"3b1b","./tg.js":"3b1b","./th":"10e8","./th.js":"10e8","./tk":"5aff","./tk.js":"5aff","./tl-ph":"0f38","./tl-ph.js":"0f38","./tlh":"cf75","./tlh.js":"cf75","./tr":"0e81","./tr.js":"0e81","./tzl":"cf51","./tzl.js":"cf51","./tzm":"c109","./tzm-latn":"b53d","./tzm-latn.js":"b53d","./tzm.js":"c109","./ug-cn":"6117","./ug-cn.js":"6117","./uk":"ada2","./uk.js":"ada2","./ur":"5294","./ur.js":"5294","./uz":"2e8c","./uz-latn":"010e","./uz-latn.js":"010e","./uz.js":"2e8c","./vi":"2921","./vi.js":"2921","./x-pseudo":"fd7e","./x-pseudo.js":"fd7e","./yo":"7f33","./yo.js":"7f33","./zh-cn":"5c3a","./zh-cn.js":"5c3a","./zh-hk":"49ab","./zh-hk.js":"49ab","./zh-mo":"3a6c","./zh-mo.js":"3a6c","./zh-tw":"90ea","./zh-tw.js":"90ea"};function a(t){var e=r(t);return n(e)}function r(t){var e=i[t];if(!(e+1)){var n=new Error("Cannot find module '"+t+"'");throw n.code="MODULE_NOT_FOUND",n}return e}a.keys=function(){return Object.keys(i)},a.resolve=r,t.exports=a,a.id="4678"},"47f1":function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-table",use:"icon-table-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},"47ff":function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-message",use:"icon-message-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},"4b27":function(t,e,n){"use strict";n("5445")},"4d49":function(t,e,n){"use strict";n.r(e);var i={logs:[]},a={ADD_ERROR_LOG:function(t,e){t.logs.push(e)},CLEAR_ERROR_LOG:function(t){t.logs.splice(0)}},r={addErrorLog:function(t,e){var n=t.commit;n("ADD_ERROR_LOG",e)},clearErrorLog:function(t){var e=t.commit;e("CLEAR_ERROR_LOG")}};e["default"]={namespaced:!0,state:i,mutations:a,actions:r}},"4d7e":function(t,e,n){"use strict";n("de9d")},"4df5":function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-eye",use:"icon-eye-usage",viewBox:"0 0 128 64",content:''});o.a.add(c);e["default"]=c},"4fb4":function(t,e,n){t.exports=n.p+"mer/img/no.7de91001.png"},"50da":function(t,e,n){},"51ff":function(t,e,n){var i={"./404.svg":"a14a","./bug.svg":"1779","./chart.svg":"c829","./clipboard.svg":"bc35","./component.svg":"56d6","./dashboard.svg":"f782","./documentation.svg":"90fb","./drag.svg":"9bbf","./edit.svg":"aa46","./education.svg":"ad1c","./email.svg":"cbb7","./example.svg":"30c3","./excel.svg":"6599","./exit-fullscreen.svg":"dbc7","./eye-open.svg":"d7ec","./eye.svg":"4df5","./form.svg":"eb1b","./fullscreen.svg":"9921","./guide.svg":"6683","./icon.svg":"9d91","./international.svg":"17df","./language.svg":"2580","./link.svg":"18f0","./list.svg":"3289","./lock.svg":"ab00","./message.svg":"47ff","./money.svg":"3046","./nested.svg":"dcf8","./password.svg":"2a3d","./pdf.svg":"f9a1","./people.svg":"d056","./peoples.svg":"2f11","./qq.svg":"1430","./search.svg":"8e8d","./shopping.svg":"12a5","./size.svg":"8644","./skill.svg":"096e","./star.svg":"708a","./tab.svg":"8fb7","./table.svg":"47f1","./theme.svg":"e534","./tree-table.svg":"e7c8","./tree.svg":"93cd","./user.svg":"b3b5","./wechat.svg":"80da","./zip.svg":"8aa6"};function a(t){var e=r(t);return n(e)}function r(t){var e=i[t];if(!(e+1)){var n=new Error("Cannot find module '"+t+"'");throw n.code="MODULE_NOT_FOUND",n}return e}a.keys=function(){return Object.keys(i)},a.resolve=r,t.exports=a,a.id="51ff"},5445:function(t,e,n){},"55d1":function(t,e,n){"use strict";n("bd3e")},5640:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFEAAABRCAYAAACqj0o2AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA25pVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDo2OWRlYjViMi04ZTEzLWNmNDgtODFlNi0yNzk5OTk1OWFjZjgiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6QkExQUM1Q0Y0MzlFMTFFOUFFN0FFMjQzRUM3RTIxODkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6QkExQUM1Q0U0MzlFMTFFOUFFN0FFMjQzRUM3RTIxODkiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKFdpbmRvd3MpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MkQxNzQyQjZFRjA2MTFFODhBREFDNDFBMUJFNDQxREIiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6MkQxNzQyQjdFRjA2MTFFODhBREFDNDFBMUJFNDQxREIiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz5UuLmcAAACF0lEQVR42uycMUvDUBDHG61dBHVyKN0chC7ugl9AUWhx8AOoWycHB3VSBwcnv4RTM+UTFJztUuggOJQOTlroYlvqBSqU0kKS13tJm98fjkcffVz6S+6OXl7iDIfDDDLTCgiACEQgIiACEYhAREAEIhCXWdkwXy6Xy/sy3IitKx5TR+zOdd36+GSpVNqT4V5sQ9F3V+yxWq2+qUEUXYkdWji5X2LnE3MVsWNLF9eRZjivxhghWUu+Q0cZOZHCsoCFZYYOxFoG64tinkHuahj4LojVkgCxJZX0M+piqbpbBr7bhr4JZ3IiEBEQgQhEICIgAhGIQERABCIQU6N5tMKKhu2sXZO1hu2sfFIgejFeBK+EMzkRRYXYs3RcvwHnNNTRzokPYj8Z3XvAPqynKfP/czlF332xl7CLnDCPYDiOk4rwDPtYCjmRwgLEdP5jGW1vq9goLK7rfkz43pHh2lJhqWtW51uxU0sn+HLisw/wwoLfbbETzXBeswQwF3BOQ6E3kZITKSwLWFhmyN/e1jZY77fConZjzsSaBr79VpiXBIiNGLe3NcX3u4Hvb8KZnAhEBEQgAhGICIhABCIQERCBCMS0aB6tsEKM29vyhu2sQlIg1mK8CDzCmZyIokIcWDqufsA5DXW1c+LzaNR8tYu/B3La9jZ/bjOje+97MPYbA8vh7cbkRCACEQERiEAEIgIiEIG4zPoTYAALKF4dRnTU+gAAAABJRU5ErkJggg=="},"56d6":function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-component",use:"icon-component-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},"56d7":function(t,e,n){"use strict";n.r(e);var i={};n.r(i),n.d(i,"parseTime",(function(){return ie["c"]})),n.d(i,"formatTime",(function(){return ie["b"]})),n.d(i,"timeAgo",(function(){return Fe})),n.d(i,"numberFormatter",(function(){return Te})),n.d(i,"toThousandFilter",(function(){return Ne})),n.d(i,"uppercaseFirst",(function(){return Qe})),n.d(i,"filterEmpty",(function(){return ae})),n.d(i,"filterYesOrNo",(function(){return re})),n.d(i,"filterShowOrHide",(function(){return oe})),n.d(i,"filterShowOrHideForFormConfig",(function(){return ce})),n.d(i,"filterYesOrNoIs",(function(){return se})),n.d(i,"paidFilter",(function(){return ue})),n.d(i,"payTypeFilter",(function(){return le})),n.d(i,"orderStatusFilter",(function(){return de})),n.d(i,"activityOrderStatus",(function(){return he})),n.d(i,"cancelOrderStatusFilter",(function(){return me})),n.d(i,"orderPayType",(function(){return fe})),n.d(i,"takeOrderStatusFilter",(function(){return pe})),n.d(i,"orderRefundFilter",(function(){return ge})),n.d(i,"accountStatusFilter",(function(){return be})),n.d(i,"reconciliationFilter",(function(){return ve})),n.d(i,"reconciliationStatusFilter",(function(){return Ae})),n.d(i,"productStatusFilter",(function(){return we})),n.d(i,"couponTypeFilter",(function(){return ye})),n.d(i,"couponUseTypeFilter",(function(){return ke})),n.d(i,"broadcastStatusFilter",(function(){return Ce})),n.d(i,"liveReviewStatusFilter",(function(){return Ee})),n.d(i,"broadcastType",(function(){return je})),n.d(i,"broadcastDisplayType",(function(){return Ie})),n.d(i,"filterClose",(function(){return Se})),n.d(i,"exportOrderStatusFilter",(function(){return xe})),n.d(i,"transactionTypeFilter",(function(){return Oe})),n.d(i,"seckillStatusFilter",(function(){return Re})),n.d(i,"seckillReviewStatusFilter",(function(){return _e})),n.d(i,"deliveryStatusFilter",(function(){return Me})),n.d(i,"organizationType",(function(){return De})),n.d(i,"id_docType",(function(){return ze})),n.d(i,"deliveryType",(function(){return Ve})),n.d(i,"runErrandStatus",(function(){return Be}));n("456d"),n("ac6a"),n("cadf"),n("551c"),n("f751"),n("097d");var a=n("2b0e"),r=n("a78e"),o=n.n(r),c=(n("f5df"),n("5c96")),s=n.n(c),u=n("c1df"),l=n.n(u),d=n("c7ad"),h=n.n(d),m=(n("24ab"),n("b20f"),n("fc4a"),n("de6e"),n("caf9")),f=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.isRouterAlive?n("div",{attrs:{id:"app"}},[n("router-view")],1):t._e()},p=[],g={name:"App",provide:function(){return{reload:this.reload}},data:function(){return{isRouterAlive:!0}},methods:{reload:function(){this.isRouterAlive=!1,this.$nextTick((function(){this.isRouterAlive=!0}))}}},b=g,v=n("2877"),A=Object(v["a"])(b,f,p,!1,null,null,null),w=A.exports,y=n("4360"),k=n("a18c"),C=n("30ba"),E=n.n(C),j=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("el-dialog",{attrs:{title:"上传图片",visible:t.visible,width:"896px","before-close":t.handleClose},on:{"update:visible":function(e){t.visible=e}}},[t.visible?n("upload-index",{attrs:{"is-more":t.isMore},on:{getImage:t.getImage}}):t._e()],1)],1)},I=[],S=n("b5b8"),x={name:"UploadFroms",components:{UploadIndex:S["default"]},data:function(){return{visible:!1,callback:function(){},isMore:""}},watch:{},methods:{handleClose:function(){this.visible=!1},getImage:function(t){this.callback(t),this.visible=!1}}},O=x,R=Object(v["a"])(O,j,I,!1,null,"76ff32bf",null),_=R.exports;a["default"].use(s.a,{size:o.a.get("size")||"medium"});var M,D={install:function(t,e){var n=t.extend(_),i=new n;i.$mount(document.createElement("div")),document.body.appendChild(i.$el),t.prototype.$modalUpload=function(t,e){i.visible=!0,i.callback=t,i.isMore=e}}},z=D,V=n("6625"),B=n.n(V),L=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("el-form",{ref:"formDynamic",staticClass:"attrFrom mb20",attrs:{size:"small",model:t.formDynamic,rules:t.rules,"label-width":"100px"},nativeOn:{submit:function(t){t.preventDefault()}}},[n("el-row",{attrs:{gutter:24}},[n("el-col",{attrs:{span:8}},[n("el-form-item",{attrs:{label:"模板名称:",prop:"template_name"}},[n("el-input",{attrs:{placeholder:"请输入模板名称"},model:{value:t.formDynamic.template_name,callback:function(e){t.$set(t.formDynamic,"template_name",e)},expression:"formDynamic.template_name"}})],1)],1),t._v(" "),t._l(t.formDynamic.template_value,(function(e,i){return n("el-col",{key:i,staticClass:"noForm",attrs:{span:24}},[n("el-form-item",[n("div",{staticClass:"acea-row row-middle"},[n("span",{staticClass:"mr5"},[t._v(t._s(e.value))]),n("i",{staticClass:"el-icon-circle-close",on:{click:function(e){return t.handleRemove(i)}}})]),t._v(" "),n("div",{staticClass:"rulesBox"},[t._l(e.detail,(function(i,a){return n("el-tag",{key:a,staticClass:"mb5 mr10",attrs:{closable:"",size:"medium","disable-transitions":!1},on:{close:function(n){return t.handleClose(e.detail,a)}}},[t._v("\n "+t._s(i)+"\n ")])})),t._v(" "),e.inputVisible?n("el-input",{ref:"saveTagInput",refInFor:!0,staticClass:"input-new-tag",attrs:{size:"small",maxlength:"30"},on:{blur:function(n){return t.createAttr(e.detail.attrsVal,i)}},nativeOn:{keyup:function(n){return!n.type.indexOf("key")&&t._k(n.keyCode,"enter",13,n.key,"Enter")?null:t.createAttr(e.detail.attrsVal,i)}},model:{value:e.detail.attrsVal,callback:function(n){t.$set(e.detail,"attrsVal",n)},expression:"item.detail.attrsVal"}}):n("el-button",{staticClass:"button-new-tag",attrs:{size:"small"},on:{click:function(n){return t.showInput(e)}}},[t._v("+ 添加")])],2)])],1)})),t._v(" "),t.isBtn?n("el-col",{staticClass:"mt10",staticStyle:{"padding-left":"0","padding-right":"0"},attrs:{span:24}},[n("el-col",{attrs:{span:8}},[n("el-form-item",{attrs:{label:"规格:"}},[n("el-input",{attrs:{maxlength:"30",placeholder:"请输入规格"},model:{value:t.attrsName,callback:function(e){t.attrsName=e},expression:"attrsName"}})],1)],1),t._v(" "),n("el-col",{attrs:{span:8}},[n("el-form-item",{attrs:{label:"规格值:"}},[n("el-input",{attrs:{maxlength:"30",placeholder:"请输入规格值"},model:{value:t.attrsVal,callback:function(e){t.attrsVal=e},expression:"attrsVal"}})],1)],1),t._v(" "),n("el-col",{attrs:{span:8}},[n("el-button",{staticClass:"mr10",attrs:{type:"primary"},on:{click:t.createAttrName}},[t._v("确定")]),t._v(" "),n("el-button",{on:{click:t.offAttrName}},[t._v("取消")])],1)],1):t._e(),t._v(" "),t.spinShow?n("Spin",{attrs:{size:"large",fix:""}}):t._e()],2),t._v(" "),n("el-form-item",[t.isBtn?t._e():n("el-button",{staticClass:"mt10",attrs:{type:"primary",icon:"md-add"},on:{click:t.addBtn}},[t._v("添加新规格")])],1),t._v(" "),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(e){t.dialogFormVisible=!1}}},[t._v("取 消")]),t._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:function(e){t.dialogFormVisible=!1}}},[t._v("确 定")])],1)],1),t._v(" "),n("span",{staticClass:"footer acea-row"},[n("el-button",{on:{click:function(e){return t.resetForm("formDynamic")}}},[t._v("取消")]),t._v(" "),n("el-button",{attrs:{loading:t.loading,type:"primary"},on:{click:function(e){return t.handleSubmit("formDynamic")}}},[t._v("确 定")])],1)],1)},F=[],T=(n("7f7f"),n("c4c8")),N={name:"CreatAttr",props:{currentRow:{type:Object,default:null}},data:function(){return{dialogVisible:!1,inputVisible:!1,inputValue:"",spinShow:!1,loading:!1,grid:{xl:3,lg:3,md:12,sm:24,xs:24},modal:!1,index:1,rules:{template_name:[{required:!0,message:"请输入模板名称",trigger:"blur"}]},formDynamic:{template_name:"",template_value:[]},attrsName:"",attrsVal:"",formDynamicNameData:[],isBtn:!1,formDynamicName:[],results:[],result:[],ids:0}},watch:{currentRow:{handler:function(t,e){this.formDynamic=t},immediate:!0}},mounted:function(){var t=this;this.formDynamic.template_value.map((function(e){t.$set(e,"inputVisible",!1)}))},methods:{resetForm:function(t){this.$msgbox.close(),this.clear(),this.$refs[t].resetFields()},addBtn:function(){this.isBtn=!0},handleClose:function(t,e){t.splice(e,1)},offAttrName:function(){this.isBtn=!1},handleRemove:function(t){this.formDynamic.template_value.splice(t,1)},createAttrName:function(){if(this.attrsName&&this.attrsVal){var t={value:this.attrsName,detail:[this.attrsVal]};this.formDynamic.template_value.push(t);var e={};this.formDynamic.template_value=this.formDynamic.template_value.reduce((function(t,n){return!e[n.value]&&(e[n.value]=t.push(n)),t}),[]),this.attrsName="",this.attrsVal="",this.isBtn=!1}else{if(!this.attrsName)return void this.$message.warning("请输入规格名称!");if(!this.attrsVal)return void this.$message.warning("请输入规格值!")}},createAttr:function(t,e){if(t){this.formDynamic.template_value[e].detail.push(t);var n={};this.formDynamic.template_value[e].detail=this.formDynamic.template_value[e].detail.reduce((function(t,e){return!n[e]&&(n[e]=t.push(e)),t}),[]),this.formDynamic.template_value[e].inputVisible=!1}else this.$message.warning("请添加属性")},showInput:function(t){this.$set(t,"inputVisible",!0)},handleSubmit:function(t){var e=this;this.$refs[t].validate((function(t){return!!t&&(0===e.formDynamic.template_value.length?e.$message.warning("请至少添加一条属性规格!"):(e.loading=!0,void setTimeout((function(){e.currentRow.attr_template_id?Object(T["m"])(e.currentRow.attr_template_id,e.formDynamic).then((function(t){e.$message.success(t.message),e.loading=!1,setTimeout((function(){e.$msgbox.close()}),500),setTimeout((function(){e.clear(),e.$emit("getList")}),600)})).catch((function(t){e.loading=!1,e.$message.error(t.message)})):Object(T["k"])(e.formDynamic).then((function(t){e.$message.success(t.message),e.loading=!1,setTimeout((function(){e.$msgbox.close()}),500),setTimeout((function(){e.$emit("getList"),e.clear()}),600)})).catch((function(t){e.loading=!1,e.$message.error(t.message)}))}),1200)))}))},clear:function(){this.$refs["formDynamic"].resetFields(),this.formDynamic.template_value=[],this.formDynamic.template_name="",this.isBtn=!1,this.attrsName="",this.attrsVal=""},handleInputConfirm:function(){var t=this.inputValue;t&&this.dynamicTags.push(t),this.inputVisible=!1,this.inputValue=""}}},Q=N,P=(n("1e38"),Object(v["a"])(Q,L,F,!1,null,"5523fc24",null)),H=P.exports,U=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("el-form",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"ruleForm",attrs:{model:t.ruleForm,"label-width":"120px",size:"mini",rules:t.rules}},[n("el-form-item",{attrs:{label:"模板名称",prop:"name"}},[n("el-input",{staticClass:"withs",attrs:{placeholder:"请输入模板名称"},model:{value:t.ruleForm.name,callback:function(e){t.$set(t.ruleForm,"name",e)},expression:"ruleForm.name"}})],1),t._v(" "),n("el-form-item",{attrs:{label:"运费说明",prop:"info"}},[n("el-input",{staticClass:"withs",attrs:{type:"textarea",placeholder:"请输入运费说明"},model:{value:t.ruleForm.info,callback:function(e){t.$set(t.ruleForm,"info",e)},expression:"ruleForm.info"}})],1),t._v(" "),n("el-form-item",{attrs:{label:"计费方式",prop:"type"}},[n("el-radio-group",{on:{change:function(e){return t.changeRadio(t.ruleForm.type)}},model:{value:t.ruleForm.type,callback:function(e){t.$set(t.ruleForm,"type",e)},expression:"ruleForm.type"}},[n("el-radio",{attrs:{label:0}},[t._v("按件数")]),t._v(" "),n("el-radio",{attrs:{label:1}},[t._v("按重量")]),t._v(" "),n("el-radio",{attrs:{label:2}},[t._v("按体积")])],1)],1),t._v(" "),n("el-form-item",{attrs:{label:"配送区域及运费",prop:"region"}},[n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticClass:"tempBox",staticStyle:{width:"100%"},attrs:{data:t.ruleForm.region,border:"",fit:"","highlight-current-row":"",size:"mini"}},[n("el-table-column",{attrs:{align:"center",label:"可配送区域","min-width":"260"},scopedSlots:t._u([{key:"default",fn:function(e){return[0===e.$index?n("span",[t._v("默认全国 "),n("span",{staticStyle:{"font-weight":"bold"}},[t._v("(开启指定区域不配送时无效)")])]):n("LazyCascader",{staticStyle:{width:"98%"},attrs:{props:t.props,"collapse-tags":"",clearable:"",filterable:!1},model:{value:e.row.city_ids,callback:function(n){t.$set(e.row,"city_ids",n)},expression:"scope.row.city_ids"}})]}}])}),t._v(" "),n("el-table-column",{attrs:{"min-width":"130px",align:"center",label:t.columns.title},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[n("el-input-number",{attrs:{"controls-position":"right",min:0},model:{value:i.first,callback:function(e){t.$set(i,"first",e)},expression:"row.first"}})]}}])}),t._v(" "),n("el-table-column",{attrs:{"min-width":"120px",align:"center",label:"运费(元)"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[n("el-input-number",{attrs:{"controls-position":"right",min:0},model:{value:i.first_price,callback:function(e){t.$set(i,"first_price",e)},expression:"row.first_price"}})]}}])}),t._v(" "),n("el-table-column",{attrs:{"min-width":"120px",align:"center",label:t.columns.title2},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[n("el-input-number",{attrs:{"controls-position":"right",min:.1},model:{value:i.continue,callback:function(e){t.$set(i,"continue",e)},expression:"row.continue"}})]}}])}),t._v(" "),n("el-table-column",{attrs:{"class-name":"status-col",align:"center",label:"续费(元)","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[n("el-input-number",{attrs:{"controls-position":"right",min:0},model:{value:i.continue_price,callback:function(e){t.$set(i,"continue_price",e)},expression:"row.continue_price"}})]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",label:"操作","min-width":"80",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.$index>0?n("el-button",{attrs:{type:"text",size:"small"},on:{click:function(n){return t.confirmEdit(t.ruleForm.region,e.$index)}}},[t._v("\n 删除\n ")]):t._e()]}}])})],1)],1),t._v(" "),n("el-form-item",[n("el-button",{attrs:{type:"primary",size:"mini",icon:"el-icon-edit"},on:{click:function(e){return t.addRegion(t.ruleForm.region)}}},[t._v("\n 添加配送区域\n ")])],1),t._v(" "),n("el-form-item",{attrs:{label:"指定包邮",prop:"appoint"}},[n("el-radio-group",{model:{value:t.ruleForm.appoint,callback:function(e){t.$set(t.ruleForm,"appoint",e)},expression:"ruleForm.appoint"}},[n("el-radio",{attrs:{label:1}},[t._v("开启")]),t._v(" "),n("el-radio",{attrs:{label:0}},[t._v("关闭")])],1)],1),t._v(" "),1===t.ruleForm.appoint?n("el-form-item",{attrs:{prop:"free"}},[n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{data:t.ruleForm.free,border:"",fit:"","highlight-current-row":"",size:"mini"}},[n("el-table-column",{attrs:{align:"center",label:"选择地区","min-width":"220"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[n("LazyCascader",{staticStyle:{width:"95%"},attrs:{props:t.props,"collapse-tags":"",clearable:"",filterable:!1},model:{value:i.city_ids,callback:function(e){t.$set(i,"city_ids",e)},expression:"row.city_ids"}})]}}],null,!1,719238884)}),t._v(" "),n("el-table-column",{attrs:{"min-width":"180px",align:"center",label:t.columns.title3},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[n("el-input-number",{attrs:{"controls-position":"right",min:1},model:{value:i.number,callback:function(e){t.$set(i,"number",e)},expression:"row.number"}})]}}],null,!1,2893068961)}),t._v(" "),n("el-table-column",{attrs:{"min-width":"120px",align:"center",label:"最低购买金额(元)"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[n("el-input-number",{attrs:{"controls-position":"right",min:.01},model:{value:i.price,callback:function(e){t.$set(i,"price",e)},expression:"row.price"}})]}}],null,!1,2216462721)}),t._v(" "),n("el-table-column",{attrs:{align:"center",label:"操作","min-width":"120",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{attrs:{type:"text",size:"small"},on:{click:function(n){return t.confirmEdit(t.ruleForm.free,e.$index)}}},[t._v("\n 删除\n ")])]}}],null,!1,4029474057)})],1)],1):t._e(),t._v(" "),1===t.ruleForm.appoint?n("el-form-item",[n("el-button",{attrs:{type:"primary",size:"mini",icon:"el-icon-edit"},on:{click:function(e){return t.addFree(t.ruleForm.free)}}},[t._v("\n 添加指定包邮区域\n ")])],1):t._e(),t._v(" "),n("el-row",{attrs:{gutter:20}},[n("el-col",{attrs:{span:12}},[n("el-form-item",{attrs:{label:"指定区域不配送",prop:"undelivery"}},[n("el-radio-group",{model:{value:t.ruleForm.undelivery,callback:function(e){t.$set(t.ruleForm,"undelivery",e)},expression:"ruleForm.undelivery"}},[n("el-radio",{attrs:{label:1}},[t._v("自定义")]),t._v(" "),n("el-radio",{attrs:{label:2}},[t._v("开启")]),t._v(" "),n("el-radio",{attrs:{label:0}},[t._v("关闭")])],1),t._v(" "),n("br"),t._v('\n (说明: 选择"开启"时, 仅支持上表添加的配送区域)\n ')],1)],1),t._v(" "),n("el-col",{attrs:{span:12}},[1===t.ruleForm.undelivery?n("el-form-item",{staticClass:"noBox",attrs:{prop:"city_id3"}},[n("LazyCascader",{staticStyle:{width:"46%"},attrs:{placeholder:"请选择不配送区域",props:t.props,"collapse-tags":"",clearable:"",filterable:!1},model:{value:t.ruleForm.city_id3,callback:function(e){t.$set(t.ruleForm,"city_id3",e)},expression:"ruleForm.city_id3"}})],1):t._e()],1)],1),t._v(" "),n("el-form-item",{attrs:{label:"排序"}},[n("el-input",{staticClass:"withs",attrs:{placeholder:"请输入排序"},model:{value:t.ruleForm.sort,callback:function(e){t.$set(t.ruleForm,"sort",e)},expression:"ruleForm.sort"}})],1)],1),t._v(" "),n("span",{staticClass:"footer acea-row"},[n("el-button",{on:{click:function(e){return t.resetForm("ruleForm")}}},[t._v("取 消")]),t._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.onsubmit("ruleForm")}}},[t._v("确 定")])],1)],1)},G=[],W=(n("55dd"),n("2909")),Z=(n("c5f6"),n("8a9d")),Y=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"lazy-cascader",style:{width:t.width}},[t.disabled?n("div",{staticClass:"el-input__inner lazy-cascader-input lazy-cascader-input-disabled"},[n("span",{directives:[{name:"show",rawName:"v-show",value:t.placeholderVisible,expression:"placeholderVisible"}],staticClass:"lazy-cascader-placeholder"},[t._v("\n "+t._s(t.placeholder)+"\n ")]),t._v(" "),t.props.multiple?n("div",{staticClass:"lazy-cascader-tags"},t._l(t.labelArray,(function(e,i){return n("el-tag",{key:i,staticClass:"lazy-cascader-tag",attrs:{type:"info","disable-transitions":"",closable:""}},[n("span",[t._v(" "+t._s(e.label.join(t.separator)))])])})),1):n("div",{staticClass:"lazy-cascader-label"},[n("el-tooltip",{attrs:{placement:"top-start",content:t.labelObject.label.join(t.separator)}},[n("span",[t._v(t._s(t.labelObject.label.join(t.separator)))])])],1)]):n("el-popover",{ref:"popover",attrs:{trigger:"click",placement:"bottom-start"}},[n("div",{staticClass:"lazy-cascader-search"},[t.filterable?n("el-autocomplete",{staticClass:"inline-input",style:{width:t.searchWidth||"100%"},attrs:{"popper-class":t.suggestionsPopperClass,"prefix-icon":"el-icon-search",label:"name","fetch-suggestions":t.querySearch,"trigger-on-focus":!1,placeholder:"请输入"},on:{select:t.handleSelect,blur:function(e){t.isSearchEmpty=!1}},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.item;return[n("div",{staticClass:"name",class:t.isChecked(i[t.props.value])},[t._v("\n "+t._s(i[t.props.label].join(t.separator))+"\n ")])]}}],null,!1,1538741936),model:{value:t.keyword,callback:function(e){t.keyword=e},expression:"keyword"}}):t._e(),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:t.isSearchEmpty,expression:"isSearchEmpty"}],staticClass:"empty"},[t._v(t._s(t.searchEmptyText))])],1),t._v(" "),n("div",{staticClass:"lazy-cascader-panel"},[n("el-cascader-panel",{ref:"panel",attrs:{options:t.options,props:t.currentProps},on:{change:t.change},model:{value:t.current,callback:function(e){t.current=e},expression:"current"}})],1),t._v(" "),n("div",{staticClass:"el-input__inner lazy-cascader-input",class:t.disabled?"lazy-cascader-input-disabled":"",attrs:{slot:"reference"},slot:"reference"},[n("span",{directives:[{name:"show",rawName:"v-show",value:t.placeholderVisible,expression:"placeholderVisible"}],staticClass:"lazy-cascader-placeholder"},[t._v("\n "+t._s(t.placeholder)+"\n ")]),t._v(" "),t.props.multiple?n("div",{staticClass:"lazy-cascader-tags"},t._l(t.labelArray,(function(e,i){return n("el-tag",{key:i,staticClass:"lazy-cascader-tag",attrs:{type:"info",size:"small","disable-transitions":"",closable:""},on:{close:function(n){return t.handleClose(e)}}},[n("span",[t._v(" "+t._s(e.label.join(t.separator)))])])})),1):n("div",{staticClass:"lazy-cascader-label"},[n("el-tooltip",{attrs:{placement:"top-start",content:t.labelObject.label.join(t.separator)}},[n("span",[t._v(t._s(t.labelObject.label.join(t.separator)))])])],1),t._v(" "),t.clearable&&t.current.length>0?n("span",{staticClass:"lazy-cascader-clear",on:{click:function(e){return e.stopPropagation(),t.clearBtnClick(e)}}},[n("i",{staticClass:"el-icon-close"})]):t._e()])])],1)},J=[],q=n("c7eb"),X=(n("96cf"),n("1da1")),K=(n("20d6"),{props:{value:{type:Array,default:function(){return[]}},separator:{type:String,default:"/"},placeholder:{type:String,default:"请选择"},width:{type:String,default:"400px"},filterable:Boolean,clearable:Boolean,disabled:Boolean,props:{type:Object,default:function(){return{}}},suggestionsPopperClass:{type:String,default:"suggestions-popper-class"},searchWidth:{type:String},searchEmptyText:{type:String,default:"暂无数据"}},data:function(){return{isSearchEmpty:!1,keyword:"",options:[],current:[],labelObject:{label:[],value:[]},labelArray:[],currentProps:{multiple:this.props.multiple,checkStrictly:this.props.checkStrictly,value:this.props.value,label:this.props.label,leaf:this.props.leaf,lazy:!0,lazyLoad:this.lazyLoad}}},computed:{placeholderVisible:function(){return!this.current||0==this.current.length}},watch:{current:function(){this.getLabelArray()},value:function(t){this.current=t},keyword:function(){this.isSearchEmpty=!1}},created:function(){this.initOptions()},methods:{isChecked:function(t){if(this.props.multiple){var e=this.current.findIndex((function(e){return e.join()==t.join()}));return e>-1?"el-link el-link--primary":""}return t.join()==this.current.join()?"el-link el-link--primary":""},querySearch:function(t,e){var n=this;this.props.lazySearch(t,(function(t){e(t),t&&t.length||(n.isSearchEmpty=!0)}))},handleSelect:function(t){var e=this;if(this.props.multiple){var n=this.current.findIndex((function(n){return n.join()==t[e.props.value].join()}));-1==n&&(this.$refs.panel.clearCheckedNodes(),this.current.push(t[this.props.value]),this.$emit("change",this.current))}else null!=this.current&&t[this.props.value].join()===this.current.join()||(this.$refs.panel.activePath=[],this.current=t[this.props.value],this.$emit("change",this.current));this.keyword=""},initOptions:function(){var t=Object(X["a"])(Object(q["a"])().mark((function t(){var e=this;return Object(q["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:this.props.lazyLoad(0,(function(t){e.$set(e,"options",t),e.props.multiple?e.current=Object(W["a"])(e.value):e.current=e.value}));case 1:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),getLabelArray:function(){var t=Object(X["a"])(Object(q["a"])().mark((function t(){var e,n,i,a=this;return Object(q["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!this.props.multiple){t.next=16;break}e=[],n=0;case 3:if(!(n-1&&(this.$refs.panel.clearCheckedNodes(),this.current.splice(e,1),this.$emit("change",this.current))},clearBtnClick:function(){this.$refs.panel.clearCheckedNodes(),this.current=[],this.$emit("change",this.current)},change:function(){this.$emit("change",this.current)}}}),$=K,tt=(n("15ae"),Object(v["a"])($,Y,J,!1,null,null,null)),et=tt.exports,nt={name:"",type:0,appoint:0,sort:0,info:"",region:[{first:1,first_price:0,continue:1,continue_price:0,city_id:[],city_ids:[]}],undelivery:0,free:[],undelives:{},city_id3:[]},it={},at="重量(kg)",rt="体积(m³)",ot=[{title:"首件",title2:"续件",title3:"最低购买件数"},{title:"首件".concat(at),title2:"续件".concat(at),title3:"最低购买".concat(at)},{title:"首件".concat(rt),title2:"续件".concat(rt),title3:"最低购买".concat(rt)}],ct={name:"CreatTemplates",components:{LazyCascader:et},props:{tempId:{type:Number,default:0},componentKey:{type:Number,default:0}},data:function(){return{loading:!1,rules:{name:[{required:!0,message:"请输入模板名称",trigger:"change"}],info:[{required:!0,message:"请输入运费说明",trigger:"blur"},{min:3,max:500,message:"长度在 3 到 500 个字符",trigger:"blur"}],free:[{type:"array",required:!0,message:"请至少添加一个地区",trigger:"change"}],appoint:[{required:!0,message:"请选择是否指定包邮",trigger:"change"}],undelivery:[{required:!0,message:"请选择是否指定区域不配送",trigger:"change"}],type:[{required:!0,message:"请选择计费方式",trigger:"change"}],region:[{required:!0,message:"请选择活动区域",trigger:"change"}]},nodeKey:"city_id",props:{children:"children",label:"name",value:"id",multiple:!0,lazy:!0,lazyLoad:this.lazyLoad,checkStrictly:!0},dialogVisible:!1,ruleForm:Object.assign({},nt),listLoading:!1,cityList:[],columns:{title:"首件",title2:"续件",title3:"最低购买件数"}}},watch:{componentKey:{handler:function(t,e){t?this.getInfo():this.ruleForm={name:"",type:0,appoint:0,sort:0,region:[{first:1,first_price:0,continue:1,continue_price:0,city_id:[],city_ids:[]}],undelivery:0,free:[],undelives:{},city_id3:[]}}}},mounted:function(){this.tempId>0&&this.getInfo()},methods:{resetForm:function(t){this.$msgbox.close(),this.$refs[t].resetFields()},onClose:function(t){this.dialogVisible=!1,this.$refs[t].resetFields()},confirmEdit:function(t,e){t.splice(e,1)},changeRadio:function(t){this.columns=Object.assign({},ot[t])},addRegion:function(t){t.push(Object.assign({},{first:1,first_price:1,continue:1,continue_price:0,city_id:[],city_ids:[]}))},addFree:function(t){t.push(Object.assign({},{city_id:[],number:1,price:.01,city_ids:[]}))},lazyLoad:function(t,e){var n=this;if(it[t])it[t]().then((function(t){e(Object(W["a"])(t.data))}));else{var i=Object(Z["a"])(t);it[t]=function(){return i},i.then((function(n){n.data.forEach((function(t){t.leaf=0===t.snum})),it[t]=function(){return new Promise((function(t){setTimeout((function(){return t(n)}),300)}))},e(n.data)})).catch((function(t){n.$message.error(t.message)}))}},getInfo:function(){var t=this;this.loading=!0,Object(Z["d"])(this.tempId).then((function(e){t.dialogVisible=!0;var n=e.data;t.ruleForm={name:n.name,type:n.type,info:n.info,appoint:n.appoint,sort:n.sort,region:n.region,undelivery:n.undelivery,free:n.free,undelives:n.undelives,city_id3:n.undelives.city_ids||[]},t.ruleForm.region.map((function(e){t.$set(e,"city_id",e.city_ids[0]),t.$set(e,"city_ids",e.city_ids)})),t.ruleForm.free.map((function(e){t.$set(e,"city_id",e.city_ids[0]),t.$set(e,"city_ids",e.city_ids)})),t.changeRadio(n.type),t.loading=!1})).catch((function(e){t.$message.error(e.message),t.loading=!1}))},change:function(t){return t.map((function(t){var e=[];0!==t.city_ids.length&&(t.city_ids.map((function(t){e.push(t[t.length-1])})),t.city_id=e)})),t},changeOne:function(t){var e=[];if(0!==t.length)return t.map((function(t){e.push(t[t.length-1])})),e},onsubmit:function(t){var e=this,n={name:this.ruleForm.name,type:this.ruleForm.type,info:this.ruleForm.info,appoint:this.ruleForm.appoint,sort:this.ruleForm.sort,region:this.change(this.ruleForm.region),undelivery:this.ruleForm.undelivery,free:this.change(this.ruleForm.free),undelives:{city_id:this.changeOne(this.ruleForm.city_id3)}};this.$refs[t].validate((function(i){if(!i)return!1;0===e.tempId?Object(Z["b"])(n).then((function(n){e.$message.success(n.message),setTimeout((function(){e.$msgbox.close()}),500),setTimeout((function(){e.$emit("getList"),e.$refs[t].resetFields()}),600)})).catch((function(t){e.$message.error(t.message)})):Object(Z["f"])(e.tempId,n).then((function(n){e.$message.success(n.message),setTimeout((function(){e.$msgbox.close()}),500),setTimeout((function(){e.$emit("getList"),e.$refs[t].resetFields()}),600)})).catch((function(t){e.$message.error(t.message)}))}))}}},st=ct,ut=(n("967a"),Object(v["a"])(st,U,G,!1,null,"173db85a",null)),lt=ut.exports,dt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"divBox"},[n("div",{staticClass:"header clearfix"},[n("div",{staticClass:"container"},[n("el-form",{attrs:{inline:"",size:"small"}},[n("el-form-item",{attrs:{label:"优惠劵名称:"}},[n("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入优惠券名称",size:"small"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getList(e)}},model:{value:t.tableFrom.coupon_name,callback:function(e){t.$set(t.tableFrom,"coupon_name",e)},expression:"tableFrom.coupon_name"}},[n("el-button",{staticClass:"el-button-solt",attrs:{slot:"append",icon:"el-icon-search",size:"small"},on:{click:t.getList},slot:"append"})],1)],1)],1)],1)]),t._v(" "),n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],ref:"table",staticStyle:{width:"100%"},attrs:{data:t.tableData.data,size:"mini","max-height":"400","tooltip-effect":"dark"},on:{"selection-change":t.handleSelectionChange}},["wu"===t.handle?n("el-table-column",{attrs:{type:"selection",width:"55"}}):t._e(),t._v(" "),n("el-table-column",{attrs:{prop:"coupon_id",label:"ID","min-width":"50"}}),t._v(" "),n("el-table-column",{attrs:{prop:"title",label:"优惠券名称","min-width":"120"}}),t._v(" "),n("el-table-column",{attrs:{label:"优惠劵类型","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[n("span",[t._v(t._s(t._f("couponTypeFilter")(i.type)))])]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"coupon_price",label:"优惠券面值","min-width":"90"}}),t._v(" "),n("el-table-column",{attrs:{label:"最低消费额","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(0===e.row.use_min_price?"不限制":e.row.use_min_price))])]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"有效期限","min-width":"250"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(1===e.row.coupon_type?e.row.use_start_time+" 一 "+e.row.use_end_time:e.row.coupon_time))])]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"剩余数量","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(0===e.row.is_limited?"不限量":e.row.remain_count))])]}}])}),t._v(" "),"send"===t.handle?n("el-table-column",{attrs:{label:"操作","min-width":"120",fixed:"right",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{staticClass:"mr10",attrs:{type:"text",size:"small"},on:{click:function(n){return t.send(e.row.id)}}},[t._v("发送")])]}}],null,!1,2106495788)}):t._e()],1),t._v(" "),n("div",{staticClass:"block mb20"},[n("el-pagination",{attrs:{"page-sizes":[2,20,30,40],"page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"total, sizes, prev, pager, next, jumper",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1),t._v(" "),n("div",[n("el-button",{staticClass:"fr",attrs:{size:"small",type:"primary"},on:{click:t.ok}},[t._v("确定")]),t._v(" "),n("el-button",{staticClass:"fr mr20",attrs:{size:"small"},on:{click:t.close}},[t._v("取消")])],1)],1)},ht=[],mt=n("ade3"),ft=n("b7be"),pt=n("83d6"),gt=(M={name:"CouponList",props:{handle:{type:String,default:""},couponId:{type:Array,default:function(){return[]}},keyNum:{type:Number,default:0},couponData:{type:Array,default:function(){return[]}}},data:function(){return{roterPre:pt["roterPre"],listLoading:!0,tableData:{data:[],total:0},tableFrom:{page:1,limit:2,coupon_name:"",send_type:3},multipleSelection:[],attr:[],multipleSelectionAll:[],idKey:"coupon_id",nextPageFlag:!1}},watch:{keyNum:{deep:!0,handler:function(t){this.getList()}}},mounted:function(){this.tableFrom.page=1,this.getList(),this.multipleSelectionAll=this.couponData}},Object(mt["a"])(M,"watch",{couponData:{deep:!0,handler:function(t){this.multipleSelectionAll=this.couponData,this.getList()}}}),Object(mt["a"])(M,"methods",{close:function(){this.$msgbox.close(),this.multipleSelection=[]},handleSelectionChange:function(t){var e=this;this.multipleSelection=t,setTimeout((function(){e.changePageCoreRecordData()}),50)},setSelectRow:function(){if(this.multipleSelectionAll&&!(this.multipleSelectionAll.length<=0)){var t=this.idKey,e=[];this.multipleSelectionAll.forEach((function(n){e.push(n[t])})),this.$refs.table.clearSelection();for(var n=0;n=0&&this.$refs.table.toggleRowSelection(this.tableData.data[n],!0)}},changePageCoreRecordData:function(){var t=this.idKey,e=this;if(this.multipleSelectionAll.length<=0)this.multipleSelectionAll=this.multipleSelection;else{var n=[];this.multipleSelectionAll.forEach((function(e){n.push(e[t])}));var i=[];this.multipleSelection.forEach((function(a){i.push(a[t]),n.indexOf(a[t])<0&&e.multipleSelectionAll.push(a)}));var a=[];this.tableData.data.forEach((function(e){i.indexOf(e[t])<0&&a.push(e[t])})),a.forEach((function(i){if(n.indexOf(i)>=0)for(var a=0;a0?(this.$emit("getCouponId",this.multipleSelectionAll),this.close()):this.$message.warning("请先选择优惠劵")},getList:function(){var t=this;this.listLoading=!0,Object(ft["F"])(this.tableFrom).then((function(e){t.tableData.data=e.data.list,t.tableData.total=e.data.count,t.listLoading=!1,t.$nextTick((function(){this.setSelectRow()}))})).catch((function(e){t.listLoading=!1,t.$message.error(e.message)}))},pageChange:function(t){this.changePageCoreRecordData(),this.tableFrom.page=t,this.getList()},handleSizeChange:function(t){this.changePageCoreRecordData(),this.tableFrom.limit=t,this.getList()}}),M),bt=gt,vt=(n("55d1"),Object(v["a"])(bt,dt,ht,!1,null,"34dbe50b",null)),At=vt.exports,wt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.isExternal?n("div",t._g({staticClass:"svg-external-icon svg-icon",style:t.styleExternalIcon},t.$listeners)):n("svg",t._g({class:t.svgClass,attrs:{"aria-hidden":"true"}},t.$listeners),[n("use",{attrs:{"xlink:href":t.iconName}})])},yt=[],kt=n("61f7"),Ct={name:"SvgIcon",props:{iconClass:{type:String,required:!0},className:{type:String,default:""}},computed:{isExternal:function(){return Object(kt["b"])(this.iconClass)},iconName:function(){return"#icon-".concat(this.iconClass)},svgClass:function(){return this.className?"svg-icon "+this.className:"svg-icon"},styleExternalIcon:function(){return{mask:"url(".concat(this.iconClass,") no-repeat 50% 50%"),"-webkit-mask":"url(".concat(this.iconClass,") no-repeat 50% 50%")}}}},Et=Ct,jt=(n("cf1c"),Object(v["a"])(Et,wt,yt,!1,null,"61194e00",null)),It=jt.exports;a["default"].component("svg-icon",It);var St=n("51ff"),xt=function(t){return t.keys().map(t)};xt(St);var Ot=n("323e"),Rt=n.n(Ot),_t=(n("a5d8"),n("5f87")),Mt=n("bbcc"),Dt=Mt["a"].title;function zt(t){return t?"".concat(t," - ").concat(Dt):"".concat(Dt)}var Vt=n("c24f");Rt.a.configure({showSpinner:!1});var Bt=["".concat(pt["roterPre"],"/login"),"/auth-redirect"];k["c"].beforeEach(function(){var t=Object(X["a"])(Object(q["a"])().mark((function t(e,n,i){var a,r;return Object(q["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(a=y["a"].getters.isEdit,!a){t.next=5;break}c["MessageBox"].confirm("离开该编辑页面,已编辑信息会丢失,请问您确认离开吗?","提示",{confirmButtonText:"离开",cancelButtonText:"不离开",confirmButtonClass:"btnTrue",cancelButtonClass:"btnFalse",type:"warning"}).then((function(){y["a"].dispatch("settings/setEdit",!1),Rt.a.start(),document.title=zt(e.meta.title);var t=Object(_t["a"])();t?e.path==="".concat(pt["roterPre"],"/login")?(i({path:"/"}),Rt.a.done()):"/"===n.fullPath&&n.path!=="".concat(pt["roterPre"],"/login")?Object(Vt["h"])().then((function(t){i()})).catch((function(t){i()})):i():-1!==Bt.indexOf(e.path)?i():(i("".concat(pt["roterPre"],"/login?redirect=").concat(e.path)),Rt.a.done())})),t.next=21;break;case 5:if(Rt.a.start(),document.title=zt(e.meta.title),r=Object(_t["a"])(),!r){t.next=12;break}e.path==="".concat(pt["roterPre"],"/login")?(i({path:"/"}),Rt.a.done()):"/"===n.fullPath&&n.path!=="".concat(pt["roterPre"],"/login")?Object(Vt["h"])().then((function(t){i()})).catch((function(t){i()})):i(),t.next=20;break;case 12:if(-1===Bt.indexOf(e.path)){t.next=16;break}i(),t.next=20;break;case 16:return t.next=18,y["a"].dispatch("user/resetToken");case 18:i("".concat(pt["roterPre"],"/login?redirect=").concat(e.path)),Rt.a.done();case 20:y["a"].dispatch("settings/setEdit",!1);case 21:case"end":return t.stop()}}),t)})));return function(e,n,i){return t.apply(this,arguments)}}()),k["c"].afterEach((function(){Rt.a.done()}));var Lt,Ft=n("7212"),Tt=n.n(Ft),Nt=(n("dfa4"),n("5530")),Qt=n("0c6d"),Pt=1,Ht=function(){return++Pt};function Ut(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=this.$createElement;return new Promise((function(r){t.then((function(t){var o=t.data;o.config.submitBtn=!1,o.config.resetBtn=!1,o.config.form||(o.config.form={}),o.config.formData||(o.config.formData={}),o.config.formData=Object(Nt["a"])(Object(Nt["a"])({},o.config.formData),n.formData),o.config.form.labelWidth="120px",o.config.global={upload:{props:{onSuccess:function(t,e){200===t.status&&(e.url=t.data.src)}}}},o=a["default"].observable(o),e.$msgbox({title:o.title,customClass:n.class||"modal-form",message:i("div",{class:"common-form-create",key:Ht()},[i("formCreate",{props:{rule:o.rule,option:o.config},on:{mounted:function(t){Lt=t}}})]),beforeClose:function(t,n,i){var a=function(){setTimeout((function(){n.confirmButtonLoading=!1}),500)};"confirm"===t?(n.confirmButtonLoading=!0,Lt.submit((function(t){Qt["a"][o.method.toLowerCase()](o.api,t).then((function(t){i(),e.$message.success(t.message||"提交成功"),r(t)})).catch((function(t){e.$message.error(t.message||"提交失败")})).finally((function(){a()}))}),(function(){return a()}))):(a(),i())}})})).catch((function(t){e.$message.error(t.message)}))}))}function Gt(t,e){var n=this,i=this.$createElement;return new Promise((function(a,r){n.$msgbox({title:"属性规格",customClass:"upload-form",closeOnClickModal:!1,showClose:!1,message:i("div",{class:"common-form-upload"},[i("attrFrom",{props:{currentRow:t},on:{getList:function(){e()}}})]),showCancelButton:!1,showConfirmButton:!1}).then((function(){a()})).catch((function(){r(),n.$message({type:"info",message:"已取消"})}))}))}function Wt(t,e,n){var i=this,a=this.$createElement;return new Promise((function(r,o){i.$msgbox({title:"运费模板",customClass:"upload-form-temp",closeOnClickModal:!1,showClose:!1,message:a("div",{class:"common-form-upload"},[a("templatesFrom",{props:{tempId:t,componentKey:n},on:{getList:function(){e()}}})]),showCancelButton:!1,showConfirmButton:!1}).then((function(){r()})).catch((function(){o(),i.$message({type:"info",message:"已取消"})}))}))}n("a481");var Zt=n("cea2"),Yt=n("40b3"),Jt=n.n(Yt),qt=n("bc3a"),Xt=n.n(qt),Kt=function(t,e,i,a,r,o,c,s){var u=n("3452"),l="/".concat(c,"/").concat(s),d=t+"\n"+a+"\n"+r+"\n"+o+"\n"+l,h=u.HmacSHA1(d,i);return h=u.enc.Base64.stringify(h),"UCloud "+e+":"+h},$t={videoUpload:function(t){return"COS"===t.type?this.cosUpload(t.evfile,t.res.data,t.uploading):"OSS"===t.type?this.ossHttp(t.evfile,t.res,t.uploading):"local"===t.type?this.uploadMp4ToLocal(t.evfile,t.res,t.uploading):"OBS"===t.type?this.obsHttp(t.evfile,t.res,t.uploading):"US3"===t.type?this.us3Http(t.evfile,t.res,t.uploading):this.qiniuHttp(t.evfile,t.res,t.uploading)},cosUpload:function(t,e,n){var i=new Jt.a({getAuthorization:function(t,n){n({TmpSecretId:e.credentials.tmpSecretId,TmpSecretKey:e.credentials.tmpSecretKey,XCosSecurityToken:e.credentials.sessionToken,ExpiredTime:e.expiredTime})}}),a=t.target.files[0],r=a.name,o=r.lastIndexOf("."),c="";-1!==o&&(c=r.substring(o));var s=(new Date).getTime()+c;return new Promise((function(t,r){i.sliceUploadFile({Bucket:e.bucket,Region:e.region,Key:s,Body:a,onProgress:function(t){n(t)}},(function(n,i){n?r({msg:n}):t({url:e.cdn?e.cdn+s:"http://"+i.Location,ETag:i.ETag})}))}))},obsHttp:function(t,e,n){var i=t.target.files[0],a=i.name,r=a.lastIndexOf("."),o="";-1!==r&&(o=a.substring(r));var c=(new Date).getTime()+o,s=new FormData,u=e.data;s.append("key",c),s.append("AccessKeyId",u.accessid),s.append("policy",u.policy),s.append("signature",u.signature),s.append("file",i),s.append("success_action_status",200);var l=u.host,d=l+"/"+c;return n(!0,100),new Promise((function(t,e){Xt.a.defaults.withCredentials=!1,Xt.a.post(l,s).then((function(){n(!1,0),t({url:u.cdn?u.cdn+"/"+c:d})})).catch((function(t){e({msg:t})}))}))},us3Http:function(t,e,n){var i=t.target.files[0],a=i.name,r=a.lastIndexOf("."),o="";-1!==r&&(o=a.substring(r));var c=(new Date).getTime()+o,s=e.data,u=Kt("PUT",s.accessid,s.secretKey,"",i.type,"",s.storageName,c);return new Promise((function(t,e){Xt.a.defaults.withCredentials=!1;var a="https://".concat(s.storageName,".cn-bj.ufileos.com/").concat(c);Xt.a.put(a,i,{headers:{Authorization:u,"content-type":i.type}}).then((function(e){n(!1,0),t({url:s.cdn?s.cdn+"/"+c:a})})).catch((function(t){e({msg:t})}))}))},cosHttp:function(t,e,n){var i=function(t){return encodeURIComponent(t).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A")},a=t.target.files[0],r=a.name,o=r.lastIndexOf("."),c="";-1!==o&&(c=r.substring(o));var s=(new Date).getTime()+c,u=e.data,l=u.credentials.sessionToken,d=u.url+i(s).replace(/%2F/g,"/"),h=new XMLHttpRequest;return h.open("PUT",d,!0),l&&h.setRequestHeader("x-cos-security-token",l),h.upload.onprogress=function(t){var e=Math.round(t.loaded/t.total*1e4)/100;n(!0,e)},new Promise((function(t,e){h.onload=function(){if(/^2\d\d$/.test(""+h.status)){var a=h.getResponseHeader("etag");n(!1,0),t({url:u.cdn?u.cdn+i(s).replace(/%2F/g,"/"):d,ETag:a})}else e({msg:"文件 "+s+" 上传失败,状态码:"+h.statu})},h.onerror=function(){e({msg:"文件 "+s+"上传失败,请检查是否没配置 CORS 跨域规"})},h.send(a),h.onreadystatechange=function(){}}))},ossHttp:function(t,e,n){var i=t.target.files[0],a=i.name,r=a.lastIndexOf("."),o="";-1!==r&&(o=a.substring(r));var c=(new Date).getTime()+o,s=new FormData,u=e.data;s.append("key",c),s.append("OSSAccessKeyId",u.accessid),s.append("policy",u.policy),s.append("Signature",u.signature),s.append("file",i),s.append("success_action_status",200);var l=u.host,d=l+"/"+c;return n(!0,100),new Promise((function(t,e){Xt.a.defaults.withCredentials=!1,Xt.a.post(l,s).then((function(){n(!1,0),t({url:u.cdn?u.cdn+"/"+c:d})})).catch((function(t){e({msg:t})}))}))},qiniuHttp:function(t,e,n){var i=e.data.token,a=t.target.files[0],r=a.name,o=r.lastIndexOf("."),c="";-1!==o&&(c=r.substring(o));var s=(new Date).getTime()+c,u=e.data.domain+"/"+s,l={useCdnDomain:!0},d={fname:"",params:{},mimeType:null},h=Zt["upload"](a,s,i,d,l);return new Promise((function(t,i){h.subscribe({next:function(t){var e=Math.round(t.total.loaded/t.total.size);n(!0,e)},error:function(t){i({msg:t})},complete:function(i){n(!1,0),t({url:e.data.cdn?e.data.cdn+"/"+s:u})}})}))},uploadMp4ToLocal:function(t,e,n){var i=t.target.files[0],a=new FormData;return a.append("file",i),n(!0,100),Object(T["Xb"])(a)}};function te(t,e,n,i,a){var r=this,o=this.$createElement;return new Promise((function(c,s){r.$msgbox({title:"优惠券列表",customClass:"upload-form-coupon",closeOnClickModal:!1,showClose:!1,message:o("div",{class:"common-form-upload"},[o("couponList",{props:{couponData:t,handle:e,couponId:n,keyNum:i},on:{getCouponId:function(t){a(t)}}})]),showCancelButton:!1,showConfirmButton:!1}).then((function(){c()})).catch((function(){s(),r.$message({type:"info",message:"已取消"})}))}))}function ee(t){var e=this;return new Promise((function(n,i){e.$confirm("确定".concat(t||"删除该条数据吗","?"),"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){n()})).catch((function(){e.$message({type:"info",message:"已取消"})}))}))}function ne(t){var e=this;return new Promise((function(n,i){e.$confirm("".concat(t||"该记录删除后不可恢复,您确认删除吗","?"),"提示",{confirmButtonText:"删除",cancelButtonText:"不删除",type:"warning"}).then((function(){n()})).catch((function(t){e.$message({type:"info",message:"已取消"})}))}))}n("6b54");var ie=n("ed08");function ae(t){var e="-";return t?(e=t,e):e}function re(t){return t?"是":"否"}function oe(t){return t?"显示":"不显示"}function ce(t){return"‘0’"===t?"显示":"不显示"}function se(t){return t?"否":"是"}function ue(t){var e={0:"未支付",1:"已支付"};return e[t]}function le(t){var e={0:"余额",1:"微信",2:"微信",3:"微信",4:"支付宝",5:"支付宝"};return e[t]}function de(t){var e={0:"待发货",1:"待收货",2:"待评价",3:"已完成","-1":"已退款",9:"未成团",10:"待付尾款",11:"尾款过期未付"};return e[t]}function he(t){var e={"-1":"未完成",10:"已完成",0:"进行中"};return e[t]}function me(t){var e={0:"待核销",2:"待评价",3:"已完成","-1":"已退款",10:"待付尾款",11:"尾款过期未付"};return e[t]}function fe(t){var e={0:"余额支付",1:"微信支付",2:"小程序",3:"微信支付",4:"支付宝",5:"支付宝扫码",6:"微信扫码"};return e[t]}function pe(t){var e={0:"待核销",1:"待提货",2:"待评价",3:"已完成","-1":"已退款",9:"未成团",10:"待付尾款",11:"尾款过期未付"};return e[t]}function ge(t){var e={0:"待审核","-1":"审核未通过",1:"待退货",2:"待收货",3:"已退款"};return e[t]}function be(t){var e={0:"未转账",1:"已转账"};return e[t]}function ve(t){return t>0?"已对账":"未对账"}function Ae(t){var e={0:"未确认",1:"已拒绝",2:"已确认"};return e[t]}function we(t){var e={0:"下架",1:"上架显示","-1":"平台关闭"};return e[t]}function ye(t){var e={0:"店铺券",1:"商品券"};return e[t]}function ke(t){var e={0:"领取",1:"赠送券",2:"新人券",3:"赠送券"};return e[t]}function Ce(t){var e={101:"直播中",102:"未开始",103:"已结束",104:"禁播",105:"暂停",106:"异常",107:"已过期"};return e[t]}function Ee(t){var e={0:"未审核",1:"微信审核中",2:"审核通过","-1":"审核未通过"};return e[t]}function je(t){var e={0:"手机直播",1:"推流"};return e[t]}function Ie(t){var e={0:"竖屏",1:"横屏"};return e[t]}function Se(t){return t?"✔":"✖"}function xe(t){var e={0:"正在导出,请稍后再来",1:"完成",2:"失败"};return e[t]}function Oe(t){var e={mer_accoubts:"财务对账",refund_order:"退款订单",brokerage_one:"一级分佣",brokerage_two:"二级分佣",refund_brokerage_one:"返还一级分佣",refund_brokerage_two:"返还二级分佣",order:"订单支付",commission_to_platform:"剩余平台手续费",commission_to_service_team:"订单平台佣金",commission_to_village:"订单平台佣金",commission_to_town:"订单平台佣金",commission_to_entry_merchant:"订单平台佣金",commission_to_cloud_warehouse:"订单平台佣金",commission_to_entry_merchant_refund:"退回平台佣金",commission_to_cloud_warehouse_refund:"退回平台佣金",commission_to_platform_refund:"退回平台手续费",commission_to_service_team_refund:"退回平台佣金",commission_to_village_refund:"退回平台佣金",commission_to_town_refund:"退回平台佣金"};return e[t]}function Re(t){var e={0:"未开始",1:"正在进行","-1":"已结束"};return e[t]}function _e(t){var e={0:"审核中",1:"审核通过","-2":"强制下架","-1":"未通过"};return e[t]}function Me(t){var e={0:"处理中",1:"成功",10:"部分完成","-1":"失败"};return e[t]}function De(t){var e={2401:"小微商户",2500:"个人卖家",4:"个体工商户",2:"企业",3:"党政、机关及事业单位",1708:"其他组织"};return e[t]}function ze(t){var e={1:"中国大陆居民-身份证",2:"其他国家或地区居民-护照",3:"中国香港居民–来往内地通行证",4:"中国澳门居民–来往内地通行证",5:"中国台湾居民–来往大陆通行证"};return e[t]}function Ve(t){var e={1:"发货",2:"送货",3:"无需物流",4:"电子面单"};return e[t]}function Be(t){var e={"-1":"已取消",0:"待接单",2:"待取货",3:"配送中",4:"已完成",9:"物品返回中",10:"物品返回完成",100:"骑士到店"};return e[t]}function Le(t,e){return 1===t?t+e:t+e+"s"}function Fe(t){var e=Date.now()/1e3-Number(t);return e<3600?Le(~~(e/60)," minute"):e<86400?Le(~~(e/3600)," hour"):Le(~~(e/86400)," day")}function Te(t,e){for(var n=[{value:1e18,symbol:"E"},{value:1e15,symbol:"P"},{value:1e12,symbol:"T"},{value:1e9,symbol:"G"},{value:1e6,symbol:"M"},{value:1e3,symbol:"k"}],i=0;i=n[i].value)return(t/n[i].value).toFixed(e).replace(/\.0+$|(\.[0-9]*[1-9])0+$/,"$1")+n[i].symbol;return t.toString()}function Ne(t){return(+t||0).toString().replace(/^-?\d+/g,(function(t){return t.replace(/(?=(?!\b)(\d{3})+$)/g,",")}))}function Qe(t){return t.charAt(0).toUpperCase()+t.slice(1)}var Pe=n("6618");a["default"].use(z),a["default"].use(E.a),a["default"].use(Tt.a),a["default"].use(m["a"],{preLoad:1.3,error:n("4fb4"),loading:n("7153"),attempt:1,listenEvents:["scroll","wheel","mousewheel","resize","animationend","transitionend","touchmove"]}),a["default"].component("vue-ueditor-wrap",B.a),a["default"].component("attrFrom",H),a["default"].component("templatesFrom",lt),a["default"].component("couponList",At),a["default"].prototype.$modalForm=Ut,a["default"].prototype.$modalSure=ee,a["default"].prototype.$videoCloud=$t,a["default"].prototype.$modalSureDelete=ne,a["default"].prototype.$modalAttr=Gt,a["default"].prototype.$modalTemplates=Wt,a["default"].prototype.$modalCoupon=te,a["default"].prototype.moment=l.a,a["default"].use(s.a,{size:o.a.get("size")||"medium"}),a["default"].use(h.a),Object.keys(i).forEach((function(t){a["default"].filter(t,i[t])}));var He=He||[];(function(){var t=document.createElement("script");t.src="https://cdn.oss.9gt.net/js/es.js?version=merchantv2.0";var e=document.getElementsByTagName("script")[0];e.parentNode.insertBefore(t,e)})(),k["c"].beforeEach((function(t,e,n){He&&t.path&&He.push(["_trackPageview","/#"+t.fullPath]),t.meta.title&&(document.title=t.meta.title+"-"+JSON.parse(o.a.get("MerInfo")).login_title),n()}));var Ue,Ge=Object(_t["a"])();Ge&&(Ue=Object(Pe["a"])(Ge)),a["default"].config.productionTip=!1;e["default"]=new a["default"]({el:"#app",data:{notice:Ue},methods:{closeNotice:function(){this.notice&&this.notice()}},router:k["c"],store:y["a"],render:function(t){return t(w)}})},5946:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFEAAABRCAYAAACqj0o2AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA25pVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDo2OWRlYjViMi04ZTEzLWNmNDgtODFlNi0yNzk5OTk1OWFjZjgiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MDdCOUYzQ0M0MzlGMTFFOThGQzg4RjY2RUU1Nzg2NTkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MDdCOUYzQ0I0MzlGMTFFOThGQzg4RjY2RUU1Nzg2NTkiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKFdpbmRvd3MpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MkQxNzQyQjZFRjA2MTFFODhBREFDNDFBMUJFNDQxREIiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6MkQxNzQyQjdFRjA2MTFFODhBREFDNDFBMUJFNDQxREIiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz74tZTQAAACwklEQVR42uycS0hUURzGz7XRsTI01OkFEhEyWr7ATasWQWXqopUbiRZCmK+yRbSIokUQhKX2tFWbaCUUkYIg0iKyNEo3Ltq6adNGjNyM32H+UJCO4z33fb8Pfpu5c+6c+d17/+ecOw8rk8koxiwFVECJlEiJDCVSIiVSIkOJ7iSRa+PP5qN+9+0GuAZ2gDFwE6z60ZnU3I/QnYlHwAdwB5SCEjAI5kEjL+etcwF8Ayc22JYGs+AqsCjx/5SB1+Al2JPjeUVgCEyCA5T4NyfBd9CxjTanwQJoj7vEQnAXTIMqG+0rwFvwBOyMo8Rq8FFGYNN+dMug0xAniV3gK2h2cJ81MugMeD3oeC2xHIyDF2C3C/tPgofgPdgXRYmnZCA478FrnQWLoDUqEvXZcR9MgYMeHrRK8A48AsVhlqjr1CdZuvk1Oe4Bc6A+bBK1sMsBWqYdA59BnxsHs8Cly0jP3R77OXfbpKyMyCWeCrLEFinobSq4OSd9bAmaRF24h72eWhgkJX0ddmLQcUKiLthfQL8KX/qlVh73S6IlqwPjTvicOhm9e+0OOnYl6ltQE7I6SKrwR7+HURkQK72Q2C4rjzMqemmz8962I3EXeCZHq0JFN/tV9obvg3yvsnwlNsnE+ZKKT65Iva91QmKfLN3SKn6pl5PnoonEEplLFan4Rs8jx3I9IbHFDlbAK5W9pWRt8gLJiMhaA783eFx/lXjcRKJOZ45tt8GtiEh8KnUwEDcgYhdKpERKpESGEimREimRoURKpERKZCjR9SQC0o97Kvu5hp3or9Fdp0SllsCMzbaHeTmzJjKUSImUSIkMJVIiJVIiQ4mUSImUyFAiJVIiJeadPw71Y9Wntv/ml92Gph8PPFfZHxvuNdjHMnhj0F631X8Lc8hQ4Kjdxhb/Ipo1kRIpkaFESqRESmQokRIDm3UBBgBHwWAbFrIgUwAAAABJRU5ErkJggg=="},"5bdf":function(t,e,n){"use strict";n("7091")},"5f87":function(t,e,n){"use strict";n.d(e,"a",(function(){return c})),n.d(e,"c",(function(){return s})),n.d(e,"b",(function(){return u}));var i=n("a78e"),a=n.n(i),r=n("56d7"),o="merchantToken";function c(){return a.a.get(o)}function s(t){return a.a.set(o,t)}function u(){return r["default"]&&r["default"].closeNotice(),a.a.remove(o)}},6082:function(t,e,n){},"61d3":function(t,e,n){"use strict";n("6082")},"61f7":function(t,e,n){"use strict";n.d(e,"b",(function(){return i}));n("6b54");function i(t){return/^(https?:|mailto:|tel:)/.test(t)}},6244:function(t,e,n){"use strict";n("8201")},"641c":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFEAAABRCAYAAACqj0o2AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA25pVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDo2OWRlYjViMi04ZTEzLWNmNDgtODFlNi0yNzk5OTk1OWFjZjgiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6QUY0MzkzRDQ0MzlFMTFFOTkwQ0NDREZCQTNCN0JEOEQiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6QUY0MzkzRDM0MzlFMTFFOTkwQ0NDREZCQTNCN0JEOEQiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKFdpbmRvd3MpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MkQxNzQyQjZFRjA2MTFFODhBREFDNDFBMUJFNDQxREIiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6MkQxNzQyQjdFRjA2MTFFODhBREFDNDFBMUJFNDQxREIiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz5PKXo+AAADwklEQVR42uycSWgUQRiFe5JxFyUIihJQENSAJughB/UgIuIS0TYXCdGcRNQkRD2IaHABcSFKxIOoYDTihuhcvCkuqBBcIV48eBLj1YVENI4Z34+/4JKu7vT0xsx78KjDVE/X/1FVb6ozk1Qul7Oo/FRCBIRIiIRIESIhEiIhUoMobXoxlUrFPkDbtktlKJlMJhv3WJwOJinTiSVOiIA3Es0BuFGGAp+BdwHmF0L0BnA2msvwnH9eeg3XAeRLQnSGJzfcCrfBIxy69cO74WOAmSPEvwFORNMBr/B4yR24ASDfxw0xEekMgMvRvBoCQNESuBvXro57/LHORA2PNl3CTuqDv8ITDH1Ow9vDDp3EzUQArETzzAXgc3ieBsxtQ79N0hfvObcoZqKGRzN8xBAeMqijcCtm1/c/rtsBH4SHxxE6iQgWgJiE5jy8zNCtB14PCPcc3kNm21V4RtShE/tyRvErNTxMAG/AlU4ARfoZUZb42aSETugzEYWM0vDY4hIezQB0bojvXaswy6IInViWM4qsQnMFrjB0e6qnkDc+71GO5iK8yNAtkJNOpBA1BFrgw4YQGNBw2fs7PPJ8SLET3m94qJJ36EQGEQVN1vBYauj2Dq5HMQ8C3ner9cw9PYzQiSRYUMQq2dBdAF7X8AgUoIbOEzSS3p1Rhk4gMxEDGq3hsdklPJpQaEdEnwbWaaiMCyp0QlvO+rlNltCssMIjD5DT0FyC5wcROoFD9HiCkPA4JBt+vuGRZ+i0qksMobNHQ2cgEogY2BQ0F3R/cdJbDY+HCXlStEBn5VRDt7vwBoy5J9Rg0Q252wXgNbgqKQA1dB7LmHRsTlqsoWOHEiwaHsf1iYnLeDNrrQQLtdyUxqWbnIS2oZa+QGYibipn1RceAIo+W8mXlzFulJq1dqNKPABsQtMFz7SKT/KkqEsZ+IOIi8eiOQEPs4pXUns7WKR9QcR+0KufAT/CnwbxtwKC1e9Qo9TeafryQNpDqtUbZuo+eYBQIBBPodYWPxfyuzgBiBAJkRAJkSJEQiREQqR8nVjCEk47C9HcCvhta3DqeFQ0EPXe4wuhHi5nQiREBktIkr9n1HjsK6E0hhD/Vxbpet9jume5nLknUoRIiIRIiBQhEiIhEiJFiIRIiEWjMJ7iVNu23e6hX3kI927Evdd4GWPSIVZY5h9EhqlaLmfuiYToV0F/3bg3pL5e9CGuPVF+YCj/FKgsgCJ+WL++H+5VDXAdXBoQwJN+L07xX0RzTyREQqQIkRAJkRApQiTExOqnAAMAXR2Kua55/NAAAAAASUVORK5CYII="},6599:function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-excel",use:"icon-excel-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},"65a0":function(t,e,n){},6618:function(t,e,n){"use strict";var i=n("bbcc"),a=n("5c96"),r=n.n(a),o=n("a18c"),c=n("83d6"),s=n("2b0e");function u(t){t.$on("notice",(function(t){this.$notify.info({title:t.title||"消息",message:t.message,duration:5e3,onClick:function(){console.log("click")}})}))}function l(t){return new WebSocket("".concat(i["a"].wsSocketUrl,"?type=mer&token=").concat(t))}function d(t){var e,n=l(t),i=new s["default"];function a(t,e){n.send(JSON.stringify({type:t,data:e}))}return n.onopen=function(){i.$emit("open"),e=setInterval((function(){a("ping")}),1e4)},n.onmessage=function(t){i.$emit("message",t);var e=JSON.parse(t.data);if(200===e.status&&i.$emit(e.data.status,e.data.result),"notice"===e.type){var n=i.$createElement;r.a.Notification({title:e.data.data.title,message:n("a",{style:"color: teal"},e.data.data.message),onClick:function(){"min_stock"===e.data.type||"product"===e.data.type?o["c"].push({path:"".concat(c["roterPre"],"/product/list")}):"reply"===e.data.type?o["c"].push({path:"".concat(c["roterPre"],"/product/reviews")}):"product_success"===e.data.type?o["c"].push({path:"".concat(c["roterPre"],"/product/list?id=")+e.data.data.id+"&type=2"}):"product_fail"===e.data.type?o["c"].push({path:"".concat(c["roterPre"],"/product/list?id=")+e.data.data.id+"&type=7"}):"product_seckill_success"===e.data.type?o["c"].push({path:"".concat(c["roterPre"],"/marketing/seckill/list?id=")+e.data.data.id+"&type=2"}):"product_seckill_fail"===e.data.type?o["c"].push({path:"".concat(c["roterPre"],"/marketing/seckill/list?id=")+e.data.data.id+"&type=7"}):"new_order"===e.data.type?o["c"].push({path:"".concat(c["roterPre"],"/order/list?id=")+e.data.data.id}):"new_refund_order"===e.data.type?o["c"].push({path:"".concat(c["roterPre"],"/order/refund?id=")+e.data.data.id}):"product_presell_success"===e.data.type?o["c"].push({path:"".concat(c["roterPre"],"/marketing/presell/list?id=")+e.data.data.id+"&type="+e.data.data.type+"&status=1"}):"product_presell_fail"===e.data.type?o["c"].push({path:"".concat(c["roterPre"],"/marketing/presell/list?id=")+e.data.data.id+"&type="+e.data.data.type+"&status=-1"}):"product_group_success"===e.data.type?o["c"].push({path:"".concat(c["roterPre"],"/marketing/combination/combination_goods?id=")+e.data.data.id+"&status=1"}):"product_group_fail"===e.data.type?o["c"].push({path:"".concat(c["roterPre"],"/marketing/combination/combination_goods?id=")+e.data.data.id+"&status=-1"}):"product_assist_success"===e.data.type?o["c"].push({path:"".concat(c["roterPre"],"/marketing/assist/list?id=")+e.data.data.id+"&status=1"}):"product_assist_fail"===e.data.type?o["c"].push({path:"".concat(c["roterPre"],"/marketing/assist/list?id=")+e.data.data.id+"&status=-1"}):"broadcast_status_success"===e.data.type?o["c"].push({path:"".concat(c["roterPre"],"/marketing/studio/list?id=")+e.data.data.id+"&status=1"}):"broadcast_status_fail"===e.data.type?o["c"].push({path:"".concat(c["roterPre"],"/marketing/studio/list?id=")+e.data.data.id+"&status=-1"}):"goods_status_success"===e.data.type?o["c"].push({path:"".concat(c["roterPre"],"/marketing/broadcast/list?id=")+e.data.data.id+"&status=1"}):"goods_status_fail"===e.data.type&&o["c"].push({path:"".concat(c["roterPre"],"/marketing/broadcast/list?id=")+e.data.data.id+"&status=-1"})}})}},n.onclose=function(t){i.$emit("close",t),clearInterval(e)},u(i),function(){n.close()}}e["a"]=d},6683:function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-guide",use:"icon-guide-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},"678b":function(t,e,n){"use strict";n("432f")},"708a":function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-star",use:"icon-star-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},7091:function(t,e,n){},"711b":function(t,e,n){"use strict";n("f677")},7153:function(t,e){t.exports="data:image/jpeg;base64,/9j/4QAYRXhpZgAASUkqAAgAAAAAAAAAAAAAAP/sABFEdWNreQABAAQAAABkAAD/4QMuaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLwA8P3hwYWNrZXQgYmVnaW49Iu+7vyIgaWQ9Ilc1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCI/PiA8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJBZG9iZSBYTVAgQ29yZSA1LjYtYzE0OCA3OS4xNjQwMzYsIDIwMTkvMDgvMTMtMDE6MDY6NTcgICAgICAgICI+IDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+IDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiIHhtbG5zOnhtcD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLyIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bXA6Q3JlYXRvclRvb2w9IkFkb2JlIFBob3Rvc2hvcCAyMS4wIChNYWNpbnRvc2gpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjNENTU5QTc5RkRFMTExRTlBQTQ0OEFDOUYyQTQ3RkZFIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjNENTU5QTdBRkRFMTExRTlBQTQ0OEFDOUYyQTQ3RkZFIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6M0Q1NTlBNzdGREUxMTFFOUFBNDQ4QUM5RjJBNDdGRkUiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6M0Q1NTlBNzhGREUxMTFFOUFBNDQ4QUM5RjJBNDdGRkUiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz7/7gAOQWRvYmUAZMAAAAAB/9sAhAABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAgICAgICAgICAgIDAwMDAwMDAwMDAQEBAQEBAQIBAQICAgECAgMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwP/wAARCADIAMgDAREAAhEBAxEB/8QAcQABAAMAAgMBAAAAAAAAAAAAAAYHCAMFAQIECgEBAAAAAAAAAAAAAAAAAAAAABAAAQQBAgMHAgUFAQAAAAAAAAECAwQFEQYhQRIxIpPUVQcXMhNRYUIjFCQVJXW1NhEBAAAAAAAAAAAAAAAAAAAAAP/aAAwDAQACEQMRAD8A/egAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHhVREVVVERE1VV4IiJ2qq8kQCs8p7s7Uxtl9WN17JujcrJJsdDC+sjmro5GTWLNZJtOSs6mLyUCT7d3dg90Rvdi7KrNE1HT07DPs24WquiOdFq5r49eHUxz2oq6a6gSYAAAAAAAAAAAAAAAAAAAAAAAAAV17p5Gxj9oW0rOdG+9Yr4+SRiqjmwTdck6IqdiSxwrGv5PUDJgEj2lkbOL3JhrVVzmv8A7hWgka3X96vZlZBYhVP1JJFIqJ+C6L2oBtUAAAzl7nb7ktXEwWFsujrY+wyW5bgerXWL9d6Pjiiexdfs0pWoqr+qVNexqKoW5sfdMW6sJFacrW5Cr01snCmidNhreE7Wp2Q2mp1t5IvU3j0qBMQAAAAAAAAAAAAAAAAAAA6PceDr7jw13EWHLG2yxqxTInU6CxE5JYJkTVOpGSNTqTVOpqqmqagZSymxN14qy+vJhb1tqOVsdnHVpr1eZNe65j67HqzqTsa9Gu/FAJ/7e+3GTTJ1c3nqzqNajIyzUpz6NtWbUao6CSWHi6vDBIiO0f0vc5qJppqoGhZ54a0MtixKyGCCN8s00rkZHFHG1XPe9ztEa1rU1VQM73/d66m5Y7NGPr29WV1Z1J7UbLehc9v3biucnVFY7qLEmujWpoqd5wEm3z7k0osJXg27cbNdzNb7n8iJ2j8dUcrmSK9PqhvPc1zEaujo9FdwVG6hm4CXbK3RNtXNQ3dXOoz9NfJQN4/cqucmsjW9izVnd9nNdFbqiOUDYsE8NmGKxXkZNBPGyaGWNUcySKRqPjkY5OCte1UVAOUAAAAAAAAAAAAAAAAAAAABVREVVXRE4qq8ERE7VVQMye5W/Vzcz8HiJv8AEV5P6mxG7hkrEa8OlyfVShend5PcnVxRGgVEAAAANAe0W7utq7Vvy95iSTYiR6/UzjJYo6rzZxkj/LqTk1AL4AAAAAAAAAAAAAAAAAAED3fv7E7VjdBql7LOZrFj4np+11Jq2S7InV/Hj5omivdyTTigUfjPdLcdXNvyd+db1OyrWWcYn7daKBqr0/wWd5K80SOXR3FX/rVy8UCSb/8AcyDJ0WYnbk0qQXIGPyVxWPhl+3K3VccxHaOaui6TOTVF+lFVFcBR4AAAAAc9WzPTsQW6sr4bNaWOeCZi6Pjlicj2Pav4tcgG38NckyOIxWQma1st7G0bkrWaoxslmrFM9rEVVVGo566ar2AdkAAAAAAAAAAAAAAAA6fcM81XAZyzXkdFPXw+TnglYuj45oqU8kcjV5OY9qKn5oBiKSWSaR8s0j5ZZXufJLI9z5JHuXVz3vcque9yrqqquqqB6AAAAAAAAANt7X/8zt3/AEWI/wCfXA70AAAAAAAAAAAAAAAB8mQpx5Ghdx8znsivVLNOV8atSRkdqF8D3Rq5rmo9rXqqaoqa8gKp+FtuepZvxaHkAHwttz1LN+LQ8gA+FtuepZvxaHkAHwttz1LN+LQ8gA+FtuepZvxaHkAHwttz1LN+LQ8gA+FtuepZvxaHkAHwttz1LN+LQ8gA+FtuepZvxaHkALWx9OPHUKWPhc98VGpWpxPkVqyPjqwsgY6RWta1XuaxFXRETXkB9YAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/9k="},"73fc":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFEAAABRCAYAAACqj0o2AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA25pVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDo2OWRlYjViMi04ZTEzLWNmNDgtODFlNi0yNzk5OTk1OWFjZjgiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6Q0I1NzhERDI0MzlFMTFFOTkwOTJBOTgyMTk4RjFDNkQiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6Q0I1NzhERDE0MzlFMTFFOTkwOTJBOTgyMTk4RjFDNkQiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKFdpbmRvd3MpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MkQxNzQyQjZFRjA2MTFFODhBREFDNDFBMUJFNDQxREIiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6MkQxNzQyQjdFRjA2MTFFODhBREFDNDFBMUJFNDQxREIiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz74PCH/AAAEfUlEQVR42uycTUhUURTH35QKRdnHIopIhTYVaKWLCqIvSUlIcwpaFLQI+oKkFrWqZUGfBC2iTURQiOWIBWZZJmYE0ZdZUUZRJrQysoLKpux/8C2m6x3nzby5753nnAOHS/dd35z3m3vuOffcN4UGBwctEXcyRhAIRIEoEEUEokAUiAJRRCCakSynA8Ph8Aw0ixwOH2hoaGgaDYCc7OiykrgfAWxwOri6ujofIHvEnd3JGlkTBSILiKVw6RwJLP9LF3TvCNfXQZfH/HsCdBn0lkC0BUHiLZpTIwSSXgUiSUUmQEynO9+ERjNxXUwbRMzUr2juKd1zMEMLBGJycj0To3TI6RlLKBRykmAXoelUdy/QHwHj8gtaD62JRCLRdEZnpxH8E3RGTF+OrUGTndDukYKpEXfGukjTumUUeWqxX8n2jVEEsTvdyXYyqQ7NSHURfWb3c5VCzaS65nlgiQkwjzSusBDu/pQjPao4oXmvdH+AvQVO+JjaOzdr+soYz8IqTV+j3wUI3bpYzhhipabvqt8Q70O/K31L4TbjGbryJM2evx/a7itErCW/0bQq3ZQrrmA4Cys0AbbJfgZfZ2I8ly4LiCs3JnODjIYIV862Z2KsROMERu8h2vXHd0r3XBg+ixFHWgtzlb422N7PZSYGYTa6dmW/IHJKdarcpDZeQWy1hle76QBrLIP1cD6aPKW7M5WzcqMQYdA3O2eMlanQkqDvUryciZxdujJIENnto+HKMzXeQKeVT7hCJMP6lL4leJBcbntlu6jMDyIM+2sN1RhjhQLLqqAWHPyYiazyRXjARM0XSAGwjTvEFkbBpdwafnDWDI/5leoNjVS248wAOh4oVLqPWt4fpxLExUrfZkC8qBuc7pc80+HSKsT9DFKdP5b+pQN27hxvXeQgdzELPwcFYoe9gHOTOrc38Awivu2fbtIIg1/sebc38TKwzENDR6bZyqXD0Ms+AKQv9XWiBNsJH08gAiD9MR38LFUuPYcWJ3Oe4bX4ee6sylYNQLJuO2eAbNwZs3AamlfQKcqlswC4gzsgLnniSQ1ASrBrAXgBI15/8KV2pfKHRiEC0lo0mzSXxkHvMJt0dDg1mWOKc9rKADENcbpAdC/nMgGi6cCyG/oQWhQAFilXkzzbsQRVOCXbsiaKCMTAB5bYxHusnXhvsIZ+LPQReglan+pRZQo20DHtLuhqa+inxC+hZ/D5D1jvnW3jaYdCP2co1VyOQDfiQaKGAc5Gcxuar7m8D59/nHtgORoHIEkYesAwQHrOK3EAkhzDmFK2a6J9zrstwbAajDO5tKyEJip27OEcWKiinegHklTlyTNoQ0maxvgG0WnRdcCgDT9Nfr4XEKlG9yXBmB4s7L0GbehwMKadLUS7/H8owbCDhm14bI387iHN1CPck+0TUEoh1HyB3j44iIe84IENWyz9O0HkJethw4tAFCAQgQvtlIbqjOS+dTD+jZe7C9hQZqdblHjTaWMtbOhzU4AIyf+zLXtngSgQRQSiQBSIAlFEIJqRfwIMABiyUOLFGxshAAAAAElFTkSuQmCC"},7509:function(t,e,n){"use strict";n.r(e);var i=n("2909"),a=n("3835"),r=(n("ac6a"),n("b85c")),o=(n("7f7f"),n("6762"),n("2fdb"),{visitedViews:[],cachedViews:[]}),c={ADD_VISITED_VIEW:function(t,e){t.visitedViews.some((function(t){return t.path===e.path}))||t.visitedViews.push(Object.assign({},e,{title:e.meta.title||"no-name"}))},ADD_CACHED_VIEW:function(t,e){t.cachedViews.includes(e.name)||e.meta.noCache||t.cachedViews.push(e.name)},DEL_VISITED_VIEW:function(t,e){var n,i=Object(r["a"])(t.visitedViews.entries());try{for(i.s();!(n=i.n()).done;){var o=Object(a["a"])(n.value,2),c=o[0],s=o[1];if(s.path===e.path){t.visitedViews.splice(c,1);break}}}catch(u){i.e(u)}finally{i.f()}},DEL_CACHED_VIEW:function(t,e){var n=t.cachedViews.indexOf(e.name);n>-1&&t.cachedViews.splice(n,1)},DEL_OTHERS_VISITED_VIEWS:function(t,e){t.visitedViews=t.visitedViews.filter((function(t){return t.meta.affix||t.path===e.path}))},DEL_OTHERS_CACHED_VIEWS:function(t,e){var n=t.cachedViews.indexOf(e.name);t.cachedViews=n>-1?t.cachedViews.slice(n,n+1):[]},DEL_ALL_VISITED_VIEWS:function(t){var e=t.visitedViews.filter((function(t){return t.meta.affix}));t.visitedViews=e},DEL_ALL_CACHED_VIEWS:function(t){t.cachedViews=[]},UPDATE_VISITED_VIEW:function(t,e){var n,i=Object(r["a"])(t.visitedViews);try{for(i.s();!(n=i.n()).done;){var a=n.value;if(a.path===e.path){a=Object.assign(a,e);break}}}catch(o){i.e(o)}finally{i.f()}}},s={addView:function(t,e){var n=t.dispatch;n("addVisitedView",e),n("addCachedView",e)},addVisitedView:function(t,e){var n=t.commit;n("ADD_VISITED_VIEW",e)},addCachedView:function(t,e){var n=t.commit;n("ADD_CACHED_VIEW",e)},delView:function(t,e){var n=t.dispatch,a=t.state;return new Promise((function(t){n("delVisitedView",e),n("delCachedView",e),t({visitedViews:Object(i["a"])(a.visitedViews),cachedViews:Object(i["a"])(a.cachedViews)})}))},delVisitedView:function(t,e){var n=t.commit,a=t.state;return new Promise((function(t){n("DEL_VISITED_VIEW",e),t(Object(i["a"])(a.visitedViews))}))},delCachedView:function(t,e){var n=t.commit,a=t.state;return new Promise((function(t){n("DEL_CACHED_VIEW",e),t(Object(i["a"])(a.cachedViews))}))},delOthersViews:function(t,e){var n=t.dispatch,a=t.state;return new Promise((function(t){n("delOthersVisitedViews",e),n("delOthersCachedViews",e),t({visitedViews:Object(i["a"])(a.visitedViews),cachedViews:Object(i["a"])(a.cachedViews)})}))},delOthersVisitedViews:function(t,e){var n=t.commit,a=t.state;return new Promise((function(t){n("DEL_OTHERS_VISITED_VIEWS",e),t(Object(i["a"])(a.visitedViews))}))},delOthersCachedViews:function(t,e){var n=t.commit,a=t.state;return new Promise((function(t){n("DEL_OTHERS_CACHED_VIEWS",e),t(Object(i["a"])(a.cachedViews))}))},delAllViews:function(t,e){var n=t.dispatch,a=t.state;return new Promise((function(t){n("delAllVisitedViews",e),n("delAllCachedViews",e),t({visitedViews:Object(i["a"])(a.visitedViews),cachedViews:Object(i["a"])(a.cachedViews)})}))},delAllVisitedViews:function(t){var e=t.commit,n=t.state;return new Promise((function(t){e("DEL_ALL_VISITED_VIEWS"),t(Object(i["a"])(n.visitedViews))}))},delAllCachedViews:function(t){var e=t.commit,n=t.state;return new Promise((function(t){e("DEL_ALL_CACHED_VIEWS"),t(Object(i["a"])(n.cachedViews))}))},updateVisitedView:function(t,e){var n=t.commit;n("UPDATE_VISITED_VIEW",e)}};e["default"]={namespaced:!0,state:o,mutations:c,actions:s}},7680:function(t,e,n){},"770f":function(t,e,n){},"7b72":function(t,e,n){},"80da":function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-wechat",use:"icon-wechat-usage",viewBox:"0 0 128 110",content:''});o.a.add(c);e["default"]=c},8201:function(t,e,n){},"83d6":function(t,e){t.exports={roterPre:"/merchant",title:"加载中...",showSettings:!0,tagsView:!0,fixedHeader:!1,sidebarLogo:!0,errorLog:"production"}},8544:function(t,e,n){},8593:function(t,e,n){"use strict";n.d(e,"u",(function(){return a})),n.d(e,"n",(function(){return r})),n.d(e,"K",(function(){return o})),n.d(e,"t",(function(){return c})),n.d(e,"s",(function(){return s})),n.d(e,"m",(function(){return u})),n.d(e,"J",(function(){return l})),n.d(e,"r",(function(){return d})),n.d(e,"o",(function(){return h})),n.d(e,"q",(function(){return m})),n.d(e,"g",(function(){return f})),n.d(e,"j",(function(){return p})),n.d(e,"x",(function(){return g})),n.d(e,"h",(function(){return b})),n.d(e,"i",(function(){return v})),n.d(e,"w",(function(){return A})),n.d(e,"k",(function(){return w})),n.d(e,"A",(function(){return y})),n.d(e,"F",(function(){return k})),n.d(e,"C",(function(){return C})),n.d(e,"E",(function(){return E})),n.d(e,"B",(function(){return j})),n.d(e,"L",(function(){return I})),n.d(e,"y",(function(){return S})),n.d(e,"z",(function(){return x})),n.d(e,"D",(function(){return O})),n.d(e,"G",(function(){return R})),n.d(e,"H",(function(){return _})),n.d(e,"l",(function(){return M})),n.d(e,"e",(function(){return D})),n.d(e,"I",(function(){return z})),n.d(e,"f",(function(){return V})),n.d(e,"p",(function(){return B})),n.d(e,"a",(function(){return L})),n.d(e,"v",(function(){return F})),n.d(e,"b",(function(){return T})),n.d(e,"c",(function(){return N})),n.d(e,"d",(function(){return Q}));var i=n("0c6d");function a(t,e){return i["a"].get("group/lst",{page:t,limit:e})}function r(){return i["a"].get("group/create/table")}function o(t){return i["a"].get("group/update/table/"+t)}function c(t){return i["a"].get("group/detail/"+t)}function s(t,e,n){return i["a"].get("group/data/lst/"+t,{page:e,limit:n})}function u(t){return i["a"].get("group/data/create/table/"+t)}function l(t,e){return i["a"].get("group/data/update/table/".concat(t,"/").concat(e))}function d(t,e){return i["a"].post("/group/data/status/".concat(t),{status:e})}function h(t){return i["a"].delete("group/data/delete/"+t)}function m(){return i["a"].get("system/attachment/category/formatLst")}function f(){return i["a"].get("system/attachment/category/create/form")}function p(t){return i["a"].get("system/attachment/category/update/form/".concat(t))}function g(t,e){return i["a"].post("system/attachment/update/".concat(t,".html"),e)}function b(t){return i["a"].delete("system/attachment/category/delete/".concat(t))}function v(t){return i["a"].get("system/attachment/lst",t)}function A(t){return i["a"].delete("system/attachment/delete",t)}function w(t,e){return i["a"].post("system/attachment/category",{ids:t,attachment_category_id:e})}function y(){return i["a"].get("service/create/form")}function k(t){return i["a"].get("service/update/form/".concat(t))}function C(t){return i["a"].get("service/list",t)}function E(t,e){return i["a"].post("service/status/".concat(t),{status:e})}function j(t){return i["a"].delete("service/delete/".concat(t))}function I(t){return i["a"].get("user/lst",t)}function S(t,e){return i["a"].get("service/".concat(t,"/user"),e)}function x(t,e,n){return i["a"].get("service/".concat(t,"/").concat(e,"/lst"),n)}function O(t){return i["a"].post("service/login/"+t)}function R(t){return i["a"].get("notice/lst",t)}function _(t){return i["a"].post("notice/read/".concat(t))}function M(t){return i["a"].post("applyments/create",t)}function D(){return i["a"].get("applyments/detail")}function z(t,e){return i["a"].post("applyments/update/".concat(t),e)}function V(t){return i["a"].get("profitsharing/lst",t)}function B(t){return i["a"].get("expr/lst",t)}function L(t){return i["a"].get("expr/partner/".concat(t,"/form"))}function F(t){return i["a"].get("profitsharing/export",t)}function T(t){return i["a"].get("ajcaptcha",t)}function N(t){return i["a"].post("ajcheck",t)}function Q(t){return i["a"].post("ajstatus",t)}},8644:function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-size",use:"icon-size-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},8646:function(t,e,n){"use strict";n("770f")},"8a9d":function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"e",(function(){return r})),n.d(e,"b",(function(){return o})),n.d(e,"f",(function(){return c})),n.d(e,"d",(function(){return s})),n.d(e,"c",(function(){return u}));var i=n("0c6d");function a(t){return i["a"].get("v2/system/city/lst/"+t)}function r(t){return i["a"].get("store/shipping/lst",t)}function o(t){return i["a"].post("store/shipping/create",t)}function c(t,e){return i["a"].post("store/shipping/update/".concat(t),e)}function s(t){return i["a"].get("/store/shipping/detail/".concat(t))}function u(t){return i["a"].delete("store/shipping/delete/".concat(t))}},"8aa6":function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-zip",use:"icon-zip-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},"8bcc":function(t,e,n){"use strict";n("29c0")},"8e8d":function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-search",use:"icon-search-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},"8ea6":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFEAAABRCAYAAACqj0o2AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA25pVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDo2OWRlYjViMi04ZTEzLWNmNDgtODFlNi0yNzk5OTk1OWFjZjgiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6RDVCRUNFOTg0MzlFMTFFOTkyODA4MTRGOTU2MjgyQUUiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6RDVCRUNFOTc0MzlFMTFFOTkyODA4MTRGOTU2MjgyQUUiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKFdpbmRvd3MpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MkQxNzQyQjZFRjA2MTFFODhBREFDNDFBMUJFNDQxREIiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6MkQxNzQyQjdFRjA2MTFFODhBREFDNDFBMUJFNDQxREIiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz6lVJLmAAAF2klEQVR42uycWWxVRRjH59oismvBvUCImrigRasFjaGCJhjToK1Row2SaELcgsuDuMT4YlJi1KASjWh8KZpAYhuRupCoxQeJgEYeVAhEpBXrUqkoqAi1/v85n0nTfKf39Nw5y53Ol/wzzZlzZvndObN8M6eFgYEB4600O84j8BA9RA/Rm4foIXqIHqI3DzEZq4x6Y6FQSKVAjY2NzGg2dCk0C5oMHYN+g76Fvmhvb9+ZFqAoK7pC1GVf0hAB72wE90G3QKcVuX0/9Cb0EoB+N+ohAt7JCFZCS6GKET7eD70OPQKYB0YlRAC8FsFaaGqJSf0ENQPkh1lAzGxgAcC7EXRYAEg7FdqENO/Ioi6ZtERUdhmCV4rc9ge0C9oDHYHOgC6GphV5bgla5FqnX2cAnI/go2H6vw+g1QwB4+iQZ/nmXAk9BF0f8jyfuRzPfu4kRECYiOBraLoS3QPdicq/FzGtBQhaoTOV6N3QhUjriIt94uMhAPna1kUFSMO9HyOYC32jRJ8D3e9cn4iWcxKCbmjCkKheqBZQumKmO4MTcGWA+hWqRrp/u9QSb1cA0u6KC1BaJJ+9R4ki1CbX1s43Kte2AcJbpSaMNNYj0AYSdyDilRvHEVOJes1iNtqUaYFLLfG8EGfHBot5aINSFX7A012BqE1D+vAa/mgrA6T1PQJt/VztCsQTlGtdCeTTq1yb4ApELZ9xKf1YR12BqL221eivKmxlgLQqZX091H5xBeIu5dp46CKLecxVBi96xPc6AVEGkG4l6laL2dwcMg915nWmdSjXluE1nGrhVT6Fzgsl6l3XViytyrUp0HMW0l6ljMJc9L7hFES8Vp8i+ExbU6MlLS+hFT4Q0i2sR55706hbpUnXVkCdyvXnAWMswmdQ8YGI8OhWetgEm1xDjX7EJ9KqVKr+RADajGBNSPTT7MNk67QYwPMRvB8CkPYk8tqdVr3Sbom0B02wMX+JEsfdv52AxC2CdhN4ZnokjnPAy6AboEVQmINzg/wgqVlWG1V0CmwywUkHm0ZvdwNa4Z+2Esztlikqyda1EPrEYrL0KV5nE2CuW+KgFjkGwWOi42MmwzM6KwBvTRKAyuYsjgwmBHkbNDbiY79DL0PPAmBi6+OyOtAkME80wX7yNVANdJassWkHTXAqbLv0px2A91fSZSo7iHm0XJ/Fcck8RA/RQ3TGKrMugJyUvcAE26o8oz0T4opmmozMkwdNaTiR7pWl4D4TeK15FuerJKc5uRqdZR+E6+Z6aB5UZ/R9kTj2A7RVxOXfdoA95sQUR1pag8z/uNSblFIDOQzx+PHb0EYA/bmsIALcePG2LJWJc9Z9778ClN71NgA9nFuIgMfTBvdCPE5cldNxoM8EZ4BeBMzu3EAEPB48f9QER9zGxKhYvwwU/Mhnj/x9QJZ6B+WeKaIqGXy43j5X/o6zf81dwFehp8SrlA1EOUPNrwBaRtjX7ZPOn/su22R0jbW1KZ4gju502F5hgpNgM0fYd/IE72qUoT9ViCg8v3paB82P8DhHyU4TeJ03Jr2BhLLNksFsMXRVxKncFugmlG1/KhBRyFoBUmx68qUJvnhaF3d0tACUe9L81I3fuMwpcjs/KlqMsm5NFCIKxYJsHjQJ1ox7JC2yMZUbQ9nrpe9eNMxtnNQv/P8TDusQxd+3A5oRchszXi57zLk11IN95wtQ7TAT9xrUozcJV1hLCED2edxTrss7QJqUsU7KrK1q2E2ttL7sa2pq4kDSpUxh+PlYYxIfJ6bUKq82wfbsJGXaNb2tra3HZktsCJkDNpcrQGmVLHuzElVhwj99iw2xRrnWiUK8U+6uLKlDpxI12zZEbTK9w7hjW5RrE21DdN3+ifugh2jBPEQPMR9W6h5LPeZZqxxhMS8riHMiLOr96+zNLsS+UcinzzZEnv87NIoAHjLh58vjOSDEFcZ/ULHEDO9LdMHoU2zl4Xmr/kRvfmDxED1ED9Gbh+gheogeoreR2X8CDACpuyLF6U1ukwAAAABJRU5ErkJggg=="},"8fb7":function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-tab",use:"icon-tab-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},"905e":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFEAAABRCAYAAACqj0o2AAAAAXNSR0IArs4c6QAADbRJREFUeF7tnH1wVNUVwM95bxPysV+RBBK+TPgKEQkBYRRDbWihQgWBKgoaa+yAguJIx3Zqh3aMUzva0U7o0CoolqigCDhGQRumOO6MUBgBTSGSBQKJED4MkXzsbrJJ3t7TuQuh2X1v38e+F3Da3H/33nPP+d1zv849bxH6i2kCaFpCvwDoh2iBE/RD7IdoAQELRPR7Yj9ECwhYIKLfE/9XIbavnjgUWeLoEMEwQLQhQzsIFCQASSDmB6SGZBBr8YUvvrOAgWkR190TGx+/yZ7isBcKQDMJcCYijgYAux7LiKgJEasJyCMgeZL2HdiLHpD0tLWyznWBSEVga58y5S4UhGJAmEsASZYYRdAEANuR2KaUlw7utUSmDiHXFGJdSXbS4IyMxwjgGQDI1KFfVBUj6lIVsdDLqYe+fK+vvdOIVsZtvtKCe17HLVOfIKDfAWD6Nb0nEdUCg1+llh38MG4DNBr2OcT2VVMKmUDrEPBmo0YggJ+A+BTtVXAYANiMygKASlGklUkvHToZR1vVJn0GMex9E2/5A2F46sqLvOcLQFAJENorhYRqJjJv2pqqFqWm/sdvyqTExHEiihOBoIgQigDArQmHyE/IVtrLqt7UrGugQp9A5EZiQtI2AJiuMYRNQLAFmbQ5Ze3h/Qb0jqjKByyQP3mmgPAwAS4AzY2KygPdwScHvXLUH2+fEXPDCiG9ZQSfys8NkVgJhNkqsi8gshe/bWtZn1NeH7RSBz6AQkLib4iwBABVvJPtCUhdc6wAaakntj+RfyuhWBFz5yUMAtDLjYHmP1oNL3og2h4dm25LTCkjwOJYg4QAXsY6Z9hfOXrBzEBaBjG4Ij9XEoT9SDHXpoMSdC9xvfJ1rRmFjbb1LS8oEkR4GwD4hiQrCOTtDOC0tHLl9VdPf5ZAbF+aP4wS8MBlD5SLRGBrkmsO/7qvz2uxDOZeKYrJbwPgbOU6tCeA3XFPbdMQ+QF6UKJzHyAWKAyzBIytSn3tyN/0jGhf1gnfknLz1wLicqV+iNEW+2uHl8Sjg2mIgWX5rwKCkmISY6Eljg1fb49Hsb5q0/7oBL5OrorhkctTXzuy3mjfpiC2/2L8PSQIMSDR0tQN1W8YVeha1A8sm7AWAFbK+iIIhqTOSc7y414jesQNsbkk250oOo6QwoKNRKWpf69+zogi17JueGqPvvkDIpwrX4Jot31D9Swj+sQN0V8yvgxQaVqw3al1R+dcr01Er/FhJ8DUrwgVzrMhVmx/8+hmvbLigthaPGq0KCbVAEbdYXkoCmmCvdzcuUuv8mbrtZbk3SaCsE9BzoWLEMjRe5aNC6Lv53mvI+DS6M4Z0DLnWzUbzBp3LdsHHr7pVQKFjZFYif0tr647tmGI/kXZmZCUXAeAEYFUJNqfuqlmmlEAjYsy7BnJAwfgW964Qv11RdlJ2VnownfrvjXaN6/fvCDbneBIqYsOYBBQrf1MTZ6eZckwxMCDuasJhOcVvHCec7N3px5DAg/kzgfEYgY4G/HKUwDxsD55ELAi5WzNejXl2x/MLWSXZ8JcQEzv6ZOI9iNhRXd7x/q0inrFCJCSfoHicc8SYKnsN0az7e94d2nZZBii74FxJxCAv4P0KlRlf+fYJK3O2heNHRpKELYjwG1qdQmgVpSoJGXrsYgQP/faFNvA1wFhsXpf1CIQLk151/u+lk493mhLGVCH0QELpE32zcce0pJhCGLborHTBRE/l3kh0TLne8dV10L//WMnAmKlLDgRSwMCSWBsccrWE2EQ4WXENuAzABinZdTV3wmesW859ic99QOLc18l+aUh2C5dyhi07aJqyMwQxMB9Y58ljHZ7CrazZtWO2uaNTRdSwndrtfCYkq38iXQxo+69ICR+BoD6AV6RJhC7t2cg1GCGHURQchBpoXPrSR6ZilkMQfQtGrMPASOmIiJUpG49vlCtk8Ci0WsJBPkNgTfS0oCvlQgNcQxAj0oXLjZ25eR4tOOW/vvG8g0maqBpjX3riV9aAjG8HjF3c/TZkCi0wvH+qXWxOmmbNyRdSEw9LztT6pljFtUREFalbDvxFy1x/nvGbASEkqh6VfbtJ1TXey0/uCqv5e6RU2w2gU/JiMK6pTznjvqYd03/wlEPA2K5qgG6tdDCEPN3j/392hlardsWjCoRRNwYXS/1u9oEtdOCbvVbF+QUiyjy4GavdRv8jg9qHapT+Wej1hKh8lTWssqi3wm09eRd+RYOvxlhwJHobqmLJjg+PlkdSx3dEP3zR75AgBEvdwhUZf/wlKqr++eP3EjA3ztUim4t4qfqqDip2Qs/uKe7xQ4ZxFBooXNHfczNRVNwj0D/vJEbSb5ebHd8dGqRmmkx2sVPI86Wjo9O6bLVf3dOHUFkUIKIPeLcUR9zSdIlmOvtn5fzNhFEPPogUrl9R/0jqhDvynmaEF6+rp5IUO3YWTdBD3//3Bwe2YmM0hOUOnaeihna0w3Rd1c2P6fxR/KrBYHW2D+uV93+m3+aXWBD/EqPAX1Xh9Y4NPTs6VvJTkAqdeystwDiHA4xnGnQiyI97/jkm99rGe+bc+PnAKj1kK8lJr7fCSXGuvNcuxp0vTL6uJ2XMyp6l1LHJ1ZAvPPGDwCBZxf09sRye+Vp1enMK7fNHDEdbcA9OZ4cmvjg9bQiWufYdXqFXiG+2SMUBpxKHZWnLfDEWcP5S1nEUQURdtt3ndYVSvfPGvEUIayJaYzuhSWWBAUBBPubur6ZkeMB3VkW/jtHyDYWFgo96drd8FcDPStX9c8a9hSBEAmBqMmx+0yG7lH+yfAyoFgvbXql6KyH4MWujhl2z0VD2Q1ts4b7EDAiU5cx9pDr04ZNpiH6ioYVgYh8XYwoFArlOT3ndL+O+WZykCB/sjTtib3VIi9KnYYB+osyMsmWdD7aRiaxaS7P2ZgJV7pVbyzKsCcLic2ydY3RcofnrKG3Wt+PhpZBzLdfnZ4Wu5oXeX6NQQ/k4lqLsmYLgviPaNES86eleVpiBnl1Q+SCfUVD+aNORBSHgCqdnnNzjJruK+Ige3mkoiaG1AMA8iJ1xQWQ6+8vGvICoRCZT0lwweFpyFKzz5CWvjuyVgNGPg0QkAR+yHIeOheV0aqN1XdHVhmgECMbQbt91MLi7WjvnjHogLE1sLeMth8OkYX6AGmLw3NONb3EEMTm2zMKRDFBdnBGPqX3njc0pXuU9/0g679pHYa0iUDoDXaYA9g4NSMzKTnhTHQqMyNa4f78fMxQH9fCsNq+wswjhFH51wQHnXvPTzXqO1dBFmaVESpsNvoEeoOdkikPDE/l6ZlPM0DZ9ZRC0hjXvouqB3XjEG8fvJoA5a99kjTV/UXTQX12y2v5CgeXERic2gTeYLd5gFybttszj4DMOeig818XNJ3DMMSw29uEM7Jdmli5c3+j5u1FDbJvGgep+xzpDUoh0x4YBnjr4PkgoCzUJQCtsu/7VjMibhhieJe+ddA2Arw3AghCMBhiOWYW9suyB+uZ2t5giFkC8ArEfYCRpw4ECFJ3+3DnIZ/mhhkXxJapA2cKKP5T5lVELzoPXPxtvFP66ho5NaOMFJOl+CqO3iCzDqB/avqDDAXZbQSJ1jgOXFSNUPXoGxfEsMdMyfiKAAoi9yZqCUndOWlVsQ+megH7piiAJPIGESzzwOYCt9uWkFBDgFGfyJFEIchzfam+oZiG2Dp5YDGiEPHmEt7uiUodXzZZkpvom5zee2p7gx0dMwYdDRi6C6sNWuvk9HcRUZZNQUDrXIeadEd+4vZEArD5JqXXgCylBFpCJFnijWGPL+AgaXawM2gpQN/ktMcIRKXzX1OISWOMzKa4IYYX5AJ3CYAoe2IkoFWuqkuau5reqc2nnRGjtOS2F6QVSiB4lL4R5OmB7qpLhtIDTUEMe2P+DefDX472KghU6jh8yZIprQXE6O/+8e6JIZu4BxU/TGcVzn83q2ZzKPVnCiIX2DohjWdTRaReIH/Yqf7+QWwbn1ZIAlYqASSEetbGJqXVG98UzUMc75ZD5A871S3fK0/05bnuZ6KwQREg/yS4m81wH2uN68ZlHmKeuw5Qlu1V6jr6/YDIl5y2PPdLEOtujiARoznumtbdRpcG00ecHgGt41w89Tg6Za7U5b3+ENtyHYUMxXWIEOODdZKIwRL3sVZTHyyZ98RcpxwiUanreNt1m87B0QNGdQoDSnlKs4p3+Rmxh9KO+1RzD/V4p3mIYzjEqOmMcF0gtoxM/bEgCCtJCH/ko/Y824RS10LnqeAePZC06piHOMqhsCZSqavW3+ee2JgB9gGpqYVgw9kEcC9C+P8h1AvRbikYemTg2Q6eOGpJMQ9xpEPmiQRUITAyN03ESPsYw2F4+eMjNwD/AyIaDag//RiJggBY6jjl+zOCtX9AZB5idmodKH3aZckYWyWEKqFbetLV0KkrlcRor+Yh3sg/pFH9vwejOl2ub1ozHgwBTwhDz6XVB/kVr8+KaVVbR4S/rjL6VUCfGcSfSxBguySxN244Z83GoaWseYhDk/tmOhvSjOoR0CMR+7S1Ibg9B/Tn3mgB0vO7IVWVBLYOSeIfB2nvinq0ia7TSztC8AuX/1ANgKAWAGtDEDomAnid57p0p7HEo4ZWG9MQtTr4f/i9H6IFo9wPsR+iBQQsENHvif0QLSBggYh+T+yHaAEBC0T0e6IFEP8D5dohnWmX6X0AAAAASUVORK5CYII="},"90fb":function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-documentation",use:"icon-documentation-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},"93cd":function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-tree",use:"icon-tree-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},"967a":function(t,e,n){"use strict";n("9796")},9796:function(t,e,n){},9921:function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-fullscreen",use:"icon-fullscreen-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},"9bbf":function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-drag",use:"icon-drag-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},"9d91":function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-icon",use:"icon-icon-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},a14a:function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-404",use:"icon-404-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},a18c:function(t,e,n){"use strict";var i,a,r=n("2b0e"),o=n("8c4f"),c=n("83d6"),s=n.n(c),u=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"app-wrapper",class:t.classObj},["mobile"===t.device&&t.sidebar.opened?n("div",{staticClass:"drawer-bg",on:{click:t.handleClickOutside}}):t._e(),t._v(" "),n("sidebar",{staticClass:"sidebar-container",class:"leftBar"+t.sidebarWidth}),t._v(" "),n("div",{staticClass:"main-container",class:["leftBar"+t.sidebarWidth,t.needTagsView?"hasTagsView":""]},[n("div",{class:{"fixed-header":t.fixedHeader}},[n("navbar"),t._v(" "),t.needTagsView?n("tags-view"):t._e()],1),t._v(" "),n("app-main")],1),t._v(" "),n("copy-right")],1)},l=[],d=n("5530"),h=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("section",{staticClass:"app-main"},[n("transition",{attrs:{name:"fade-transform",mode:"out-in"}},[n("keep-alive",{attrs:{include:t.cachedViews}},[n("router-view",{key:t.key})],1)],1)],1)},m=[],f={name:"AppMain",computed:{cachedViews:function(){return this.$store.state.tagsView.cachedViews},key:function(){return this.$route.path}}},p=f,g=(n("6244"),n("eb24"),n("2877")),b=Object(g["a"])(p,h,m,!1,null,"51b022fa",null),v=b.exports,A=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"navbar"},[n("hamburger",{staticClass:"hamburger-container",attrs:{id:"hamburger-container","is-active":t.sidebar.opened},on:{toggleClick:t.toggleSideBar}}),t._v(" "),n("breadcrumb",{staticClass:"breadcrumb-container",attrs:{id:"breadcrumb-container"}}),t._v(" "),n("div",{staticClass:"right-menu"},["mobile"!==t.device?[n("header-notice"),t._v(" "),n("search",{staticClass:"right-menu-item",attrs:{id:"header-search"}}),t._v(" "),n("screenfull",{staticClass:"right-menu-item hover-effect",attrs:{id:"screenfull"}})]:t._e(),t._v(" "),n("div",{staticClass:"platformLabel"},[t._v(t._s(t.label.mer_name))]),t._v(" "),n("el-dropdown",{staticClass:"avatar-container right-menu-item hover-effect",attrs:{trigger:"click","hide-on-click":!1}},[n("span",{staticClass:"el-dropdown-link fontSize"},[t._v("\n "+t._s(t.adminInfo)+"\n "),n("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),t._v(" "),n("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[n("el-dropdown-item",{nativeOn:{click:function(e){return t.goUser(e)}}},[n("span",{staticStyle:{display:"block"}},[t._v("个人中心")])]),t._v(" "),n("el-dropdown-item",{attrs:{divided:""},nativeOn:{click:function(e){return t.goPassword(e)}}},[n("span",{staticStyle:{display:"block"}},[t._v("修改密码")])]),t._v(" "),n("el-dropdown-item",{attrs:{divided:""}},[n("el-dropdown",{attrs:{placement:"right-start"},on:{command:t.handleCommand}},[n("span",[t._v("菜单样式")]),t._v(" "),n("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[n("el-dropdown-item",{attrs:{command:"a"}},[t._v("标准")]),t._v(" "),n("el-dropdown-item",{attrs:{command:"b"}},[t._v("分栏")])],1)],1)],1),t._v(" "),n("el-dropdown-item",{attrs:{divided:""},nativeOn:{click:function(e){return t.logout(e)}}},[n("span",{staticStyle:{display:"block"}},[t._v("退出")])])],1)],1)],2)],1)},w=[],y=n("c7eb"),k=(n("96cf"),n("1da1")),C=n("2f62"),E=n("c24f"),j=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-breadcrumb",{staticClass:"app-breadcrumb",attrs:{separator:"/"}},[n("transition-group",{attrs:{name:"breadcrumb"}},t._l(t.levelList,(function(e,i){return n("el-breadcrumb-item",{key:i},[n("span",{staticClass:"no-redirect"},[t._v(t._s(e.meta.title))])])})),1)],1)},I=[],S=(n("7f7f"),n("f559"),n("bd11")),x=n.n(S),O={data:function(){return{levelList:null,roterPre:c["roterPre"]}},watch:{$route:function(t){t.path.startsWith("/redirect/")||this.getBreadcrumb()}},created:function(){this.getBreadcrumb()},methods:{getBreadcrumb:function(){var t=this.$route.matched.filter((function(t){return t.meta&&t.meta.title})),e=t[0];this.isDashboard(e)||(t=[{path:c["roterPre"]+"/dashboard",meta:{title:"控制台"}}].concat(t)),this.levelList=t.filter((function(t){return t.meta&&t.meta.title&&!1!==t.meta.breadcrumb}))},isDashboard:function(t){var e=t&&t.name;return!!e&&e.trim().toLocaleLowerCase()==="Dashboard".toLocaleLowerCase()},pathCompile:function(t){var e=this.$route.params,n=x.a.compile(t);return n(e)},handleLink:function(t){var e=t.redirect,n=t.path;e?this.$router.push(e):this.$router.push(this.pathCompile(n))}}},R=O,_=(n("d249"),Object(g["a"])(R,j,I,!1,null,"210f2cc6",null)),M=_.exports,D=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticStyle:{padding:"0 15px"},on:{click:t.toggleClick}},[n("svg",{staticClass:"hamburger",class:{"is-active":t.isActive},attrs:{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:"64",height:"64"}},[n("path",{attrs:{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM142.4 642.1L298.7 519a8.84 8.84 0 0 0 0-13.9L142.4 381.9c-5.8-4.6-14.4-.5-14.4 6.9v246.3a8.9 8.9 0 0 0 14.4 7z"}})])])},z=[],V={name:"Hamburger",props:{isActive:{type:Boolean,default:!1}},methods:{toggleClick:function(){this.$emit("toggleClick")}}},B=V,L=(n("c043"),Object(g["a"])(B,D,z,!1,null,"363956eb",null)),F=L.exports,T=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("svg-icon",{attrs:{"icon-class":t.isFullscreen?"exit-fullscreen":"fullscreen"},on:{click:t.click}})],1)},N=[],Q=n("93bf"),P=n.n(Q),H={name:"Screenfull",data:function(){return{isFullscreen:!1}},mounted:function(){this.init()},beforeDestroy:function(){this.destroy()},methods:{click:function(){if(!P.a.enabled)return this.$message({message:"you browser can not work",type:"warning"}),!1;P.a.toggle()},change:function(){this.isFullscreen=P.a.isFullscreen},init:function(){P.a.enabled&&P.a.on("change",this.change)},destroy:function(){P.a.enabled&&P.a.off("change",this.change)}}},U=H,G=(n("4d7e"),Object(g["a"])(U,T,N,!1,null,"07f9857d",null)),W=G.exports,Z=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"header-notice right-menu-item"},[n("el-dropdown",{attrs:{trigger:"click"}},[n("span",{staticClass:"el-dropdown-link"},[t.count>0?n("el-badge",{staticClass:"item",attrs:{"is-dot":"",value:t.count}},[n("i",{staticClass:"el-icon-message-solid"})]):n("span",{staticClass:"item"},[n("i",{staticClass:"el-icon-message-solid"})])],1),t._v(" "),n("el-dropdown-menu",{attrs:{slot:"dropdown",placement:"top-end"},slot:"dropdown"},[n("el-dropdown-item",{staticClass:"clearfix"},[n("el-tabs",{on:{"tab-click":t.handleClick},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[t.messageList.length>0?n("el-card",{staticClass:"box-card"},[n("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[n("span",[t._v("消息")])]),t._v(" "),t._l(t.messageList,(function(e,i){return n("router-link",{key:i,staticClass:"text item_content",attrs:{to:{path:t.roterPre+"/station/notice/"+e.notice_log_id}},nativeOn:{click:function(e){return t.HandleDelete(i)}}},[n("el-badge",{staticClass:"item",attrs:{"is-dot":""}}),t._v(" "+t._s(e.notice_title)+"\n ")],1)}))],2):n("div",{staticClass:"ivu-notifications-container-list"},[n("div",{staticClass:"ivu-notifications-tab-empty"},[n("div",{staticClass:"ivu-notifications-tab-empty-text"},[t._v("目前没有通知")]),t._v(" "),n("img",{staticClass:"ivu-notifications-tab-empty-img",attrs:{src:"https://file.iviewui.com/iview-pro/icon-no-message.svg",alt:""}})])])],1)],1)],1)],1)],1)},Y=[],J=n("8593"),q={name:"headerNotice",data:function(){return{activeName:"second",messageList:[],needList:[],count:0,tabPosition:"right",roterPre:c["roterPre"]}},computed:{},watch:{},mounted:function(){this.getList()},methods:{handleClick:function(t,e){console.log(t,e)},goDetail:function(t){t.is_read=1,console.log(this.$router),this.$router.push({path:this.roterPre+"/station/notice",query:{id:t.notice_log_id}})},getList:function(){var t=this;Object(J["G"])({is_read:0}).then((function(e){t.messageList=e.data.list,t.count=e.data.count})).catch((function(t){}))},HandleDelete:function(t){this.messageList.splice(t,1)}}},X=q,K=(n("225f"),Object(g["a"])(X,Z,Y,!1,null,"3bc87138",null)),$=K.exports,tt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"header-search",class:{show:t.show}},[n("svg-icon",{attrs:{"class-name":"search-icon","icon-class":"search"},on:{click:function(e){return e.stopPropagation(),t.click(e)}}}),t._v(" "),n("el-select",{ref:"headerSearchSelect",staticClass:"header-search-select",attrs:{"remote-method":t.querySearch,filterable:"","default-first-option":"",remote:"",placeholder:"Search"},on:{change:t.change},model:{value:t.search,callback:function(e){t.search=e},expression:"search"}},[t._l(t.options,(function(e){return[0===e.children.length?n("el-option",{key:e.route,attrs:{value:e,label:e.menu_name.join(" > ")}}):t._e()]}))],2)],1)},et=[],nt=(n("386d"),n("2909")),it=n("b85c"),at=n("ffe7"),rt=n.n(at),ot=n("df7c"),ct=n.n(ot),st={name:"headerSearch",data:function(){return{search:"",options:[],searchPool:[],show:!1,fuse:void 0}},computed:Object(d["a"])({},Object(C["b"])(["menuList"])),watch:{routes:function(){this.searchPool=this.generateRoutes(this.menuList)},searchPool:function(t){this.initFuse(t)},show:function(t){t?document.body.addEventListener("click",this.close):document.body.removeEventListener("click",this.close)}},mounted:function(){this.searchPool=this.generateRoutes(this.menuList)},methods:{click:function(){this.show=!this.show,this.show&&this.$refs.headerSearchSelect&&this.$refs.headerSearchSelect.focus()},close:function(){this.$refs.headerSearchSelect&&this.$refs.headerSearchSelect.blur(),this.options=[],this.show=!1},change:function(t){var e=this;this.$router.push(t.route),this.search="",this.options=[],this.$nextTick((function(){e.show=!1}))},initFuse:function(t){this.fuse=new rt.a(t,{shouldSort:!0,threshold:.4,location:0,distance:100,maxPatternLength:32,minMatchCharLength:1,keys:[{name:"menu_name",weight:.7},{name:"route",weight:.3}]})},generateRoutes:function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],a=[],r=Object(it["a"])(t);try{for(r.s();!(e=r.n()).done;){var o=e.value;if(!o.hidden){var c={route:ct.a.resolve(n,o.route),menu_name:Object(nt["a"])(i),children:o.children||[]};if(o.menu_name&&(c.menu_name=[].concat(Object(nt["a"])(c.menu_name),[o.menu_name]),"noRedirect"!==o.redirect&&a.push(c)),o.children){var s=this.generateRoutes(o.children,c.route,c.menu_name);s.length>=1&&(a=[].concat(Object(nt["a"])(a),Object(nt["a"])(s)))}}}}catch(u){r.e(u)}finally{r.f()}return a},querySearch:function(t){this.options=""!==t?this.fuse.search(t):[]}}},ut=st,lt=(n("8646"),Object(g["a"])(ut,tt,et,!1,null,"2301aee3",null)),dt=lt.exports,ht=n("a78e"),mt=n.n(ht),ft={components:{Breadcrumb:M,Hamburger:F,Screenfull:W,HeaderNotice:$,Search:dt},watch:{sidebarStyle:function(t){this.sidebarStyle=t}},data:function(){return{roterPre:c["roterPre"],sideBar1:"a"!=window.localStorage.getItem("sidebarStyle"),adminInfo:mt.a.set("MerName"),label:""}},computed:Object(d["a"])(Object(d["a"])({},Object(C["b"])(["sidebar","avatar","device"])),Object(C["d"])({sidebar:function(t){return t.app.sidebar},sidebarStyle:function(t){return t.user.sidebarStyle}})),mounted:function(){var t=this;Object(E["i"])().then((function(e){t.label=e.data,t.$store.commit("user/SET_MERCHANT_TYPE",e.data.merchantType||{})})).catch((function(e){var n=e.message;t.$message.error(n)}))},methods:{handleCommand:function(t){this.$store.commit("user/SET_SIDEBAR_STYLE",t),window.localStorage.setItem("sidebarStyle",t),this.sideBar1?this.subMenuList&&this.subMenuList.length>0?this.$store.commit("user/SET_SIDEBAR_WIDTH",270):this.$store.commit("user/SET_SIDEBAR_WIDTH",130):this.$store.commit("user/SET_SIDEBAR_WIDTH",210)},toggleSideBar:function(){this.$store.dispatch("app/toggleSideBar")},goUser:function(){this.$modalForm(Object(E["h"])())},goPassword:function(){this.$modalForm(Object(E["v"])())},logout:function(){var t=Object(k["a"])(Object(y["a"])().mark((function t(){return Object(y["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.$store.dispatch("user/logout");case 2:this.$router.push("".concat(c["roterPre"],"/login?redirect=").concat(this.$route.fullPath));case 3:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()}},pt=ft,gt=(n("cea8"),Object(g["a"])(pt,A,w,!1,null,"8fd88c62",null)),bt=gt.exports,vt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"drawer-container"},[n("div",[n("h3",{staticClass:"drawer-title"},[t._v("Page style setting")]),t._v(" "),n("div",{staticClass:"drawer-item"},[n("span",[t._v("Theme Color")]),t._v(" "),n("theme-picker",{staticStyle:{float:"right",height:"26px",margin:"-3px 8px 0 0"},on:{change:t.themeChange}})],1),t._v(" "),n("div",{staticClass:"drawer-item"},[n("span",[t._v("Open Tags-View")]),t._v(" "),n("el-switch",{staticClass:"drawer-switch",model:{value:t.tagsView,callback:function(e){t.tagsView=e},expression:"tagsView"}})],1),t._v(" "),n("div",{staticClass:"drawer-item"},[n("span",[t._v("Fixed Header")]),t._v(" "),n("el-switch",{staticClass:"drawer-switch",model:{value:t.fixedHeader,callback:function(e){t.fixedHeader=e},expression:"fixedHeader"}})],1),t._v(" "),n("div",{staticClass:"drawer-item"},[n("span",[t._v("Sidebar Logo")]),t._v(" "),n("el-switch",{staticClass:"drawer-switch",model:{value:t.sidebarLogo,callback:function(e){t.sidebarLogo=e},expression:"sidebarLogo"}})],1)])])},At=[],wt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-color-picker",{staticClass:"theme-picker",attrs:{predefine:["#409EFF","#1890ff","#304156","#212121","#11a983","#13c2c2","#6959CD","#f5222d"],"popper-class":"theme-picker-dropdown"},model:{value:t.theme,callback:function(e){t.theme=e},expression:"theme"}})},yt=[],kt=(n("c5f6"),n("6b54"),n("ac6a"),n("3b2b"),n("a481"),n("f6f8").version),Ct="#409EFF",Et={data:function(){return{chalk:"",theme:""}},computed:{defaultTheme:function(){return this.$store.state.settings.theme}},watch:{defaultTheme:{handler:function(t,e){this.theme=t},immediate:!0},theme:function(){var t=Object(k["a"])(Object(y["a"])().mark((function t(e){var n,i,a,r,o,c,s,u,l=this;return Object(y["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(n=this.chalk?this.theme:Ct,"string"===typeof e){t.next=3;break}return t.abrupt("return");case 3:if(i=this.getThemeCluster(e.replace("#","")),a=this.getThemeCluster(n.replace("#","")),r=this.$message({message:" Compiling the theme",customClass:"theme-message",type:"success",duration:0,iconClass:"el-icon-loading"}),o=function(t,e){return function(){var n=l.getThemeCluster(Ct.replace("#","")),a=l.updateStyle(l[t],n,i),r=document.getElementById(e);r||(r=document.createElement("style"),r.setAttribute("id",e),document.head.appendChild(r)),r.innerText=a}},this.chalk){t.next=11;break}return c="https://unpkg.com/element-ui@".concat(kt,"/lib/theme-chalk/index.css"),t.next=11,this.getCSSString(c,"chalk");case 11:s=o("chalk","chalk-style"),s(),u=[].slice.call(document.querySelectorAll("style")).filter((function(t){var e=t.innerText;return new RegExp(n,"i").test(e)&&!/Chalk Variables/.test(e)})),u.forEach((function(t){var e=t.innerText;"string"===typeof e&&(t.innerText=l.updateStyle(e,a,i))})),this.$emit("change",e),r.close();case 17:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()},methods:{updateStyle:function(t,e,n){var i=t;return e.forEach((function(t,e){i=i.replace(new RegExp(t,"ig"),n[e])})),i},getCSSString:function(t,e){var n=this;return new Promise((function(i){var a=new XMLHttpRequest;a.onreadystatechange=function(){4===a.readyState&&200===a.status&&(n[e]=a.responseText.replace(/@font-face{[^}]+}/,""),i())},a.open("GET",t),a.send()}))},getThemeCluster:function(t){for(var e=function(t,e){var n=parseInt(t.slice(0,2),16),i=parseInt(t.slice(2,4),16),a=parseInt(t.slice(4,6),16);return 0===e?[n,i,a].join(","):(n+=Math.round(e*(255-n)),i+=Math.round(e*(255-i)),a+=Math.round(e*(255-a)),n=n.toString(16),i=i.toString(16),a=a.toString(16),"#".concat(n).concat(i).concat(a))},n=function(t,e){var n=parseInt(t.slice(0,2),16),i=parseInt(t.slice(2,4),16),a=parseInt(t.slice(4,6),16);return n=Math.round((1-e)*n),i=Math.round((1-e)*i),a=Math.round((1-e)*a),n=n.toString(16),i=i.toString(16),a=a.toString(16),"#".concat(n).concat(i).concat(a)},i=[t],a=0;a<=9;a++)i.push(e(t,Number((a/10).toFixed(2))));return i.push(n(t,.1)),i}}},jt=Et,It=(n("678b"),Object(g["a"])(jt,wt,yt,!1,null,null,null)),St=It.exports,xt={components:{ThemePicker:St},data:function(){return{}},computed:{fixedHeader:{get:function(){return this.$store.state.settings.fixedHeader},set:function(t){this.$store.dispatch("settings/changeSetting",{key:"fixedHeader",value:t})}},tagsView:{get:function(){return this.$store.state.settings.tagsView},set:function(t){this.$store.dispatch("settings/changeSetting",{key:"tagsView",value:t})}},sidebarLogo:{get:function(){return this.$store.state.settings.sidebarLogo},set:function(t){this.$store.dispatch("settings/changeSetting",{key:"sidebarLogo",value:t})}}},methods:{themeChange:function(t){this.$store.dispatch("settings/changeSetting",{key:"theme",value:t})}}},Ot=xt,Rt=(n("5bdf"),Object(g["a"])(Ot,vt,At,!1,null,"e1b97696",null)),_t=Rt.exports,Mt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{key:t.sideBar1&&t.isCollapse,class:{"has-logo":t.showLogo}},[t.showLogo?n("logo",{attrs:{collapse:t.isCollapse,sideBar1:t.sideBar1}}):t._e(),t._v(" "),n("el-scrollbar",[t.sideBar1?[t.isCollapse?t._e():t._l(t.menuList,(function(e){return n("ul",{key:e.route,staticStyle:{padding:"0"}},[n("li",[n("div",{staticClass:"menu menu-one"},[n("div",{staticClass:"menu-item",class:{active:t.pathCompute(e)},on:{click:function(n){return t.goPath(e)}}},[n("i",{class:"menu-icon el-icon-"+e.icon}),n("span",[t._v(t._s(e.menu_name))])])])])])})),t._v(" "),t.subMenuList&&t.subMenuList.length>0&&!t.isCollapse?n("el-menu",{staticClass:"menuOpen",attrs:{"default-active":t.activeMenu,"background-color":"#ffffff","text-color":"#303133","unique-opened":!1,"active-text-color":"#303133",mode:"vertical"}},[n("div",{staticStyle:{height:"100%"}},[n("div",{staticClass:"sub-title"},[t._v(t._s(t.menu_name))]),t._v(" "),n("el-scrollbar",{attrs:{"wrap-class":"scrollbar-wrapper"}},t._l(t.subMenuList,(function(e,i){return n("div",{key:i},[!t.hasOneShowingChild(e.children,e)||t.onlyOneChild.children&&!t.onlyOneChild.noShowingChildren||e.alwaysShow?n("el-submenu",{ref:"subMenu",refInFor:!0,attrs:{index:t.resolvePath(e.route),"popper-append-to-body":""}},[n("template",{slot:"title"},[e?n("item",{attrs:{icon:e&&e.icon,title:e.menu_name}}):t._e()],1),t._v(" "),t._l(e.children,(function(e,i){return n("sidebar-item",{key:i,staticClass:"nest-menu",attrs:{"is-nest":!0,item:e,"base-path":t.resolvePath(e.route),isCollapse:t.isCollapse}})}))],2):[t.onlyOneChild?n("app-link",{attrs:{to:t.resolvePath(t.onlyOneChild.route)}},[n("el-menu-item",{attrs:{index:t.resolvePath(t.onlyOneChild.route)}},[n("item",{attrs:{icon:t.onlyOneChild.icon||e&&e.icon,title:t.onlyOneChild.menu_name}})],1)],1):t._e()]],2)})),0)],1)]):t._e(),t._v(" "),t.isCollapse?[n("el-menu",{staticClass:"menuStyle2",attrs:{"default-active":t.activeMenu,collapse:t.isCollapse,"background-color":t.variables.menuBg,"text-color":t.variables.menuText,"unique-opened":!0,"active-text-color":"#ffffff","collapse-transition":!1,mode:"vertical","popper-class":"styleTwo"}},[t._l(t.menuList,(function(t){return n("sidebar-item",{key:t.route,staticClass:"style2",attrs:{item:t,"base-path":t.route}})}))],2)]:t._e()]:n("el-menu",{staticClass:"subMenu1",attrs:{"default-active":t.activeMenu,collapse:t.isCollapse,"background-color":t.variables.menuBg,"text-color":t.variables.menuText,"unique-opened":!0,"active-text-color":t.variables.menuActiveText,"collapse-transition":!1,mode:"vertical"}},[t._l(t.menuList,(function(t){return n("sidebar-item",{key:t.route,attrs:{item:t,"base-path":t.route}})}))],2)],2)],1)},Dt=[],zt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"sidebar-logo-container",class:{collapse:t.collapse}},[n("transition",{attrs:{name:"sidebarLogoFade"}},[t.collapse&&!t.sideBar1?n("router-link",{key:"collapse",staticClass:"sidebar-logo-link",attrs:{to:"/"}},[t.slogo?n("img",{staticClass:"sidebar-logo-small",attrs:{src:t.slogo}}):t._e()]):n("router-link",{key:"expand",staticClass:"sidebar-logo-link",attrs:{to:"/"}},[t.logo?n("img",{staticClass:"sidebar-logo-big",attrs:{src:t.logo}}):t._e()])],1)],1)},Vt=[],Bt=s.a.title,Lt={name:"SidebarLogo",props:{collapse:{type:Boolean,required:!0},sideBar1:{type:Boolean,required:!1}},data:function(){return{title:Bt,logo:JSON.parse(mt.a.get("MerInfo")).menu_logo,slogo:JSON.parse(mt.a.get("MerInfo")).menu_slogo}}},Ft=Lt,Tt=(n("4b27"),Object(g["a"])(Ft,zt,Vt,!1,null,"06bf082e",null)),Nt=Tt.exports,Qt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("component",t._b({},"component",t.linkProps(t.to),!1),[t._t("default")],2)},Pt=[],Ht=n("61f7"),Ut={props:{to:{type:String,required:!0}},methods:{linkProps:function(t){return Object(Ht["b"])(t)?{is:"a",href:t,target:"_blank",rel:"noopener"}:{is:"router-link",to:t}}}},Gt=Ut,Wt=Object(g["a"])(Gt,Qt,Pt,!1,null,null,null),Zt=Wt.exports,Yt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.item.hidden?t._e():n("div",{class:{menuTwo:t.isCollapse}},[[!t.hasOneShowingChild(t.item.children,t.item)||t.onlyOneChild.children&&!t.onlyOneChild.noShowingChildren||t.item.alwaysShow?n("el-submenu",{ref:"subMenu",class:{subMenu2:t.sideBar1},attrs:{"popper-class":t.sideBar1?"styleTwo":"",index:t.resolvePath(t.item.route),"popper-append-to-body":""}},[n("template",{slot:"title"},[t.item?n("item",{attrs:{icon:t.item&&t.item.icon,title:t.item.menu_name}}):t._e()],1),t._v(" "),t._l(t.item.children,(function(e,i){return n("sidebar-item",{key:i,staticClass:"nest-menu",attrs:{level:t.level+1,"is-nest":!0,item:e,"base-path":t.resolvePath(e.route)}})}))],2):[t.onlyOneChild?n("app-link",{attrs:{to:t.resolvePath(t.onlyOneChild.route)}},[n("el-menu-item",{class:{"submenu-title-noDropdown":!t.isNest},attrs:{index:t.resolvePath(t.onlyOneChild.route)}},[t.sideBar1&&(!t.item.children||t.item.children.length<=1)?[n("div",{staticClass:"el-submenu__title",class:{titles:0==t.level,hide:!t.sideBar1&&!t.isCollapse}},[n("i",{class:"menu-icon el-icon-"+t.item.icon}),n("span",[t._v(t._s(t.onlyOneChild.menu_name))])])]:n("item",{attrs:{icon:t.onlyOneChild.icon||t.item&&t.item.icon,title:t.onlyOneChild.menu_name}})],2)],1):t._e()]]],2)},Jt=[],qt={name:"MenuItem",functional:!0,props:{icon:{type:String,default:""},title:{type:String,default:""}},render:function(t,e){var n=e.props,i=n.icon,a=n.title,r=[];if(i){var o="el-icon-"+i;r.push(t("i",{class:o}))}return a&&r.push(t("span",{slot:"title"},[a])),r}},Xt=qt,Kt=Object(g["a"])(Xt,i,a,!1,null,null,null),$t=Kt.exports,te={computed:{device:function(){return this.$store.state.app.device}},mounted:function(){this.fixBugIniOS()},methods:{fixBugIniOS:function(){var t=this,e=this.$refs.subMenu;if(e){var n=e.handleMouseleave;e.handleMouseleave=function(e){"mobile"!==t.device&&n(e)}}}}},ee={name:"SidebarItem",components:{Item:$t,AppLink:Zt},mixins:[te],props:{item:{type:Object,required:!0},isNest:{type:Boolean,default:!1},basePath:{type:String,default:""},level:{type:Number,default:0},isCollapse:{type:Boolean,default:!0}},data:function(){return this.onlyOneChild=null,{sideBar1:"a"!=window.localStorage.getItem("sidebarStyle")}},computed:{activeMenu:function(){var t=this.$route,e=t.meta,n=t.path;return e.activeMenu?e.activeMenu:n}},methods:{hasOneShowingChild:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0,i=e.filter((function(e){return!e.hidden&&(t.onlyOneChild=e,!0)}));return 1===i.length||0===i.length&&(this.onlyOneChild=Object(d["a"])(Object(d["a"])({},n),{},{path:"",noShowingChildren:!0}),!0)},resolvePath:function(t){return Object(Ht["b"])(t)?t:Object(Ht["b"])(this.basePath)?this.basePath:ct.a.resolve(this.basePath,t)}}},ne=ee,ie=(n("d0a6"),Object(g["a"])(ne,Yt,Jt,!1,null,"116a0188",null)),ae=ie.exports,re=n("cf1e2"),oe=n.n(re),ce={components:{SidebarItem:ae,Logo:Nt,AppLink:Zt,Item:$t},mixins:[te],data:function(){return this.onlyOneChild=null,{sideBar1:"a"!=window.localStorage.getItem("sidebarStyle"),menu_name:"",list:this.$store.state.user.menuList,subMenuList:[],activePath:"",isShow:!1}},computed:Object(d["a"])(Object(d["a"])(Object(d["a"])({},Object(C["b"])(["permission_routes","sidebar","menuList"])),Object(C["d"])({sidebar:function(t){return t.app.sidebar},sidebarRouters:function(t){return t.user.sidebarRouters},sidebarStyle:function(t){return t.user.sidebarStyle},routers:function(){var t=this.$store.state.user.menuList?this.$store.state.user.menuList:[];return t}})),{},{activeMenu:function(){var t=this.$route,e=t.meta,n=t.path;return e.activeMenu?e.activeMenu:n},showLogo:function(){return this.$store.state.settings.sidebarLogo},variables:function(){return oe.a},isCollapse:function(){return!this.sidebar.opened}}),watch:{sidebarStyle:function(t,e){this.sideBar1="a"!=t||"a"==e,this.setMenuWidth()},sidebar:{handler:function(t,e){this.sideBar1&&this.getSubMenu()},deep:!0},$route:{handler:function(t,e){this.sideBar1&&this.getSubMenu()},deep:!0}},mounted:function(){this.getMenus(),this.sideBar1?this.getSubMenu():this.setMenuWidth()},methods:Object(d["a"])({setMenuWidth:function(){this.sideBar1?this.subMenuList&&this.subMenuList.length>0&&!this.isCollapse?this.$store.commit("user/SET_SIDEBAR_WIDTH",270):this.$store.commit("user/SET_SIDEBAR_WIDTH",130):this.$store.commit("user/SET_SIDEBAR_WIDTH",180)},ishttp:function(t){return-1!==t.indexOf("http://")||-1!==t.indexOf("https://")},getMenus:function(){this.$store.dispatch("user/getMenus",{that:this})},hasOneShowingChild:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0,i=e.filter((function(e){return!e.hidden&&(t.onlyOneChild=e,!0)}));return 1===i.length||0===i.length&&(this.onlyOneChild=Object(d["a"])(Object(d["a"])({},n),{},{path:"",noShowingChildren:!0}),!0)},resolvePath:function(t){return Object(Ht["b"])(t)||Object(Ht["b"])(this.basePath)?t:ct.a.resolve(t,t)},goPath:function(t){if(this.menu_name=t.menu_name,t.children){this.$store.commit("user/SET_SIDEBAR_WIDTH",270),this.subMenuList=t.children,window.localStorage.setItem("subMenuList",this.subMenuList);var e=this.resolvePath(this.getChild(t.children)[0].route);t.route=e,this.$router.push({path:e})}else{this.$store.commit("user/SET_SIDEBAR_WIDTH",130),this.subMenuList=[],window.localStorage.setItem("subMenuList",[]);var n=this.resolvePath(t.route);this.$router.push({path:n})}},getChild:function(t){var e=[];return t.forEach((function(t){var n=function t(n){var i=n.children;if(i)for(var a=0;a0&&(r=a[0],o=a[a.length-1]),r===t)i.scrollLeft=0;else if(o===t)i.scrollLeft=i.scrollWidth-n;else{var c=a.findIndex((function(e){return e===t})),s=a[c-1],u=a[c+1],l=u.$el.offsetLeft+u.$el.offsetWidth+pe,d=s.$el.offsetLeft-pe;l>i.scrollLeft+n?i.scrollLeft=l-n:d1&&void 0!==arguments[1]?arguments[1]:"/",i=[];return t.forEach((function(t){if(t.meta&&t.meta.affix){var a=ct.a.resolve(n,t.path);i.push({fullPath:a,path:a,name:t.name,meta:Object(d["a"])({},t.meta)})}if(t.children){var r=e.filterAffixTags(t.children,t.path);r.length>=1&&(i=[].concat(Object(nt["a"])(i),Object(nt["a"])(r)))}})),i},initTags:function(){var t,e=this.affixTags=this.filterAffixTags(this.routes),n=Object(it["a"])(e);try{for(n.s();!(t=n.n()).done;){var i=t.value;i.name&&this.$store.dispatch("tagsView/addVisitedView",i)}}catch(a){n.e(a)}finally{n.f()}},addTags:function(){var t=this.$route.name;return t&&this.$store.dispatch("tagsView/addView",this.$route),!1},moveToCurrentTag:function(){var t=this,e=this.$refs.tag;this.$nextTick((function(){var n,i=Object(it["a"])(e);try{for(i.s();!(n=i.n()).done;){var a=n.value;if(a.to.path===t.$route.path){t.$refs.scrollPane.moveToTarget(a),a.to.fullPath!==t.$route.fullPath&&t.$store.dispatch("tagsView/updateVisitedView",t.$route);break}}}catch(r){i.e(r)}finally{i.f()}}))},refreshSelectedTag:function(t){this.reload()},closeSelectedTag:function(t){var e=this;this.$store.dispatch("tagsView/delView",t).then((function(n){var i=n.visitedViews;e.isActive(t)&&e.toLastView(i,t)}))},closeOthersTags:function(){var t=this;this.$router.push(this.selectedTag),this.$store.dispatch("tagsView/delOthersViews",this.selectedTag).then((function(){t.moveToCurrentTag()}))},closeAllTags:function(t){var e=this;this.$store.dispatch("tagsView/delAllViews").then((function(n){var i=n.visitedViews;e.affixTags.some((function(e){return e.path===t.path}))||e.toLastView(i,t)}))},toLastView:function(t,e){var n=t.slice(-1)[0];n?this.$router.push(n.fullPath):"Dashboard"===e.name?this.$router.replace({path:"/redirect"+e.fullPath}):this.$router.push("/")},openMenu:function(t,e){var n=105,i=this.$el.getBoundingClientRect().left,a=this.$el.offsetWidth,r=a-n,o=e.clientX-i+15;this.left=o>r?r:o,this.top=e.clientY,this.visible=!0,this.selectedTag=t},closeMenu:function(){this.visible=!1}}},ye=we,ke=(n("0a4d"),n("b428"),Object(g["a"])(ye,de,he,!1,null,"3f349a64",null)),Ce=ke.exports,Ee=function(){var t=this,e=t.$createElement,n=t._self._c||e;return"0"!==t.openVersion?n("div",{staticClass:"ivu-global-footer i-copyright"},[-1==t.version.status?n("div",{staticClass:"ivu-global-footer-copyright"},[t._v(t._s("Copyright "+t.version.year+" ")),n("a",{attrs:{href:"http://"+t.version.url,target:"_blank"}},[t._v(t._s(t.version.version))])]):n("div",{staticClass:"ivu-global-footer-copyright"},[t._v(t._s(t.version.Copyright))])]):t._e()},je=[],Ie=n("2801"),Se={name:"i-copyright",data:function(){return{copyright:"Copyright © 2022 西安众邦网络科技有限公司",openVersion:"0",copyright_status:"0",version:{}}},mounted:function(){this.getVersion()},methods:{getVersion:function(){var t=this;Object(Ie["j"])().then((function(e){e.data.version;t.version=e.data,t.copyright=e.data.copyright,t.openVersion=e.data.sys_open_version})).catch((function(e){t.$message.error(e.message)}))}}},xe=Se,Oe=(n("8bcc"),Object(g["a"])(xe,Ee,je,!1,null,"036cf7b4",null)),Re=Oe.exports,_e=n("4360"),Me=document,De=Me.body,ze=992,Ve={watch:{$route:function(t){"mobile"===this.device&&this.sidebar.opened&&_e["a"].dispatch("app/closeSideBar",{withoutAnimation:!1})}},beforeMount:function(){window.addEventListener("resize",this.$_resizeHandler)},beforeDestroy:function(){window.removeEventListener("resize",this.$_resizeHandler)},mounted:function(){var t=this.$_isMobile();t&&(_e["a"].dispatch("app/toggleDevice","mobile"),_e["a"].dispatch("app/closeSideBar",{withoutAnimation:!0}))},methods:{$_isMobile:function(){var t=De.getBoundingClientRect();return t.width-1'});o.a.add(c);e["default"]=c},ab00:function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-lock",use:"icon-lock-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},ad1c:function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-education",use:"icon-education-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},af8c:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFEAAABRCAYAAACqj0o2AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA25pVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDo2OWRlYjViMi04ZTEzLWNmNDgtODFlNi0yNzk5OTk1OWFjZjgiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6RjlCNUJCRDY0MzlFMTFFOUJCNDM5ODBGRTdCNDNGN0EiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6RjlCNUJCRDU0MzlFMTFFOUJCNDM5ODBGRTdCNDNGN0EiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKFdpbmRvd3MpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MkQxNzQyQjZFRjA2MTFFODhBREFDNDFBMUJFNDQxREIiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6MkQxNzQyQjdFRjA2MTFFODhBREFDNDFBMUJFNDQxREIiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz52uNTZAAADk0lEQVR42uycXYhNURTH92VMKcTLNPNiFA9SJMSLSFOKUkI8KB4UeTDxoDxQXkwZHylPPCBP8tmlBoOhMUgmk4YH46NMEyWEUfNhxvVf3S3jzrn3nuOcvc/a56x//Ztm3z139vxmr73X/jg3k8vllCicxggCgSgQBaJIIApEgSgQRQLRjCr8Vvy4YEYNvizyWX0QbkoCoKr219FB1ACvBKhfC3dLOIfTChkTBSILiHVwpUws/6oT3lXi9dXw0hHfT4CXwLcF4l+9gY+VeL2nACJpZRogRhnOzfBQGsfFKCF+hx8UlM2EpwnEYLqexlk64/eMBSsWP9XmwM88Vi99jnEZgC/B9VixDEU5sfidwT/ANSPKKh1NdbbDXWUmUyPhTN36VoIidV5cyfbNBEHsigtis+6RSdC1uCB+gjsSAPCdxyRpde18IwEQs3FvQCRhXLwaN8RH8A+HAX6DW+OG+BNucRhik/4bYoXoekhng1QWiKM1FHRiNAmR9h/fOgjxnh4TWUB0tTdmg/6AQAyR2tiC2KJG73ZzFq1QurlB7NU5Y2JD2QZE10KaLURX1tF0WtnBFSI17LMjE0qOK8RfKr/HmLhZ2SZEF8bFXp1ks4bI/dyFxu0B7hDfq/xJYKJmZdsQOYf0sPK+dCAQA+g+/MUViG16AOem82HfwCbE/jBphMF/7Jmwb1JhscGz4PUe5Q3whRgA0j/1pYrgjNwWxAx8Ah5XUP4c3q8CnGdwlK1w3gIvLiijHrDNdYC2IFbBjR7lJ+GHKgGyEc5H4SkFZXRf8Rw8l1m+2MkR4ip4o0f5ePgusw5Fh1OTOYbzcZUCmYZYLRDD61QaIJoeE3fA7Sp/IZ67+rhCHE5Db5Qn7wWiQBSI/6Gx8CaV3w57Al+G1+nNCVuaBO+B78CP4dPwwrBvGvVjacVEKxR6nKHO4zWCuUGZv7MzXcOr9XhtN3zYc+Hv44M0bPXExiIASWvgvRYi7mIRgKRDJdrHAuJEeGuZOvWG061lqvxmx07OEGlHu9wDkrTLM9VgG+ZHVCc2iH43XQcNtqHf5O+3AZH26L6WqUMXK3sMtqHNR51W7j3xQJk6+wy34akqfcuBeupB7nniEZ1C5DzW1gTwrIU2bFbed4IoStbCL7jniX80W6c01Tp86eD8leUFxnKdzlDiTaeNdExR9P6knzwxI5+zLWtngSgQRQJRIApEgSgSiGb0W4ABAPZht+rjWKYmAAAAAElFTkSuQmCC"},b20f:function(t,e,n){t.exports={menuText:"#bfcbd9",menuActiveText:"#6394F9",subMenuActiveText:"#f4f4f5",menuBg:"#0B1529",menuHover:"#182848",subMenuBg:"#030C17",subMenuHover:"#182848",sideBarWidth:"180px"}},b3b5:function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-user",use:"icon-user-usage",viewBox:"0 0 130 130",content:''});o.a.add(c);e["default"]=c},b428:function(t,e,n){"use strict";n("ea55")},b55e:function(t,e,n){},b5b8:function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("el-row",[n("el-col",t._b({},"el-col",t.grid,!1),[n("div",{staticClass:"Nav"},[n("div",{staticClass:"input"},[n("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:"选择分类","prefix-icon":"el-icon-search",clearable:""},model:{value:t.filterText,callback:function(e){t.filterText=e},expression:"filterText"}})],1),t._v(" "),n("div",{staticClass:"trees-coadd"},[n("div",{staticClass:"scollhide"},[n("div",{staticClass:"trees"},[n("el-tree",{ref:"tree",attrs:{data:t.treeData2,"filter-node-method":t.filterNode,props:t.defaultProps},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.node,a=e.data;return n("div",{staticClass:"custom-tree-node",on:{click:function(e){return e.stopPropagation(),t.handleNodeClick(a)}}},[n("div",[n("span",[t._v(t._s(i.label))]),t._v(" "),a.space_property_name?n("span",{staticStyle:{"font-size":"11px",color:"#3889b1"}},[t._v("("+t._s(a.attachment_category_name)+")")]):t._e()]),t._v(" "),n("span",{staticClass:"el-ic"},[n("i",{staticClass:"el-icon-circle-plus-outline",on:{click:function(e){return e.stopPropagation(),t.onAdd(a.attachment_category_id)}}}),t._v(" "),"0"==a.space_id||a.children&&"undefined"!=a.children||!a.attachment_category_id?t._e():n("i",{staticClass:"el-icon-edit",attrs:{title:"修改"},on:{click:function(e){return e.stopPropagation(),t.onEdit(a.attachment_category_id)}}}),t._v(" "),"0"==a.space_id||a.children&&"undefined"!=a.children||!a.attachment_category_id?t._e():n("i",{staticClass:"el-icon-delete",attrs:{title:"删除分类"},on:{click:function(e){return e.stopPropagation(),function(){return t.handleDelete(a.attachment_category_id)}()}}})])])}}])})],1)])])])]),t._v(" "),n("el-col",t._b({staticClass:"colLeft"},"el-col",t.grid2,!1),[n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"conter"},[n("div",{staticClass:"bnt"},["/merchant/config/picture"!==t.params?n("el-button",{staticClass:"mb10 mr10",attrs:{size:"small",type:"primary"},on:{click:t.checkPics}},[t._v("使用选中图片")]):t._e(),t._v(" "),n("el-upload",{staticClass:"upload-demo mr10 mb15",attrs:{action:t.fileUrl,"on-success":t.handleSuccess,headers:t.myHeaders,"show-file-list":!1,multiple:""}},[n("el-button",{attrs:{size:"small",type:"primary"}},[t._v("点击上传")])],1),t._v(" "),n("el-button",{attrs:{type:"success",size:"small"},on:{click:function(e){return e.stopPropagation(),t.onAdd(0)}}},[t._v("添加分类")]),t._v(" "),n("el-button",{staticClass:"mr10",attrs:{type:"error",size:"small",disabled:0===t.checkPicList.length},on:{click:function(e){return e.stopPropagation(),t.editPicList("图片")}}},[t._v("删除图片")]),t._v(" "),n("el-input",{staticStyle:{width:"230px"},attrs:{placeholder:"请输入图片名称搜索",size:"small"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getFileList(1)}},model:{value:t.tableData.attachment_name,callback:function(e){t.$set(t.tableData,"attachment_name",e)},expression:"tableData.attachment_name"}},[n("el-button",{staticClass:"el-button-solt",attrs:{slot:"append",icon:"el-icon-search"},on:{click:function(e){return t.getFileList(1)}},slot:"append"})],1),t._v(" "),n("el-select",{staticClass:"mb15",attrs:{placeholder:"图片移动至",size:"small"},model:{value:t.sleOptions.attachment_category_name,callback:function(e){t.$set(t.sleOptions,"attachment_category_name",e)},expression:"sleOptions.attachment_category_name"}},[n("el-option",{staticStyle:{"max-width":"560px",height:"200px",overflow:"auto","background-color":"#fff"},attrs:{label:t.sleOptions.attachment_category_name,value:t.sleOptions.attachment_category_id}},[n("el-tree",{ref:"tree2",attrs:{data:t.treeData2,"filter-node-method":t.filterNode,props:t.defaultProps},on:{"node-click":t.handleSelClick}})],1)],1)],1),t._v(" "),n("div",{staticClass:"pictrueList acea-row mb15"},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.isShowPic,expression:"isShowPic"}],staticClass:"imagesNo"},[n("i",{staticClass:"el-icon-picture",staticStyle:{"font-size":"60px",color:"rgb(219, 219, 219)"}}),t._v(" "),n("span",{staticClass:"imagesNo_sp"},[t._v("图片库为空")])]),t._v(" "),n("div",{staticClass:"conters"},t._l(t.pictrueList.list,(function(e,i){return n("div",{key:i,staticClass:"gridPic"},[e.num>0?n("p",{staticClass:"number"},[n("el-badge",{staticClass:"item",attrs:{value:e.num}},[n("a",{staticClass:"demo-badge",attrs:{href:"#"}})])],1):t._e(),t._v(" "),n("img",{directives:[{name:"lazy",rawName:"v-lazy",value:e.attachment_src,expression:"item.attachment_src"}],class:e.isSelect?"on":"",on:{click:function(n){return t.changImage(e,i,t.pictrueList.list)}}}),t._v(" "),n("div",{staticStyle:{display:"flex","align-items":"center","justify-content":"space-between"}},[t.editId===e.attachment_id?n("el-input",{model:{value:e.attachment_name,callback:function(n){t.$set(e,"attachment_name",n)},expression:"item.attachment_name"}}):n("p",{staticClass:"name",staticStyle:{width:"80%"}},[t._v("\n "+t._s(e.attachment_name)+"\n ")]),t._v(" "),n("i",{staticClass:"el-icon-edit",on:{click:function(n){return t.handleEdit(e.attachment_id,e.attachment_name)}}})],1)])})),0)]),t._v(" "),n("div",{staticClass:"block"},[n("el-pagination",{attrs:{"page-sizes":[12,20,40,60],"page-size":t.tableData.limit,"current-page":t.tableData.page,layout:"total, sizes, prev, pager, next, jumper",total:t.pictrueList.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)])])],1)],1)},a=[],r=(n("4f7f"),n("5df3"),n("1c4c"),n("ac6a"),n("c7eb")),o=(n("96cf"),n("1da1")),c=(n("c5f6"),n("2909")),s=n("8593"),u=n("5f87"),l=n("bbcc"),d={name:"Upload",props:{isMore:{type:String,default:"1"},setModel:{type:String}},data:function(){return{loading:!1,params:"",sleOptions:{attachment_category_name:"",attachment_category_id:""},list:[],grid:{xl:8,lg:8,md:8,sm:8,xs:24},grid2:{xl:16,lg:16,md:16,sm:16,xs:24},filterText:"",treeData:[],treeData2:[],defaultProps:{children:"children",label:"attachment_category_name"},classifyId:0,myHeaders:{"X-Token":Object(u["a"])()},tableData:{page:1,limit:12,attachment_category_id:0,order:"",attachment_name:""},pictrueList:{list:[],total:0},isShowPic:!1,checkPicList:[],ids:[],checkedMore:[],checkedAll:[],selectItem:[],editId:"",editName:""}},computed:{fileUrl:function(){return l["a"].https+"/upload/image/".concat(this.tableData.attachment_category_id,"/file")}},watch:{filterText:function(t){this.$refs.tree.filter(t)}},mounted:function(){this.params=this.$route&&this.$route.path?this.$route.path:"",this.$route&&"dialog"===this.$route.query.field&&n.e("chunk-2d0da983").then(n.bind(null,"6bef")),this.getList(),this.getFileList("")},methods:{filterNode:function(t,e){return!t||-1!==e.attachment_category_name.indexOf(t)},getList:function(){var t=this,e={attachment_category_name:"全部图片",attachment_category_id:0};Object(s["q"])().then((function(n){t.treeData=n.data,t.treeData.unshift(e),t.treeData2=Object(c["a"])(t.treeData)})).catch((function(e){t.$message.error(e.message)}))},handleEdit:function(t,e){var n=this;if(t===this.editId)if(this.editName!==e){if(!e.trim())return void this.$message.warning("请先输入图片名称");Object(s["x"])(t,{attachment_name:e}).then((function(){return n.getFileList("")})),this.editId=""}else this.editId="",this.editName="";else this.editId=t,this.editName=e},onAdd:function(t){var e=this,n={};Number(t)>0&&(n.formData={pid:t}),this.$modalForm(Object(s["g"])(),n).then((function(t){t.message;e.getList()}))},onEdit:function(t){var e=this;this.$modalForm(Object(s["j"])(t)).then((function(){return e.getList()}))},handleDelete:function(t){var e=this;this.$modalSure().then((function(){Object(s["h"])(t).then((function(t){var n=t.message;e.$message.success(n),e.getList()})).catch((function(t){var n=t.message;e.$message.error(n)}))}))},handleNodeClick:function(t){this.tableData.attachment_category_id=t.attachment_category_id,this.selectItem=[],this.checkPicList=[],this.getFileList("")},handleSuccess:function(t){200===t.status?(this.$message.success("上传成功"),this.getFileList("")):this.$message.error(t.message)},getFileList:function(t){var e=this;this.loading=!0,this.tableData.page=t||this.tableData.page,Object(s["i"])(this.tableData).then(function(){var t=Object(o["a"])(Object(r["a"])().mark((function t(n){return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.pictrueList.list=n.data.list,console.log(e.pictrueList.list),e.pictrueList.list.length?e.isShowPic=!1:e.isShowPic=!0,e.$route&&e.$route.query.field&&"dialog"!==e.$route.query.field&&(e.checkedMore=window.form_create_helper.get(e.$route.query.field)||[]),e.pictrueList.total=n.data.count,e.loading=!1;case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.$message.error(t.message),e.loading=!1}))},pageChange:function(t){this.tableData.page=t,this.selectItem=[],this.checkPicList=[],this.getFileList("")},handleSizeChange:function(t){this.tableData.limit=t,this.getFileList("")},changImage:function(t,e,n){var i=this;if(t.isSelect){t.isSelect=!1;e=this.ids.indexOf(t.attachment_id);e>-1&&this.ids.splice(e,1),this.selectItem.forEach((function(e,n){e.attachment_id==t.attachment_id&&i.selectItem.splice(n,1)})),this.checkPicList.map((function(e,n){e==t.attachment_src&&i.checkPicList.splice(n,1)}))}else t.isSelect=!0,this.selectItem.push(t),this.checkPicList.push(t.attachment_src),this.ids.push(t.attachment_id);this.$route&&"/merchant/config/picture"===this.$route.fullPath&&"dialog"!==this.$route.query.field||this.pictrueList.list.map((function(t,e){t.isSelect?i.selectItem.filter((function(e,n){t.attachment_id==e.attachment_id&&(t.num=n+1)})):t.num=0})),console.log(this.pictrueList.list)},checkPics:function(){if(this.checkPicList.length)if(this.$route){if("1"===this.$route.query.type){if(this.checkPicList.length>1)return this.$message.warning("最多只能选一张图片");form_create_helper.set(this.$route.query.field,this.checkPicList[0]),form_create_helper.close(this.$route.query.field)}if("2"===this.$route.query.type&&(this.checkedAll=[].concat(Object(c["a"])(this.checkedMore),Object(c["a"])(this.checkPicList)),form_create_helper.set(this.$route.query.field,Array.from(new Set(this.checkedAll))),form_create_helper.close(this.$route.query.field)),"dialog"===this.$route.query.field){for(var t="",e=0;e';nowEditor.editor.execCommand("insertHtml",t),nowEditor.dialog.close(!0)}}else{if(console.log(this.isMore,this.checkPicList.length),"1"===this.isMore&&this.checkPicList.length>1)return this.$message.warning("最多只能选一张图片");console.log(this.checkPicList),this.$emit("getImage",this.checkPicList)}else this.$message.warning("请先选择图片")},editPicList:function(t){var e=this,n={ids:this.ids};this.$modalSure().then((function(){Object(s["w"])(n).then((function(t){t.message;e.$message.success("删除成功"),e.getFileList(""),e.checkPicList=[]})).catch((function(t){var n=t.message;e.$message.error(n)}))}))},handleSelClick:function(t){this.ids.length?(this.sleOptions={attachment_category_name:t.attachment_category_name,attachment_category_id:t.attachment_category_id},this.getMove()):this.$message.warning("请先选择图片")},getMove:function(){var t=this;Object(s["k"])(this.ids,this.sleOptions.attachment_category_id).then(function(){var e=Object(o["a"])(Object(r["a"])().mark((function e(n){return Object(r["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.$message.success(n.message),t.clearBoth(),t.getFileList("");case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.clearBoth(),t.$message.error(e.message)}))},clearBoth:function(){this.sleOptions={attachment_category_name:"",attachment_category_id:""},this.checkPicList=[],this.ids=[]}}},h=d,m=(n("eab3"),n("2877")),f=Object(m["a"])(h,i,a,!1,null,"81672560",null);e["default"]=f.exports},b7be:function(t,e,n){"use strict";n.d(e,"I",(function(){return a})),n.d(e,"B",(function(){return r})),n.d(e,"D",(function(){return o})),n.d(e,"C",(function(){return c})),n.d(e,"y",(function(){return s})),n.d(e,"U",(function(){return u})),n.d(e,"F",(function(){return l})),n.d(e,"A",(function(){return d})),n.d(e,"z",(function(){return h})),n.d(e,"G",(function(){return m})),n.d(e,"H",(function(){return f})),n.d(e,"J",(function(){return p})),n.d(e,"g",(function(){return g})),n.d(e,"d",(function(){return b})),n.d(e,"l",(function(){return v})),n.d(e,"K",(function(){return A})),n.d(e,"lb",(function(){return w})),n.d(e,"j",(function(){return y})),n.d(e,"i",(function(){return k})),n.d(e,"m",(function(){return C})),n.d(e,"f",(function(){return E})),n.d(e,"k",(function(){return j})),n.d(e,"n",(function(){return I})),n.d(e,"ib",(function(){return S})),n.d(e,"h",(function(){return x})),n.d(e,"c",(function(){return O})),n.d(e,"b",(function(){return R})),n.d(e,"V",(function(){return _})),n.d(e,"jb",(function(){return M})),n.d(e,"W",(function(){return D})),n.d(e,"fb",(function(){return z})),n.d(e,"kb",(function(){return V})),n.d(e,"e",(function(){return B})),n.d(e,"gb",(function(){return L})),n.d(e,"cb",(function(){return F})),n.d(e,"eb",(function(){return T})),n.d(e,"db",(function(){return N})),n.d(e,"bb",(function(){return Q})),n.d(e,"hb",(function(){return P})),n.d(e,"q",(function(){return H})),n.d(e,"p",(function(){return U})),n.d(e,"w",(function(){return G})),n.d(e,"u",(function(){return W})),n.d(e,"t",(function(){return Z})),n.d(e,"s",(function(){return Y})),n.d(e,"x",(function(){return J})),n.d(e,"o",(function(){return q})),n.d(e,"r",(function(){return X})),n.d(e,"Z",(function(){return K})),n.d(e,"v",(function(){return $})),n.d(e,"ab",(function(){return tt})),n.d(e,"X",(function(){return et})),n.d(e,"a",(function(){return nt})),n.d(e,"E",(function(){return it})),n.d(e,"R",(function(){return at})),n.d(e,"T",(function(){return rt})),n.d(e,"S",(function(){return ot})),n.d(e,"Y",(function(){return ct})),n.d(e,"P",(function(){return st})),n.d(e,"O",(function(){return ut})),n.d(e,"L",(function(){return lt})),n.d(e,"N",(function(){return dt})),n.d(e,"M",(function(){return ht})),n.d(e,"Q",(function(){return mt}));var i=n("0c6d");function a(t){return i["a"].get("store/coupon/update/".concat(t,"/form"))}function r(t){return i["a"].get("store/coupon/lst",t)}function o(t,e){return i["a"].post("store/coupon/status/".concat(t),{status:e})}function c(){return i["a"].get("store/coupon/create/form")}function s(t){return i["a"].get("store/coupon/clone/form/".concat(t))}function u(t){return i["a"].get("store/coupon/issue",t)}function l(t){return i["a"].get("store/coupon/select",t)}function d(t){return i["a"].get("store/coupon/detail/".concat(t))}function h(t){return i["a"].delete("store/coupon/delete/".concat(t))}function m(t){return i["a"].post("store/coupon/send",t)}function f(t){return i["a"].get("store/coupon_send/lst",t)}function p(){return i["a"].get("broadcast/room/create/form")}function g(t){return i["a"].get("broadcast/room/lst",t)}function b(t){return i["a"].get("broadcast/room/detail/".concat(t))}function v(t,e){return i["a"].post("broadcast/room/mark/".concat(t),{mark:e})}function A(){return i["a"].get("broadcast/goods/create/form")}function w(t){return i["a"].get("broadcast/goods/update/form/".concat(t))}function y(t){return i["a"].get("broadcast/goods/lst",t)}function k(t){return i["a"].get("broadcast/goods/detail/".concat(t))}function C(t,e){return i["a"].post("broadcast/goods/status/".concat(t),e)}function E(t){return i["a"].post("broadcast/room/export_goods",t)}function j(t,e){return i["a"].post("broadcast/goods/mark/".concat(t),{mark:e})}function I(t,e){return i["a"].post("broadcast/room/status/".concat(t),e)}function S(t,e){return i["a"].get("broadcast/room/goods/".concat(t),e)}function x(t){return i["a"].delete("broadcast/goods/delete/".concat(t))}function O(t){return i["a"].delete("broadcast/room/delete/".concat(t))}function R(t){return i["a"].post("broadcast/goods/batch_create",t)}function _(t,e){return i["a"].post("broadcast/room/feedsPublic/".concat(t),{status:e})}function M(t,e){return i["a"].post("broadcast/room/on_sale/".concat(t),e)}function D(t,e){return i["a"].post("broadcast/room/comment/".concat(t),{status:e})}function z(t,e){return i["a"].post("broadcast/room/closeKf/".concat(t),{status:e})}function V(t){return i["a"].get("broadcast/room/push_message/".concat(t))}function B(t){return i["a"].post("broadcast/room/rm_goods",t)}function L(t){return i["a"].get("broadcast/room/update/form/".concat(t))}function F(){return i["a"].get("broadcast/assistant/create/form")}function T(t){return i["a"].get("broadcast/assistant/update/".concat(t,"/form"))}function N(t){return i["a"].delete("broadcast/assistant/delete/".concat(t))}function Q(t){return i["a"].get("broadcast/assistant/lst",t)}function P(t){return i["a"].get("broadcast/room/addassistant/form/".concat(t))}function H(){return i["a"].get("config/others/group_buying")}function U(t){return i["a"].post("store/product/group/create",t)}function G(t,e){return i["a"].post("store/product/group/update/".concat(t),e)}function W(t){return i["a"].get("store/product/group/lst",t)}function Z(t){return i["a"].get("store/product/group/detail/".concat(t))}function Y(t){return i["a"].delete("store/product/group/delete/".concat(t))}function J(t,e){return i["a"].post("store/product/group/status/".concat(t),{status:e})}function q(t){return i["a"].get("store/product/group/buying/lst",t)}function X(t,e){return i["a"].get("store/product/group/buying/detail/".concat(t),e)}function K(t,e){return i["a"].get("store/seckill_product/detail/".concat(t),e)}function $(t,e){return i["a"].post("/store/product/group/sort/".concat(t),e)}function tt(t,e){return i["a"].post("/store/seckill_product/sort/".concat(t),e)}function et(t,e){return i["a"].post("/store/product/presell/sort/".concat(t),e)}function nt(t,e){return i["a"].post("/store/product/assist/sort/".concat(t),e)}function it(t,e){return i["a"].get("/store/coupon/product/".concat(t),e)}function at(t){return i["a"].get("config/".concat(t))}function rt(){return i["a"].get("integral/title")}function ot(t){return i["a"].get("integral/lst",t)}function ct(t){return i["a"].get("store/product/attr_value/".concat(t))}function st(t){return i["a"].post("discounts/create",t)}function ut(t){return i["a"].get("discounts/lst",t)}function lt(t,e){return i["a"].post("discounts/status/".concat(t),{status:e})}function dt(t){return i["a"].get("discounts/detail/".concat(t))}function ht(t){return i["a"].delete("discounts/delete/".concat(t))}function mt(t,e){return i["a"].post("discounts/update/".concat(t),e)}},bbcc:function(t,e,n){"use strict";var i=n("a78e"),a=n.n(i),r="".concat(location.origin),o=("https:"===location.protocol?"wss":"ws")+":"+location.hostname,c=a.a.get("MerInfo")?JSON.parse(a.a.get("MerInfo")).login_title:"",s={httpUrl:r,https:r+"/mer",wsSocketUrl:o,title:c||"加载中..."};e["a"]=s},bc35:function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-clipboard",use:"icon-clipboard-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},bd3e:function(t,e,n){},c043:function(t,e,n){"use strict";n("c068")},c068:function(t,e,n){},c24f:function(t,e,n){"use strict";n.d(e,"f",(function(){return a})),n.d(e,"q",(function(){return r})),n.d(e,"r",(function(){return o})),n.d(e,"s",(function(){return c})),n.d(e,"v",(function(){return s})),n.d(e,"h",(function(){return u})),n.d(e,"k",(function(){return l})),n.d(e,"j",(function(){return d})),n.d(e,"i",(function(){return h})),n.d(e,"p",(function(){return m})),n.d(e,"o",(function(){return f})),n.d(e,"n",(function(){return p})),n.d(e,"m",(function(){return g})),n.d(e,"a",(function(){return b})),n.d(e,"c",(function(){return v})),n.d(e,"e",(function(){return A})),n.d(e,"b",(function(){return w})),n.d(e,"d",(function(){return y})),n.d(e,"x",(function(){return k})),n.d(e,"y",(function(){return C})),n.d(e,"w",(function(){return E})),n.d(e,"g",(function(){return j})),n.d(e,"u",(function(){return I})),n.d(e,"z",(function(){return S})),n.d(e,"l",(function(){return x})),n.d(e,"t",(function(){return O}));var i=n("0c6d");function a(){return i["a"].get("captcha")}function r(t){return i["a"].post("login",t)}function o(){return i["a"].get("login_config")}function c(){return i["a"].get("logout")}function s(){return i["a"].get("system/admin/edit/password/form")}function u(){return i["a"].get("system/admin/edit/form")}function l(){return i["a"].get("menus")}function d(t){return Object(i["a"])({url:"/vue-element-admin/user/info",method:"get",params:{token:t}})}function h(){return i["a"].get("info")}function m(t){return i["a"].get("user/label/lst",t)}function f(){return i["a"].get("user/label/form")}function p(t){return i["a"].get("user/label/form/"+t)}function g(t){return i["a"].delete("user/label/".concat(t))}function b(t){return i["a"].post("auto_label/create",t)}function v(t){return i["a"].get("auto_label/lst",t)}function A(t,e){return i["a"].post("auto_label/update/"+t,e)}function w(t){return i["a"].delete("auto_label/delete/".concat(t))}function y(t){return i["a"].post("auto_label/sync/"+t)}function k(t){return i["a"].get("user/lst",t)}function C(t,e){return i["a"].get("user/order/".concat(t),e)}function E(t,e){return i["a"].get("user/coupon/".concat(t),e)}function j(t){return i["a"].get("user/change_label/form/"+t)}function I(t){return i["a"].post("/info/update",t)}function S(t){return i["a"].get("user/search_log",t)}function x(){return i["a"].get("../api/version")}function O(t){return i["a"].get("user/svip/order_lst",t)}},c4c8:function(t,e,n){"use strict";n.d(e,"Nb",(function(){return a})),n.d(e,"Lb",(function(){return r})),n.d(e,"Pb",(function(){return o})),n.d(e,"Mb",(function(){return c})),n.d(e,"Ob",(function(){return s})),n.d(e,"Qb",(function(){return u})),n.d(e,"k",(function(){return l})),n.d(e,"m",(function(){return d})),n.d(e,"l",(function(){return h})),n.d(e,"Rb",(function(){return m})),n.d(e,"ib",(function(){return f})),n.d(e,"t",(function(){return p})),n.d(e,"Yb",(function(){return g})),n.d(e,"fb",(function(){return b})),n.d(e,"Gb",(function(){return v})),n.d(e,"a",(function(){return A})),n.d(e,"eb",(function(){return w})),n.d(e,"jb",(function(){return y})),n.d(e,"bb",(function(){return k})),n.d(e,"wb",(function(){return C})),n.d(e,"ub",(function(){return E})),n.d(e,"pb",(function(){return j})),n.d(e,"gb",(function(){return I})),n.d(e,"xb",(function(){return S})),n.d(e,"s",(function(){return x})),n.d(e,"r",(function(){return O})),n.d(e,"q",(function(){return R})),n.d(e,"Ab",(function(){return _})),n.d(e,"Q",(function(){return M})),n.d(e,"Jb",(function(){return D})),n.d(e,"Kb",(function(){return z})),n.d(e,"Ib",(function(){return V})),n.d(e,"y",(function(){return B})),n.d(e,"ab",(function(){return L})),n.d(e,"rb",(function(){return F})),n.d(e,"sb",(function(){return T})),n.d(e,"v",(function(){return N})),n.d(e,"Fb",(function(){return Q})),n.d(e,"qb",(function(){return P})),n.d(e,"Hb",(function(){return H})),n.d(e,"u",(function(){return U})),n.d(e,"yb",(function(){return G})),n.d(e,"vb",(function(){return W})),n.d(e,"zb",(function(){return Z})),n.d(e,"cb",(function(){return Y})),n.d(e,"db",(function(){return J})),n.d(e,"R",(function(){return q})),n.d(e,"U",(function(){return X})),n.d(e,"T",(function(){return K})),n.d(e,"S",(function(){return $})),n.d(e,"X",(function(){return tt})),n.d(e,"V",(function(){return et})),n.d(e,"W",(function(){return nt})),n.d(e,"z",(function(){return it})),n.d(e,"b",(function(){return at})),n.d(e,"j",(function(){return rt})),n.d(e,"h",(function(){return ot})),n.d(e,"g",(function(){return ct})),n.d(e,"f",(function(){return st})),n.d(e,"c",(function(){return ut})),n.d(e,"e",(function(){return lt})),n.d(e,"i",(function(){return dt})),n.d(e,"d",(function(){return ht})),n.d(e,"hb",(function(){return mt})),n.d(e,"kb",(function(){return ft})),n.d(e,"tb",(function(){return pt})),n.d(e,"A",(function(){return gt})),n.d(e,"E",(function(){return bt})),n.d(e,"G",(function(){return vt})),n.d(e,"I",(function(){return At})),n.d(e,"C",(function(){return wt})),n.d(e,"B",(function(){return yt})),n.d(e,"F",(function(){return kt})),n.d(e,"H",(function(){return Ct})),n.d(e,"D",(function(){return Et})),n.d(e,"Xb",(function(){return jt})),n.d(e,"L",(function(){return It})),n.d(e,"P",(function(){return St})),n.d(e,"N",(function(){return xt})),n.d(e,"M",(function(){return Ot})),n.d(e,"O",(function(){return Rt})),n.d(e,"x",(function(){return _t})),n.d(e,"Vb",(function(){return Mt})),n.d(e,"Wb",(function(){return Dt})),n.d(e,"Ub",(function(){return zt})),n.d(e,"Sb",(function(){return Vt})),n.d(e,"Tb",(function(){return Bt})),n.d(e,"w",(function(){return Lt})),n.d(e,"o",(function(){return Ft})),n.d(e,"n",(function(){return Tt})),n.d(e,"p",(function(){return Nt})),n.d(e,"lb",(function(){return Qt})),n.d(e,"Eb",(function(){return Pt})),n.d(e,"nb",(function(){return Ht})),n.d(e,"ob",(function(){return Ut})),n.d(e,"Cb",(function(){return Gt})),n.d(e,"Bb",(function(){return Wt})),n.d(e,"Db",(function(){return Zt})),n.d(e,"mb",(function(){return Yt})),n.d(e,"Y",(function(){return Jt})),n.d(e,"Z",(function(){return qt})),n.d(e,"K",(function(){return Xt})),n.d(e,"J",(function(){return Kt}));var i=n("0c6d");function a(){return i["a"].get("store/category/lst")}function r(){return i["a"].get("store/category/create/form")}function o(t){return i["a"].get("store/category/update/form/".concat(t))}function c(t){return i["a"].delete("store/category/delete/".concat(t))}function s(t,e){return i["a"].post("store/category/status/".concat(t),{status:e})}function u(t){return i["a"].get("store/attr/template/lst",t)}function l(t){return i["a"].post("store/attr/template/create",t)}function d(t,e){return i["a"].post("store/attr/template/".concat(t),e)}function h(t){return i["a"].delete("store/attr/template/".concat(t))}function m(){return i["a"].get("/store/attr/template/list")}function f(t){return i["a"].get("store/product/lst",t)}function p(t){return i["a"].get("store/product/cloud_product_list",t)}function g(t){return i["a"].get("store/product/xlsx_import_list",t)}function b(t){return i["a"].delete("store/product/delete/".concat(t))}function v(t){return i["a"].delete("store/seckill_product/delete/".concat(t))}function A(t){return i["a"].post("store/product/add_cloud_product",t)}function w(t){return i["a"].post("store/product/create",t)}function y(t){return i["a"].post("store/product/preview",t)}function k(t){return i["a"].post("store/productcopy/save",t)}function C(t){return i["a"].post("store/seckill_product/create",t)}function E(t){return i["a"].post("store/seckill_product/preview",t)}function j(t,e){return i["a"].post("store/product/update/".concat(t),e)}function I(t){return i["a"].get("store/product/detail/".concat(t))}function S(t){return i["a"].get("store/seckill_product/detail/".concat(t))}function x(){return i["a"].get("store/category/select")}function O(){return i["a"].get("store/category/list")}function R(){return i["a"].get("store/category/brandlist")}function _(){return i["a"].get("store/shipping/list")}function M(){return i["a"].get("store/product/lst_filter")}function D(){return i["a"].get("store/seckill_product/lst_filter")}function z(t,e){return i["a"].post("store/product/status/".concat(t),{status:e})}function V(t,e){return i["a"].post("store/seckill_product/status/".concat(t),{status:e})}function B(t){return i["a"].get("store/product/list",t)}function L(){return i["a"].get("store/product/config")}function F(t){return i["a"].get("store/reply/lst",t)}function T(t){return i["a"].get("store/reply/form/".concat(t))}function N(t){return i["a"].delete("store/product/destory/".concat(t))}function Q(t){return i["a"].delete("store/seckill_product/destory/".concat(t))}function P(t){return i["a"].post("store/product/restore/".concat(t))}function H(t){return i["a"].post("store/seckill_product/restore/".concat(t))}function U(t){return i["a"].get("store/productcopy/get",t)}function G(t){return i["a"].get("store/seckill_product/lst",t)}function W(){return i["a"].get("store/seckill_product/lst_time")}function Z(t,e){return i["a"].post("store/seckill_product/update/".concat(t),e)}function Y(){return i["a"].get("store/productcopy/count")}function J(t){return i["a"].get("store/productcopy/lst",t)}function q(t){return i["a"].post("store/product/presell/create",t)}function X(t,e){return i["a"].post("store/product/presell/update/".concat(t),e)}function K(t){return i["a"].get("store/product/presell/lst",t)}function $(t){return i["a"].get("store/product/presell/detail/".concat(t))}function tt(t,e){return i["a"].post("store/product/presell/status/".concat(t),{status:e})}function et(t){return i["a"].delete("store/product/presell/delete/".concat(t))}function nt(t){return i["a"].post("store/product/presell/preview",t)}function it(t){return i["a"].post("store/product/group/preview",t)}function at(t){return i["a"].post("store/product/assist/create",t)}function rt(t,e){return i["a"].post("store/product/assist/update/".concat(t),e)}function ot(t){return i["a"].get("store/product/assist/lst",t)}function ct(t){return i["a"].get("store/product/assist/detail/".concat(t))}function st(t){return i["a"].post("store/product/assist/preview",t)}function ut(t){return i["a"].delete("store/product/assist/delete/".concat(t))}function lt(t){return i["a"].get("store/product/assist_set/lst",t)}function dt(t,e){return i["a"].post("store/product/assist/status/".concat(t),{status:e})}function ht(t,e){return i["a"].get("store/product/assist_set/detail/".concat(t),e)}function mt(){return i["a"].get("store/product/temp_key")}function ft(t,e){return i["a"].post("/store/product/sort/".concat(t),e)}function pt(t,e){return i["a"].post("/store/reply/sort/".concat(t),e)}function gt(t){return i["a"].post("guarantee/create",t)}function bt(t){return i["a"].get("guarantee/lst",t)}function vt(t,e){return i["a"].post("guarantee/sort/".concat(t),e)}function At(t,e){return i["a"].post("guarantee/update/".concat(t),e)}function wt(t){return i["a"].get("guarantee/detail/".concat(t))}function yt(t){return i["a"].delete("guarantee/delete/".concat(t))}function kt(t){return i["a"].get("guarantee/select",t)}function Ct(t,e){return i["a"].post("guarantee/status/".concat(t),e)}function Et(){return i["a"].get("guarantee/list")}function jt(t){return i["a"].post("upload/video",t)}function It(){return i["a"].get("product/label/create/form")}function St(t){return i["a"].get("product/label/update/".concat(t,"/form"))}function xt(t){return i["a"].get("product/label/lst",t)}function Ot(t){return i["a"].delete("product/label/delete/".concat(t))}function Rt(t,e){return i["a"].post("product/label/status/".concat(t),{status:e})}function _t(t){return i["a"].get("product/label/option",t)}function Mt(t,e){return i["a"].post("store/product/labels/".concat(t),e)}function Dt(t,e){return i["a"].post("store/seckill_product/labels/".concat(t),e)}function zt(t,e){return i["a"].post("store/product/presell/labels/".concat(t),e)}function Vt(t,e){return i["a"].post("store/product/assist/labels/".concat(t),e)}function Bt(t,e){return i["a"].post("store/product/group/labels/".concat(t),e)}function Lt(t,e){return i["a"].post("store/product/free_trial/".concat(t),e)}function Ft(t){return i["a"].post("store/product/batch_status",t)}function Tt(t){return i["a"].post("store/product/batch_labels",t)}function Nt(t){return i["a"].post("store/product/batch_temp",t)}function Qt(t){return i["a"].post("store/params/temp/create",t)}function Pt(t,e){return i["a"].post("store/params/temp/update/".concat(t),e)}function Ht(t){return i["a"].get("store/params/temp/detail/".concat(t))}function Ut(t){return i["a"].get("store/params/temp/lst",t)}function Gt(t){return i["a"].delete("store/params/temp/delete/".concat(t))}function Wt(t){return i["a"].get("store/params/temp/detail/".concat(t))}function Zt(t){return i["a"].get("store/params/temp/select",t)}function Yt(t){return i["a"].get("store/params/temp/show",t)}function Jt(t){return i["a"].post("store/product/batch_ext",t)}function qt(t){return i["a"].post("store/product/batch_svip",t)}function Xt(t){return i["a"].post("store/import/product",t)}function Kt(t){return i["a"].post("store/import/import_images",t)}},c653:function(t,e,n){var i={"./app.js":"d9cd","./errorLog.js":"4d49","./mobildConfig.js":"3087","./permission.js":"31c2","./settings.js":"0781","./tagsView.js":"7509","./user.js":"0f9a"};function a(t){var e=r(t);return n(e)}function r(t){var e=i[t];if(!(e+1)){var n=new Error("Cannot find module '"+t+"'");throw n.code="MODULE_NOT_FOUND",n}return e}a.keys=function(){return Object.keys(i)},a.resolve=r,t.exports=a,a.id="c653"},c6b6:function(t,e,n){},c829:function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-chart",use:"icon-chart-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},cbb7:function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-email",use:"icon-email-usage",viewBox:"0 0 128 96",content:''});o.a.add(c);e["default"]=c},cea8:function(t,e,n){"use strict";n("50da")},cf1c:function(t,e,n){"use strict";n("7b72")},cf1e2:function(t,e,n){t.exports={menuText:"#bfcbd9",menuActiveText:"#6394F9",subMenuActiveText:"#f4f4f5",menuBg:"#0B1529",menuHover:"#182848",subMenuBg:"#030C17",subMenuHover:"#182848",sideBarWidth:"180px"}},d056:function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-people",use:"icon-people-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},d0a6:function(t,e,n){"use strict";n("8544")},d249:function(t,e,n){"use strict";n("b55e")},d3ae:function(t,e,n){},d7ec:function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-eye-open",use:"icon-eye-open-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(c);e["default"]=c},d9cd:function(t,e,n){"use strict";n.r(e);var i=n("a78e"),a=n.n(i),r={sidebar:{opened:!a.a.get("sidebarStatus")||!!+a.a.get("sidebarStatus"),withoutAnimation:!1},device:"desktop",size:a.a.get("size")||"medium"},o={TOGGLE_SIDEBAR:function(t){t.sidebar.opened=!t.sidebar.opened,t.sidebar.withoutAnimation=!1,t.sidebar.opened?a.a.set("sidebarStatus",1):a.a.set("sidebarStatus",0)},CLOSE_SIDEBAR:function(t,e){a.a.set("sidebarStatus",0),t.sidebar.opened=!1,t.sidebar.withoutAnimation=e},TOGGLE_DEVICE:function(t,e){t.device=e},SET_SIZE:function(t,e){t.size=e,a.a.set("size",e)}},c={toggleSideBar:function(t){var e=t.commit;e("TOGGLE_SIDEBAR")},closeSideBar:function(t,e){var n=t.commit,i=e.withoutAnimation;n("CLOSE_SIDEBAR",i)},toggleDevice:function(t,e){var n=t.commit;n("TOGGLE_DEVICE",e)},setSize:function(t,e){var n=t.commit;n("SET_SIZE",e)}};e["default"]={namespaced:!0,state:r,mutations:o,actions:c}},dbc7:function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-exit-fullscreen",use:"icon-exit-fullscreen-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},dcf8:function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-nested",use:"icon-nested-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},ddd5:function(t,e,n){},de6e:function(t,e,n){},de9d:function(t,e,n){},e03b:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFEAAABRCAYAAACqj0o2AAAAAXNSR0IArs4c6QAACjNJREFUeF7tnH9sFNcRx7/z9owP+84/iG1+p2eCa4vwwxJEgtJKRkoTKAlKIa5MC8qhFIlUoIJaqZFaya6i/oFUCVBRmwok3IYkCEODCClOS5VDSUrSpAkkDhAw+JIQfhjjM+ezsfHuTrVrDI7x3e2+3TVGvf0LyTPzZj477828t+8gZB7HBMixhYwBZCC6kAQZiBmILhBwwUQmEzMQXSDggolRk4n8q7n5NwQqdBbTFSjTjdh0IDQQowCixr81aM2C9OaxOk7T5v9ed4GBYxP3DGL3pjmT9azsR0lQFYAqGgTMalTcDzbCxBEheo/k/O7E11Z13ZQbUYgt4ZC/uKR4BQGrAHoUgM+1YAgqmI8wsPtq69X9pfXRHtdspzE0IhBjGysLxvh8PwdoIwgF3gU3EA53gHnrTVXdVrj1eId34/Vb9hSikXklDxT/GuD1IPIQXhJMbMDE1tb2ts1eZqZnEHs2zl2qCbEd4NvFweuMSG6fo4rG6/zbPnrTCx9ch9j6sxmB3DH+P4Ao7IXDjmwy13fd7NlQ8seTCUd2hii7CrF305yHVd23B8BMN5102VaTT6g12VtOfOaWXdcgdq+vXAhBjQwKuOWcZ3aYE8S8OGf78XfdGMMViN3rZ69gUvaAXWxZ3IhuwMbwUarEWk3O9k/2Ox3KMcTudbNXsCKMKexez+dt0zCYmUrkHKQjiN3rKheyQEQ6Ax2N7jR/buurpKMq50X5qS0dRu/aOQ+rCt4DMPrXwPS8Ez4N87N3yBUbKYit1TMCOeN8x2h0V+H06AZJMNDU3a4uKGmw3/5IQUysnbWLMAr7QFvY7hZmcH1gx6dr7JqxDbHr2ZlLmeiQ3YHSydt2JJ1Byb8z6YsDOz6ztbOx5bu5FxbBUzwqtnKSlIaqDSHAjOY2PTHLzl7bFsSu8IxaJqqz7r4t89bNeixJrNfl1p/8rdVhLEcZC4cKsji3BfDyKGuQ25Y9sxqqLbmOPnSVFtZHLR2jWXa1a1VFLQthIwttOT3qhAmoy/2rtWy0BLGlKuQvnjL2krcHqqOOY8fVr25MLI2kPyG3BDHx4/KfgMRuN8IkcDMT7eQ+vNF25Uaz4WRrdXHA7yusVITyOIPXAVSUYiwVwB5d1/YL9eZ7gYboZUM2VhMKKcJfJQjPAOZ3G+cP66sCr3z+cjpDFiFW/BOA8U1E/mGoJPSNOV+f+TNFYIAY9ok9FSrIGptdC6KNdxVS5ndUVV2T33CuOZUjnTUVVST4JYCmyDsMgNEYePX0knQ20kLsXj59ij5GMQqK9AEDAQlN61uS13D+nXQODfw9XlMWFhA7BsYl4p05l848l+oFDLadqA5NgG/MYTBVWh1zGDkVWu/UgWxPZictxMSPvv0MiOodOAKd+Yd5e88csGujs3r600TiVYC3B/ae3WRX/9ry6VOys5QPAEywq3tbnjkc2HvmL6n000OsLtsFJ1s81ncH9jWvlg0iUV1WGWg4e1xWP768LCx8tEtWH8z1gYazKbeC6SGuKGsB3bmJYNcZ7aZeln8w9Rpm16Zd+cTTZacAVNjVM+UJ0UDD2VLpTDQXeeGLWRp8uNfBaAr8rXmWJX0PhTqXP/QCEf2mf4i0eXOXJ31aX2HhgeSNd0qL158MzVd8vmOy8RH4xdzXzj0nq++W3vVlocWK4jssa09T1QX5r0eNs9Nhn9QQl5WuEkK8JDs4wHXBA+ct70Hlx0mt2bFs2jxFkFFgpB5d11fnH2xJ2ienhNi1bFqtDjjZ6tUFD957iMaMEiSkZxSAlHGkhNj5xLRakDxEAu8OvN4iXZml0mYYpfiToacI4jVpe+QAYmJpaBc7aG8YHM17I5qyskkHZkOx84nQnwBaZ0NlqOjO4KGWtVJrYuIHBkQ4uw7CqAoejh51EIAjVePwpCgHxo5LuuEmoD7w92jSXjH1dF784A6AfuooCiASbPxikUMb0uqJx7/1Cxb0e2kDhiLzzmDjF3KZ2PnYg8ZBgJPCYvpO4OcDb3652VEgEspdjz04VyNEyOnVFuK6YOOXSbuMlJkY//7UMJGDLdNA4MzGLdaa4JELjq9sWGUZXzSpnLJ8ESfTeNBYdcF/SELsqJo4T/H5pPurbwbMxvHXiIA0ASqKWwCNA5TV+f+6INcntlTBX6RMiQHkt5oBKeXMjERN8C3vMtIESEoEJF9IhsagaeojBZFLH0pVZ0Opc9HkYwDNdwWiacTISPIEpAkQInkG2t82mx6reqKwMNKR9KNVWrOdVZNqAefFZfBLYLBKxDXBty65tkaaABkRgKRbmeESxex1IxflT3EMox0LJ85TFPl9Z7IMZkAlo9i87RxkfOGkcvK5D/BWZ1EfOHrR2XmiYSj+vYktAHlwgZ1V0rSa4L9bpTMyvrConERWhF3OwDsvX1+T9/bllCf7aaezuS5+Z/wLLMSt8zj3Vsd+S6ySrkuBNAGSAdC9IjIkOrWnV51a8sFV84uidGExIc4bP5PH0Kdu47tjj1UC2wJpAoQvwuwZQGOX0Jj37mXnX/sGAo3PH38M5GaVHvpKjIzkmuD76ad2fF5ROXxGG+NuEbnLI+Mc8f3WtN/bLU1nc118pDgMIeQ/+FhKY2ONRE3ww+QgTYAuNtK33RpKgtFx7cqViaVRpP2NoGWILSH4HygpcXQaYomjuUbSsCBNgCJFH2htAEtSBL0u+J82S6fyliH2r41FtZy0Z7RlKk0gt6r2x+23q7YJkMj1PnBYR5g7NLWvtPB48gZ7sJ6tyONzg0WA/ysA7mwDU6K8VbU/bt8fn11UjiwDoIdFZJAvxFwX/MhaFvb3kjafzsqiLSxw1z0Zm2YsirMKjZ+HIn45UgDBaL4Wa5tlZS0cCMI2xNYZuRP82f4W8Ehko0XWLoqxzkvyP2lvtGPSNkRzbZw9bgsPc2vLzsCjU5br8060e//rASP42IyCsKJ43e6MMGbiph41tqDkJGz/jFcqE02IwoUT7xHmlGw47r/6t2DcqUSTjEtyECsKwuJeQ5TyfDhErFKftijvTKflu5NDrUi5EqsIhgUpHu9eZHLCpg5BZY1XFnx+fZ9NzW+Iy0EsC4ZFsi2glEUnIUjrqqxqKwuaE44ASvWJZmExILrxFVA6fquKSd4oIUF9vUvyzvdIT2HpHcuAYuyh3LAQ9+d0JuYmlXnluHNyRWS41yc1+UyIuP9aHIJe3xPv2lBy1X4bkyr35SCGjEy8r1qcZui8IT/aZWsn4nDRSK0eMyBiFEMcSA1GB6BvbUf3Zjt7YavwpPfOZmGZ6h/ta6L5f4Xp8e5thR0GSG8fuek82YAosSZKjWYRAJu/0jqisf7y9Qs9+0qR/kTaouW0YlJhxQyII9riJHGTOUqgiAb9qMI9h/Iuoi1txB4ISEFsn+T7rg++Zz3wJ5lJlYELxh81xjlF15r13r7TIzFVrcQoBdGK4f8nmQxEF952BmIGogsEXDCRycQMRBcIuGAik4kuQPwfBUpzf3HDNvAAAAAASUVORK5CYII="},e534:function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-theme",use:"icon-theme-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},e7c8:function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-tree-table",use:"icon-tree-table-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},ea55:function(t,e,n){},eab3:function(t,e,n){"use strict";n("65a0")},eb1b:function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-form",use:"icon-form-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},eb24:function(t,e,n){"use strict";n("f3c0")},ed08:function(t,e,n){"use strict";n.d(e,"c",(function(){return a})),n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return o}));n("4917"),n("4f7f"),n("5df3"),n("1c4c"),n("28a5"),n("ac6a"),n("456d"),n("f576"),n("6b54"),n("3b2b"),n("a481");var i=n("53ca");function a(t,e){if(0===arguments.length)return null;var n,a=e||"{y}-{m}-{d} {h}:{i}:{s}";"object"===Object(i["a"])(t)?n=t:("string"===typeof t&&(t=/^[0-9]+$/.test(t)?parseInt(t):t.replace(new RegExp(/-/gm),"/")),"number"===typeof t&&10===t.toString().length&&(t*=1e3),n=new Date(t));var r={y:n.getFullYear(),m:n.getMonth()+1,d:n.getDate(),h:n.getHours(),i:n.getMinutes(),s:n.getSeconds(),a:n.getDay()},o=a.replace(/{([ymdhisa])+}/g,(function(t,e){var n=r[e];return"a"===e?["日","一","二","三","四","五","六"][n]:n.toString().padStart(2,"0")}));return o}function r(t,e){t=10===(""+t).length?1e3*parseInt(t):+t;var n=new Date(t),i=Date.now(),r=(i-n)/1e3;return r<30?"刚刚":r<3600?Math.ceil(r/60)+"分钟前":r<86400?Math.ceil(r/3600)+"小时前":r<172800?"1天前":e?a(t,e):n.getMonth()+1+"月"+n.getDate()+"日"+n.getHours()+"时"+n.getMinutes()+"分"}function o(t,e,n){var i,a,r,o,c,s=function s(){var u=+new Date-o;u0?i=setTimeout(s,e-u):(i=null,n||(c=t.apply(r,a),i||(r=a=null)))};return function(){for(var a=arguments.length,u=new Array(a),l=0;l'});o.a.add(c);e["default"]=c},f9a1:function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-pdf",use:"icon-pdf-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(c);e["default"]=c},fc4a:function(t,e,n){}},[[0,"runtime","chunk-elementUI","chunk-libs"]]]); \ No newline at end of file diff --git a/public/mer/js/chunk-01454a3c.261615ee.js b/public/mer/js/chunk-01454a3c.261615ee.js new file mode 100644 index 00000000..a90747da --- /dev/null +++ b/public/mer/js/chunk-01454a3c.261615ee.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-01454a3c"],{"4d5f":function(t,e,i){"use strict";i("66a4")},"66a4":function(t,e,i){},7897:function(t,e,i){"use strict";i.r(e);var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"divBox"},[i("el-card",{staticClass:"box-card"},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{data:t.tableData.data,size:"mini","row-class-name":t.tableRowClassName,"row-key":function(t){return t.product_id+""+Math.floor(1e4*Math.random())}},on:{"selection-change":t.handleSelectionChange,rowclick:function(e){return e.stopPropagation(),t.closeEdit(e)}}},[i("el-table-column",{attrs:{type:"expand"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("el-form",{staticClass:"demo-table-expand demo-table-expand1",attrs:{"label-position":"left",inline:""}},[i("el-form-item",{attrs:{label:"平台分类:"}},[i("span",[t._v(t._s(e.row.storeCategory?e.row.storeCategory.cate_name:"-"))])]),t._v(" "),i("el-form-item",{attrs:{label:"商品分类:"}},[e.row.merCateId.length?t._l(e.row.merCateId,(function(e,s){return i("span",{key:s,staticClass:"mr10"},[t._v(t._s(e.category.cate_name))])})):i("span",[t._v("-")])],2),t._v(" "),i("el-form-item",{attrs:{label:"品牌:"}},[i("span",{staticClass:"mr10"},[t._v(t._s(e.row.brand?e.row.brand.brand_name:"-"))])]),t._v(" "),i("el-form-item",{attrs:{label:"市场价格:"}},[i("span",[t._v(t._s(t._f("filterEmpty")(e.row.ot_price)))])]),t._v(" "),i("el-form-item",{attrs:{label:"成本价:"}},[i("span",[t._v(t._s(t._f("filterEmpty")(e.row.cost)))])]),t._v(" "),i("el-form-item",{attrs:{label:"收藏:"}},[i("span",[t._v(t._s(t._f("filterEmpty")(e.row.care_count)))])]),t._v(" "),"7"===t.tableFrom.type?i("el-form-item",{key:"1",attrs:{label:"未通过原因:"}},[i("span",[t._v(t._s(e.row.refusal))])]):t._e()],1)]}}])}),t._v(" "),i("el-table-column",{attrs:{prop:"product_id",label:"ID","min-width":"50"}}),t._v(" "),i("el-table-column",{attrs:{prop:"name",label:"商品名称","min-width":"200"}}),t._v(" "),i("el-table-column",{attrs:{prop:"content",label:"备注","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.content?i("span",{staticStyle:{color:"#efb32c"}},[t._v(t._s(e.row.content))]):i("span",[t._v("-")])]}}])}),t._v(" "),i("el-table-column",{attrs:{prop:"status",label:"商品状态","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(e){return[1==e.row.status?i("span",{staticStyle:{color:"#13ce66"}},[t._v("已导入")]):i("span",{staticStyle:{color:"#ff0018"}},[t._v("未导入")])]}}])}),t._v(" "),i("el-table-column",{attrs:{prop:"create_time",label:"创建时间","min-width":"150"}})],1),t._v(" "),i("div",{staticClass:"block"},[i("el-pagination",{attrs:{"page-sizes":[20,40,60,80],"page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"total, sizes, prev, pager, next, jumper",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1)],1)},a=[],n=i("c7eb"),o=(i("96cf"),i("1da1")),r=(i("7f7f"),i("55dd"),i("c4c8")),c=(i("c24f"),i("83d6")),l=i("bbcc"),u=i("5c96"),m={name:"ProductList",data:function(){return{props:{emitPath:!1},roterPre:c["roterPre"],BASE_URL:l["a"].https,headeNum:[],labelList:[],tempList:[],listLoading:!0,tableData:{data:[],total:0},tableFrom:{page:1,limit:20,mer_cate_id:"",cate_id:"",keyword:"",temp_id:"",type:this.$route.query.type?this.$route.query.type:"1",is_gift_bag:"",us_status:"",mer_labels:"",svip_price_type:"",product_id:this.$route.query.id?this.$route.query.id:"",product_type:""},categoryList:[],merCateList:[],modals:!1,tabClickIndex:"",multipleSelection:[],productStatusList:[{label:"上架显示",value:1},{label:"下架",value:0},{label:"平台关闭",value:-1}],tempRule:{temp_id:[{required:!0,message:"请选择运费模板",trigger:"change"}]},commisionRule:{extension_one:[{required:!0,message:"请输入一级佣金",trigger:"change"}],extension_two:[{required:!0,message:"请输入二级佣金",trigger:"change"}]},importInfo:{},commisionForm:{extension_one:0,extension_two:0},svipForm:{svip_price_type:0},goodsId:"",previewKey:"",product_id:"",previewVisible:!1,dialogLabel:!1,dialogFreight:!1,dialogCommision:!1,dialogSvip:!1,dialogImport:!1,dialogImportImg:!1,is_audit:!1,deliveryType:[],deliveryList:[],labelForm:{},tempForm:{},isBatch:!1,open_svip:!1,product:"",merchantType:{type_code:""}}},mounted:function(){this.merchantType=this.$store.state.user.merchantType;var t=this.merchantType.type_name;"市级供应链"!==t?(this.product=0,this.tableFrom.product_type=""):(this.product=98,this.tableFrom.product_type=98),console.log(this.product),this.getLstFilterApi(),this.getCategorySelect(),this.getCategoryList(),this.getList(1),this.getLabelLst(),this.getTempLst(),this.productCon()},updated:function(){},methods:{tableRowClassName:function(t){var e=t.row,i=t.rowIndex;e.index=i},tabClick:function(t){this.tabClickIndex=t.index},inputBlur:function(t){var e=this;(!t.row.sort||t.row.sort<0)&&(t.row.sort=0),Object(r["kb"])(t.row.product_id,{sort:t.row.sort}).then((function(t){e.closeEdit()})).catch((function(t){}))},closeEdit:function(){this.tabClickIndex=null},handleSelectionChange:function(t){this.multipleSelection=t;var e=[];this.multipleSelection.map((function(t){e.push(t.product_id)})),this.product_ids=e},productCon:function(){var t=this;Object(r["ab"])().then((function(e){t.is_audit=e.data.is_audit,t.open_svip=1==e.data.mer_svip_status&&1==e.data.svip_switch_status,t.deliveryType=e.data.delivery_way.map(String),2==t.deliveryType.length?t.deliveryList=[{value:"1",name:"到店自提"},{value:"2",name:"快递配送"}]:1==t.deliveryType.length&&"1"==t.deliveryType[0]?t.deliveryList=[{value:"1",name:"到店自提"}]:t.deliveryList=[{value:"2",name:"快递配送"}]})).catch((function(e){t.$message.error(e.message)}))},getSuccess:function(){this.getLstFilterApi(),this.getList(1)},handleClose:function(){this.dialogLabel=!1},handleFreightClose:function(){this.dialogFreight=!1},onClose:function(){this.modals=!1},onCopy:function(){this.$router.push({path:this.roterPre+"/product/list/addProduct",query:{type:1}})},getLabelLst:function(){var t=this;Object(r["x"])().then((function(e){t.labelList=e.data})).catch((function(e){t.$message.error(e.message)}))},getTempLst:function(){var t=this;Object(r["Ab"])().then((function(e){t.tempList=e.data})).catch((function(e){t.$message.error(e.message)}))},onAuditFree:function(t){this.$refs.editAttr.getAttrDetail(t.product_id)},batchCommision:function(){if(0===this.multipleSelection.length)return this.$message.warning("请先选择商品");this.dialogCommision=!0},batchSvip:function(){if(0===this.multipleSelection.length)return this.$message.warning("请先选择商品");this.dialogSvip=!0},submitCommisionForm:function(t){var e=this;this.$refs[t].validate((function(t){t&&(e.commisionForm.ids=e.product_ids,Object(r["Y"])(e.commisionForm).then((function(t){var i=t.message;e.$message.success(i),e.getList(""),e.dialogCommision=!1})))}))},submitSvipForm:function(t){var e=this;this.svipForm.ids=this.product_ids,Object(r["Z"])(this.svipForm).then((function(t){var i=t.message;e.$message.success(i),e.getList(""),e.dialogSvip=!1}))},batchShelf:function(){var t=this;if(0===this.multipleSelection.length)return this.$message.warning("请先选择商品");var e={status:1,ids:this.product_ids};Object(r["o"])(e).then((function(e){t.$message.success(e.message),t.getLstFilterApi(),t.getList("")})).catch((function(e){t.$message.error(e.message)}))},batchOff:function(){var t=this;if(0===this.multipleSelection.length)return this.$message.warning("请先选择商品");var e={status:0,ids:this.product_ids};Object(r["o"])(e).then((function(e){t.$message.success(e.message),t.getLstFilterApi(),t.getList("")})).catch((function(e){t.$message.error(e.message)}))},batchLabel:function(){this.labelForm={mer_labels:[],ids:this.product_ids},this.isBatch=!0,this.dialogLabel=!0},batchFreight:function(){this.dialogFreight=!0},submitTempForm:function(t){var e=this;this.$refs[t].validate((function(t){t&&(e.tempForm.ids=e.product_ids,Object(r["p"])(e.tempForm).then((function(t){var i=t.message;e.$message.success(i),e.getList(""),e.dialogFreight=!1})))}))},handleRestore:function(t){var e=this;this.$modalSure("恢复商品").then((function(){Object(r["qb"])(t).then((function(t){e.$message.success(t.message),e.getLstFilterApi(),e.getList("")})).catch((function(t){e.$message.error(t.message)}))}))},handlePreview:function(t){console.log(t),console.log("123"),this.previewVisible=!0,this.goodsId=t,this.previewKey=""},getCategorySelect:function(){var t=this;Object(r["s"])().then((function(e){t.merCateList=e.data})).catch((function(e){t.$message.error(e.message)}))},getCategoryList:function(){var t=this;Object(r["r"])().then((function(e){t.categoryList=e.data})).catch((function(e){t.$message.error(e.message)}))},getLstFilterApi:function(){var t=this;Object(r["Q"])().then((function(e){t.headeNum=e.data})).catch((function(e){t.$message.error(e.message)}))},getList:function(t){var e=this;this.listLoading=!0,this.tableFrom.page=t||this.tableFrom.page,Object(r["Yb"])(this.tableFrom).then((function(t){e.tableData.data=t.data.list,e.tableData.total=t.data.count,e.listLoading=!1})).catch((function(t){e.listLoading=!1,e.$message.error(t.message)})),this.getLstFilterApi()},pageChange:function(t){this.tableFrom.page=t,this.getList("")},handleSizeChange:function(t){this.tableFrom.limit=t,this.getList("")},handleDelete:function(t,e){var i=this;this.$modalSure("5"!==this.tableFrom.type?"加入回收站":"删除该商品").then((function(){"5"===i.tableFrom.type?Object(r["v"])(t).then((function(t){var e=t.message;i.$message.success(e),i.getList(""),i.getLstFilterApi()})).catch((function(t){var e=t.message;i.$message.error(e)})):Object(r["fb"])(t).then((function(t){var e=t.message;i.$message.success(e),i.getList(""),i.getLstFilterApi()})).catch((function(t){var e=t.message;i.$message.error(e)}))}))},onEditLabel:function(t){if(this.dialogLabel=!0,this.product_id=t.product_id,t.mer_labels&&t.mer_labels.length){var e=t.mer_labels.map((function(t){return t.product_label_id}));this.labelForm={mer_labels:e}}else this.labelForm={mer_labels:[]}},submitForm:function(t){var e=this;this.$refs[t].validate((function(t){t&&(e.isBatch?Object(r["n"])(e.labelForm).then((function(t){var i=t.message;e.$message.success(i),e.getList(""),e.dialogLabel=!1,e.isBatch=!1})):Object(r["Vb"])(e.product_id,e.labelForm).then((function(t){var i=t.message;e.$message.success(i),e.getList(""),e.dialogLabel=!1})))}))},onchangeIsShow:function(t){var e=this;Object(r["Kb"])(t.product_id,t.is_show).then((function(t){var i=t.message;e.$message.success(i),e.getList(""),e.getLstFilterApi()})).catch((function(t){var i=t.message;e.$message.error(i)}))},importShort:function(){this.dialogImport=!0},importClose:function(){this.dialogImport=!1},importShortImg:function(){this.dialogImportImg=!0},importCloseImg:function(){this.dialogImportImg=!1},importXlsUpload:function(){var t=Object(o["a"])(Object(n["a"])().mark((function t(e){var i,s;return Object(n["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:console.log("上传",e),i=e.file,s=new FormData,s.append("file",i),Object(r["K"])(s).then((function(t){u["Message"].success(t.message)})).catch((function(t){u["Message"].error(t)}));case 5:case"end":return t.stop()}}),t)})));function e(e){return t.apply(this,arguments)}return e}(),importZipUpload:function(){var t=Object(o["a"])(Object(n["a"])().mark((function t(e){var i,s;return Object(n["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:console.log("上传",e),i=e.file,s=new FormData,s.append("file",i),Object(r["J"])(s).then((function(t){u["Message"].success(t.message)})).catch((function(t){u["Message"].error(t)}));case 5:case"end":return t.stop()}}),t)})));function e(e){return t.apply(this,arguments)}return e}()}},h=m,d=(i("4d5f"),i("2877")),p=Object(d["a"])(h,s,a,!1,null,"5d58d76d",null);e["default"]=p.exports}}]); \ No newline at end of file diff --git a/public/mer/js/chunk-01454a3c.ff2c918e.js b/public/mer/js/chunk-01454a3c.ff2c918e.js deleted file mode 100644 index 469d5cd1..00000000 --- a/public/mer/js/chunk-01454a3c.ff2c918e.js +++ /dev/null @@ -1 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-01454a3c"],{"4d5f":function(t,e,i){"use strict";i("66a4")},"66a4":function(t,e,i){},7897:function(t,e,i){"use strict";i.r(e);var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"divBox"},[i("el-card",{staticClass:"box-card"},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{data:t.tableData.data,size:"mini","row-class-name":t.tableRowClassName,"row-key":function(t){return t.product_id+""+Math.floor(1e4*Math.random())}},on:{"selection-change":t.handleSelectionChange,rowclick:function(e){return e.stopPropagation(),t.closeEdit(e)}}},[i("el-table-column",{attrs:{type:"expand"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("el-form",{staticClass:"demo-table-expand demo-table-expand1",attrs:{"label-position":"left",inline:""}},[i("el-form-item",{attrs:{label:"平台分类:"}},[i("span",[t._v(t._s(e.row.storeCategory?e.row.storeCategory.cate_name:"-"))])]),t._v(" "),i("el-form-item",{attrs:{label:"商品分类:"}},[e.row.merCateId.length?t._l(e.row.merCateId,(function(e,s){return i("span",{key:s,staticClass:"mr10"},[t._v(t._s(e.category.cate_name))])})):i("span",[t._v("-")])],2),t._v(" "),i("el-form-item",{attrs:{label:"品牌:"}},[i("span",{staticClass:"mr10"},[t._v(t._s(e.row.brand?e.row.brand.brand_name:"-"))])]),t._v(" "),i("el-form-item",{attrs:{label:"市场价格:"}},[i("span",[t._v(t._s(t._f("filterEmpty")(e.row.ot_price)))])]),t._v(" "),i("el-form-item",{attrs:{label:"成本价:"}},[i("span",[t._v(t._s(t._f("filterEmpty")(e.row.cost)))])]),t._v(" "),i("el-form-item",{attrs:{label:"收藏:"}},[i("span",[t._v(t._s(t._f("filterEmpty")(e.row.care_count)))])]),t._v(" "),"7"===t.tableFrom.type?i("el-form-item",{key:"1",attrs:{label:"未通过原因:"}},[i("span",[t._v(t._s(e.row.refusal))])]):t._e()],1)]}}])}),t._v(" "),i("el-table-column",{attrs:{prop:"product_id",label:"ID","min-width":"50"}}),t._v(" "),i("el-table-column",{attrs:{prop:"name",label:"商品名称","min-width":"200"}}),t._v(" "),i("el-table-column",{attrs:{prop:"content",label:"备注","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.content?i("span",{staticStyle:{color:"#efb32c"}},[t._v(t._s(e.row.content))]):i("span",[t._v("-")])]}}])}),t._v(" "),i("el-table-column",{attrs:{prop:"status",label:"商品状态","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(e){return[1==e.row.status?i("span",{staticStyle:{color:"#13ce66"}},[t._v("已导入")]):i("span",{staticStyle:{color:"#ff0018"}},[t._v("未导入")])]}}])}),t._v(" "),i("el-table-column",{attrs:{prop:"create_time",label:"创建时间","min-width":"150"}})],1),t._v(" "),i("div",{staticClass:"block"},[i("el-pagination",{attrs:{"page-sizes":[20,40,60,80],"page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"total, sizes, prev, pager, next, jumper",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1)],1)},a=[],n=i("c7eb"),o=(i("96cf"),i("1da1")),r=(i("7f7f"),i("55dd"),i("c4c8")),c=(i("c24f"),i("83d6")),l=i("bbcc"),u=i("5c96"),m={name:"ProductList",data:function(){return{props:{emitPath:!1},roterPre:c["roterPre"],BASE_URL:l["a"].https,headeNum:[],labelList:[],tempList:[],listLoading:!0,tableData:{data:[],total:0},tableFrom:{page:1,limit:20,mer_cate_id:"",cate_id:"",keyword:"",temp_id:"",type:this.$route.query.type?this.$route.query.type:"1",is_gift_bag:"",us_status:"",mer_labels:"",svip_price_type:"",product_id:this.$route.query.id?this.$route.query.id:"",product_type:""},categoryList:[],merCateList:[],modals:!1,tabClickIndex:"",multipleSelection:[],productStatusList:[{label:"上架显示",value:1},{label:"下架",value:0},{label:"平台关闭",value:-1}],tempRule:{temp_id:[{required:!0,message:"请选择运费模板",trigger:"change"}]},commisionRule:{extension_one:[{required:!0,message:"请输入一级佣金",trigger:"change"}],extension_two:[{required:!0,message:"请输入二级佣金",trigger:"change"}]},importInfo:{},commisionForm:{extension_one:0,extension_two:0},svipForm:{svip_price_type:0},goodsId:"",previewKey:"",product_id:"",previewVisible:!1,dialogLabel:!1,dialogFreight:!1,dialogCommision:!1,dialogSvip:!1,dialogImport:!1,dialogImportImg:!1,is_audit:!1,deliveryType:[],deliveryList:[],labelForm:{},tempForm:{},isBatch:!1,open_svip:!1,product:"",merchantType:{type_code:""}}},mounted:function(){this.merchantType=this.$store.state.user.merchantType;var t=this.merchantType.type_name;"市级供应链"!==t?(this.product=0,this.tableFrom.product_type=""):(this.product=98,this.tableFrom.product_type=98),console.log(this.product),this.getLstFilterApi(),this.getCategorySelect(),this.getCategoryList(),this.getList(1),this.getLabelLst(),this.getTempLst(),this.productCon()},updated:function(){},methods:{tableRowClassName:function(t){var e=t.row,i=t.rowIndex;e.index=i},tabClick:function(t){this.tabClickIndex=t.index},inputBlur:function(t){var e=this;(!t.row.sort||t.row.sort<0)&&(t.row.sort=0),Object(r["ib"])(t.row.product_id,{sort:t.row.sort}).then((function(t){e.closeEdit()})).catch((function(t){}))},closeEdit:function(){this.tabClickIndex=null},handleSelectionChange:function(t){this.multipleSelection=t;var e=[];this.multipleSelection.map((function(t){e.push(t.product_id)})),this.product_ids=e},productCon:function(){var t=this;Object(r["Y"])().then((function(e){t.is_audit=e.data.is_audit,t.open_svip=1==e.data.mer_svip_status&&1==e.data.svip_switch_status,t.deliveryType=e.data.delivery_way.map(String),2==t.deliveryType.length?t.deliveryList=[{value:"1",name:"到店自提"},{value:"2",name:"快递配送"}]:1==t.deliveryType.length&&"1"==t.deliveryType[0]?t.deliveryList=[{value:"1",name:"到店自提"}]:t.deliveryList=[{value:"2",name:"快递配送"}]})).catch((function(e){t.$message.error(e.message)}))},getSuccess:function(){this.getLstFilterApi(),this.getList(1)},handleClose:function(){this.dialogLabel=!1},handleFreightClose:function(){this.dialogFreight=!1},onClose:function(){this.modals=!1},onCopy:function(){this.$router.push({path:this.roterPre+"/product/list/addProduct",query:{type:1}})},getLabelLst:function(){var t=this;Object(r["v"])().then((function(e){t.labelList=e.data})).catch((function(e){t.$message.error(e.message)}))},getTempLst:function(){var t=this;Object(r["yb"])().then((function(e){t.tempList=e.data})).catch((function(e){t.$message.error(e.message)}))},onAuditFree:function(t){this.$refs.editAttr.getAttrDetail(t.product_id)},batchCommision:function(){if(0===this.multipleSelection.length)return this.$message.warning("请先选择商品");this.dialogCommision=!0},batchSvip:function(){if(0===this.multipleSelection.length)return this.$message.warning("请先选择商品");this.dialogSvip=!0},submitCommisionForm:function(t){var e=this;this.$refs[t].validate((function(t){t&&(e.commisionForm.ids=e.product_ids,Object(r["W"])(e.commisionForm).then((function(t){var i=t.message;e.$message.success(i),e.getList(""),e.dialogCommision=!1})))}))},submitSvipForm:function(t){var e=this;this.svipForm.ids=this.product_ids,Object(r["X"])(this.svipForm).then((function(t){var i=t.message;e.$message.success(i),e.getList(""),e.dialogSvip=!1}))},batchShelf:function(){var t=this;if(0===this.multipleSelection.length)return this.$message.warning("请先选择商品");var e={status:1,ids:this.product_ids};Object(r["n"])(e).then((function(e){t.$message.success(e.message),t.getLstFilterApi(),t.getList("")})).catch((function(e){t.$message.error(e.message)}))},batchOff:function(){var t=this;if(0===this.multipleSelection.length)return this.$message.warning("请先选择商品");var e={status:0,ids:this.product_ids};Object(r["n"])(e).then((function(e){t.$message.success(e.message),t.getLstFilterApi(),t.getList("")})).catch((function(e){t.$message.error(e.message)}))},batchLabel:function(){this.labelForm={mer_labels:[],ids:this.product_ids},this.isBatch=!0,this.dialogLabel=!0},batchFreight:function(){this.dialogFreight=!0},submitTempForm:function(t){var e=this;this.$refs[t].validate((function(t){t&&(e.tempForm.ids=e.product_ids,Object(r["o"])(e.tempForm).then((function(t){var i=t.message;e.$message.success(i),e.getList(""),e.dialogFreight=!1})))}))},handleRestore:function(t){var e=this;this.$modalSure("恢复商品").then((function(){Object(r["ob"])(t).then((function(t){e.$message.success(t.message),e.getLstFilterApi(),e.getList("")})).catch((function(t){e.$message.error(t.message)}))}))},handlePreview:function(t){console.log(t),console.log("123"),this.previewVisible=!0,this.goodsId=t,this.previewKey=""},getCategorySelect:function(){var t=this;Object(r["r"])().then((function(e){t.merCateList=e.data})).catch((function(e){t.$message.error(e.message)}))},getCategoryList:function(){var t=this;Object(r["q"])().then((function(e){t.categoryList=e.data})).catch((function(e){t.$message.error(e.message)}))},getLstFilterApi:function(){var t=this;Object(r["O"])().then((function(e){t.headeNum=e.data})).catch((function(e){t.$message.error(e.message)}))},getList:function(t){var e=this;this.listLoading=!0,this.tableFrom.page=t||this.tableFrom.page,Object(r["Wb"])(this.tableFrom).then((function(t){e.tableData.data=t.data.list,e.tableData.total=t.data.count,e.listLoading=!1})).catch((function(t){e.listLoading=!1,e.$message.error(t.message)})),this.getLstFilterApi()},pageChange:function(t){this.tableFrom.page=t,this.getList("")},handleSizeChange:function(t){this.tableFrom.limit=t,this.getList("")},handleDelete:function(t,e){var i=this;this.$modalSure("5"!==this.tableFrom.type?"加入回收站":"删除该商品").then((function(){"5"===i.tableFrom.type?Object(r["t"])(t).then((function(t){var e=t.message;i.$message.success(e),i.getList(""),i.getLstFilterApi()})).catch((function(t){var e=t.message;i.$message.error(e)})):Object(r["db"])(t).then((function(t){var e=t.message;i.$message.success(e),i.getList(""),i.getLstFilterApi()})).catch((function(t){var e=t.message;i.$message.error(e)}))}))},onEditLabel:function(t){if(this.dialogLabel=!0,this.product_id=t.product_id,t.mer_labels&&t.mer_labels.length){var e=t.mer_labels.map((function(t){return t.product_label_id}));this.labelForm={mer_labels:e}}else this.labelForm={mer_labels:[]}},submitForm:function(t){var e=this;this.$refs[t].validate((function(t){t&&(e.isBatch?Object(r["m"])(e.labelForm).then((function(t){var i=t.message;e.$message.success(i),e.getList(""),e.dialogLabel=!1,e.isBatch=!1})):Object(r["Tb"])(e.product_id,e.labelForm).then((function(t){var i=t.message;e.$message.success(i),e.getList(""),e.dialogLabel=!1})))}))},onchangeIsShow:function(t){var e=this;Object(r["Ib"])(t.product_id,t.is_show).then((function(t){var i=t.message;e.$message.success(i),e.getList(""),e.getLstFilterApi()})).catch((function(t){var i=t.message;e.$message.error(i)}))},importShort:function(){this.dialogImport=!0},importClose:function(){this.dialogImport=!1},importShortImg:function(){this.dialogImportImg=!0},importCloseImg:function(){this.dialogImportImg=!1},importXlsUpload:function(){var t=Object(o["a"])(Object(n["a"])().mark((function t(e){var i,s;return Object(n["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:console.log("上传",e),i=e.file,s=new FormData,s.append("file",i),Object(r["I"])(s).then((function(t){u["Message"].success(t.message)})).catch((function(t){u["Message"].error(t)}));case 5:case"end":return t.stop()}}),t)})));function e(e){return t.apply(this,arguments)}return e}(),importZipUpload:function(){var t=Object(o["a"])(Object(n["a"])().mark((function t(e){var i,s;return Object(n["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:console.log("上传",e),i=e.file,s=new FormData,s.append("file",i),Object(r["H"])(s).then((function(t){u["Message"].success(t.message)})).catch((function(t){u["Message"].error(t)}));case 5:case"end":return t.stop()}}),t)})));function e(e){return t.apply(this,arguments)}return e}()}},d=m,h=(i("4d5f"),i("2877")),p=Object(h["a"])(d,s,a,!1,null,"5d58d76d",null);e["default"]=p.exports}}]); \ No newline at end of file diff --git a/public/mer/js/chunk-031de214.5f89adf5.js b/public/mer/js/chunk-031de214.8ba8df18.js similarity index 69% rename from public/mer/js/chunk-031de214.5f89adf5.js rename to public/mer/js/chunk-031de214.8ba8df18.js index f37de515..cfb37089 100644 --- a/public/mer/js/chunk-031de214.5f89adf5.js +++ b/public/mer/js/chunk-031de214.8ba8df18.js @@ -1 +1 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-031de214"],{"1d60":function(e,t,a){},3910:function(e,t,a){"use strict";a("901b")},"504c":function(e,t,a){var i=a("9e1e"),r=a("0d58"),l=a("6821"),n=a("52a7").f;e.exports=function(e){return function(t){var a,s=l(t),o=r(s),c=o.length,d=0,u=[];while(c>d)a=o[d++],i&&!n.call(s,a)||u.push(e?[a,s[a]]:s[a]);return u}}},7719:function(e,t,a){"use strict";var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return e.dialogVisible?a("el-dialog",{attrs:{title:"商品信息",visible:e.dialogVisible,width:"1200px"},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("div",{staticClass:"divBox"},[a("div",{staticClass:"header clearfix"},[a("div",{staticClass:"container"},[a("el-form",{attrs:{size:"small",inline:"","label-width":"100px"}},[a("el-form-item",{staticClass:"width100",attrs:{label:"商品分类:"}},[a("el-select",{staticClass:"filter-item selWidth mr20",attrs:{placeholder:"请选择",clearable:""},on:{change:function(t){return e.getList()}},model:{value:e.tableFrom.mer_cate_id,callback:function(t){e.$set(e.tableFrom,"mer_cate_id",t)},expression:"tableFrom.mer_cate_id"}},e._l(e.merCateList,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),a("el-form-item",{staticClass:"width100",attrs:{label:"商品搜索:"}},[a("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入商品名称,关键字,产品编号",clearable:""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.getList(t)}},model:{value:e.tableFrom.keyword,callback:function(t){e.$set(e.tableFrom,"keyword",t)},expression:"tableFrom.keyword"}},[a("el-button",{staticClass:"el-button-solt",attrs:{slot:"append",icon:"el-icon-search"},on:{click:e.getList},slot:"append"})],1)],1)],1)],1)]),e._v(" "),e.resellShow?a("el-alert",{attrs:{title:"注:添加为预售商品后,原普通商品会下架;如该商品已开启其它营销活动,请勿选择!",type:"warning","show-icon":""}}):e._e(),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],staticStyle:{width:"100%","margin-top":"10px"},attrs:{data:e.tableData.data,size:"mini"}},[a("el-table-column",{attrs:{width:"55"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-radio",{attrs:{label:t.row.product_id},nativeOn:{change:function(a){return e.getTemplateRow(t.row)}},model:{value:e.templateRadio,callback:function(t){e.templateRadio=t},expression:"templateRadio"}},[e._v(" ")])]}}],null,!1,3465899556)}),e._v(" "),a("el-table-column",{attrs:{prop:"product_id",label:"ID","min-width":"50"}}),e._v(" "),a("el-table-column",{attrs:{label:"商品图","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(e){return[a("div",{staticClass:"demo-image__preview"},[a("el-image",{staticStyle:{width:"36px",height:"36px"},attrs:{src:e.row.image,"preview-src-list":[e.row.image]}})],1)]}}],null,!1,2331550732)}),e._v(" "),a("el-table-column",{attrs:{prop:"store_name",label:"商品名称","min-width":"200"}}),e._v(" "),a("el-table-column",{attrs:{prop:"stock",label:"库存","min-width":"80"}})],1),e._v(" "),a("div",{staticClass:"block mb20"},[a("el-pagination",{attrs:{"page-sizes":[20,40,60,80],"page-size":e.tableFrom.limit,"current-page":e.tableFrom.page,layout:"total, sizes, prev, pager, next, jumper",total:e.tableData.total},on:{"size-change":e.handleSizeChange,"current-change":e.pageChange}})],1)],1)]):e._e()},r=[],l=a("c4c8"),n=a("83d6"),s={name:"GoodsList",props:{resellShow:{type:Boolean,default:!1}},data:function(){return{dialogVisible:!1,templateRadio:0,merCateList:[],roterPre:n["roterPre"],listLoading:!0,tableData:{data:[],total:0},tableFrom:{page:1,limit:20,cate_id:"",store_name:"",keyword:"",is_gift_bag:0,status:1},multipleSelection:{},checked:[]}},mounted:function(){var e=this;this.getList(),this.getCategorySelect(),window.addEventListener("unload",(function(t){return e.unloadHandler(t)}))},methods:{getTemplateRow:function(e){this.multipleSelection={src:e.image,id:e.product_id},this.dialogVisible=!1,this.$emit("getProduct",this.multipleSelection)},getCategorySelect:function(){var e=this;Object(l["r"])().then((function(t){e.merCateList=t.data})).catch((function(t){e.$message.error(t.message)}))},getList:function(){var e=this;this.listLoading=!0,Object(l["gb"])(this.tableFrom).then((function(t){e.tableData.data=t.data.list,e.tableData.total=t.data.count,e.listLoading=!1})).catch((function(t){e.listLoading=!1,e.$message.error(t.message)}))},pageChange:function(e){this.tableFrom.page=e,this.getList()},handleSizeChange:function(e){this.tableFrom.limit=e,this.getList()}}},o=s,c=(a("3910"),a("2877")),d=Object(c["a"])(o,i,r,!1,null,"5e74a40e",null);t["a"]=d.exports},8615:function(e,t,a){var i=a("5ca1"),r=a("504c")(!1);i(i.S,"Object",{values:function(e){return r(e)}})},"901b":function(e,t,a){},9891:function(e,t,a){"use strict";a("1d60")},"9de6":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"divBox"},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("el-steps",{attrs:{active:e.currentTab,"align-center":"","finish-status":"success"}},[a("el-step",{attrs:{title:"选择预售商品"}}),e._v(" "),a("el-step",{attrs:{title:"填写基础信息"}}),e._v(" "),a("el-step",{attrs:{title:"修改商品详情"}})],1)],1),e._v(" "),a("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.fullscreenLoading,expression:"fullscreenLoading"}],ref:"formValidate",staticClass:"formValidate mt20",attrs:{rules:e.ruleValidate,model:e.formValidate,"label-width":"120px"},nativeOn:{submit:function(e){e.preventDefault()}}},[a("div",{directives:[{name:"show",rawName:"v-show",value:0===e.currentTab,expression:"currentTab === 0"}],staticStyle:{overflow:"hidden"}},[a("el-row",{attrs:{gutter:24}},[a("el-col",e._b({},"el-col",e.grid2,!1),[a("el-form-item",{attrs:{label:"选择商品:",prop:"image"}},[a("div",{staticClass:"upLoadPicBox",on:{click:function(t){return e.add()}}},[e.formValidate.image?a("div",{staticClass:"pictrue"},[a("img",{attrs:{src:e.formValidate.image}})]):a("div",{staticClass:"upLoad"},[a("i",{staticClass:"el-icon-camera cameraIconfont"})])])])],1)],1)],1),e._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:1===e.currentTab,expression:"currentTab === 1"}]},[a("el-row",{attrs:{gutter:24}},[a("el-col",e._b({},"el-col",e.grid2,!1),[a("el-form-item",{attrs:{label:"商品主图:",prop:"image"}},[a("div",{staticClass:"upLoadPicBox",on:{click:function(t){return e.modalPicTap("1")}}},[e.formValidate.image?a("div",{staticClass:"pictrue"},[a("img",{attrs:{src:e.formValidate.image}})]):a("div",{staticClass:"upLoad"},[a("i",{staticClass:"el-icon-camera cameraIconfont"})])])])],1),e._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"商品轮播图:",prop:"slider_image"}},[a("div",{staticClass:"acea-row"},[e._l(e.formValidate.slider_image,(function(t,i){return a("div",{key:i,staticClass:"pictrue",attrs:{draggable:"false"},on:{dragstart:function(a){return e.handleDragStart(a,t)},dragover:function(a){return a.preventDefault(),e.handleDragOver(a,t)},dragenter:function(a){return e.handleDragEnter(a,t)},dragend:function(a){return e.handleDragEnd(a,t)}}},[a("img",{attrs:{src:t}}),e._v(" "),a("i",{staticClass:"el-icon-error btndel",on:{click:function(t){return e.handleRemove(i)}}})])})),e._v(" "),e.formValidate.slider_image.length<10?a("div",{staticClass:"upLoadPicBox",on:{click:function(t){return e.modalPicTap("2")}}},[a("div",{staticClass:"upLoad"},[a("i",{staticClass:"el-icon-camera cameraIconfont"})])]):e._e()],2)])],1),e._v(" "),a("el-col",{staticClass:"sp100"},[a("el-form-item",{attrs:{label:"商品名称:",prop:"store_name"}},[a("el-input",{attrs:{placeholder:"请输入商品名称"},model:{value:e.formValidate.store_name,callback:function(t){e.$set(e.formValidate,"store_name",t)},expression:"formValidate.store_name"}})],1)],1)],1),e._v(" "),a("el-row",{attrs:{gutter:24}},[a("el-col",{staticClass:"sp100"},[a("el-form-item",{attrs:{label:"预售活动简介:",prop:"store_info"}},[a("el-input",{attrs:{type:"textarea",rows:3,placeholder:"请输入秒杀活动简介"},model:{value:e.formValidate.store_info,callback:function(t){e.$set(e.formValidate,"store_info",t)},expression:"formValidate.store_info"}})],1)],1)],1),e._v(" "),a("el-row",{attrs:{gutter:24}},[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"预售设置:"}},[a("el-radio-group",{on:{change:e.wayChange},model:{value:e.formValidate.presell_type,callback:function(t){e.$set(e.formValidate,"presell_type",t)},expression:"formValidate.presell_type"}},[a("el-radio",{staticClass:"radio",attrs:{label:1}},[e._v("全款预售")]),e._v(" "),a("el-radio",{attrs:{label:2}},[e._v("定金预售")])],1)],1)],1)],1),e._v(" "),a("el-row",{attrs:{gutter:24}},[a("el-col",e._b({},"el-col",e.grid2,!1),[a("el-form-item",{attrs:{label:"预售活动日期:",required:""}},[a("el-date-picker",{attrs:{type:"datetimerange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期",align:"right"},on:{change:e.onchangeTime},model:{value:e.timeVal,callback:function(t){e.timeVal=t},expression:"timeVal"}})],1)],1),e._v(" "),2===e.formValidate.presell_type?a("el-col",e._b({},"el-col",e.grid2,!1),[a("el-form-item",{attrs:{label:"尾款支付日期:",required:""}},[a("el-date-picker",{attrs:{type:"datetimerange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期",align:"right"},on:{change:e.onchangeTime2},model:{value:e.timeVal2,callback:function(t){e.timeVal2=t},expression:"timeVal2"}})],1)],1):e._e(),e._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"发货时间:",prop:"delivery_type"}},[a("div",{staticClass:"acea-row"},[1===e.formValidate.presell_type?a("el-select",{staticClass:"selWidthd1 mr20",attrs:{placeholder:"请选择"},model:{value:e.formValidate.delivery_type,callback:function(t){e.$set(e.formValidate,"delivery_type",t)},expression:"formValidate.delivery_type"}},e._l(e.deliveryTime,(function(e){return a("el-option",{key:e.date_id,attrs:{label:e.name,value:e.date_id}})})),1):a("span",{staticStyle:{"padding-right":"10px"}},[e._v("尾款支付后")]),e._v(" "),a("el-input-number",{staticClass:"mr20",staticStyle:{width:"150px"},attrs:{min:1,placeholder:"请输入天数"},model:{value:e.formValidate.delivery_day,callback:function(t){e.$set(e.formValidate,"delivery_day",t)},expression:"formValidate.delivery_day"}}),e._v(" 天之内\n ")],1)])],1),e._v(" "),a("el-col",e._b({},"el-col",e.grid2,!1),[a("el-form-item",{attrs:{label:"限购:"}},[a("el-input-number",{attrs:{min:0,placeholder:"请输入数量"},model:{value:e.formValidate.pay_count,callback:function(t){e.$set(e.formValidate,"pay_count",t)},expression:"formValidate.pay_count"}}),e._v(" 默认“0” ,为不限制购买数量\n ")],1)],1),e._v(" "),a("el-col",e._b({},"el-col",e.grid2,!1),[a("el-form-item",{attrs:{label:"活动状态:"}},[a("el-radio-group",{model:{value:e.formValidate.is_show,callback:function(t){e.$set(e.formValidate,"is_show",t)},expression:"formValidate.is_show"}},[a("el-radio",{staticClass:"radio",attrs:{label:0}},[e._v("关闭")]),e._v(" "),a("el-radio",{attrs:{label:1}},[e._v("开启")])],1)],1)],1),e._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"排序:"}},[a("el-input-number",{staticStyle:{width:"200px"},attrs:{placeholder:"请输入排序序号"},model:{value:e.formValidate.sort,callback:function(t){e.$set(e.formValidate,"sort",t)},expression:"formValidate.sort"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"送货方式:",prop:"delivery_way"}},[a("div",{staticClass:"acea-row"},[a("el-checkbox-group",{model:{value:e.formValidate.delivery_way,callback:function(t){e.$set(e.formValidate,"delivery_way",t)},expression:"formValidate.delivery_way"}},e._l(e.deliveryList,(function(t){return a("el-checkbox",{key:t.value,attrs:{label:t.value}},[e._v("\n "+e._s(t.name)+"\n ")])})),1)],1)])],1),e._v(" "),2==e.formValidate.delivery_way.length||1==e.formValidate.delivery_way.length&&2==e.formValidate.delivery_way[0]?a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"是否包邮:"}},[a("el-radio-group",{model:{value:e.formValidate.delivery_free,callback:function(t){e.$set(e.formValidate,"delivery_free",t)},expression:"formValidate.delivery_free"}},[a("el-radio",{staticClass:"radio",attrs:{label:0}},[e._v("否")]),e._v(" "),a("el-radio",{attrs:{label:1}},[e._v("是")])],1)],1)],1):e._e(),e._v(" "),0==e.formValidate.delivery_free&&(2==e.formValidate.delivery_way.length||1==e.formValidate.delivery_way.length&&2==e.formValidate.delivery_way[0])?a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"运费模板:",prop:"temp_id"}},[a("div",{staticClass:"acea-row"},[a("el-select",{staticClass:"selWidthd mr20",attrs:{placeholder:"请选择"},model:{value:e.formValidate.temp_id,callback:function(t){e.$set(e.formValidate,"temp_id",t)},expression:"formValidate.temp_id"}},e._l(e.shippingList,(function(e){return a("el-option",{key:e.shipping_template_id,attrs:{label:e.name,value:e.shipping_template_id}})})),1),e._v(" "),a("el-button",{staticClass:"mr15",attrs:{size:"small"},on:{click:e.addTem}},[e._v("添加运费模板")])],1)])],1):e._e(),e._v(" "),e.labelList.length?a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"商品标签:"}},[a("el-select",{staticClass:"selWidthd",attrs:{multiple:"",placeholder:"请选择"},model:{value:e.formValidate.mer_labels,callback:function(t){e.$set(e.formValidate,"mer_labels",t)},expression:"formValidate.mer_labels"}},e._l(e.labelList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1):e._e(),e._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"平台保障服务:"}},[a("div",{staticClass:"acea-row"},[a("el-select",{staticClass:"selWidthd mr20",attrs:{placeholder:"请选择",clearable:""},model:{value:e.formValidate.guarantee_template_id,callback:function(t){e.$set(e.formValidate,"guarantee_template_id",t)},expression:"formValidate.guarantee_template_id"}},e._l(e.guaranteeList,(function(e){return a("el-option",{key:e.guarantee_template_id,attrs:{label:e.template_name,value:e.guarantee_template_id}})})),1),e._v(" "),a("el-button",{staticClass:"mr15",attrs:{size:"small"},on:{click:e.addServiceTem}},[e._v("添加服务说明模板")])],1)])],1)],1),e._v(" "),a("el-row",{attrs:{gutter:24}}),e._v(" "),a("el-row",{attrs:{gutter:24}},[a("el-col",{attrs:{xl:24,lg:24,md:24,sm:24,xs:24}},[0===e.formValidate.spec_type?a("el-form-item",[a("el-table",{staticClass:"tabNumWidth",attrs:{data:e.OneattrValue,border:"",size:"mini"}},[a("el-table-column",{attrs:{align:"center",label:"图片","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"upLoadPicBox",on:{click:function(t){return e.modalPicTap("1","dan","pi")}}},[e.formValidate.image?a("div",{staticClass:"pictrue tabPic"},[a("img",{attrs:{src:t.row.image}})]):a("div",{staticClass:"upLoad tabPic"},[a("i",{staticClass:"el-icon-camera cameraIconfont"})])])]}}],null,!1,1357914119)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"市场价","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row["price"]))])]}}],null,!1,1703924291)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"预售价","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{staticClass:"priceBox",attrs:{type:"number",min:0,max:t.row["price"]},on:{blur:function(a){return e.limitPrice(t.row)}},model:{value:t.row["presell_price"],callback:function(a){e.$set(t.row,"presell_price",e._n(a))},expression:"scope.row['presell_price']"}})]}}],null,!1,1536945194)}),e._v(" "),2===e.formValidate.presell_type?a("el-table-column",{attrs:{align:"center",label:"预售定金","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{staticClass:"priceBox",attrs:{type:"number",min:0,max:.2*t.row["price"]},on:{blur:function(a){return e.restrictedRange(t.row)}},model:{value:t.row["down_price"],callback:function(a){e.$set(t.row,"down_price",a)},expression:"scope.row['down_price']"}})]}}],null,!1,4113557029)}):e._e(),e._v(" "),2===e.formValidate.presell_type?a("el-table-column",{attrs:{align:"center",label:"尾款","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row["presell_price"]&&t.row["down_price"]?(t.row["presell_price"]-t.row["down_price"]).toFixed(2):t.row["presell_price"]))])]}}],null,!1,1815888757)}):e._e(),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"成本价","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row["cost"]))])]}}],null,!1,4236060069)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"库存","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row["old_stock"]))])]}}],null,!1,1655454038)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"限量","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{staticClass:"priceBox",attrs:{type:"number",max:t.row["old_stock"],min:0},on:{change:function(a){return e.limitInventory(t.row)}},model:{value:t.row["stock"],callback:function(a){e.$set(t.row,"stock",e._n(a))},expression:"scope.row['stock']"}})]}}],null,!1,3327557396)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"商品编号","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row["bar_code"]))])]}}],null,!1,2057585133)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"重量(KG)","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row["weight"]))])]}}],null,!1,1649766542)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"体积(m³)","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row["volume"]))])]}}],null,!1,2118841126)})],1)],1):e._e()],1)],1),e._v(" "),a("el-row",{attrs:{gutter:24}},[1===e.formValidate.spec_type?a("el-form-item",{staticClass:"labeltop",attrs:{label:"规格列表:"}},[a("el-table",{ref:"multipleSelection",attrs:{data:e.ManyAttrValue,"tooltip-effect":"dark","row-key":function(e){return e.id}},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{align:"center",type:"selection","reserve-selection":!0,"min-width":"50"}}),e._v(" "),e.manyTabDate?e._l(e.manyTabDate,(function(t,i){return a("el-table-column",{key:i,attrs:{align:"center",label:e.manyTabTit[i].title,"min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{staticClass:"priceBox",domProps:{textContent:e._s(t.row[i])}})]}}],null,!0)})})):e._e(),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"图片","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"upLoadPicBox",on:{click:function(a){return e.modalPicTap("1","duo",t.$index)}}},[t.row.image?a("div",{staticClass:"pictrue tabPic"},[a("img",{attrs:{src:t.row.image}})]):a("div",{staticClass:"upLoad tabPic"},[a("i",{staticClass:"el-icon-camera cameraIconfont"})])])]}}],null,!1,3478746955)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"市场价","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row["price"]))])]}}],null,!1,1703924291)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"预售价","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{staticClass:"priceBox",attrs:{type:"number",min:0,max:t.row["price"]},on:{blur:function(a){return e.limitPrice(t.row)}},model:{value:t.row["presell_price"],callback:function(a){e.$set(t.row,"presell_price",e._n(a))},expression:" scope.row['presell_price']"}})]}}],null,!1,15636458)}),e._v(" "),2===e.formValidate.presell_type?a("el-table-column",{attrs:{align:"center",label:"预售定金","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{staticClass:"priceBox",attrs:{type:"number",min:0,max:.2*t.row["price"]},model:{value:t.row["down_price"],callback:function(a){e.$set(t.row,"down_price",a)},expression:"scope.row['down_price']"}})]}}],null,!1,905095597)}):e._e(),e._v(" "),2===e.formValidate.presell_type?a("el-table-column",{attrs:{align:"center",label:"尾款","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row["presell_price"]&&t.row["down_price"]?t.row["presell_price"]-t.row["down_price"]:t.row["presell_price"]))])]}}],null,!1,3261998532)}):e._e(),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"成本价","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row["cost"]))])]}}],null,!1,4236060069)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"库存","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row["old_stock"]))])]}}],null,!1,1655454038)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"限量","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{staticClass:"priceBox",attrs:{type:"number",min:0,max:t.row["old_stock"]},model:{value:t.row["stock"],callback:function(a){e.$set(t.row,"stock",e._n(a))},expression:"scope.row['stock']"}})]}}],null,!1,4025255182)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"商品编号","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row["bar_code"]))])]}}],null,!1,2057585133)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"重量(KG)","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row["weight"]))])]}}],null,!1,1649766542)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"体积(m³)","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row["volume"]))])]}}],null,!1,2118841126)})],2)],1):e._e()],1)],1),e._v(" "),a("el-row",{directives:[{name:"show",rawName:"v-show",value:2===e.currentTab,expression:"currentTab === 2"}]},[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"商品详情:"}},[a("ueditorFrom",{attrs:{content:e.formValidate.content},model:{value:e.formValidate.content,callback:function(t){e.$set(e.formValidate,"content",t)},expression:"formValidate.content"}})],1)],1)],1),e._v(" "),a("el-form-item",{staticStyle:{"margin-top":"30px"}},[a("el-button",{directives:[{name:"show",rawName:"v-show",value:e.currentTab>0,expression:"currentTab>0"}],staticClass:"submission",attrs:{type:"primary",size:"small"},on:{click:e.handleSubmitUp}},[e._v("上一步")]),e._v(" "),a("el-button",{directives:[{name:"show",rawName:"v-show",value:0==e.currentTab,expression:"currentTab == 0"}],staticClass:"submission",attrs:{type:"primary",size:"small"},on:{click:function(t){return e.handleSubmitNest1("formValidate")}}},[e._v("下一步")]),e._v(" "),a("el-button",{directives:[{name:"show",rawName:"v-show",value:1==e.currentTab,expression:"currentTab == 1"}],staticClass:"submission",attrs:{type:"primary",size:"small"},on:{click:function(t){return e.handleSubmitNest2("formValidate")}}},[e._v("下一步")]),e._v(" "),a("el-button",{directives:[{name:"show",rawName:"v-show",value:2===e.currentTab,expression:"currentTab===2"}],staticClass:"submission",attrs:{loading:e.loading,type:"primary",size:"small"},on:{click:function(t){return e.handleSubmit("formValidate")}}},[e._v("提交")]),e._v(" "),a("el-button",{directives:[{name:"show",rawName:"v-show",value:2===e.currentTab,expression:"currentTab===2"}],staticClass:"submission",attrs:{loading:e.loading,type:"primary",size:"small"},on:{click:function(t){return e.handlePreview()}}},[e._v("预览")])],1)],1)],1),e._v(" "),a("goods-list",{ref:"goodsList",attrs:{resellShow:!0},on:{getProduct:e.getProduct}}),e._v(" "),a("guarantee-service",{ref:"serviceGuarantee",on:{"get-list":e.getGuaranteeList}}),e._v(" "),e.previewVisible?a("div",[a("div",{staticClass:"bg",on:{click:function(t){t.stopPropagation(),e.previewVisible=!1}}}),e._v(" "),e.previewVisible?a("preview-box",{ref:"previewBox",attrs:{"product-type":2,"preview-key":e.previewKey}}):e._e()],1):e._e()],1)},r=[],l=a("2909"),n=(a("7f7f"),a("c7eb")),s=(a("c5f6"),a("96cf"),a("1da1")),o=(a("8615"),a("55dd"),a("ac6a"),a("6762"),a("2fdb"),a("ef0d")),c=a("6625"),d=a.n(c),u=a("7719"),m=a("ae43"),p=a("8c98"),_=a("c4c8"),f=a("83d6"),g={product_id:"",image:"",slider_image:[],store_name:"",store_info:"",start_day:"",end_day:"",start_time:"",end_time:"",is_open_recommend:1,is_open_state:1,is_show:1,presell_type:1,keyword:"",brand_id:"",cate_id:"",mer_cate_id:[],pay_count:0,integral:0,sort:0,is_good:0,temp_id:"",guarantee_template_id:"",preSale_date:"",finalPayment_date:"",delivery_type:1,delivery_day:10,delivery_way:[],mer_labels:[],delivery_free:0,attrValue:[{image:"",price:null,down_price:null,presell_price:null,cost:null,ot_price:null,old_stock:null,stock:null,bar_code:"",weight:null,volume:null}],attr:[],extension_type:0,content:"",spec_type:0,is_gift_bag:0},h=[{name:"店铺推荐",value:"is_good"}],v={name:"PresellProductAdd",components:{ueditorFrom:o["a"],goodsList:u["a"],VueUeditorWrap:d.a,guaranteeService:m["a"],previewBox:p["a"]},data:function(){return{pickerOptions:{disabledDate:function(e){return e.getTime()>Date.now()}},timeVal:"",timeVal2:"",dialogVisible:!1,product_id:"",multipleSelection:[],optionsCate:{value:"store_category_id",label:"cate_name",children:"children",emitPath:!1},roterPre:f["roterPre"],selectRule:"",checkboxGroup:[],recommend:h,tabs:[],fullscreenLoading:!1,props:{emitPath:!1},propsMer:{emitPath:!1,multiple:!0},active:0,OneattrValue:[Object.assign({},g.attrValue[0])],ManyAttrValue:[Object.assign({},g.attrValue[0])],ruleList:[],merCateList:[],categoryList:[],shippingList:[],guaranteeList:[],deliveryList:[],labelList:[],deliveryTime:[{name:"支付成功",date_id:1},{name:"预售结束",date_id:2}],spikeTimeList:[],BrandList:[],formValidate:Object.assign({},g),maxStock:"",addNum:0,singleSpecification:{},multipleSpecifications:[],formDynamics:{template_name:"",template_value:[]},manyTabTit:{},manyTabDate:{},grid2:{lg:10,md:12,sm:24,xs:24},formDynamic:{attrsName:"",attrsVal:""},isBtn:!1,manyFormValidate:[],images:[],currentTab:0,isChoice:"",grid:{xl:8,lg:8,md:12,sm:24,xs:24},loading:!1,ruleValidate:{store_name:[{required:!0,message:"请输入商品名称",trigger:"blur"}],timeVal:[{required:!0,message:"请选择预售活动日期",trigger:"blur"}],timeVal2:[{required:!0,message:"请输入尾款支付日期",trigger:"blur"}],mer_cate_id:[{required:!0,message:"请选择商户分类",trigger:"change",type:"array",min:"1"}],cate_id:[{required:!0,message:"请选择平台分类",trigger:"change"}],keyword:[{required:!0,message:"请输入商品关键字",trigger:"blur"}],pay_count:[{required:!0,message:"请输入限购量",trigger:"blur"}],store_info:[{required:!0,message:"请输入秒杀活动简介",trigger:"blur"}],temp_id:[{required:!0,message:"请选择运费模板",trigger:"change"}],delivery_type:[{required:!0,message:"请选择发货时间",trigger:"change"}],image:[{required:!0,message:"请上传商品图",trigger:"change"}],slider_image:[{required:!0,message:"请上传商品轮播图",type:"array",trigger:"change"}],delivery_way:[{required:!0,message:"请选择送货方式",trigger:"change"}]},attrInfo:{},keyNum:0,extensionStatus:0,previewVisible:!1,previewKey:"",deliveryType:[]}},computed:{attrValue:function(){var e=Object.assign({},g.attrValue[0]);return delete e.image,e},oneFormBatch:function(){var e=[Object.assign({},g.attrValue[0])];return delete e[0].bar_code,e}},watch:{"formValidate.attr":{handler:function(e){1===this.formValidate.spec_type&&this.watCh(e)},immediate:!1,deep:!0}},created:function(){this.tempRoute=Object.assign({},this.$route),this.$route.params.id&&1===this.formValidate.spec_type&&this.$watch("formValidate.attr",this.watCh)},mounted:function(){var e=this;this.formValidate.slider_image=[],this.$route.params.id?(this.setTagsViewTitle(),this.getInfo(this.$route.params.id),this.currentTab=1):this.formValidate.attr.map((function(t){e.$set(t,"inputVisible",!1)})),this.getCategorySelect(),this.getCategoryList(),this.getBrandListApi(),this.getShippingList(),this.getGuaranteeList(),this.productCon(),this.getLabelLst(),this.$store.dispatch("settings/setEdit",!0)},methods:{getLabelLst:function(){var e=this;Object(_["v"])().then((function(t){e.labelList=t.data})).catch((function(t){e.$message.error(t.message)}))},productCon:function(){var e=this;Object(_["Y"])().then((function(t){e.deliveryType=t.data.delivery_way.map(String),2==e.deliveryType.length?e.deliveryList=[{value:"1",name:"到店自提"},{value:"2",name:"快递配送"}]:1==e.deliveryType.length&&"1"==e.deliveryType[0]?e.deliveryList=[{value:"1",name:"到店自提"}]:e.deliveryList=[{value:"2",name:"快递配送"}]})).catch((function(t){e.$message.error(t.message)}))},wayChange:function(e){this.formValidate.presell_type=e},restrictedRange:function(e){parseFloat(e.down_price)>.2*e.presell_price&&(e.down_price=.2*e.presell_price)},limitInventory:function(e){e.stock-e.old_stock>0&&(e.stock=e.old_stock)},limitPrice:function(e){e.presell_price-e.price>0&&(e.presell_price=e.price)},add:function(){this.$refs.goodsList.dialogVisible=!0},getProduct:function(e){this.formValidate.image=e.src,this.product_id=e.id,console.log(this.product_id)},handleSelectionChange:function(e){this.multipleSelection=e},onchangeTime:function(e){this.timeVal=e,console.log(this.moment(e[0]).format("YYYY-MM-DD HH:mm:ss")),this.formValidate.start_time=e?this.moment(e[0]).format("YYYY-MM-DD HH:mm:ss"):"",this.formValidate.end_time=e?this.moment(e[1]).format("YYYY-MM-DD HH:mm:ss"):""},onchangeTime2:function(e){this.timeVal2=e,this.formValidate.final_start_time=e?this.moment(e[0]).format("YYYY-MM-DD HH:mm:ss"):"",this.formValidate.final_end_time=e?this.moment(e[1]).format("YYYY-MM-DD HH:mm:ss"):""},setTagsViewTitle:function(){var e="编辑商品",t=Object.assign({},this.tempRoute,{title:"".concat(e,"-").concat(this.$route.params.id)});this.$store.dispatch("tagsView/updateVisitedView",t)},onChangeGroup:function(){this.checkboxGroup.includes("is_good")?this.formValidate.is_good=1:this.formValidate.is_good=0},watCh:function(e){var t=this,a={},i={};this.formValidate.attr.forEach((function(e,t){a["value"+t]={title:e.value},i["value"+t]=""})),this.ManyAttrValue.forEach((function(e,a){var i=Object.values(e.detail).sort().join("/");t.attrInfo[i]&&(t.ManyAttrValue[a]=t.attrInfo[i])})),this.attrInfo={},this.ManyAttrValue.forEach((function(e){t.attrInfo[Object.values(e.detail).sort().join("/")]=e})),this.manyTabTit=a,this.manyTabDate=i,console.log(this.manyTabTit),console.log(this.manyTabDate)},addTem:function(){var e=this;this.$modalTemplates(0,(function(){e.getShippingList()}))},addServiceTem:function(){this.$refs.serviceGuarantee.add()},getCategorySelect:function(){var e=this;Object(_["r"])().then((function(t){e.merCateList=t.data})).catch((function(t){e.$message.error(t.message)}))},getCategoryList:function(){var e=this;Object(_["q"])().then((function(t){e.categoryList=t.data})).catch((function(t){e.$message.error(t.message)}))},getBrandListApi:function(){var e=this;Object(_["p"])().then((function(t){e.BrandList=t.data})).catch((function(t){e.$message.error(t.message)}))},productGetRule:function(){var e=this;Object(_["Pb"])().then((function(t){e.ruleList=t.data}))},getShippingList:function(){var e=this;Object(_["yb"])().then((function(t){e.shippingList=t.data}))},getGuaranteeList:function(){var e=this;Object(_["B"])().then((function(t){e.guaranteeList=t.data}))},getInfo:function(e){var t=this;this.fullscreenLoading=!0,this.$route.params.id?Object(_["Q"])(e).then(function(){var e=Object(s["a"])(Object(n["a"])().mark((function e(a){var i,r;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:i=a.data,t.formValidate={product_id:i.product_id,guarantee_template_id:i.product.guarantee_template_id,image:i.product.image,slider_image:i.product.slider_image,store_name:i.store_name,store_info:i.store_info,presell_type:i.presell_type?i.presell_type:1,delivery_type:i.delivery_type?i.delivery_type:1,delivery_day:i.delivery_day?i.delivery_day:10,start_time:i.start_time?i.start_time:"",end_time:i.end_time?i.end_time:"",final_start_time:i.final_start_time?i.final_start_time:"",final_end_time:i.final_end_time?i.final_end_time:"",brand_id:i.product.brand_id,cate_id:i.cate_id?i.cate_id:"",mer_cate_id:i.mer_cate_id,pay_count:i.pay_count,sort:i.product.sort,is_good:i.product.is_good,temp_id:i.product.temp_id,is_show:i.is_show,attr:i.product.attr,extension_type:i.extension_type,content:i.product.content.content,spec_type:i.product.spec_type,is_gift_bag:i.product.is_gift_bag,delivery_way:i.product.delivery_way&&i.product.delivery_way.length?i.product.delivery_way.map(String):t.deliveryType,delivery_free:i.delivery_free?i.delivery_free:0,mer_labels:i.mer_labels&&i.mer_labels.length?i.mer_labels.map(Number):[]},0===t.formValidate.spec_type?(t.OneattrValue=i.product.attrValue,t.OneattrValue.forEach((function(e,a){t.attrInfo[Object.values(e.detail).sort().join("/")]=e,t.$set(t.OneattrValue[a],"down_price",e.presellSku?e.presellSku.down_price:0),t.$set(t.OneattrValue[a],"presell_price",e.presellSku?e.presellSku.presell_price:e.price),t.$set(t.OneattrValue[a],"stock",e.presellSku?e.presellSku.stock:e.old_stock)})),t.singleSpecification=JSON.parse(JSON.stringify(i.product.attrValue)),t.formValidate.attrValue=t.OneattrValue):(r=[],t.ManyAttrValue=i.product.attrValue,t.ManyAttrValue.forEach((function(e,a){t.attrInfo[Object.values(e.detail).sort().join("/")]=e,t.$set(t.ManyAttrValue[a],"down_price",e.presellSku?e.presellSku.down_price:0),t.$set(t.ManyAttrValue[a],"presell_price",e.presellSku?e.presellSku.presell_price:e.price),t.$set(t.ManyAttrValue[a],"stock",e.presellSku?e.presellSku.stock:e.old_stock),e.presellSku&&(t.multipleSpecifications=JSON.parse(JSON.stringify(i.product.attrValue)),r.push(e))})),t.multipleSpecifications=JSON.parse(JSON.stringify(r)),t.$nextTick((function(){r.forEach((function(e){t.$refs.multipleSelection.toggleRowSelection(e,!0)}))})),t.formValidate.attrValue=t.multipleSelection),console.log(t.ManyAttrValue),t.fullscreenLoading=!1,t.timeVal=[new Date(t.formValidate.start_time),new Date(t.formValidate.end_time)],t.timeVal2=[new Date(t.formValidate.final_start_time),new Date(t.formValidate.final_end_time)],t.$store.dispatch("settings/setEdit",!0);case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.fullscreenLoading=!1,t.$message.error(e.message)})):Object(_["eb"])(e).then(function(){var e=Object(s["a"])(Object(n["a"])().mark((function e(a){var i;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:i=a.data,t.formValidate={product_id:i.product_id,image:i.image,slider_image:i.slider_image,store_name:i.store_name,store_info:i.store_info,presell_type:1,delivery_type:i.delivery_type?i.delivery_type:1,delivery_day:i.delivery_day?i.delivery_day:10,start_time:"",end_time:"",final_start_time:"",final_end_time:"",brand_id:i.brand_id,cate_id:i.cate_id,mer_cate_id:i.mer_cate_id,pay_count:i.pay_count?i.paycount:0,sort:i.sort,is_good:i.is_good,temp_id:i.temp_id,guarantee_template_id:i.guarantee_template_id,is_show:i.is_show,attr:i.attr,extension_type:i.extension_type,content:i.content,spec_type:i.spec_type,is_gift_bag:i.is_gift_bag,delivery_way:i.delivery_way&&i.delivery_way.length?i.delivery_way.map(String):t.deliveryType,delivery_free:i.delivery_free?i.delivery_free:0,mer_labels:i.mer_labels&&i.mer_labels.length?i.mer_labels.map(Number):[]},t.timeVal=t.timeVal2=[],0===t.formValidate.spec_type?(t.OneattrValue=i.attrValue,t.OneattrValue.forEach((function(e,a){t.$set(t.OneattrValue[a],"down_price",0),t.$set(t.OneattrValue[a],"presell_price",t.OneattrValue[a].price)})),t.singleSpecification=JSON.parse(JSON.stringify(i.attrValue)),t.formValidate.attrValue=t.OneattrValue):(t.ManyAttrValue=i.attrValue,t.multipleSpecifications=JSON.parse(JSON.stringify(i.attrValue)),t.ManyAttrValue.forEach((function(e,a){t.attrInfo[Object.values(e.detail).sort().join("/")]=e,t.$set(t.ManyAttrValue[a],"down_price",0),t.$set(t.ManyAttrValue[a],"presell_price",t.ManyAttrValue[a].price)})),t.multipleSelection=i.attrValue,t.$nextTick((function(){i.attrValue.forEach((function(e){t.$refs.multipleSelection.toggleRowSelection(e,!0)}))}))),1===t.formValidate.is_good&&t.checkboxGroup.push("is_good"),t.fullscreenLoading=!1;case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.fullscreenLoading=!1,t.$message.error(e.message)}))},handleRemove:function(e){this.formValidate.slider_image.splice(e,1)},modalPicTap:function(e,t,a){var i=this,r=[];this.$modalUpload((function(l){"1"!==e||t||(i.formValidate.image=l[0],i.OneattrValue[0].image=l[0]),"2"!==e||t||l.map((function(e){r.push(e.attachment_src),i.formValidate.slider_image.push(e),i.formValidate.slider_image.length>10&&(i.formValidate.slider_image.length=10)})),"1"===e&&"dan"===t&&(i.OneattrValue[0].image=l[0]),"1"===e&&"duo"===t&&(i.ManyAttrValue[a].image=l[0]),"1"===e&&"pi"===t&&(i.oneFormBatch[0].image=l[0])}),e)},handleSubmitUp:function(){this.currentTab--<0&&(this.currentTab=0)},handleSubmitNest1:function(e){this.formValidate.image?(this.currentTab++,this.$route.params.id||this.getInfo(this.product_id)):this.$message.warning("请选择商品!")},handleSubmitNest2:function(e){var t=this;1===this.formValidate.spec_type?this.formValidate.attrValue=this.multipleSelection:this.formValidate.attrValue=this.OneattrValue,console.log(this.formValidate),this.$refs[e].validate((function(e){if(e){if(!t.formValidate.store_name||!t.formValidate.store_info||!t.formValidate.image||!t.formValidate.slider_image)return void t.$message.warning("请填写完整商品信息!");if(!t.formValidate.attrValue||0===t.formValidate.attrValue.length)return void t.$message.warning("请选择商品规格!");if(!t.formValidate.delivery_day)return void t.$message.warning("请填写发货时间!");t.currentTab++}}))},handleSubmit:function(e){var t=this;this.$refs[e].validate((function(a){a?(t.$store.dispatch("settings/setEdit",!1),t.fullscreenLoading=!0,t.loading=!0,delete t.formValidate.preSale_date,delete t.formValidate.finalPayment_date,console.log(t.formValidate),t.$route.params.id?(console.log(t.ManyAttrValue),1===t.formValidate.presell_type&&(t.formValidate.final_start_time=t.formValidate.final_end_time=""),Object(_["S"])(t.$route.params.id,t.formValidate).then(function(){var a=Object(s["a"])(Object(n["a"])().mark((function a(i){return Object(n["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:t.fullscreenLoading=!1,t.$message.success(i.message),t.$router.push({path:t.roterPre+"/marketing/presell/list"}),t.$refs[e].resetFields(),t.formValidate.slider_image=[],t.loading=!1;case 6:case"end":return a.stop()}}),a)})));return function(e){return a.apply(this,arguments)}}()).catch((function(e){t.fullscreenLoading=!1,t.loading=!1,t.$message.error(e.message)}))):Object(_["P"])(t.formValidate).then(function(){var a=Object(s["a"])(Object(n["a"])().mark((function a(i){return Object(n["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:t.fullscreenLoading=!1,t.$message.success(i.message),t.$router.push({path:t.roterPre+"/marketing/presell/list"}),t.$refs[e].resetFields(),t.formValidate.slider_image=[],t.loading=!1;case 6:case"end":return a.stop()}}),a)})));return function(e){return a.apply(this,arguments)}}()).catch((function(e){t.fullscreenLoading=!1,t.loading=!1,t.$message.error(e.message)}))):t.formValidate.store_name&&t.formValidate.store_info&&t.formValidate.image&&t.formValidate.slider_image||t.$message.warning("请填写完整商品信息!")}))},handlePreview:function(){var e=this;delete this.formValidate.preSale_date,delete this.formValidate.finalPayment_date,1===this.formValidate.presell_type&&(this.formValidate.final_start_time=this.formValidate.final_end_time=""),Object(_["U"])(this.formValidate).then(function(){var t=Object(s["a"])(Object(n["a"])().mark((function t(a){return Object(n["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.previewVisible=!0,e.previewKey=a.data.preview_key;case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.$message.error(t.message)}))},validate:function(e,t,a){!1===t&&this.$message.warning(a)},handleDragStart:function(e,t){this.dragging=t},handleDragEnd:function(e,t){this.dragging=null},handleDragOver:function(e){e.dataTransfer.dropEffect="move"},handleDragEnter:function(e,t){if(e.dataTransfer.effectAllowed="move",t!==this.dragging){var a=Object(l["a"])(this.formValidate.slider_image),i=a.indexOf(this.dragging),r=a.indexOf(t);a.splice.apply(a,[r,0].concat(Object(l["a"])(a.splice(i,1)))),this.formValidate.slider_image=a}}}},b=v,y=(a("9891"),a("2877")),w=Object(y["a"])(b,i,r,!1,null,"48d0963f",null);t["default"]=w.exports}}]); \ No newline at end of file +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-031de214"],{"1d60":function(e,t,a){},3910:function(e,t,a){"use strict";a("901b")},"504c":function(e,t,a){var i=a("9e1e"),r=a("0d58"),l=a("6821"),n=a("52a7").f;e.exports=function(e){return function(t){var a,s=l(t),o=r(s),c=o.length,d=0,u=[];while(c>d)a=o[d++],i&&!n.call(s,a)||u.push(e?[a,s[a]]:s[a]);return u}}},7719:function(e,t,a){"use strict";var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return e.dialogVisible?a("el-dialog",{attrs:{title:"商品信息",visible:e.dialogVisible,width:"1200px"},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("div",{staticClass:"divBox"},[a("div",{staticClass:"header clearfix"},[a("div",{staticClass:"container"},[a("el-form",{attrs:{size:"small",inline:"","label-width":"100px"}},[a("el-form-item",{staticClass:"width100",attrs:{label:"商品分类:"}},[a("el-select",{staticClass:"filter-item selWidth mr20",attrs:{placeholder:"请选择",clearable:""},on:{change:function(t){return e.getList()}},model:{value:e.tableFrom.mer_cate_id,callback:function(t){e.$set(e.tableFrom,"mer_cate_id",t)},expression:"tableFrom.mer_cate_id"}},e._l(e.merCateList,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),a("el-form-item",{staticClass:"width100",attrs:{label:"商品搜索:"}},[a("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入商品名称,关键字,产品编号",clearable:""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.getList(t)}},model:{value:e.tableFrom.keyword,callback:function(t){e.$set(e.tableFrom,"keyword",t)},expression:"tableFrom.keyword"}},[a("el-button",{staticClass:"el-button-solt",attrs:{slot:"append",icon:"el-icon-search"},on:{click:e.getList},slot:"append"})],1)],1)],1)],1)]),e._v(" "),e.resellShow?a("el-alert",{attrs:{title:"注:添加为预售商品后,原普通商品会下架;如该商品已开启其它营销活动,请勿选择!",type:"warning","show-icon":""}}):e._e(),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],staticStyle:{width:"100%","margin-top":"10px"},attrs:{data:e.tableData.data,size:"mini"}},[a("el-table-column",{attrs:{width:"55"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-radio",{attrs:{label:t.row.product_id},nativeOn:{change:function(a){return e.getTemplateRow(t.row)}},model:{value:e.templateRadio,callback:function(t){e.templateRadio=t},expression:"templateRadio"}},[e._v(" ")])]}}],null,!1,3465899556)}),e._v(" "),a("el-table-column",{attrs:{prop:"product_id",label:"ID","min-width":"50"}}),e._v(" "),a("el-table-column",{attrs:{label:"商品图","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(e){return[a("div",{staticClass:"demo-image__preview"},[a("el-image",{staticStyle:{width:"36px",height:"36px"},attrs:{src:e.row.image,"preview-src-list":[e.row.image]}})],1)]}}],null,!1,2331550732)}),e._v(" "),a("el-table-column",{attrs:{prop:"store_name",label:"商品名称","min-width":"200"}}),e._v(" "),a("el-table-column",{attrs:{prop:"stock",label:"库存","min-width":"80"}})],1),e._v(" "),a("div",{staticClass:"block mb20"},[a("el-pagination",{attrs:{"page-sizes":[20,40,60,80],"page-size":e.tableFrom.limit,"current-page":e.tableFrom.page,layout:"total, sizes, prev, pager, next, jumper",total:e.tableData.total},on:{"size-change":e.handleSizeChange,"current-change":e.pageChange}})],1)],1)]):e._e()},r=[],l=a("c4c8"),n=a("83d6"),s={name:"GoodsList",props:{resellShow:{type:Boolean,default:!1}},data:function(){return{dialogVisible:!1,templateRadio:0,merCateList:[],roterPre:n["roterPre"],listLoading:!0,tableData:{data:[],total:0},tableFrom:{page:1,limit:20,cate_id:"",store_name:"",keyword:"",is_gift_bag:0,status:1},multipleSelection:{},checked:[]}},mounted:function(){var e=this;this.getList(),this.getCategorySelect(),window.addEventListener("unload",(function(t){return e.unloadHandler(t)}))},methods:{getTemplateRow:function(e){this.multipleSelection={src:e.image,id:e.product_id},this.dialogVisible=!1,this.$emit("getProduct",this.multipleSelection)},getCategorySelect:function(){var e=this;Object(l["s"])().then((function(t){e.merCateList=t.data})).catch((function(t){e.$message.error(t.message)}))},getList:function(){var e=this;this.listLoading=!0,Object(l["ib"])(this.tableFrom).then((function(t){e.tableData.data=t.data.list,e.tableData.total=t.data.count,e.listLoading=!1})).catch((function(t){e.listLoading=!1,e.$message.error(t.message)}))},pageChange:function(e){this.tableFrom.page=e,this.getList()},handleSizeChange:function(e){this.tableFrom.limit=e,this.getList()}}},o=s,c=(a("3910"),a("2877")),d=Object(c["a"])(o,i,r,!1,null,"5e74a40e",null);t["a"]=d.exports},8615:function(e,t,a){var i=a("5ca1"),r=a("504c")(!1);i(i.S,"Object",{values:function(e){return r(e)}})},"901b":function(e,t,a){},9891:function(e,t,a){"use strict";a("1d60")},"9de6":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"divBox"},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("el-steps",{attrs:{active:e.currentTab,"align-center":"","finish-status":"success"}},[a("el-step",{attrs:{title:"选择预售商品"}}),e._v(" "),a("el-step",{attrs:{title:"填写基础信息"}}),e._v(" "),a("el-step",{attrs:{title:"修改商品详情"}})],1)],1),e._v(" "),a("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.fullscreenLoading,expression:"fullscreenLoading"}],ref:"formValidate",staticClass:"formValidate mt20",attrs:{rules:e.ruleValidate,model:e.formValidate,"label-width":"120px"},nativeOn:{submit:function(e){e.preventDefault()}}},[a("div",{directives:[{name:"show",rawName:"v-show",value:0===e.currentTab,expression:"currentTab === 0"}],staticStyle:{overflow:"hidden"}},[a("el-row",{attrs:{gutter:24}},[a("el-col",e._b({},"el-col",e.grid2,!1),[a("el-form-item",{attrs:{label:"选择商品:",prop:"image"}},[a("div",{staticClass:"upLoadPicBox",on:{click:function(t){return e.add()}}},[e.formValidate.image?a("div",{staticClass:"pictrue"},[a("img",{attrs:{src:e.formValidate.image}})]):a("div",{staticClass:"upLoad"},[a("i",{staticClass:"el-icon-camera cameraIconfont"})])])])],1)],1)],1),e._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:1===e.currentTab,expression:"currentTab === 1"}]},[a("el-row",{attrs:{gutter:24}},[a("el-col",e._b({},"el-col",e.grid2,!1),[a("el-form-item",{attrs:{label:"商品主图:",prop:"image"}},[a("div",{staticClass:"upLoadPicBox",on:{click:function(t){return e.modalPicTap("1")}}},[e.formValidate.image?a("div",{staticClass:"pictrue"},[a("img",{attrs:{src:e.formValidate.image}})]):a("div",{staticClass:"upLoad"},[a("i",{staticClass:"el-icon-camera cameraIconfont"})])])])],1),e._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"商品轮播图:",prop:"slider_image"}},[a("div",{staticClass:"acea-row"},[e._l(e.formValidate.slider_image,(function(t,i){return a("div",{key:i,staticClass:"pictrue",attrs:{draggable:"false"},on:{dragstart:function(a){return e.handleDragStart(a,t)},dragover:function(a){return a.preventDefault(),e.handleDragOver(a,t)},dragenter:function(a){return e.handleDragEnter(a,t)},dragend:function(a){return e.handleDragEnd(a,t)}}},[a("img",{attrs:{src:t}}),e._v(" "),a("i",{staticClass:"el-icon-error btndel",on:{click:function(t){return e.handleRemove(i)}}})])})),e._v(" "),e.formValidate.slider_image.length<10?a("div",{staticClass:"upLoadPicBox",on:{click:function(t){return e.modalPicTap("2")}}},[a("div",{staticClass:"upLoad"},[a("i",{staticClass:"el-icon-camera cameraIconfont"})])]):e._e()],2)])],1),e._v(" "),a("el-col",{staticClass:"sp100"},[a("el-form-item",{attrs:{label:"商品名称:",prop:"store_name"}},[a("el-input",{attrs:{placeholder:"请输入商品名称"},model:{value:e.formValidate.store_name,callback:function(t){e.$set(e.formValidate,"store_name",t)},expression:"formValidate.store_name"}})],1)],1)],1),e._v(" "),a("el-row",{attrs:{gutter:24}},[a("el-col",{staticClass:"sp100"},[a("el-form-item",{attrs:{label:"预售活动简介:",prop:"store_info"}},[a("el-input",{attrs:{type:"textarea",rows:3,placeholder:"请输入秒杀活动简介"},model:{value:e.formValidate.store_info,callback:function(t){e.$set(e.formValidate,"store_info",t)},expression:"formValidate.store_info"}})],1)],1)],1),e._v(" "),a("el-row",{attrs:{gutter:24}},[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"预售设置:"}},[a("el-radio-group",{on:{change:e.wayChange},model:{value:e.formValidate.presell_type,callback:function(t){e.$set(e.formValidate,"presell_type",t)},expression:"formValidate.presell_type"}},[a("el-radio",{staticClass:"radio",attrs:{label:1}},[e._v("全款预售")]),e._v(" "),a("el-radio",{attrs:{label:2}},[e._v("定金预售")])],1)],1)],1)],1),e._v(" "),a("el-row",{attrs:{gutter:24}},[a("el-col",e._b({},"el-col",e.grid2,!1),[a("el-form-item",{attrs:{label:"预售活动日期:",required:""}},[a("el-date-picker",{attrs:{type:"datetimerange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期",align:"right"},on:{change:e.onchangeTime},model:{value:e.timeVal,callback:function(t){e.timeVal=t},expression:"timeVal"}})],1)],1),e._v(" "),2===e.formValidate.presell_type?a("el-col",e._b({},"el-col",e.grid2,!1),[a("el-form-item",{attrs:{label:"尾款支付日期:",required:""}},[a("el-date-picker",{attrs:{type:"datetimerange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期",align:"right"},on:{change:e.onchangeTime2},model:{value:e.timeVal2,callback:function(t){e.timeVal2=t},expression:"timeVal2"}})],1)],1):e._e(),e._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"发货时间:",prop:"delivery_type"}},[a("div",{staticClass:"acea-row"},[1===e.formValidate.presell_type?a("el-select",{staticClass:"selWidthd1 mr20",attrs:{placeholder:"请选择"},model:{value:e.formValidate.delivery_type,callback:function(t){e.$set(e.formValidate,"delivery_type",t)},expression:"formValidate.delivery_type"}},e._l(e.deliveryTime,(function(e){return a("el-option",{key:e.date_id,attrs:{label:e.name,value:e.date_id}})})),1):a("span",{staticStyle:{"padding-right":"10px"}},[e._v("尾款支付后")]),e._v(" "),a("el-input-number",{staticClass:"mr20",staticStyle:{width:"150px"},attrs:{min:1,placeholder:"请输入天数"},model:{value:e.formValidate.delivery_day,callback:function(t){e.$set(e.formValidate,"delivery_day",t)},expression:"formValidate.delivery_day"}}),e._v(" 天之内\n ")],1)])],1),e._v(" "),a("el-col",e._b({},"el-col",e.grid2,!1),[a("el-form-item",{attrs:{label:"限购:"}},[a("el-input-number",{attrs:{min:0,placeholder:"请输入数量"},model:{value:e.formValidate.pay_count,callback:function(t){e.$set(e.formValidate,"pay_count",t)},expression:"formValidate.pay_count"}}),e._v(" 默认“0” ,为不限制购买数量\n ")],1)],1),e._v(" "),a("el-col",e._b({},"el-col",e.grid2,!1),[a("el-form-item",{attrs:{label:"活动状态:"}},[a("el-radio-group",{model:{value:e.formValidate.is_show,callback:function(t){e.$set(e.formValidate,"is_show",t)},expression:"formValidate.is_show"}},[a("el-radio",{staticClass:"radio",attrs:{label:0}},[e._v("关闭")]),e._v(" "),a("el-radio",{attrs:{label:1}},[e._v("开启")])],1)],1)],1),e._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"排序:"}},[a("el-input-number",{staticStyle:{width:"200px"},attrs:{placeholder:"请输入排序序号"},model:{value:e.formValidate.sort,callback:function(t){e.$set(e.formValidate,"sort",t)},expression:"formValidate.sort"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"送货方式:",prop:"delivery_way"}},[a("div",{staticClass:"acea-row"},[a("el-checkbox-group",{model:{value:e.formValidate.delivery_way,callback:function(t){e.$set(e.formValidate,"delivery_way",t)},expression:"formValidate.delivery_way"}},e._l(e.deliveryList,(function(t){return a("el-checkbox",{key:t.value,attrs:{label:t.value}},[e._v("\n "+e._s(t.name)+"\n ")])})),1)],1)])],1),e._v(" "),2==e.formValidate.delivery_way.length||1==e.formValidate.delivery_way.length&&2==e.formValidate.delivery_way[0]?a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"是否包邮:"}},[a("el-radio-group",{model:{value:e.formValidate.delivery_free,callback:function(t){e.$set(e.formValidate,"delivery_free",t)},expression:"formValidate.delivery_free"}},[a("el-radio",{staticClass:"radio",attrs:{label:0}},[e._v("否")]),e._v(" "),a("el-radio",{attrs:{label:1}},[e._v("是")])],1)],1)],1):e._e(),e._v(" "),0==e.formValidate.delivery_free&&(2==e.formValidate.delivery_way.length||1==e.formValidate.delivery_way.length&&2==e.formValidate.delivery_way[0])?a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"运费模板:",prop:"temp_id"}},[a("div",{staticClass:"acea-row"},[a("el-select",{staticClass:"selWidthd mr20",attrs:{placeholder:"请选择"},model:{value:e.formValidate.temp_id,callback:function(t){e.$set(e.formValidate,"temp_id",t)},expression:"formValidate.temp_id"}},e._l(e.shippingList,(function(e){return a("el-option",{key:e.shipping_template_id,attrs:{label:e.name,value:e.shipping_template_id}})})),1),e._v(" "),a("el-button",{staticClass:"mr15",attrs:{size:"small"},on:{click:e.addTem}},[e._v("添加运费模板")])],1)])],1):e._e(),e._v(" "),e.labelList.length?a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"商品标签:"}},[a("el-select",{staticClass:"selWidthd",attrs:{multiple:"",placeholder:"请选择"},model:{value:e.formValidate.mer_labels,callback:function(t){e.$set(e.formValidate,"mer_labels",t)},expression:"formValidate.mer_labels"}},e._l(e.labelList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1):e._e(),e._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"平台保障服务:"}},[a("div",{staticClass:"acea-row"},[a("el-select",{staticClass:"selWidthd mr20",attrs:{placeholder:"请选择",clearable:""},model:{value:e.formValidate.guarantee_template_id,callback:function(t){e.$set(e.formValidate,"guarantee_template_id",t)},expression:"formValidate.guarantee_template_id"}},e._l(e.guaranteeList,(function(e){return a("el-option",{key:e.guarantee_template_id,attrs:{label:e.template_name,value:e.guarantee_template_id}})})),1),e._v(" "),a("el-button",{staticClass:"mr15",attrs:{size:"small"},on:{click:e.addServiceTem}},[e._v("添加服务说明模板")])],1)])],1)],1),e._v(" "),a("el-row",{attrs:{gutter:24}}),e._v(" "),a("el-row",{attrs:{gutter:24}},[a("el-col",{attrs:{xl:24,lg:24,md:24,sm:24,xs:24}},[0===e.formValidate.spec_type?a("el-form-item",[a("el-table",{staticClass:"tabNumWidth",attrs:{data:e.OneattrValue,border:"",size:"mini"}},[a("el-table-column",{attrs:{align:"center",label:"图片","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"upLoadPicBox",on:{click:function(t){return e.modalPicTap("1","dan","pi")}}},[e.formValidate.image?a("div",{staticClass:"pictrue tabPic"},[a("img",{attrs:{src:t.row.image}})]):a("div",{staticClass:"upLoad tabPic"},[a("i",{staticClass:"el-icon-camera cameraIconfont"})])])]}}],null,!1,1357914119)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"市场价","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row["price"]))])]}}],null,!1,1703924291)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"预售价","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{staticClass:"priceBox",attrs:{type:"number",min:0,max:t.row["price"]},on:{blur:function(a){return e.limitPrice(t.row)}},model:{value:t.row["presell_price"],callback:function(a){e.$set(t.row,"presell_price",e._n(a))},expression:"scope.row['presell_price']"}})]}}],null,!1,1536945194)}),e._v(" "),2===e.formValidate.presell_type?a("el-table-column",{attrs:{align:"center",label:"预售定金","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{staticClass:"priceBox",attrs:{type:"number",min:0,max:.2*t.row["price"]},on:{blur:function(a){return e.restrictedRange(t.row)}},model:{value:t.row["down_price"],callback:function(a){e.$set(t.row,"down_price",a)},expression:"scope.row['down_price']"}})]}}],null,!1,4113557029)}):e._e(),e._v(" "),2===e.formValidate.presell_type?a("el-table-column",{attrs:{align:"center",label:"尾款","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row["presell_price"]&&t.row["down_price"]?(t.row["presell_price"]-t.row["down_price"]).toFixed(2):t.row["presell_price"]))])]}}],null,!1,1815888757)}):e._e(),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"成本价","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row["cost"]))])]}}],null,!1,4236060069)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"库存","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row["old_stock"]))])]}}],null,!1,1655454038)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"限量","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{staticClass:"priceBox",attrs:{type:"number",max:t.row["old_stock"],min:0},on:{change:function(a){return e.limitInventory(t.row)}},model:{value:t.row["stock"],callback:function(a){e.$set(t.row,"stock",e._n(a))},expression:"scope.row['stock']"}})]}}],null,!1,3327557396)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"商品编号","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row["bar_code"]))])]}}],null,!1,2057585133)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"重量(KG)","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row["weight"]))])]}}],null,!1,1649766542)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"体积(m³)","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row["volume"]))])]}}],null,!1,2118841126)})],1)],1):e._e()],1)],1),e._v(" "),a("el-row",{attrs:{gutter:24}},[1===e.formValidate.spec_type?a("el-form-item",{staticClass:"labeltop",attrs:{label:"规格列表:"}},[a("el-table",{ref:"multipleSelection",attrs:{data:e.ManyAttrValue,"tooltip-effect":"dark","row-key":function(e){return e.id}},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{align:"center",type:"selection","reserve-selection":!0,"min-width":"50"}}),e._v(" "),e.manyTabDate?e._l(e.manyTabDate,(function(t,i){return a("el-table-column",{key:i,attrs:{align:"center",label:e.manyTabTit[i].title,"min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{staticClass:"priceBox",domProps:{textContent:e._s(t.row[i])}})]}}],null,!0)})})):e._e(),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"图片","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"upLoadPicBox",on:{click:function(a){return e.modalPicTap("1","duo",t.$index)}}},[t.row.image?a("div",{staticClass:"pictrue tabPic"},[a("img",{attrs:{src:t.row.image}})]):a("div",{staticClass:"upLoad tabPic"},[a("i",{staticClass:"el-icon-camera cameraIconfont"})])])]}}],null,!1,3478746955)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"市场价","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row["price"]))])]}}],null,!1,1703924291)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"预售价","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{staticClass:"priceBox",attrs:{type:"number",min:0,max:t.row["price"]},on:{blur:function(a){return e.limitPrice(t.row)}},model:{value:t.row["presell_price"],callback:function(a){e.$set(t.row,"presell_price",e._n(a))},expression:" scope.row['presell_price']"}})]}}],null,!1,15636458)}),e._v(" "),2===e.formValidate.presell_type?a("el-table-column",{attrs:{align:"center",label:"预售定金","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{staticClass:"priceBox",attrs:{type:"number",min:0,max:.2*t.row["price"]},model:{value:t.row["down_price"],callback:function(a){e.$set(t.row,"down_price",a)},expression:"scope.row['down_price']"}})]}}],null,!1,905095597)}):e._e(),e._v(" "),2===e.formValidate.presell_type?a("el-table-column",{attrs:{align:"center",label:"尾款","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row["presell_price"]&&t.row["down_price"]?t.row["presell_price"]-t.row["down_price"]:t.row["presell_price"]))])]}}],null,!1,3261998532)}):e._e(),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"成本价","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row["cost"]))])]}}],null,!1,4236060069)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"库存","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row["old_stock"]))])]}}],null,!1,1655454038)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"限量","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{staticClass:"priceBox",attrs:{type:"number",min:0,max:t.row["old_stock"]},model:{value:t.row["stock"],callback:function(a){e.$set(t.row,"stock",e._n(a))},expression:"scope.row['stock']"}})]}}],null,!1,4025255182)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"商品编号","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row["bar_code"]))])]}}],null,!1,2057585133)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"重量(KG)","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row["weight"]))])]}}],null,!1,1649766542)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"体积(m³)","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row["volume"]))])]}}],null,!1,2118841126)})],2)],1):e._e()],1)],1),e._v(" "),a("el-row",{directives:[{name:"show",rawName:"v-show",value:2===e.currentTab,expression:"currentTab === 2"}]},[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"商品详情:"}},[a("ueditorFrom",{attrs:{content:e.formValidate.content},model:{value:e.formValidate.content,callback:function(t){e.$set(e.formValidate,"content",t)},expression:"formValidate.content"}})],1)],1)],1),e._v(" "),a("el-form-item",{staticStyle:{"margin-top":"30px"}},[a("el-button",{directives:[{name:"show",rawName:"v-show",value:e.currentTab>0,expression:"currentTab>0"}],staticClass:"submission",attrs:{type:"primary",size:"small"},on:{click:e.handleSubmitUp}},[e._v("上一步")]),e._v(" "),a("el-button",{directives:[{name:"show",rawName:"v-show",value:0==e.currentTab,expression:"currentTab == 0"}],staticClass:"submission",attrs:{type:"primary",size:"small"},on:{click:function(t){return e.handleSubmitNest1("formValidate")}}},[e._v("下一步")]),e._v(" "),a("el-button",{directives:[{name:"show",rawName:"v-show",value:1==e.currentTab,expression:"currentTab == 1"}],staticClass:"submission",attrs:{type:"primary",size:"small"},on:{click:function(t){return e.handleSubmitNest2("formValidate")}}},[e._v("下一步")]),e._v(" "),a("el-button",{directives:[{name:"show",rawName:"v-show",value:2===e.currentTab,expression:"currentTab===2"}],staticClass:"submission",attrs:{loading:e.loading,type:"primary",size:"small"},on:{click:function(t){return e.handleSubmit("formValidate")}}},[e._v("提交")]),e._v(" "),a("el-button",{directives:[{name:"show",rawName:"v-show",value:2===e.currentTab,expression:"currentTab===2"}],staticClass:"submission",attrs:{loading:e.loading,type:"primary",size:"small"},on:{click:function(t){return e.handlePreview()}}},[e._v("预览")])],1)],1)],1),e._v(" "),a("goods-list",{ref:"goodsList",attrs:{resellShow:!0},on:{getProduct:e.getProduct}}),e._v(" "),a("guarantee-service",{ref:"serviceGuarantee",on:{"get-list":e.getGuaranteeList}}),e._v(" "),e.previewVisible?a("div",[a("div",{staticClass:"bg",on:{click:function(t){t.stopPropagation(),e.previewVisible=!1}}}),e._v(" "),e.previewVisible?a("preview-box",{ref:"previewBox",attrs:{"product-type":2,"preview-key":e.previewKey}}):e._e()],1):e._e()],1)},r=[],l=a("2909"),n=(a("7f7f"),a("c7eb")),s=(a("c5f6"),a("96cf"),a("1da1")),o=(a("8615"),a("55dd"),a("ac6a"),a("6762"),a("2fdb"),a("ef0d")),c=a("6625"),d=a.n(c),u=a("7719"),m=a("ae43"),p=a("8c98"),_=a("c4c8"),f=a("83d6"),g={product_id:"",image:"",slider_image:[],store_name:"",store_info:"",start_day:"",end_day:"",start_time:"",end_time:"",is_open_recommend:1,is_open_state:1,is_show:1,presell_type:1,keyword:"",brand_id:"",cate_id:"",mer_cate_id:[],pay_count:0,integral:0,sort:0,is_good:0,temp_id:"",guarantee_template_id:"",preSale_date:"",finalPayment_date:"",delivery_type:1,delivery_day:10,delivery_way:[],mer_labels:[],delivery_free:0,attrValue:[{image:"",price:null,down_price:null,presell_price:null,cost:null,ot_price:null,old_stock:null,stock:null,bar_code:"",weight:null,volume:null}],attr:[],extension_type:0,content:"",spec_type:0,is_gift_bag:0},h=[{name:"店铺推荐",value:"is_good"}],v={name:"PresellProductAdd",components:{ueditorFrom:o["a"],goodsList:u["a"],VueUeditorWrap:d.a,guaranteeService:m["a"],previewBox:p["a"]},data:function(){return{pickerOptions:{disabledDate:function(e){return e.getTime()>Date.now()}},timeVal:"",timeVal2:"",dialogVisible:!1,product_id:"",multipleSelection:[],optionsCate:{value:"store_category_id",label:"cate_name",children:"children",emitPath:!1},roterPre:f["roterPre"],selectRule:"",checkboxGroup:[],recommend:h,tabs:[],fullscreenLoading:!1,props:{emitPath:!1},propsMer:{emitPath:!1,multiple:!0},active:0,OneattrValue:[Object.assign({},g.attrValue[0])],ManyAttrValue:[Object.assign({},g.attrValue[0])],ruleList:[],merCateList:[],categoryList:[],shippingList:[],guaranteeList:[],deliveryList:[],labelList:[],deliveryTime:[{name:"支付成功",date_id:1},{name:"预售结束",date_id:2}],spikeTimeList:[],BrandList:[],formValidate:Object.assign({},g),maxStock:"",addNum:0,singleSpecification:{},multipleSpecifications:[],formDynamics:{template_name:"",template_value:[]},manyTabTit:{},manyTabDate:{},grid2:{lg:10,md:12,sm:24,xs:24},formDynamic:{attrsName:"",attrsVal:""},isBtn:!1,manyFormValidate:[],images:[],currentTab:0,isChoice:"",grid:{xl:8,lg:8,md:12,sm:24,xs:24},loading:!1,ruleValidate:{store_name:[{required:!0,message:"请输入商品名称",trigger:"blur"}],timeVal:[{required:!0,message:"请选择预售活动日期",trigger:"blur"}],timeVal2:[{required:!0,message:"请输入尾款支付日期",trigger:"blur"}],mer_cate_id:[{required:!0,message:"请选择商户分类",trigger:"change",type:"array",min:"1"}],cate_id:[{required:!0,message:"请选择平台分类",trigger:"change"}],keyword:[{required:!0,message:"请输入商品关键字",trigger:"blur"}],pay_count:[{required:!0,message:"请输入限购量",trigger:"blur"}],store_info:[{required:!0,message:"请输入秒杀活动简介",trigger:"blur"}],temp_id:[{required:!0,message:"请选择运费模板",trigger:"change"}],delivery_type:[{required:!0,message:"请选择发货时间",trigger:"change"}],image:[{required:!0,message:"请上传商品图",trigger:"change"}],slider_image:[{required:!0,message:"请上传商品轮播图",type:"array",trigger:"change"}],delivery_way:[{required:!0,message:"请选择送货方式",trigger:"change"}]},attrInfo:{},keyNum:0,extensionStatus:0,previewVisible:!1,previewKey:"",deliveryType:[]}},computed:{attrValue:function(){var e=Object.assign({},g.attrValue[0]);return delete e.image,e},oneFormBatch:function(){var e=[Object.assign({},g.attrValue[0])];return delete e[0].bar_code,e}},watch:{"formValidate.attr":{handler:function(e){1===this.formValidate.spec_type&&this.watCh(e)},immediate:!1,deep:!0}},created:function(){this.tempRoute=Object.assign({},this.$route),this.$route.params.id&&1===this.formValidate.spec_type&&this.$watch("formValidate.attr",this.watCh)},mounted:function(){var e=this;this.formValidate.slider_image=[],this.$route.params.id?(this.setTagsViewTitle(),this.getInfo(this.$route.params.id),this.currentTab=1):this.formValidate.attr.map((function(t){e.$set(t,"inputVisible",!1)})),this.getCategorySelect(),this.getCategoryList(),this.getBrandListApi(),this.getShippingList(),this.getGuaranteeList(),this.productCon(),this.getLabelLst(),this.$store.dispatch("settings/setEdit",!0)},methods:{getLabelLst:function(){var e=this;Object(_["x"])().then((function(t){e.labelList=t.data})).catch((function(t){e.$message.error(t.message)}))},productCon:function(){var e=this;Object(_["ab"])().then((function(t){e.deliveryType=t.data.delivery_way.map(String),2==e.deliveryType.length?e.deliveryList=[{value:"1",name:"到店自提"},{value:"2",name:"快递配送"}]:1==e.deliveryType.length&&"1"==e.deliveryType[0]?e.deliveryList=[{value:"1",name:"到店自提"}]:e.deliveryList=[{value:"2",name:"快递配送"}]})).catch((function(t){e.$message.error(t.message)}))},wayChange:function(e){this.formValidate.presell_type=e},restrictedRange:function(e){parseFloat(e.down_price)>.2*e.presell_price&&(e.down_price=.2*e.presell_price)},limitInventory:function(e){e.stock-e.old_stock>0&&(e.stock=e.old_stock)},limitPrice:function(e){e.presell_price-e.price>0&&(e.presell_price=e.price)},add:function(){this.$refs.goodsList.dialogVisible=!0},getProduct:function(e){this.formValidate.image=e.src,this.product_id=e.id,console.log(this.product_id)},handleSelectionChange:function(e){this.multipleSelection=e},onchangeTime:function(e){this.timeVal=e,console.log(this.moment(e[0]).format("YYYY-MM-DD HH:mm:ss")),this.formValidate.start_time=e?this.moment(e[0]).format("YYYY-MM-DD HH:mm:ss"):"",this.formValidate.end_time=e?this.moment(e[1]).format("YYYY-MM-DD HH:mm:ss"):""},onchangeTime2:function(e){this.timeVal2=e,this.formValidate.final_start_time=e?this.moment(e[0]).format("YYYY-MM-DD HH:mm:ss"):"",this.formValidate.final_end_time=e?this.moment(e[1]).format("YYYY-MM-DD HH:mm:ss"):""},setTagsViewTitle:function(){var e="编辑商品",t=Object.assign({},this.tempRoute,{title:"".concat(e,"-").concat(this.$route.params.id)});this.$store.dispatch("tagsView/updateVisitedView",t)},onChangeGroup:function(){this.checkboxGroup.includes("is_good")?this.formValidate.is_good=1:this.formValidate.is_good=0},watCh:function(e){var t=this,a={},i={};this.formValidate.attr.forEach((function(e,t){a["value"+t]={title:e.value},i["value"+t]=""})),this.ManyAttrValue.forEach((function(e,a){var i=Object.values(e.detail).sort().join("/");t.attrInfo[i]&&(t.ManyAttrValue[a]=t.attrInfo[i])})),this.attrInfo={},this.ManyAttrValue.forEach((function(e){t.attrInfo[Object.values(e.detail).sort().join("/")]=e})),this.manyTabTit=a,this.manyTabDate=i,console.log(this.manyTabTit),console.log(this.manyTabDate)},addTem:function(){var e=this;this.$modalTemplates(0,(function(){e.getShippingList()}))},addServiceTem:function(){this.$refs.serviceGuarantee.add()},getCategorySelect:function(){var e=this;Object(_["s"])().then((function(t){e.merCateList=t.data})).catch((function(t){e.$message.error(t.message)}))},getCategoryList:function(){var e=this;Object(_["r"])().then((function(t){e.categoryList=t.data})).catch((function(t){e.$message.error(t.message)}))},getBrandListApi:function(){var e=this;Object(_["q"])().then((function(t){e.BrandList=t.data})).catch((function(t){e.$message.error(t.message)}))},productGetRule:function(){var e=this;Object(_["Rb"])().then((function(t){e.ruleList=t.data}))},getShippingList:function(){var e=this;Object(_["Ab"])().then((function(t){e.shippingList=t.data}))},getGuaranteeList:function(){var e=this;Object(_["D"])().then((function(t){e.guaranteeList=t.data}))},getInfo:function(e){var t=this;this.fullscreenLoading=!0,this.$route.params.id?Object(_["S"])(e).then(function(){var e=Object(s["a"])(Object(n["a"])().mark((function e(a){var i,r;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:i=a.data,t.formValidate={product_id:i.product_id,guarantee_template_id:i.product.guarantee_template_id,image:i.product.image,slider_image:i.product.slider_image,store_name:i.store_name,store_info:i.store_info,presell_type:i.presell_type?i.presell_type:1,delivery_type:i.delivery_type?i.delivery_type:1,delivery_day:i.delivery_day?i.delivery_day:10,start_time:i.start_time?i.start_time:"",end_time:i.end_time?i.end_time:"",final_start_time:i.final_start_time?i.final_start_time:"",final_end_time:i.final_end_time?i.final_end_time:"",brand_id:i.product.brand_id,cate_id:i.cate_id?i.cate_id:"",mer_cate_id:i.mer_cate_id,pay_count:i.pay_count,sort:i.product.sort,is_good:i.product.is_good,temp_id:i.product.temp_id,is_show:i.is_show,attr:i.product.attr,extension_type:i.extension_type,content:i.product.content.content,spec_type:i.product.spec_type,is_gift_bag:i.product.is_gift_bag,delivery_way:i.product.delivery_way&&i.product.delivery_way.length?i.product.delivery_way.map(String):t.deliveryType,delivery_free:i.delivery_free?i.delivery_free:0,mer_labels:i.mer_labels&&i.mer_labels.length?i.mer_labels.map(Number):[]},0===t.formValidate.spec_type?(t.OneattrValue=i.product.attrValue,t.OneattrValue.forEach((function(e,a){t.attrInfo[Object.values(e.detail).sort().join("/")]=e,t.$set(t.OneattrValue[a],"down_price",e.presellSku?e.presellSku.down_price:0),t.$set(t.OneattrValue[a],"presell_price",e.presellSku?e.presellSku.presell_price:e.price),t.$set(t.OneattrValue[a],"stock",e.presellSku?e.presellSku.stock:e.old_stock)})),t.singleSpecification=JSON.parse(JSON.stringify(i.product.attrValue)),t.formValidate.attrValue=t.OneattrValue):(r=[],t.ManyAttrValue=i.product.attrValue,t.ManyAttrValue.forEach((function(e,a){t.attrInfo[Object.values(e.detail).sort().join("/")]=e,t.$set(t.ManyAttrValue[a],"down_price",e.presellSku?e.presellSku.down_price:0),t.$set(t.ManyAttrValue[a],"presell_price",e.presellSku?e.presellSku.presell_price:e.price),t.$set(t.ManyAttrValue[a],"stock",e.presellSku?e.presellSku.stock:e.old_stock),e.presellSku&&(t.multipleSpecifications=JSON.parse(JSON.stringify(i.product.attrValue)),r.push(e))})),t.multipleSpecifications=JSON.parse(JSON.stringify(r)),t.$nextTick((function(){r.forEach((function(e){t.$refs.multipleSelection.toggleRowSelection(e,!0)}))})),t.formValidate.attrValue=t.multipleSelection),console.log(t.ManyAttrValue),t.fullscreenLoading=!1,t.timeVal=[new Date(t.formValidate.start_time),new Date(t.formValidate.end_time)],t.timeVal2=[new Date(t.formValidate.final_start_time),new Date(t.formValidate.final_end_time)],t.$store.dispatch("settings/setEdit",!0);case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.fullscreenLoading=!1,t.$message.error(e.message)})):Object(_["gb"])(e).then(function(){var e=Object(s["a"])(Object(n["a"])().mark((function e(a){var i;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:i=a.data,t.formValidate={product_id:i.product_id,image:i.image,slider_image:i.slider_image,store_name:i.store_name,store_info:i.store_info,presell_type:1,delivery_type:i.delivery_type?i.delivery_type:1,delivery_day:i.delivery_day?i.delivery_day:10,start_time:"",end_time:"",final_start_time:"",final_end_time:"",brand_id:i.brand_id,cate_id:i.cate_id,mer_cate_id:i.mer_cate_id,pay_count:i.pay_count?i.paycount:0,sort:i.sort,is_good:i.is_good,temp_id:i.temp_id,guarantee_template_id:i.guarantee_template_id,is_show:i.is_show,attr:i.attr,extension_type:i.extension_type,content:i.content,spec_type:i.spec_type,is_gift_bag:i.is_gift_bag,delivery_way:i.delivery_way&&i.delivery_way.length?i.delivery_way.map(String):t.deliveryType,delivery_free:i.delivery_free?i.delivery_free:0,mer_labels:i.mer_labels&&i.mer_labels.length?i.mer_labels.map(Number):[]},t.timeVal=t.timeVal2=[],0===t.formValidate.spec_type?(t.OneattrValue=i.attrValue,t.OneattrValue.forEach((function(e,a){t.$set(t.OneattrValue[a],"down_price",0),t.$set(t.OneattrValue[a],"presell_price",t.OneattrValue[a].price)})),t.singleSpecification=JSON.parse(JSON.stringify(i.attrValue)),t.formValidate.attrValue=t.OneattrValue):(t.ManyAttrValue=i.attrValue,t.multipleSpecifications=JSON.parse(JSON.stringify(i.attrValue)),t.ManyAttrValue.forEach((function(e,a){t.attrInfo[Object.values(e.detail).sort().join("/")]=e,t.$set(t.ManyAttrValue[a],"down_price",0),t.$set(t.ManyAttrValue[a],"presell_price",t.ManyAttrValue[a].price)})),t.multipleSelection=i.attrValue,t.$nextTick((function(){i.attrValue.forEach((function(e){t.$refs.multipleSelection.toggleRowSelection(e,!0)}))}))),1===t.formValidate.is_good&&t.checkboxGroup.push("is_good"),t.fullscreenLoading=!1;case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.fullscreenLoading=!1,t.$message.error(e.message)}))},handleRemove:function(e){this.formValidate.slider_image.splice(e,1)},modalPicTap:function(e,t,a){var i=this,r=[];this.$modalUpload((function(l){"1"!==e||t||(i.formValidate.image=l[0],i.OneattrValue[0].image=l[0]),"2"!==e||t||l.map((function(e){r.push(e.attachment_src),i.formValidate.slider_image.push(e),i.formValidate.slider_image.length>10&&(i.formValidate.slider_image.length=10)})),"1"===e&&"dan"===t&&(i.OneattrValue[0].image=l[0]),"1"===e&&"duo"===t&&(i.ManyAttrValue[a].image=l[0]),"1"===e&&"pi"===t&&(i.oneFormBatch[0].image=l[0])}),e)},handleSubmitUp:function(){this.currentTab--<0&&(this.currentTab=0)},handleSubmitNest1:function(e){this.formValidate.image?(this.currentTab++,this.$route.params.id||this.getInfo(this.product_id)):this.$message.warning("请选择商品!")},handleSubmitNest2:function(e){var t=this;1===this.formValidate.spec_type?this.formValidate.attrValue=this.multipleSelection:this.formValidate.attrValue=this.OneattrValue,console.log(this.formValidate),this.$refs[e].validate((function(e){if(e){if(!t.formValidate.store_name||!t.formValidate.store_info||!t.formValidate.image||!t.formValidate.slider_image)return void t.$message.warning("请填写完整商品信息!");if(!t.formValidate.attrValue||0===t.formValidate.attrValue.length)return void t.$message.warning("请选择商品规格!");if(!t.formValidate.delivery_day)return void t.$message.warning("请填写发货时间!");t.currentTab++}}))},handleSubmit:function(e){var t=this;this.$refs[e].validate((function(a){a?(t.$store.dispatch("settings/setEdit",!1),t.fullscreenLoading=!0,t.loading=!0,delete t.formValidate.preSale_date,delete t.formValidate.finalPayment_date,console.log(t.formValidate),t.$route.params.id?(console.log(t.ManyAttrValue),1===t.formValidate.presell_type&&(t.formValidate.final_start_time=t.formValidate.final_end_time=""),Object(_["U"])(t.$route.params.id,t.formValidate).then(function(){var a=Object(s["a"])(Object(n["a"])().mark((function a(i){return Object(n["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:t.fullscreenLoading=!1,t.$message.success(i.message),t.$router.push({path:t.roterPre+"/marketing/presell/list"}),t.$refs[e].resetFields(),t.formValidate.slider_image=[],t.loading=!1;case 6:case"end":return a.stop()}}),a)})));return function(e){return a.apply(this,arguments)}}()).catch((function(e){t.fullscreenLoading=!1,t.loading=!1,t.$message.error(e.message)}))):Object(_["R"])(t.formValidate).then(function(){var a=Object(s["a"])(Object(n["a"])().mark((function a(i){return Object(n["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:t.fullscreenLoading=!1,t.$message.success(i.message),t.$router.push({path:t.roterPre+"/marketing/presell/list"}),t.$refs[e].resetFields(),t.formValidate.slider_image=[],t.loading=!1;case 6:case"end":return a.stop()}}),a)})));return function(e){return a.apply(this,arguments)}}()).catch((function(e){t.fullscreenLoading=!1,t.loading=!1,t.$message.error(e.message)}))):t.formValidate.store_name&&t.formValidate.store_info&&t.formValidate.image&&t.formValidate.slider_image||t.$message.warning("请填写完整商品信息!")}))},handlePreview:function(){var e=this;delete this.formValidate.preSale_date,delete this.formValidate.finalPayment_date,1===this.formValidate.presell_type&&(this.formValidate.final_start_time=this.formValidate.final_end_time=""),Object(_["W"])(this.formValidate).then(function(){var t=Object(s["a"])(Object(n["a"])().mark((function t(a){return Object(n["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.previewVisible=!0,e.previewKey=a.data.preview_key;case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.$message.error(t.message)}))},validate:function(e,t,a){!1===t&&this.$message.warning(a)},handleDragStart:function(e,t){this.dragging=t},handleDragEnd:function(e,t){this.dragging=null},handleDragOver:function(e){e.dataTransfer.dropEffect="move"},handleDragEnter:function(e,t){if(e.dataTransfer.effectAllowed="move",t!==this.dragging){var a=Object(l["a"])(this.formValidate.slider_image),i=a.indexOf(this.dragging),r=a.indexOf(t);a.splice.apply(a,[r,0].concat(Object(l["a"])(a.splice(i,1)))),this.formValidate.slider_image=a}}}},b=v,y=(a("9891"),a("2877")),w=Object(y["a"])(b,i,r,!1,null,"48d0963f",null);t["default"]=w.exports}}]); \ No newline at end of file diff --git a/public/mer/js/chunk-0b1f3772.c04eaf39.js b/public/mer/js/chunk-0b1f3772.7086f94f.js similarity index 97% rename from public/mer/js/chunk-0b1f3772.c04eaf39.js rename to public/mer/js/chunk-0b1f3772.7086f94f.js index 51379508..049675fd 100644 --- a/public/mer/js/chunk-0b1f3772.c04eaf39.js +++ b/public/mer/js/chunk-0b1f3772.7086f94f.js @@ -1 +1 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0b1f3772"],{"504c":function(t,e,a){var l=a("9e1e"),s=a("0d58"),i=a("6821"),r=a("52a7").f;t.exports=function(t){return function(e){var a,n=i(e),o=s(n),c=o.length,d=0,u=[];while(c>d)a=o[d++],l&&!r.call(n,a)||u.push(t?[a,n[a]]:n[a]);return u}}},"6ece":function(t,e,a){"use strict";a.r(e);var l=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"divBox"},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("div",{staticClass:"container"},[a("el-form",{attrs:{size:"small","label-width":"120px",inline:""}},[a("el-form-item",{attrs:{label:"预售活动状态:"}},[a("el-select",{staticClass:"filter-item selWidth",attrs:{placeholder:"请选择",clearable:""},on:{change:function(e){return t.getList(1)}},model:{value:t.tableFrom.type,callback:function(e){t.$set(t.tableFrom,"type",e)},expression:"tableFrom.type"}},t._l(t.preSaleStatusList,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1),t._v(" "),a("el-form-item",{attrs:{label:"活动商品状态:"}},[a("el-select",{staticClass:"filter-item selWidth",attrs:{placeholder:"请选择",clearable:""},on:{change:t.getList},model:{value:t.tableFrom.us_status,callback:function(e){t.$set(t.tableFrom,"us_status",e)},expression:"tableFrom.us_status"}},t._l(t.productStatusList,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1),t._v(" "),a("el-form-item",{attrs:{label:"标签:"}},[a("el-select",{staticClass:"filter-item selWidth mr20",attrs:{placeholder:"请选择",clearable:"",filterable:""},on:{change:function(e){return t.getList(1)}},model:{value:t.tableFrom.mer_labels,callback:function(e){t.$set(t.tableFrom,"mer_labels",e)},expression:"tableFrom.mer_labels"}},t._l(t.labelList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1)],1),t._v(" "),a("el-form-item",{attrs:{label:"关键字搜索:"}},[a("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入预售商品名称/ID"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getList(1)}},model:{value:t.tableFrom.keyword,callback:function(e){t.$set(t.tableFrom,"keyword",e)},expression:"tableFrom.keyword"}},[a("el-button",{staticClass:"el-button-solt",attrs:{slot:"append",icon:"el-icon-search"},on:{click:function(e){return t.getList(1)}},slot:"append"})],1)],1)],1)],1),t._v(" "),a("el-tabs",{on:{"tab-click":function(e){return t.getList(1)}},model:{value:t.tableFrom.presell_type,callback:function(e){t.$set(t.tableFrom,"presell_type",e)},expression:"tableFrom.presell_type"}},t._l(t.headeNum,(function(t,e){return a("el-tab-pane",{key:e,attrs:{name:t.presell_type.toString(),label:t.title+"("+t.count+")"}})})),1),t._v(" "),a("router-link",{attrs:{to:{path:t.roterPre+"/marketing/presell/create"}}},[a("el-button",{attrs:{size:"small",type:"primary"}},[a("i",{staticClass:"add"},[t._v("+")]),t._v(" 添加预售商品\n ")])],1)],1),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{data:t.tableData.data,size:"mini","row-class-name":t.tableRowClassName},on:{rowclick:function(e){return e.stopPropagation(),t.closeEdit(e)}}},[a("el-table-column",{attrs:{prop:"product_presell_id",label:"ID","min-width":"50"}}),t._v(" "),a("el-table-column",{attrs:{label:"商品图","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(t){return[a("div",{staticClass:"demo-image__preview"},[a("el-image",{attrs:{src:t.row.product.image,"preview-src-list":[t.row.product.image]}})],1)]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"store_name",label:"商品名称","min-width":"120"}}),t._v(" "),a("el-table-column",{attrs:{prop:"price",label:"预售价","min-width":"90"}}),t._v(" "),a("el-table-column",{attrs:{label:"预售活动状态","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(0===e.row.presell_status?"未开始":1===e.row.presell_status?"正在进行":"已结束"))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"预售活动日期","min-width":"160"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v("开始日期:"+t._s(e.row.start_time&&e.row.start_time?e.row.start_time.slice(0,10):""))]),t._v(" "),a("div",[t._v("结束日期:"+t._s(e.row.end_time&&e.row.end_time?e.row.end_time.slice(0,10):""))])]}}])}),t._v(" "),"1"===t.tableFrom.presell_type?a("el-table-column",{attrs:{label:"成功/参与人次","min-width":"90",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.tattend_one&&e.row.tattend_one.pay)+" / "+t._s(e.row.tattend_one&&e.row.tattend_one.all))])]}}],null,!1,2898212109)}):t._e(),t._v(" "),"2"===t.tableFrom.presell_type?a("el-table-column",{attrs:{label:"第一阶段 | 成功/参与人次","render-header":t.renderheader,"min-width":"90",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.tattend_one&&e.row.tattend_one.pay)+" / "+t._s(e.row.tattend_one&&e.row.tattend_one.all))])]}}],null,!1,2898212109)}):t._e(),t._v(" "),"2"===t.tableFrom.presell_type?a("el-table-column",{attrs:{label:"第二阶段 | 成功/参与人次","render-header":t.renderheader,"min-width":"90",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.tattend_two&&e.row.tattend_two.pay)+" / "+t._s(e.row.tattend_two&&e.row.tattend_two.all))])]}}],null,!1,649476621)}):t._e(),t._v(" "),a("el-table-column",{attrs:{prop:"seles",label:"已售商品数","min-width":"90"}}),t._v(" "),a("el-table-column",{attrs:{prop:"stock_count",label:"限量","min-width":"90"}}),t._v(" "),a("el-table-column",{attrs:{prop:"stock",label:"限量剩余","min-width":"90"}}),t._v(" "),a("el-table-column",{attrs:{prop:"status",label:"上/下架","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-switch",{attrs:{"active-value":1,"inactive-value":0,"active-text":"上架","inactive-text":"下架"},on:{change:function(a){return t.onchangeIsShow(e.row)}},model:{value:e.row.is_show,callback:function(a){t.$set(e.row,"is_show",a)},expression:"scope.row.is_show"}})]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"stock",label:"商品状态","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("productStatusFilter")(e.row.us_status)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"stock",label:"标签","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(e){return t._l(e.row.mer_labels,(function(e,l){return a("div",{key:l,staticClass:"label-list"},[t._v(t._s(e.name))])}))}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"product.sort",align:"center",label:"排序","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.index===t.tabClickIndex?a("span",[a("el-input",{attrs:{type:"number",maxlength:"300",size:"mini",autofocus:""},on:{blur:function(a){return t.inputBlur(e)}},model:{value:e.row["product"]["sort"],callback:function(a){t.$set(e.row["product"],"sort",t._n(a))},expression:"scope.row['product']['sort']"}})],1):a("span",{on:{dblclick:function(a){return a.stopPropagation(),t.tabClick(e.row)}}},[t._v(t._s(e.row["product"]["sort"]))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"审核状态","min-width":"130"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(0===e.row.product_status?"待审核":1===e.row.product_status?"审核通过":"审核失败"))]),t._v(" "),-1===e.row.product_status||-2===e.row.product_status?a("span",{staticStyle:{"font-size":"12px"}},[a("br"),t._v("\n 原因:"+t._s(e.row.refusal)+"\n ")]):t._e()]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作","min-width":"150",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[0===e.row.presell_status?a("router-link",{attrs:{to:{path:t.roterPre+"/marketing/presell/create/"+e.row.product_presell_id}}},[a("el-button",{staticClass:"mr10",attrs:{type:"text",size:"small"}},[t._v("编辑")])],1):t._e(),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.handlePreview(e.row.product_presell_id)}}},[t._v("预览")]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.onEditLabel(e.row)}}},[t._v("编辑标签")]),t._v(" "),a("el-button",{staticClass:"mr10",attrs:{type:"text",size:"small"},on:{click:function(a){return t.goDetail(e.row.product_presell_id)}}},[t._v("详情")]),t._v(" "),1!==e.row.product.presell_status?a("el-button",{staticClass:"mr10",attrs:{type:"text",size:"small"},on:{click:function(a){return t.handleDelete(e.row.product_presell_id,e.$index)}}},[t._v("删除")]):t._e()]}}])})],1),t._v(" "),a("div",{staticClass:"block"},[a("el-pagination",{attrs:{"page-sizes":[20,40,60,80],"page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"total, sizes, prev, pager, next, jumper",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1),t._v(" "),t.dialogVisible?a("el-dialog",{attrs:{title:"预售商品详情",center:"",visible:t.dialogVisible,width:"700px"},on:{"update:visible":function(e){t.dialogVisible=e}}},[a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{"margin-top":"5px"}},[a("div",{staticClass:"box-container"},[a("div",{staticClass:"title"},[t._v("基本信息")]),t._v(" "),a("div",{staticClass:"acea-row"},[a("div",{staticClass:"list sp"},[a("label",{staticClass:"name"},[t._v("商品ID:")]),t._v(t._s(t.formValidate.product_id))]),t._v(" "),a("div",{staticClass:"list sp"},[a("label",{staticClass:"name"},[t._v("商品名称:")]),a("span",[t._v(t._s(t.formValidate.store_name))])]),t._v(" "),a("div",{staticClass:"list sp100 image"},[a("label",{staticClass:"name"},[t._v("商品图:")]),t._v(" "),a("img",{staticStyle:{"max-width":"150px",height:"80px"},attrs:{src:t.formValidate.image}})]),t._v(" "),a("div",{staticClass:"list sp100"},[a("label",{staticClass:"name"},[t._v("商品信息")]),t._v(" "),0===t.formValidate.spec_type?a("div",[a("el-table",{staticClass:"tabNumWidth",attrs:{data:t.OneattrValue,border:"",size:"mini"}},[a("el-table-column",{attrs:{align:"center",label:"预售价格","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row["presell_price"]))])]}}],null,!1,1547007341)}),t._v(" "),2===t.formValidate.presell_type?a("el-table-column",{attrs:{align:"center",label:"预售定金","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row["down_price"]))])]}}],null,!1,2160669390)}):t._e(),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"已售商品数量","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row["sales"]))])]}}],null,!1,703426790)})],1)],1):t._e(),t._v(" "),1===t.formValidate.spec_type?a("div",{staticClass:"labeltop",attrs:{label:"规格列表:"}},[a("el-table",{attrs:{data:t.ManyAttrValue,height:"260","tooltip-effect":"dark","row-key":function(t){return t.id}}},[t.manyTabDate?t._l(t.manyTabDate,(function(e,l){return a("el-table-column",{key:l,attrs:{align:"center",label:t.manyTabTit[l].title,"min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{staticClass:"priceBox",domProps:{textContent:t._s(e.row[l])}})]}}],null,!0)})})):t._e(),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"预售价格","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row["presell_price"]))])]}}],null,!1,1547007341)}),t._v(" "),2===t.formValidate.presell_type?a("el-table-column",{attrs:{align:"center",label:"预售定金","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row["down_price"]))])]}}],null,!1,2160669390)}):t._e(),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"已售商品数量","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row["sales"]))])]}}],null,!1,703426790)})],2)],1):t._e()])]),t._v(" "),a("div",{staticClass:"title",staticStyle:{"margin-top":"20px"}},[t._v("预售商品活动信息")]),t._v(" "),a("div",{staticClass:"acea-row"},[a("div",{staticClass:"list sp100"},[a("label",{staticClass:"name"},[t._v("预售简介:")]),t._v(t._s(t.formValidate.store_info))]),t._v(" "),a("div",{staticClass:"list sp100"},[a("label",{staticClass:"name"},[t._v("预售活动日期:")]),t._v(t._s(t.formValidate.start_time+"-"+t.formValidate.end_time))]),t._v(" "),2===t.formValidate.presell_type?a("div",{staticClass:"list sp100"},[a("label",{staticClass:"name"},[t._v("尾款支付日期:")]),t._v(t._s(t.formValidate.final_start_time+"-"+t.formValidate.final_end_time))]):t._e(),t._v(" "),a("div",{staticClass:"list sp"},[a("label",{staticClass:"name"},[t._v("审核状态:")]),t._v(t._s(1===t.formValidate.product_status?"审核通过":0===t.formValidate.product_status?"未审核":"审核未通过"))]),t._v(" "),1===t.formValidate.presell_type?a("div",{staticClass:"list sp"},[a("label",{staticClass:"name"},[t._v("预售成功/参与人次:")]),t._v(t._s((t.formValidate.tattend_one&&t.formValidate.tattend_one.pay)+"/"+(t.formValidate.tattend_one&&t.formValidate.tattend_one.all)))]):t._e(),t._v(" "),a("div",{staticClass:"list sp"},[a("label",{staticClass:"name"},[t._v("限量:")]),t._v(t._s(t.formValidate.stock_count))]),t._v(" "),a("div",{staticClass:"list sp"},[a("label",{staticClass:"name"},[t._v("限量剩余:")]),t._v(t._s(t.formValidate.stock))]),t._v(" "),a("div",{staticClass:"list sp"},[a("label",{staticClass:"name"},[t._v("限购件数:")]),t._v(t._s(t.formValidate.pay_count)+"(0为不限制购买数量)")]),t._v(" "),2===t.formValidate.presell_type?a("div",{staticClass:"list sp"},[a("label",{staticClass:"name"},[t._v("第一阶段(定金支付)成功/参与人次:")]),t._v(t._s((t.formValidate.tattend_one&&t.formValidate.tattend_one.pay)+"/"+(t.formValidate.tattend_one&&t.formValidate.tattend_one.all)))]):t._e(),t._v(" "),2===t.formValidate.presell_type?a("div",{staticClass:"list sp"},[a("label",{staticClass:"name"},[t._v("第二阶段(尾款支付)成功/参与人次:")]),t._v(t._s((t.formValidate.tattend_two&&t.formValidate.tattend_two.pay)+"/"+(t.formValidate.tattend_two&&t.formValidate.tattend_two.all)))]):t._e(),t._v(" "),2===t.formValidate.presell_type?a("div",{staticClass:"list sp"},[a("label",{staticClass:"name"},[t._v("发货时间:")]),t._v(t._s("支付尾款后"+t.formValidate.delivery_day+"天内"))]):t._e(),t._v(" "),1===t.formValidate.presell_type?a("div",{staticClass:"list sp"},[a("label",{staticClass:"name"},[t._v("发货时间:")]),t._v(t._s(1===t.formValidate.delivery_type?"支付成功后"+t.formValidate.delivery_day+"天内":"预售结束后"+t.formValidate.delivery_day+"天内"))]):t._e(),t._v(" "),a("div",{staticClass:"list sp"},[a("label",{staticClass:"name"},[t._v("预售活动状态:")]),t._v(t._s(0===t.formValidate.presell_status?"未开始":1===t.formValidate.presell_status?"正在进行":"已结束"))]),t._v(" "),a("div",{staticClass:"list sp"},[a("label",{staticClass:"name"},[t._v("显示状态:")]),t._v(t._s(1===t.formValidate.is_show?"显示":"隐藏"))]),t._v(" "),a("div",{staticClass:"list sp"},[a("label",{staticClass:"name"},[t._v("创建时间:")]),t._v(t._s(t.formValidate.create_time))])])])])]):t._e(),t._v(" "),t.previewVisible?a("div",[a("div",{staticClass:"bg",on:{click:function(e){e.stopPropagation(),t.previewVisible=!1}}}),t._v(" "),t.previewVisible?a("preview-box",{ref:"previewBox",attrs:{"goods-id":t.goodsId,"product-type":2,"preview-key":t.previewKey}}):t._e()],1):t._e(),t._v(" "),t.dialogLabel?a("el-dialog",{attrs:{title:"选择标签",visible:t.dialogLabel,width:"800px","before-close":t.handleClose},on:{"update:visible":function(e){t.dialogLabel=e}}},[a("el-form",{ref:"labelForm",attrs:{model:t.labelForm},nativeOn:{submit:function(t){t.preventDefault()}}},[a("el-form-item",[a("el-select",{staticClass:"selWidth",attrs:{clearable:"",multiple:"",placeholder:"请选择"},model:{value:t.labelForm.mer_labels,callback:function(e){t.$set(t.labelForm,"mer_labels",e)},expression:"labelForm.mer_labels"}},t._l(t.labelList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1)],1)],1),t._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.submitForm("labelForm")}}},[t._v("提交")])],1)],1):t._e()],1)},s=[],i=a("c7eb"),r=(a("96cf"),a("1da1")),n=(a("7f7f"),a("8615"),a("ac6a"),a("28a5"),a("55dd"),a("c4c8")),o=a("b7be"),c=a("8c98"),d=a("83d6"),u={product_id:"",image:"",slider_image:[],store_name:"",store_info:"",start_day:"",end_day:"",start_time:"",end_time:"",is_open_recommend:1,is_open_state:1,is_show:1,presell_type:1,keyword:"",brand_id:"",cate_id:"",mer_cate_id:[],unit_name:"",integral:0,sort:0,is_good:0,temp_id:"",preSale_date:"",finalPayment_date:"",delivery_type:1,delivery_day:10,create_time:"",attrValue:[{image:"",price:null,down_price:null,presell_price:null,cost:null,ot_price:null,old_stock:null,stock:null,bar_code:"",weight:null,volume:null}],attr:[],extension_type:0,content:"",spec_type:0,is_gift_bag:0,tattend_two:{},tattend_one:{}},_={name:"ProductList",components:{previewBox:c["a"]},data:function(){return{headeNum:[{count:0,presell_type:1,title:"全款预售"},{count:0,presell_type:2,title:"定金预售"}],props:{emitPath:!1},roterPre:d["roterPre"],listLoading:!0,tableData:{data:[],total:0},preSaleStatusList:[{label:"未开始",value:0},{label:"正在进行",value:1},{label:"已结束",value:2}],productStatusList:[{label:"上架显示",value:1},{label:"下架",value:0},{label:"平台关闭",value:-1}],fromList:{custom:!0,fromTxt:[{text:"全部",val:""},{text:"待审核",val:"0"},{text:"已审核",val:"1"},{text:"审核失败",val:"-1"}]},tableFrom:{page:1,limit:20,keyword:"",mer_labels:"",product_status:this.$route.query.status?this.$route.query.status:"",type:"",presell_type:this.$route.query.type?this.$route.query.type:"1",us_status:"",product_presell_id:this.$route.query.id?this.$route.query.id:""},product_presell_id:this.$route.query.id?this.$route.query.id:"",product_id:"",modals:!1,dialogVisible:!1,loading:!0,manyTabTit:{},manyTabDate:{},formValidate:Object.assign({},u),OneattrValue:[Object.assign({},u.attrValue[0])],ManyAttrValue:[Object.assign({},u.attrValue[0])],attrInfo:{},tabClickIndex:"",previewVisible:!1,goodsId:"",previewKey:"",dialogLabel:!1,labelForm:{},labelList:[]}},watch:{product_presell_id:function(t,e){this.getList("")},$route:function(t,e){this.$route.query.product_presell_id&&this.getList("")}},mounted:function(){this.getList(""),this.getLabelLst()},methods:{tableRowClassName:function(t){var e=t.row,a=t.rowIndex;e.index=a},tabClick:function(t){this.tabClickIndex=t.index},inputBlur:function(t){var e=this;(!t.row.product.sort||t.row.product.sort<0)&&(t.row.product.sort=0),Object(o["X"])(t.row.product_presell_id,{sort:t.row.product.sort}).then((function(t){e.closeEdit()})).catch((function(t){}))},closeEdit:function(){this.tabClickIndex=null},renderheader:function(t,e){var a=e.column;e.$index;return t("span",{},[t("span",{},a.label.split("|")[0]),t("br"),t("span",{},a.label.split("|")[1])])},watCh:function(t){var e=this,a={},l={};this.formValidate.attr.forEach((function(t,e){a["value"+e]={title:t.value},l["value"+e]=""})),this.ManyAttrValue.forEach((function(t,a){var l=Object.values(t.detail).sort().join("/");e.attrInfo[l]&&(e.ManyAttrValue[a]=e.attrInfo[l])})),this.attrInfo={},this.ManyAttrValue.forEach((function(t){e.attrInfo[Object.values(t.detail).sort().join("/")]=t})),this.manyTabTit=a,this.manyTabDate=l},getLabelLst:function(){var t=this;Object(n["v"])().then((function(e){t.labelList=e.data})).catch((function(e){t.$message.error(e.message)}))},handleClose:function(){this.dialogLabel=!1},onEditLabel:function(t){if(this.dialogLabel=!0,this.product_id=t.product_presell_id,t.mer_labels&&t.mer_labels.length){var e=t.mer_labels.map((function(t){return t.id}));this.labelForm={mer_labels:e}}else this.labelForm={mer_labels:[]}},submitForm:function(t){var e=this;this.$refs[t].validate((function(t){t&&Object(n["Sb"])(e.product_id,e.labelForm).then((function(t){var a=t.message;e.$message.success(a),e.getList(""),e.dialogLabel=!1}))}))},goDetail:function(t){var e=this;this.dialogVisible=!0,this.loading=!0,this.formValidate={},Object(n["Q"])(t).then(function(){var t=Object(r["a"])(Object(i["a"])().mark((function t(a){var l;return Object(i["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.loading=!1,l=a.data,e.formValidate={product_id:l.product.product_id,image:l.product.image,slider_image:l.product.slider_image,store_name:l.store_name,store_info:l.store_info,presell_type:l.presell_type?l.presell_type:1,delivery_type:l.delivery_type?l.delivery_type:1,delivery_day:l.delivery_day?l.delivery_day:10,start_time:l.start_time?l.start_time:"",end_time:l.end_time?l.end_time:"",final_start_time:l.final_start_time?l.final_start_time:"",final_end_time:l.final_end_time?l.final_end_time:"",brand_id:l.product.brand_id,cate_id:l.cate_id?l.cate_id:"",mer_cate_id:l.mer_cate_id,unit_name:l.product.unit_name,sort:l.product.sort,is_good:l.product.is_good,temp_id:l.product.temp_id,is_show:l.is_show,attr:l.product.attr,extension_type:l.extension_type,content:l.content,spec_type:l.product.spec_type,is_gift_bag:l.product.is_gift_bag,tattend_two:l.tattend_two,tattend_one:l.tattend_one,create_time:l.create_time,presell_status:l.presell_status,product_status:l.product_status,pay_count:l.pay_count,stock:l.stock,stock_count:l.stock_count},0===e.formValidate.spec_type?(e.OneattrValue=l.product.attrValue,e.OneattrValue[0].down_price=e.OneattrValue[0].presellSku?e.OneattrValue[0].presellSku.down_price:0,e.OneattrValue[0].presell_price=e.OneattrValue[0].presellSku?e.OneattrValue[0].presellSku.presell_price:0,e.OneattrValue[0].sales=e.OneattrValue[0].presellSku?e.OneattrValue[0].presellSku.seles:0):(e.ManyAttrValue=[],l.product.attrValue.forEach((function(t,a){t.presellSku&&(e.$set(t,"down_price",t.presellSku.down_price),e.$set(t,"presell_price",t.presellSku.presell_price),e.$set(t,"sales",t.presellSku.seles),e.ManyAttrValue.push(t))})),e.watCh(e.formValidate.attr)),console.log(e.ManyAttrValue),e.fullscreenLoading=!1,e.formValidate.preSale_date=[l.start_time,l.end_time],e.formValidate.finalPayment_date=[l.final_start_time,l.final_end_time];case 8:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.fullscreenLoading=!1,e.$message.error(t.message)}))},handlePreview:function(t){this.previewVisible=!0,this.goodsId=t,this.previewKey=""},getList:function(t){var e=this;this.listLoading=!0,this.tableFrom.page=t||this.tableFrom.page,Object(n["R"])(this.tableFrom).then((function(t){e.tableData.data=t.data.list,e.tableData.total=t.data.count,e.headeNum[0]["count"]=t.data.stat.all,e.headeNum[1]["count"]=t.data.stat.down,console.log(e.headeNum),e.listLoading=!1})).catch((function(t){e.listLoading=!1,e.$message.error(t.message)}))},pageChange:function(t){this.tableFrom.page=t,this.getList("")},handleSizeChange:function(t){this.tableFrom.limit=t,this.getList("")},handleDelete:function(t,e){var a=this;this.$modalSure("删除该商品吗").then((function(){Object(n["T"])(t).then((function(t){var l=t.message;a.$message.success(l),a.tableData.data.splice(e,1)})).catch((function(t){var e=t.message;a.$message.error(e)}))}))},onchangeIsShow:function(t){var e=this;Object(n["V"])(t.product_presell_id,t.is_show).then((function(t){var a=t.message;e.$message.success(a),e.getList("")})).catch((function(t){var a=t.message;e.$message.error(a)}))}}},p=_,m=(a("7205"),a("2877")),v=Object(m["a"])(p,l,s,!1,null,"e2b0485e",null);e["default"]=v.exports},7205:function(t,e,a){"use strict";a("c5bb")},8615:function(t,e,a){var l=a("5ca1"),s=a("504c")(!1);l(l.S,"Object",{values:function(t){return s(t)}})},c5bb:function(t,e,a){}}]); \ No newline at end of file +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0b1f3772"],{"504c":function(t,e,a){var l=a("9e1e"),s=a("0d58"),i=a("6821"),r=a("52a7").f;t.exports=function(t){return function(e){var a,n=i(e),o=s(n),c=o.length,d=0,u=[];while(c>d)a=o[d++],l&&!r.call(n,a)||u.push(t?[a,n[a]]:n[a]);return u}}},"6ece":function(t,e,a){"use strict";a.r(e);var l=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"divBox"},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("div",{staticClass:"container"},[a("el-form",{attrs:{size:"small","label-width":"120px",inline:""}},[a("el-form-item",{attrs:{label:"预售活动状态:"}},[a("el-select",{staticClass:"filter-item selWidth",attrs:{placeholder:"请选择",clearable:""},on:{change:function(e){return t.getList(1)}},model:{value:t.tableFrom.type,callback:function(e){t.$set(t.tableFrom,"type",e)},expression:"tableFrom.type"}},t._l(t.preSaleStatusList,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1),t._v(" "),a("el-form-item",{attrs:{label:"活动商品状态:"}},[a("el-select",{staticClass:"filter-item selWidth",attrs:{placeholder:"请选择",clearable:""},on:{change:t.getList},model:{value:t.tableFrom.us_status,callback:function(e){t.$set(t.tableFrom,"us_status",e)},expression:"tableFrom.us_status"}},t._l(t.productStatusList,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1),t._v(" "),a("el-form-item",{attrs:{label:"标签:"}},[a("el-select",{staticClass:"filter-item selWidth mr20",attrs:{placeholder:"请选择",clearable:"",filterable:""},on:{change:function(e){return t.getList(1)}},model:{value:t.tableFrom.mer_labels,callback:function(e){t.$set(t.tableFrom,"mer_labels",e)},expression:"tableFrom.mer_labels"}},t._l(t.labelList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1)],1),t._v(" "),a("el-form-item",{attrs:{label:"关键字搜索:"}},[a("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入预售商品名称/ID"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getList(1)}},model:{value:t.tableFrom.keyword,callback:function(e){t.$set(t.tableFrom,"keyword",e)},expression:"tableFrom.keyword"}},[a("el-button",{staticClass:"el-button-solt",attrs:{slot:"append",icon:"el-icon-search"},on:{click:function(e){return t.getList(1)}},slot:"append"})],1)],1)],1)],1),t._v(" "),a("el-tabs",{on:{"tab-click":function(e){return t.getList(1)}},model:{value:t.tableFrom.presell_type,callback:function(e){t.$set(t.tableFrom,"presell_type",e)},expression:"tableFrom.presell_type"}},t._l(t.headeNum,(function(t,e){return a("el-tab-pane",{key:e,attrs:{name:t.presell_type.toString(),label:t.title+"("+t.count+")"}})})),1),t._v(" "),a("router-link",{attrs:{to:{path:t.roterPre+"/marketing/presell/create"}}},[a("el-button",{attrs:{size:"small",type:"primary"}},[a("i",{staticClass:"add"},[t._v("+")]),t._v(" 添加预售商品\n ")])],1)],1),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{data:t.tableData.data,size:"mini","row-class-name":t.tableRowClassName},on:{rowclick:function(e){return e.stopPropagation(),t.closeEdit(e)}}},[a("el-table-column",{attrs:{prop:"product_presell_id",label:"ID","min-width":"50"}}),t._v(" "),a("el-table-column",{attrs:{label:"商品图","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(t){return[a("div",{staticClass:"demo-image__preview"},[a("el-image",{attrs:{src:t.row.product.image,"preview-src-list":[t.row.product.image]}})],1)]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"store_name",label:"商品名称","min-width":"120"}}),t._v(" "),a("el-table-column",{attrs:{prop:"price",label:"预售价","min-width":"90"}}),t._v(" "),a("el-table-column",{attrs:{label:"预售活动状态","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(0===e.row.presell_status?"未开始":1===e.row.presell_status?"正在进行":"已结束"))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"预售活动日期","min-width":"160"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v("开始日期:"+t._s(e.row.start_time&&e.row.start_time?e.row.start_time.slice(0,10):""))]),t._v(" "),a("div",[t._v("结束日期:"+t._s(e.row.end_time&&e.row.end_time?e.row.end_time.slice(0,10):""))])]}}])}),t._v(" "),"1"===t.tableFrom.presell_type?a("el-table-column",{attrs:{label:"成功/参与人次","min-width":"90",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.tattend_one&&e.row.tattend_one.pay)+" / "+t._s(e.row.tattend_one&&e.row.tattend_one.all))])]}}],null,!1,2898212109)}):t._e(),t._v(" "),"2"===t.tableFrom.presell_type?a("el-table-column",{attrs:{label:"第一阶段 | 成功/参与人次","render-header":t.renderheader,"min-width":"90",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.tattend_one&&e.row.tattend_one.pay)+" / "+t._s(e.row.tattend_one&&e.row.tattend_one.all))])]}}],null,!1,2898212109)}):t._e(),t._v(" "),"2"===t.tableFrom.presell_type?a("el-table-column",{attrs:{label:"第二阶段 | 成功/参与人次","render-header":t.renderheader,"min-width":"90",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.tattend_two&&e.row.tattend_two.pay)+" / "+t._s(e.row.tattend_two&&e.row.tattend_two.all))])]}}],null,!1,649476621)}):t._e(),t._v(" "),a("el-table-column",{attrs:{prop:"seles",label:"已售商品数","min-width":"90"}}),t._v(" "),a("el-table-column",{attrs:{prop:"stock_count",label:"限量","min-width":"90"}}),t._v(" "),a("el-table-column",{attrs:{prop:"stock",label:"限量剩余","min-width":"90"}}),t._v(" "),a("el-table-column",{attrs:{prop:"status",label:"上/下架","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-switch",{attrs:{"active-value":1,"inactive-value":0,"active-text":"上架","inactive-text":"下架"},on:{change:function(a){return t.onchangeIsShow(e.row)}},model:{value:e.row.is_show,callback:function(a){t.$set(e.row,"is_show",a)},expression:"scope.row.is_show"}})]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"stock",label:"商品状态","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("productStatusFilter")(e.row.us_status)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"stock",label:"标签","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(e){return t._l(e.row.mer_labels,(function(e,l){return a("div",{key:l,staticClass:"label-list"},[t._v(t._s(e.name))])}))}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"product.sort",align:"center",label:"排序","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.index===t.tabClickIndex?a("span",[a("el-input",{attrs:{type:"number",maxlength:"300",size:"mini",autofocus:""},on:{blur:function(a){return t.inputBlur(e)}},model:{value:e.row["product"]["sort"],callback:function(a){t.$set(e.row["product"],"sort",t._n(a))},expression:"scope.row['product']['sort']"}})],1):a("span",{on:{dblclick:function(a){return a.stopPropagation(),t.tabClick(e.row)}}},[t._v(t._s(e.row["product"]["sort"]))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"审核状态","min-width":"130"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(0===e.row.product_status?"待审核":1===e.row.product_status?"审核通过":"审核失败"))]),t._v(" "),-1===e.row.product_status||-2===e.row.product_status?a("span",{staticStyle:{"font-size":"12px"}},[a("br"),t._v("\n 原因:"+t._s(e.row.refusal)+"\n ")]):t._e()]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作","min-width":"150",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[0===e.row.presell_status?a("router-link",{attrs:{to:{path:t.roterPre+"/marketing/presell/create/"+e.row.product_presell_id}}},[a("el-button",{staticClass:"mr10",attrs:{type:"text",size:"small"}},[t._v("编辑")])],1):t._e(),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.handlePreview(e.row.product_presell_id)}}},[t._v("预览")]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.onEditLabel(e.row)}}},[t._v("编辑标签")]),t._v(" "),a("el-button",{staticClass:"mr10",attrs:{type:"text",size:"small"},on:{click:function(a){return t.goDetail(e.row.product_presell_id)}}},[t._v("详情")]),t._v(" "),1!==e.row.product.presell_status?a("el-button",{staticClass:"mr10",attrs:{type:"text",size:"small"},on:{click:function(a){return t.handleDelete(e.row.product_presell_id,e.$index)}}},[t._v("删除")]):t._e()]}}])})],1),t._v(" "),a("div",{staticClass:"block"},[a("el-pagination",{attrs:{"page-sizes":[20,40,60,80],"page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"total, sizes, prev, pager, next, jumper",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1),t._v(" "),t.dialogVisible?a("el-dialog",{attrs:{title:"预售商品详情",center:"",visible:t.dialogVisible,width:"700px"},on:{"update:visible":function(e){t.dialogVisible=e}}},[a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{"margin-top":"5px"}},[a("div",{staticClass:"box-container"},[a("div",{staticClass:"title"},[t._v("基本信息")]),t._v(" "),a("div",{staticClass:"acea-row"},[a("div",{staticClass:"list sp"},[a("label",{staticClass:"name"},[t._v("商品ID:")]),t._v(t._s(t.formValidate.product_id))]),t._v(" "),a("div",{staticClass:"list sp"},[a("label",{staticClass:"name"},[t._v("商品名称:")]),a("span",[t._v(t._s(t.formValidate.store_name))])]),t._v(" "),a("div",{staticClass:"list sp100 image"},[a("label",{staticClass:"name"},[t._v("商品图:")]),t._v(" "),a("img",{staticStyle:{"max-width":"150px",height:"80px"},attrs:{src:t.formValidate.image}})]),t._v(" "),a("div",{staticClass:"list sp100"},[a("label",{staticClass:"name"},[t._v("商品信息")]),t._v(" "),0===t.formValidate.spec_type?a("div",[a("el-table",{staticClass:"tabNumWidth",attrs:{data:t.OneattrValue,border:"",size:"mini"}},[a("el-table-column",{attrs:{align:"center",label:"预售价格","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row["presell_price"]))])]}}],null,!1,1547007341)}),t._v(" "),2===t.formValidate.presell_type?a("el-table-column",{attrs:{align:"center",label:"预售定金","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row["down_price"]))])]}}],null,!1,2160669390)}):t._e(),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"已售商品数量","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row["sales"]))])]}}],null,!1,703426790)})],1)],1):t._e(),t._v(" "),1===t.formValidate.spec_type?a("div",{staticClass:"labeltop",attrs:{label:"规格列表:"}},[a("el-table",{attrs:{data:t.ManyAttrValue,height:"260","tooltip-effect":"dark","row-key":function(t){return t.id}}},[t.manyTabDate?t._l(t.manyTabDate,(function(e,l){return a("el-table-column",{key:l,attrs:{align:"center",label:t.manyTabTit[l].title,"min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{staticClass:"priceBox",domProps:{textContent:t._s(e.row[l])}})]}}],null,!0)})})):t._e(),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"预售价格","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row["presell_price"]))])]}}],null,!1,1547007341)}),t._v(" "),2===t.formValidate.presell_type?a("el-table-column",{attrs:{align:"center",label:"预售定金","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row["down_price"]))])]}}],null,!1,2160669390)}):t._e(),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"已售商品数量","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row["sales"]))])]}}],null,!1,703426790)})],2)],1):t._e()])]),t._v(" "),a("div",{staticClass:"title",staticStyle:{"margin-top":"20px"}},[t._v("预售商品活动信息")]),t._v(" "),a("div",{staticClass:"acea-row"},[a("div",{staticClass:"list sp100"},[a("label",{staticClass:"name"},[t._v("预售简介:")]),t._v(t._s(t.formValidate.store_info))]),t._v(" "),a("div",{staticClass:"list sp100"},[a("label",{staticClass:"name"},[t._v("预售活动日期:")]),t._v(t._s(t.formValidate.start_time+"-"+t.formValidate.end_time))]),t._v(" "),2===t.formValidate.presell_type?a("div",{staticClass:"list sp100"},[a("label",{staticClass:"name"},[t._v("尾款支付日期:")]),t._v(t._s(t.formValidate.final_start_time+"-"+t.formValidate.final_end_time))]):t._e(),t._v(" "),a("div",{staticClass:"list sp"},[a("label",{staticClass:"name"},[t._v("审核状态:")]),t._v(t._s(1===t.formValidate.product_status?"审核通过":0===t.formValidate.product_status?"未审核":"审核未通过"))]),t._v(" "),1===t.formValidate.presell_type?a("div",{staticClass:"list sp"},[a("label",{staticClass:"name"},[t._v("预售成功/参与人次:")]),t._v(t._s((t.formValidate.tattend_one&&t.formValidate.tattend_one.pay)+"/"+(t.formValidate.tattend_one&&t.formValidate.tattend_one.all)))]):t._e(),t._v(" "),a("div",{staticClass:"list sp"},[a("label",{staticClass:"name"},[t._v("限量:")]),t._v(t._s(t.formValidate.stock_count))]),t._v(" "),a("div",{staticClass:"list sp"},[a("label",{staticClass:"name"},[t._v("限量剩余:")]),t._v(t._s(t.formValidate.stock))]),t._v(" "),a("div",{staticClass:"list sp"},[a("label",{staticClass:"name"},[t._v("限购件数:")]),t._v(t._s(t.formValidate.pay_count)+"(0为不限制购买数量)")]),t._v(" "),2===t.formValidate.presell_type?a("div",{staticClass:"list sp"},[a("label",{staticClass:"name"},[t._v("第一阶段(定金支付)成功/参与人次:")]),t._v(t._s((t.formValidate.tattend_one&&t.formValidate.tattend_one.pay)+"/"+(t.formValidate.tattend_one&&t.formValidate.tattend_one.all)))]):t._e(),t._v(" "),2===t.formValidate.presell_type?a("div",{staticClass:"list sp"},[a("label",{staticClass:"name"},[t._v("第二阶段(尾款支付)成功/参与人次:")]),t._v(t._s((t.formValidate.tattend_two&&t.formValidate.tattend_two.pay)+"/"+(t.formValidate.tattend_two&&t.formValidate.tattend_two.all)))]):t._e(),t._v(" "),2===t.formValidate.presell_type?a("div",{staticClass:"list sp"},[a("label",{staticClass:"name"},[t._v("发货时间:")]),t._v(t._s("支付尾款后"+t.formValidate.delivery_day+"天内"))]):t._e(),t._v(" "),1===t.formValidate.presell_type?a("div",{staticClass:"list sp"},[a("label",{staticClass:"name"},[t._v("发货时间:")]),t._v(t._s(1===t.formValidate.delivery_type?"支付成功后"+t.formValidate.delivery_day+"天内":"预售结束后"+t.formValidate.delivery_day+"天内"))]):t._e(),t._v(" "),a("div",{staticClass:"list sp"},[a("label",{staticClass:"name"},[t._v("预售活动状态:")]),t._v(t._s(0===t.formValidate.presell_status?"未开始":1===t.formValidate.presell_status?"正在进行":"已结束"))]),t._v(" "),a("div",{staticClass:"list sp"},[a("label",{staticClass:"name"},[t._v("显示状态:")]),t._v(t._s(1===t.formValidate.is_show?"显示":"隐藏"))]),t._v(" "),a("div",{staticClass:"list sp"},[a("label",{staticClass:"name"},[t._v("创建时间:")]),t._v(t._s(t.formValidate.create_time))])])])])]):t._e(),t._v(" "),t.previewVisible?a("div",[a("div",{staticClass:"bg",on:{click:function(e){e.stopPropagation(),t.previewVisible=!1}}}),t._v(" "),t.previewVisible?a("preview-box",{ref:"previewBox",attrs:{"goods-id":t.goodsId,"product-type":2,"preview-key":t.previewKey}}):t._e()],1):t._e(),t._v(" "),t.dialogLabel?a("el-dialog",{attrs:{title:"选择标签",visible:t.dialogLabel,width:"800px","before-close":t.handleClose},on:{"update:visible":function(e){t.dialogLabel=e}}},[a("el-form",{ref:"labelForm",attrs:{model:t.labelForm},nativeOn:{submit:function(t){t.preventDefault()}}},[a("el-form-item",[a("el-select",{staticClass:"selWidth",attrs:{clearable:"",multiple:"",placeholder:"请选择"},model:{value:t.labelForm.mer_labels,callback:function(e){t.$set(t.labelForm,"mer_labels",e)},expression:"labelForm.mer_labels"}},t._l(t.labelList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1)],1)],1),t._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.submitForm("labelForm")}}},[t._v("提交")])],1)],1):t._e()],1)},s=[],i=a("c7eb"),r=(a("96cf"),a("1da1")),n=(a("7f7f"),a("8615"),a("ac6a"),a("28a5"),a("55dd"),a("c4c8")),o=a("b7be"),c=a("8c98"),d=a("83d6"),u={product_id:"",image:"",slider_image:[],store_name:"",store_info:"",start_day:"",end_day:"",start_time:"",end_time:"",is_open_recommend:1,is_open_state:1,is_show:1,presell_type:1,keyword:"",brand_id:"",cate_id:"",mer_cate_id:[],unit_name:"",integral:0,sort:0,is_good:0,temp_id:"",preSale_date:"",finalPayment_date:"",delivery_type:1,delivery_day:10,create_time:"",attrValue:[{image:"",price:null,down_price:null,presell_price:null,cost:null,ot_price:null,old_stock:null,stock:null,bar_code:"",weight:null,volume:null}],attr:[],extension_type:0,content:"",spec_type:0,is_gift_bag:0,tattend_two:{},tattend_one:{}},_={name:"ProductList",components:{previewBox:c["a"]},data:function(){return{headeNum:[{count:0,presell_type:1,title:"全款预售"},{count:0,presell_type:2,title:"定金预售"}],props:{emitPath:!1},roterPre:d["roterPre"],listLoading:!0,tableData:{data:[],total:0},preSaleStatusList:[{label:"未开始",value:0},{label:"正在进行",value:1},{label:"已结束",value:2}],productStatusList:[{label:"上架显示",value:1},{label:"下架",value:0},{label:"平台关闭",value:-1}],fromList:{custom:!0,fromTxt:[{text:"全部",val:""},{text:"待审核",val:"0"},{text:"已审核",val:"1"},{text:"审核失败",val:"-1"}]},tableFrom:{page:1,limit:20,keyword:"",mer_labels:"",product_status:this.$route.query.status?this.$route.query.status:"",type:"",presell_type:this.$route.query.type?this.$route.query.type:"1",us_status:"",product_presell_id:this.$route.query.id?this.$route.query.id:""},product_presell_id:this.$route.query.id?this.$route.query.id:"",product_id:"",modals:!1,dialogVisible:!1,loading:!0,manyTabTit:{},manyTabDate:{},formValidate:Object.assign({},u),OneattrValue:[Object.assign({},u.attrValue[0])],ManyAttrValue:[Object.assign({},u.attrValue[0])],attrInfo:{},tabClickIndex:"",previewVisible:!1,goodsId:"",previewKey:"",dialogLabel:!1,labelForm:{},labelList:[]}},watch:{product_presell_id:function(t,e){this.getList("")},$route:function(t,e){this.$route.query.product_presell_id&&this.getList("")}},mounted:function(){this.getList(""),this.getLabelLst()},methods:{tableRowClassName:function(t){var e=t.row,a=t.rowIndex;e.index=a},tabClick:function(t){this.tabClickIndex=t.index},inputBlur:function(t){var e=this;(!t.row.product.sort||t.row.product.sort<0)&&(t.row.product.sort=0),Object(o["X"])(t.row.product_presell_id,{sort:t.row.product.sort}).then((function(t){e.closeEdit()})).catch((function(t){}))},closeEdit:function(){this.tabClickIndex=null},renderheader:function(t,e){var a=e.column;e.$index;return t("span",{},[t("span",{},a.label.split("|")[0]),t("br"),t("span",{},a.label.split("|")[1])])},watCh:function(t){var e=this,a={},l={};this.formValidate.attr.forEach((function(t,e){a["value"+e]={title:t.value},l["value"+e]=""})),this.ManyAttrValue.forEach((function(t,a){var l=Object.values(t.detail).sort().join("/");e.attrInfo[l]&&(e.ManyAttrValue[a]=e.attrInfo[l])})),this.attrInfo={},this.ManyAttrValue.forEach((function(t){e.attrInfo[Object.values(t.detail).sort().join("/")]=t})),this.manyTabTit=a,this.manyTabDate=l},getLabelLst:function(){var t=this;Object(n["x"])().then((function(e){t.labelList=e.data})).catch((function(e){t.$message.error(e.message)}))},handleClose:function(){this.dialogLabel=!1},onEditLabel:function(t){if(this.dialogLabel=!0,this.product_id=t.product_presell_id,t.mer_labels&&t.mer_labels.length){var e=t.mer_labels.map((function(t){return t.id}));this.labelForm={mer_labels:e}}else this.labelForm={mer_labels:[]}},submitForm:function(t){var e=this;this.$refs[t].validate((function(t){t&&Object(n["Ub"])(e.product_id,e.labelForm).then((function(t){var a=t.message;e.$message.success(a),e.getList(""),e.dialogLabel=!1}))}))},goDetail:function(t){var e=this;this.dialogVisible=!0,this.loading=!0,this.formValidate={},Object(n["S"])(t).then(function(){var t=Object(r["a"])(Object(i["a"])().mark((function t(a){var l;return Object(i["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.loading=!1,l=a.data,e.formValidate={product_id:l.product.product_id,image:l.product.image,slider_image:l.product.slider_image,store_name:l.store_name,store_info:l.store_info,presell_type:l.presell_type?l.presell_type:1,delivery_type:l.delivery_type?l.delivery_type:1,delivery_day:l.delivery_day?l.delivery_day:10,start_time:l.start_time?l.start_time:"",end_time:l.end_time?l.end_time:"",final_start_time:l.final_start_time?l.final_start_time:"",final_end_time:l.final_end_time?l.final_end_time:"",brand_id:l.product.brand_id,cate_id:l.cate_id?l.cate_id:"",mer_cate_id:l.mer_cate_id,unit_name:l.product.unit_name,sort:l.product.sort,is_good:l.product.is_good,temp_id:l.product.temp_id,is_show:l.is_show,attr:l.product.attr,extension_type:l.extension_type,content:l.content,spec_type:l.product.spec_type,is_gift_bag:l.product.is_gift_bag,tattend_two:l.tattend_two,tattend_one:l.tattend_one,create_time:l.create_time,presell_status:l.presell_status,product_status:l.product_status,pay_count:l.pay_count,stock:l.stock,stock_count:l.stock_count},0===e.formValidate.spec_type?(e.OneattrValue=l.product.attrValue,e.OneattrValue[0].down_price=e.OneattrValue[0].presellSku?e.OneattrValue[0].presellSku.down_price:0,e.OneattrValue[0].presell_price=e.OneattrValue[0].presellSku?e.OneattrValue[0].presellSku.presell_price:0,e.OneattrValue[0].sales=e.OneattrValue[0].presellSku?e.OneattrValue[0].presellSku.seles:0):(e.ManyAttrValue=[],l.product.attrValue.forEach((function(t,a){t.presellSku&&(e.$set(t,"down_price",t.presellSku.down_price),e.$set(t,"presell_price",t.presellSku.presell_price),e.$set(t,"sales",t.presellSku.seles),e.ManyAttrValue.push(t))})),e.watCh(e.formValidate.attr)),console.log(e.ManyAttrValue),e.fullscreenLoading=!1,e.formValidate.preSale_date=[l.start_time,l.end_time],e.formValidate.finalPayment_date=[l.final_start_time,l.final_end_time];case 8:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.fullscreenLoading=!1,e.$message.error(t.message)}))},handlePreview:function(t){this.previewVisible=!0,this.goodsId=t,this.previewKey=""},getList:function(t){var e=this;this.listLoading=!0,this.tableFrom.page=t||this.tableFrom.page,Object(n["T"])(this.tableFrom).then((function(t){e.tableData.data=t.data.list,e.tableData.total=t.data.count,e.headeNum[0]["count"]=t.data.stat.all,e.headeNum[1]["count"]=t.data.stat.down,console.log(e.headeNum),e.listLoading=!1})).catch((function(t){e.listLoading=!1,e.$message.error(t.message)}))},pageChange:function(t){this.tableFrom.page=t,this.getList("")},handleSizeChange:function(t){this.tableFrom.limit=t,this.getList("")},handleDelete:function(t,e){var a=this;this.$modalSure("删除该商品吗").then((function(){Object(n["V"])(t).then((function(t){var l=t.message;a.$message.success(l),a.tableData.data.splice(e,1)})).catch((function(t){var e=t.message;a.$message.error(e)}))}))},onchangeIsShow:function(t){var e=this;Object(n["X"])(t.product_presell_id,t.is_show).then((function(t){var a=t.message;e.$message.success(a),e.getList("")})).catch((function(t){var a=t.message;e.$message.error(a)}))}}},p=_,m=(a("7205"),a("2877")),b=Object(m["a"])(p,l,s,!1,null,"e2b0485e",null);e["default"]=b.exports},7205:function(t,e,a){"use strict";a("c5bb")},8615:function(t,e,a){var l=a("5ca1"),s=a("504c")(!1);l(l.S,"Object",{values:function(t){return s(t)}})},c5bb:function(t,e,a){}}]); \ No newline at end of file diff --git a/public/mer/js/chunk-0d2c1415.ba523645.js b/public/mer/js/chunk-0d2c1415.5728c33d.js similarity index 95% rename from public/mer/js/chunk-0d2c1415.ba523645.js rename to public/mer/js/chunk-0d2c1415.5728c33d.js index 7cc4200c..86ccc00d 100644 --- a/public/mer/js/chunk-0d2c1415.ba523645.js +++ b/public/mer/js/chunk-0d2c1415.5728c33d.js @@ -1 +1 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0d2c1415","chunk-2d0da983"],{4553:function(e,t,i){"use strict";i.r(t);var o=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("div",{staticClass:"mt20 ml20"},[i("el-input",{staticStyle:{width:"300px"},attrs:{placeholder:"请输入视频链接"},model:{value:e.videoLink,callback:function(t){e.videoLink=t},expression:"videoLink"}}),e._v(" "),i("input",{ref:"refid",staticStyle:{display:"none"},attrs:{type:"file"},on:{change:e.zh_uploadFile_change}}),e._v(" "),i("el-button",{staticClass:"ml10",attrs:{type:"primary",icon:"ios-cloud-upload-outline"},on:{click:e.zh_uploadFile}},[e._v(e._s(e.videoLink?"确认添加":"上传视频"))]),e._v(" "),e.upload.videoIng?i("el-progress",{staticStyle:{"margin-top":"20px"},attrs:{"stroke-width":20,percentage:e.progress,"text-inside":!0}}):e._e(),e._v(" "),e.formValidate.video_link?i("div",{staticClass:"iview-video-style"},[i("video",{staticStyle:{width:"100%",height:"100%!important","border-radius":"10px"},attrs:{src:e.formValidate.video_link,controls:"controls"}},[e._v("\n 您的浏览器不支持 video 标签。\n ")]),e._v(" "),i("div",{staticClass:"mark"}),e._v(" "),i("i",{staticClass:"iconv el-icon-delete",on:{click:e.delVideo}})]):e._e()],1),e._v(" "),i("div",{staticClass:"mt50 ml20"},[i("el-button",{attrs:{type:"primary"},on:{click:e.uploads}},[e._v("确认")])],1)])},a=[],n=(i("7f7f"),i("c4c8")),s=(i("6bef"),{name:"Vide11o",props:{isDiy:{type:Boolean,default:!1}},data:function(){return{upload:{videoIng:!1},progress:20,videoLink:"",formValidate:{video_link:""}}},methods:{delVideo:function(){var e=this;e.$set(e.formValidate,"video_link","")},zh_uploadFile:function(){this.videoLink?this.formValidate.video_link=this.videoLink:this.$refs.refid.click()},zh_uploadFile_change:function(e){var t=this,i=e.target.files[0].name.substr(e.target.files[0].name.indexOf("."));if(".mp4"!==i)return t.$message.error("只能上传MP4文件");Object(n["fb"])().then((function(i){t.$videoCloud.videoUpload({type:i.data.type,evfile:e,res:i,uploading:function(e,i){t.upload.videoIng=e,console.log(e,i)}}).then((function(e){t.formValidate.video_link=e.url||e.data.src,t.$message.success("视频上传成功"),t.progress=100,t.upload.videoIng=!1})).catch((function(e){t.$message.error(e)}))}))},uploads:function(){this.formValidate.video_link||this.videoLink?!this.videoLink||this.formValidate.video_link?this.isDiy?this.$emit("getVideo",this.formValidate.video_link):nowEditor&&(nowEditor.dialog.close(!0),nowEditor.editor.setContent("",!0)):this.$message.error("请点击确认添加按钮!"):this.$message.error("您还没有上传视频!")}}}),r=s,d=(i("8307"),i("2877")),l=Object(d["a"])(r,o,a,!1,null,"732b6bbd",null);t["default"]=l.exports},"6bef":function(e,t,i){"use strict";i.r(t);i("28a5"),i("a481");(function(){if(window.frameElement&&window.frameElement.id){var e=window.parent,t=e.$EDITORUI[window.frameElement.id.replace(/_iframe$/,"")],i=t.editor,o=e.UE,a=o.dom.domUtils,n=o.utils,s=(o.browser,o.ajax,function(e){return document.getElementById(e)});window.nowEditor={editor:i,dialog:t},n.loadFile(document,{href:i.options.themePath+i.options.theme+"/dialogbase.css?cache="+Math.random(),tag:"link",type:"text/css",rel:"stylesheet"});var r=i.getLang(t.className.split("-")[2]);r&&a.on(window,"load",(function(){var e=i.options.langPath+i.options.lang+"/images/";for(var t in r["static"]){var o=s(t);if(o){var d=o.tagName,l=r["static"][t];switch(l.src&&(l=n.extend({},l,!1),l.src=e+l.src),l.style&&(l=n.extend({},l,!1),l.style=l.style.replace(/url\s*\(/g,"url("+e)),d.toLowerCase()){case"var":o.parentNode.replaceChild(document.createTextNode(l),o);break;case"select":for(var c,u=o.options,v=0;c=u[v];)c.innerHTML=l.options[v++];for(var f in l)"options"!=f&&o.setAttribute(f,l[f]);break;default:a.setAttributes(o,l)}}}}))}})()},8307:function(e,t,i){"use strict";i("f5ee")},f5ee:function(e,t,i){}}]); \ No newline at end of file +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0d2c1415","chunk-2d0da983"],{4553:function(e,t,i){"use strict";i.r(t);var o=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("div",{staticClass:"mt20 ml20"},[i("el-input",{staticStyle:{width:"300px"},attrs:{placeholder:"请输入视频链接"},model:{value:e.videoLink,callback:function(t){e.videoLink=t},expression:"videoLink"}}),e._v(" "),i("input",{ref:"refid",staticStyle:{display:"none"},attrs:{type:"file"},on:{change:e.zh_uploadFile_change}}),e._v(" "),i("el-button",{staticClass:"ml10",attrs:{type:"primary",icon:"ios-cloud-upload-outline"},on:{click:e.zh_uploadFile}},[e._v(e._s(e.videoLink?"确认添加":"上传视频"))]),e._v(" "),e.upload.videoIng?i("el-progress",{staticStyle:{"margin-top":"20px"},attrs:{"stroke-width":20,percentage:e.progress,"text-inside":!0}}):e._e(),e._v(" "),e.formValidate.video_link?i("div",{staticClass:"iview-video-style"},[i("video",{staticStyle:{width:"100%",height:"100%!important","border-radius":"10px"},attrs:{src:e.formValidate.video_link,controls:"controls"}},[e._v("\n 您的浏览器不支持 video 标签。\n ")]),e._v(" "),i("div",{staticClass:"mark"}),e._v(" "),i("i",{staticClass:"iconv el-icon-delete",on:{click:e.delVideo}})]):e._e()],1),e._v(" "),i("div",{staticClass:"mt50 ml20"},[i("el-button",{attrs:{type:"primary"},on:{click:e.uploads}},[e._v("确认")])],1)])},a=[],n=(i("7f7f"),i("c4c8")),s=(i("6bef"),{name:"Vide11o",props:{isDiy:{type:Boolean,default:!1}},data:function(){return{upload:{videoIng:!1},progress:20,videoLink:"",formValidate:{video_link:""}}},methods:{delVideo:function(){var e=this;e.$set(e.formValidate,"video_link","")},zh_uploadFile:function(){this.videoLink?this.formValidate.video_link=this.videoLink:this.$refs.refid.click()},zh_uploadFile_change:function(e){var t=this,i=e.target.files[0].name.substr(e.target.files[0].name.indexOf("."));if(".mp4"!==i)return t.$message.error("只能上传MP4文件");Object(n["hb"])().then((function(i){t.$videoCloud.videoUpload({type:i.data.type,evfile:e,res:i,uploading:function(e,i){t.upload.videoIng=e,console.log(e,i)}}).then((function(e){t.formValidate.video_link=e.url||e.data.src,t.$message.success("视频上传成功"),t.progress=100,t.upload.videoIng=!1})).catch((function(e){t.$message.error(e)}))}))},uploads:function(){this.formValidate.video_link||this.videoLink?!this.videoLink||this.formValidate.video_link?this.isDiy?this.$emit("getVideo",this.formValidate.video_link):nowEditor&&(nowEditor.dialog.close(!0),nowEditor.editor.setContent("",!0)):this.$message.error("请点击确认添加按钮!"):this.$message.error("您还没有上传视频!")}}}),r=s,d=(i("8307"),i("2877")),l=Object(d["a"])(r,o,a,!1,null,"732b6bbd",null);t["default"]=l.exports},"6bef":function(e,t,i){"use strict";i.r(t);i("28a5"),i("a481");(function(){if(window.frameElement&&window.frameElement.id){var e=window.parent,t=e.$EDITORUI[window.frameElement.id.replace(/_iframe$/,"")],i=t.editor,o=e.UE,a=o.dom.domUtils,n=o.utils,s=(o.browser,o.ajax,function(e){return document.getElementById(e)});window.nowEditor={editor:i,dialog:t},n.loadFile(document,{href:i.options.themePath+i.options.theme+"/dialogbase.css?cache="+Math.random(),tag:"link",type:"text/css",rel:"stylesheet"});var r=i.getLang(t.className.split("-")[2]);r&&a.on(window,"load",(function(){var e=i.options.langPath+i.options.lang+"/images/";for(var t in r["static"]){var o=s(t);if(o){var d=o.tagName,l=r["static"][t];switch(l.src&&(l=n.extend({},l,!1),l.src=e+l.src),l.style&&(l=n.extend({},l,!1),l.style=l.style.replace(/url\s*\(/g,"url("+e)),d.toLowerCase()){case"var":o.parentNode.replaceChild(document.createTextNode(l),o);break;case"select":for(var c,u=o.options,v=0;c=u[v];)c.innerHTML=l.options[v++];for(var p in l)"options"!=p&&o.setAttribute(p,l[p]);break;default:a.setAttributes(o,l)}}}}))}})()},8307:function(e,t,i){"use strict";i("f5ee")},f5ee:function(e,t,i){}}]); \ No newline at end of file diff --git a/public/mer/js/chunk-2d0ab2c5.d815ca5c.js b/public/mer/js/chunk-2d0ab2c5.0f2e2ef4.js similarity index 95% rename from public/mer/js/chunk-2d0ab2c5.d815ca5c.js rename to public/mer/js/chunk-2d0ab2c5.0f2e2ef4.js index e78d7044..bb4c9bb7 100644 --- a/public/mer/js/chunk-2d0ab2c5.d815ca5c.js +++ b/public/mer/js/chunk-2d0ab2c5.0f2e2ef4.js @@ -1 +1 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0ab2c5"],{"13c0":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"divBox"},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("div",{staticClass:"container"},[a("el-form",{attrs:{inline:""},nativeOn:{submit:function(t){t.preventDefault()}}},[a("el-form-item",{staticClass:"mr10",attrs:{label:"服务名称:"}},[a("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入服务名称搜索",size:"small"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getList(1)}},model:{value:t.tableFrom.keyword,callback:function(e){t.$set(t.tableFrom,"keyword",e)},expression:"tableFrom.keyword"}},[a("el-button",{staticClass:"el-button-solt",attrs:{slot:"append",icon:"el-icon-search",size:"small"},on:{click:function(e){return t.getList(1)}},slot:"append"})],1)],1)],1)],1),t._v(" "),a("el-button",{attrs:{size:"small",type:"primary"},on:{click:t.add}},[t._v("添加服务说明模板")])],1),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{data:t.tableData.data,size:"mini","row-class-name":t.tableRowClassName},on:{rowclick:function(e){return e.stopPropagation(),t.closeEdit(e)}}},[a("el-table-column",{attrs:{prop:"guarantee_template_id",label:"ID","min-width":"150"}}),t._v(" "),a("el-table-column",{attrs:{prop:"template_name",label:"服务名称","min-width":"200"}}),t._v(" "),a("el-table-column",{attrs:{prop:"guarantee_info",label:"服务条款","min-width":"200"},scopedSlots:t._u([{key:"default",fn:function(e){return t._l(e.row.template_value,(function(n,i){return e.row.template_value?a("div",{key:i},[n.value&&n.value.guarantee_name?a("span",[t._v(t._s(i+1)+". "+t._s(n.value.guarantee_name))]):t._e()]):t._e()}))}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"sort",align:"center",label:"排序","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.index===t.tabClickIndex?a("span",[a("el-input",{attrs:{type:"number",maxlength:"300",size:"mini",autofocus:""},on:{blur:function(a){return t.inputBlur(e)}},model:{value:e.row["sort"],callback:function(a){t.$set(e.row,"sort",t._n(a))},expression:"scope.row['sort']"}})],1):a("span",{on:{dblclick:function(a){return a.stopPropagation(),t.tabClick(e.row)}}},[t._v(t._s(e.row["sort"]))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"是否显示","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-switch",{attrs:{"active-value":1,"inactive-value":0,"active-text":"显示","inactive-text":"不显示"},nativeOn:{click:function(a){return t.onchangeIsShow(e.row)}},model:{value:e.row.status,callback:function(a){t.$set(e.row,"status",a)},expression:"scope.row.status"}})]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"创建时间","min-width":"150",prop:"create_time"}}),t._v(" "),a("el-table-column",{attrs:{label:"操作","min-width":"80",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.handleEdit(e.row.guarantee_template_id)}}},[t._v("编辑")]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.handleDelete(e.row.guarantee_template_id,e.$index)}}},[t._v("删除")])]}}])})],1),t._v(" "),a("div",{staticClass:"block"},[a("el-pagination",{attrs:{"page-sizes":[20,40,60,80],"page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"total, sizes, prev, pager, next, jumper",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1),t._v(" "),a("guarantee-service",{ref:"serviceGuarantee",on:{"get-list":t.getList}})],1)},i=[],s=(a("55dd"),a("c4c8")),l=a("ae43"),o={name:"ProductGuarantee",components:{guaranteeService:l["a"]},data:function(){return{tableData:{data:[],total:0},listLoading:!0,tableFrom:{page:1,limit:20,date:"",keyword:""},timeVal:[],props:{},tabClickIndex:""}},mounted:function(){this.getList(1)},methods:{tableRowClassName:function(t){var e=t.row,a=t.rowIndex;e.index=a},tabClick:function(t){this.tabClickIndex=t.index},inputBlur:function(t){var e=this;(!t.row.sort||t.row.sort<0)&&(t.row.sort=0),Object(s["E"])(t.row.guarantee_template_id,{sort:t.row.sort}).then((function(t){e.closeEdit()})).catch((function(t){}))},closeEdit:function(){this.tabClickIndex=null},handleCloseItems:function(t){var e=this;this.termsService.splice(this.termsService.indexOf(t),1),this.formValidate.template_value=[],this.termsService.map((function(t){e.formValidate.template_value.push(t.guarantee_id)}))},add:function(){this.$refs.serviceGuarantee.add()},onchangeIsShow:function(t){var e=this;Object(s["F"])(t.guarantee_template_id,{status:t.status}).then((function(t){var a=t.message;e.$message.success(a),e.getList("")})).catch((function(t){var a=t.message;e.$message.error(a)}))},handleEdit:function(t){this.$refs.serviceGuarantee.handleEdit(t),this.$refs.serviceGuarantee.loading=!1},getList:function(t){var e=this;this.listLoading=!0,this.tableFrom.page=t||this.tableFrom.page,Object(s["C"])(this.tableFrom).then((function(t){e.tableData.data=t.data.list,e.tableData.total=t.data.count,e.listLoading=!1})).catch((function(t){e.listLoading=!1,e.$message.error(t.message)}))},pageChange:function(t){this.tableFrom.page=t,this.getList("")},handleSizeChange:function(t){this.tableFrom.limit=t,this.getList("")},handleDelete:function(t,e){var a=this;this.$modalSure().then((function(){Object(s["z"])(t).then((function(t){var e=t.message;a.$message.success(e),a.getList("")})).catch((function(t){var e=t.message;a.$message.error(e)}))}))}}},r=o,c=a("2877"),u=Object(c["a"])(r,n,i,!1,null,"74f7d69b",null);e["default"]=u.exports}}]); \ No newline at end of file +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0ab2c5"],{"13c0":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"divBox"},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("div",{staticClass:"container"},[a("el-form",{attrs:{inline:""},nativeOn:{submit:function(t){t.preventDefault()}}},[a("el-form-item",{staticClass:"mr10",attrs:{label:"服务名称:"}},[a("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入服务名称搜索",size:"small"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getList(1)}},model:{value:t.tableFrom.keyword,callback:function(e){t.$set(t.tableFrom,"keyword",e)},expression:"tableFrom.keyword"}},[a("el-button",{staticClass:"el-button-solt",attrs:{slot:"append",icon:"el-icon-search",size:"small"},on:{click:function(e){return t.getList(1)}},slot:"append"})],1)],1)],1)],1),t._v(" "),a("el-button",{attrs:{size:"small",type:"primary"},on:{click:t.add}},[t._v("添加服务说明模板")])],1),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{data:t.tableData.data,size:"mini","row-class-name":t.tableRowClassName},on:{rowclick:function(e){return e.stopPropagation(),t.closeEdit(e)}}},[a("el-table-column",{attrs:{prop:"guarantee_template_id",label:"ID","min-width":"150"}}),t._v(" "),a("el-table-column",{attrs:{prop:"template_name",label:"服务名称","min-width":"200"}}),t._v(" "),a("el-table-column",{attrs:{prop:"guarantee_info",label:"服务条款","min-width":"200"},scopedSlots:t._u([{key:"default",fn:function(e){return t._l(e.row.template_value,(function(n,i){return e.row.template_value?a("div",{key:i},[n.value&&n.value.guarantee_name?a("span",[t._v(t._s(i+1)+". "+t._s(n.value.guarantee_name))]):t._e()]):t._e()}))}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"sort",align:"center",label:"排序","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.index===t.tabClickIndex?a("span",[a("el-input",{attrs:{type:"number",maxlength:"300",size:"mini",autofocus:""},on:{blur:function(a){return t.inputBlur(e)}},model:{value:e.row["sort"],callback:function(a){t.$set(e.row,"sort",t._n(a))},expression:"scope.row['sort']"}})],1):a("span",{on:{dblclick:function(a){return a.stopPropagation(),t.tabClick(e.row)}}},[t._v(t._s(e.row["sort"]))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"是否显示","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-switch",{attrs:{"active-value":1,"inactive-value":0,"active-text":"显示","inactive-text":"不显示"},nativeOn:{click:function(a){return t.onchangeIsShow(e.row)}},model:{value:e.row.status,callback:function(a){t.$set(e.row,"status",a)},expression:"scope.row.status"}})]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"创建时间","min-width":"150",prop:"create_time"}}),t._v(" "),a("el-table-column",{attrs:{label:"操作","min-width":"80",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.handleEdit(e.row.guarantee_template_id)}}},[t._v("编辑")]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.handleDelete(e.row.guarantee_template_id,e.$index)}}},[t._v("删除")])]}}])})],1),t._v(" "),a("div",{staticClass:"block"},[a("el-pagination",{attrs:{"page-sizes":[20,40,60,80],"page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"total, sizes, prev, pager, next, jumper",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1),t._v(" "),a("guarantee-service",{ref:"serviceGuarantee",on:{"get-list":t.getList}})],1)},i=[],s=(a("55dd"),a("c4c8")),l=a("ae43"),o={name:"ProductGuarantee",components:{guaranteeService:l["a"]},data:function(){return{tableData:{data:[],total:0},listLoading:!0,tableFrom:{page:1,limit:20,date:"",keyword:""},timeVal:[],props:{},tabClickIndex:""}},mounted:function(){this.getList(1)},methods:{tableRowClassName:function(t){var e=t.row,a=t.rowIndex;e.index=a},tabClick:function(t){this.tabClickIndex=t.index},inputBlur:function(t){var e=this;(!t.row.sort||t.row.sort<0)&&(t.row.sort=0),Object(s["G"])(t.row.guarantee_template_id,{sort:t.row.sort}).then((function(t){e.closeEdit()})).catch((function(t){}))},closeEdit:function(){this.tabClickIndex=null},handleCloseItems:function(t){var e=this;this.termsService.splice(this.termsService.indexOf(t),1),this.formValidate.template_value=[],this.termsService.map((function(t){e.formValidate.template_value.push(t.guarantee_id)}))},add:function(){this.$refs.serviceGuarantee.add()},onchangeIsShow:function(t){var e=this;Object(s["H"])(t.guarantee_template_id,{status:t.status}).then((function(t){var a=t.message;e.$message.success(a),e.getList("")})).catch((function(t){var a=t.message;e.$message.error(a)}))},handleEdit:function(t){this.$refs.serviceGuarantee.handleEdit(t),this.$refs.serviceGuarantee.loading=!1},getList:function(t){var e=this;this.listLoading=!0,this.tableFrom.page=t||this.tableFrom.page,Object(s["E"])(this.tableFrom).then((function(t){e.tableData.data=t.data.list,e.tableData.total=t.data.count,e.listLoading=!1})).catch((function(t){e.listLoading=!1,e.$message.error(t.message)}))},pageChange:function(t){this.tableFrom.page=t,this.getList("")},handleSizeChange:function(t){this.tableFrom.limit=t,this.getList("")},handleDelete:function(t,e){var a=this;this.$modalSure().then((function(){Object(s["B"])(t).then((function(t){var e=t.message;a.$message.success(e),a.getList("")})).catch((function(t){var e=t.message;a.$message.error(e)}))}))}}},r=o,c=a("2877"),u=Object(c["a"])(r,n,i,!1,null,"74f7d69b",null);e["default"]=u.exports}}]); \ No newline at end of file diff --git a/public/mer/js/chunk-2d0c212a.f2789af9.js b/public/mer/js/chunk-2d0c212a.cff57074.js similarity index 96% rename from public/mer/js/chunk-2d0c212a.f2789af9.js rename to public/mer/js/chunk-2d0c212a.cff57074.js index 7ad4356e..1907077a 100644 --- a/public/mer/js/chunk-2d0c212a.f2789af9.js +++ b/public/mer/js/chunk-2d0c212a.cff57074.js @@ -1 +1 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0c212a"],{"496e":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"divBox"},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("el-button",{attrs:{size:"small",type:"primary"},on:{click:t.add}},[t._v("添加商品规格")])],1),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{data:t.tableData.data,size:"small","highlight-current-row":""}},[a("el-table-column",{attrs:{prop:"attr_template_id",label:"ID","min-width":"60"}}),t._v(" "),a("el-table-column",{attrs:{prop:"template_name",label:"规格名称","min-width":"150"}}),t._v(" "),a("el-table-column",{attrs:{label:"商品规格","min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(e){return t._l(e.row.template_value,(function(e,n){return a("span",{key:n,staticClass:"mr10",domProps:{textContent:t._s(e.value)}})}))}}])}),t._v(" "),a("el-table-column",{attrs:{label:"商品属性","min-width":"300"},scopedSlots:t._u([{key:"default",fn:function(e){return t._l(e.row.template_value,(function(e,n){return a("div",{key:n,domProps:{textContent:t._s(e.detail.join(","))}})}))}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作","min-width":"100",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.onEdit(e.row)}}},[t._v("编辑")]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.handleDelete(e.row.attr_template_id,e.$index)}}},[t._v("删除\n ")])]}}])})],1),t._v(" "),a("div",{staticClass:"block"},[a("el-pagination",{attrs:{"page-sizes":[20,40,60,80],"page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"total, sizes, prev, pager, next, jumper",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1)],1)},i=[],l=a("c4c8"),s={name:"ProductAttr",data:function(){return{formDynamic:{template_name:"",template_value:[]},tableFrom:{page:1,limit:20},tableData:{data:[],total:0},listLoading:!0}},mounted:function(){this.getList()},methods:{add:function(){var t=this;t.formDynamic={template_name:"",template_value:[]},this.$modalAttr(Object.assign({},t.formDynamic),(function(){t.getList()}))},getList:function(){var t=this;this.listLoading=!0,Object(l["Ob"])(this.tableFrom).then((function(e){t.tableData.data=e.data.list,t.tableData.total=e.data.count,t.listLoading=!1})).catch((function(e){t.listLoading=!1,t.$message.error(e.message)}))},pageChange:function(t){this.tableFrom.page=t,this.getList()},handleSizeChange:function(t){this.tableFrom.limit=t,this.getList()},handleDelete:function(t,e){var a=this;this.$modalSure().then((function(){Object(l["k"])(t).then((function(t){var n=t.message;a.$message.success(n),a.tableData.data.splice(e,1)})).catch((function(t){var e=t.message;a.$message.error(e)}))}))},onEdit:function(t){var e=this;this.$modalAttr(JSON.parse(JSON.stringify(t)),(function(){e.getList(),this.formDynamic={template_name:"",template_value:[]}}))}}},o=s,r=a("2877"),c=Object(r["a"])(o,n,i,!1,null,null,null);e["default"]=c.exports}}]); \ No newline at end of file +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0c212a"],{"496e":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"divBox"},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("el-button",{attrs:{size:"small",type:"primary"},on:{click:t.add}},[t._v("添加商品规格")])],1),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{data:t.tableData.data,size:"small","highlight-current-row":""}},[a("el-table-column",{attrs:{prop:"attr_template_id",label:"ID","min-width":"60"}}),t._v(" "),a("el-table-column",{attrs:{prop:"template_name",label:"规格名称","min-width":"150"}}),t._v(" "),a("el-table-column",{attrs:{label:"商品规格","min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(e){return t._l(e.row.template_value,(function(e,n){return a("span",{key:n,staticClass:"mr10",domProps:{textContent:t._s(e.value)}})}))}}])}),t._v(" "),a("el-table-column",{attrs:{label:"商品属性","min-width":"300"},scopedSlots:t._u([{key:"default",fn:function(e){return t._l(e.row.template_value,(function(e,n){return a("div",{key:n,domProps:{textContent:t._s(e.detail.join(","))}})}))}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作","min-width":"100",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.onEdit(e.row)}}},[t._v("编辑")]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.handleDelete(e.row.attr_template_id,e.$index)}}},[t._v("删除\n ")])]}}])})],1),t._v(" "),a("div",{staticClass:"block"},[a("el-pagination",{attrs:{"page-sizes":[20,40,60,80],"page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"total, sizes, prev, pager, next, jumper",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1)],1)},i=[],l=a("c4c8"),s={name:"ProductAttr",data:function(){return{formDynamic:{template_name:"",template_value:[]},tableFrom:{page:1,limit:20},tableData:{data:[],total:0},listLoading:!0}},mounted:function(){this.getList()},methods:{add:function(){var t=this;t.formDynamic={template_name:"",template_value:[]},this.$modalAttr(Object.assign({},t.formDynamic),(function(){t.getList()}))},getList:function(){var t=this;this.listLoading=!0,Object(l["Qb"])(this.tableFrom).then((function(e){t.tableData.data=e.data.list,t.tableData.total=e.data.count,t.listLoading=!1})).catch((function(e){t.listLoading=!1,t.$message.error(e.message)}))},pageChange:function(t){this.tableFrom.page=t,this.getList()},handleSizeChange:function(t){this.tableFrom.limit=t,this.getList()},handleDelete:function(t,e){var a=this;this.$modalSure().then((function(){Object(l["l"])(t).then((function(t){var n=t.message;a.$message.success(n),a.tableData.data.splice(e,1)})).catch((function(t){var e=t.message;a.$message.error(e)}))}))},onEdit:function(t){var e=this;this.$modalAttr(JSON.parse(JSON.stringify(t)),(function(){e.getList(),this.formDynamic={template_name:"",template_value:[]}}))}}},o=s,r=a("2877"),c=Object(r["a"])(o,n,i,!1,null,null,null);e["default"]=c.exports}}]); \ No newline at end of file diff --git a/public/mer/js/chunk-2d209391.d7ac1fed.js b/public/mer/js/chunk-2d209391.02a01b17.js similarity index 90% rename from public/mer/js/chunk-2d209391.d7ac1fed.js rename to public/mer/js/chunk-2d209391.02a01b17.js index 35e73952..bcf269f5 100644 --- a/public/mer/js/chunk-2d209391.d7ac1fed.js +++ b/public/mer/js/chunk-2d209391.02a01b17.js @@ -1 +1 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d209391"],{a7af:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"divBox"},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("el-button",{attrs:{size:"small",type:"primary"},on:{click:t.onAdd}},[t._v("添加商品标签")])],1),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{data:t.tableData.data,size:"small"}},[a("el-table-column",{attrs:{prop:"label_name",label:"标签名称","min-width":"60"}}),t._v(" "),a("el-table-column",{attrs:{prop:"info",label:"标签说明","min-width":"150"}}),t._v(" "),a("el-table-column",{attrs:{prop:"sort",label:"排序","min-width":"50"}}),t._v(" "),a("el-table-column",{attrs:{prop:"status",label:"是否显示","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-switch",{attrs:{"active-value":1,"inactive-value":0,"active-text":"显示","inactive-text":"隐藏"},on:{change:function(a){return t.onchangeIsShow(e.row)}},model:{value:e.row.status,callback:function(a){t.$set(e.row,"status",a)},expression:"scope.row.status"}})]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"create_time",label:"创建时间","min-width":"150"}}),t._v(" "),a("el-table-column",{attrs:{label:"操作","min-width":"100",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.onEdit(e.row.product_label_id)}}},[t._v("编辑")]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.handleDelete(e.row.product_label_id,e.$index)}}},[t._v("删除")])]}}])})],1),t._v(" "),a("div",{staticClass:"block"},[a("el-pagination",{attrs:{"page-sizes":[20,40,60,80],"page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"total, sizes, prev, pager, next, jumper",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1)],1)},i=[],s=a("c4c8"),l={name:"LabelList",data:function(){return{tableFrom:{page:1,limit:20},tableData:{data:[],total:0},listLoading:!0}},mounted:function(){this.getList("")},methods:{add:function(){},getList:function(t){var e=this;this.listLoading=!0,this.tableFrom.page=t||this.tableFrom.page,Object(s["L"])(this.tableFrom).then((function(t){e.tableData.data=t.data.list,e.tableData.total=t.data.count,e.listLoading=!1})).catch((function(t){e.listLoading=!1,e.$message.error(t.message)}))},pageChange:function(t){this.tableFrom.page=t,this.getList("")},handleSizeChange:function(t){this.tableFrom.limit=t,this.getList("")},onAdd:function(){var t=this;this.$modalForm(Object(s["J"])()).then((function(){return t.getList("")}))},onEdit:function(t){var e=this;this.$modalForm(Object(s["N"])(t)).then((function(){return e.getList("")}))},handleDelete:function(t,e){var a=this;this.$modalSure("删除该标签").then((function(){Object(s["K"])(t).then((function(t){var e=t.message;a.$message.success(e),a.getList("")})).catch((function(t){var e=t.message;a.$message.error(e)}))}))},onchangeIsShow:function(t){var e=this;Object(s["M"])(t.product_label_id,t.status).then((function(t){var a=t.message;e.$message.success(a),e.getList("")})).catch((function(t){var a=t.message;e.$message.error(a)}))}}},o=l,r=a("2877"),c=Object(r["a"])(o,n,i,!1,null,null,null);e["default"]=c.exports}}]); \ No newline at end of file +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d209391"],{a7af:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"divBox"},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("el-button",{attrs:{size:"small",type:"primary"},on:{click:t.onAdd}},[t._v("添加商品标签")])],1),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{data:t.tableData.data,size:"small"}},[a("el-table-column",{attrs:{prop:"label_name",label:"标签名称","min-width":"60"}}),t._v(" "),a("el-table-column",{attrs:{prop:"info",label:"标签说明","min-width":"150"}}),t._v(" "),a("el-table-column",{attrs:{prop:"sort",label:"排序","min-width":"50"}}),t._v(" "),a("el-table-column",{attrs:{prop:"status",label:"是否显示","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-switch",{attrs:{"active-value":1,"inactive-value":0,"active-text":"显示","inactive-text":"隐藏"},on:{change:function(a){return t.onchangeIsShow(e.row)}},model:{value:e.row.status,callback:function(a){t.$set(e.row,"status",a)},expression:"scope.row.status"}})]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"create_time",label:"创建时间","min-width":"150"}}),t._v(" "),a("el-table-column",{attrs:{label:"操作","min-width":"100",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.onEdit(e.row.product_label_id)}}},[t._v("编辑")]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.handleDelete(e.row.product_label_id,e.$index)}}},[t._v("删除")])]}}])})],1),t._v(" "),a("div",{staticClass:"block"},[a("el-pagination",{attrs:{"page-sizes":[20,40,60,80],"page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"total, sizes, prev, pager, next, jumper",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1)],1)},i=[],s=a("c4c8"),l={name:"LabelList",data:function(){return{tableFrom:{page:1,limit:20},tableData:{data:[],total:0},listLoading:!0}},mounted:function(){this.getList("")},methods:{add:function(){},getList:function(t){var e=this;this.listLoading=!0,this.tableFrom.page=t||this.tableFrom.page,Object(s["N"])(this.tableFrom).then((function(t){e.tableData.data=t.data.list,e.tableData.total=t.data.count,e.listLoading=!1})).catch((function(t){e.listLoading=!1,e.$message.error(t.message)}))},pageChange:function(t){this.tableFrom.page=t,this.getList("")},handleSizeChange:function(t){this.tableFrom.limit=t,this.getList("")},onAdd:function(){var t=this;this.$modalForm(Object(s["L"])()).then((function(){return t.getList("")}))},onEdit:function(t){var e=this;this.$modalForm(Object(s["P"])(t)).then((function(){return e.getList("")}))},handleDelete:function(t,e){var a=this;this.$modalSure("删除该标签").then((function(){Object(s["M"])(t).then((function(t){var e=t.message;a.$message.success(e),a.getList("")})).catch((function(t){var e=t.message;a.$message.error(e)}))}))},onchangeIsShow:function(t){var e=this;Object(s["O"])(t.product_label_id,t.status).then((function(t){var a=t.message;e.$message.success(a),e.getList("")})).catch((function(t){var a=t.message;e.$message.error(a)}))}}},o=l,r=a("2877"),c=Object(r["a"])(o,n,i,!1,null,null,null);e["default"]=c.exports}}]); \ No newline at end of file diff --git a/public/mer/js/chunk-34ab329b.b1fcc2ff.js b/public/mer/js/chunk-34ab329b.b1fcc2ff.js new file mode 100644 index 00000000..7c82f8d7 --- /dev/null +++ b/public/mer/js/chunk-34ab329b.b1fcc2ff.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-34ab329b"],{2865:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"divBox"},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix"},[t.headTab.length>0?a("el-tabs",{model:{value:t.currentTab,callback:function(e){t.currentTab=e},expression:"currentTab"}},t._l(t.headTab,(function(t,e){return a("el-tab-pane",{key:e,attrs:{name:t.name,label:t.title}})})),1):t._e()],1),t._v(" "),a("el-form",{directives:[{name:"loading",rawName:"v-loading",value:t.fullscreenLoading,expression:"fullscreenLoading"}],key:t.currentTab,ref:"formValidate",staticClass:"formValidate mt20",attrs:{rules:t.ruleValidate,model:t.formValidate,"label-width":"130px"},nativeOn:{submit:function(t){t.preventDefault()}}},["1"==t.currentTab?a("el-row",{attrs:{gutter:24}},[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"商品类型:",required:""}},t._l(t.virtual,(function(e,i){return a("div",{key:i,staticClass:"virtual",class:t.formValidate.type==e.id?"virtual_boder":"virtual_boder2",on:{click:function(a){return t.virtualbtn(e.id,2)}}},[a("div",{staticClass:"virtual_top"},[t._v(t._s(e.tit))]),t._v(" "),a("div",{staticClass:"virtual_bottom"},[t._v("("+t._s(e.tit2)+")")]),t._v(" "),t.formValidate.type==e.id?a("div",{staticClass:"virtual_san"}):t._e(),t._v(" "),t.formValidate.type==e.id?a("div",{staticClass:"virtual_dui"},[t._v("\n ✓\n ")]):t._e()])})),0)],1),t._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"商品名称:",prop:"store_name"}},[a("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入商品名称"},model:{value:t.formValidate.store_name,callback:function(e){t.$set(t.formValidate,"store_name",e)},expression:"formValidate.store_name"}})],1)],1),t._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"平台商品分类:",prop:"cate_id"}},[a("el-cascader",{staticClass:"selWidth",attrs:{options:t.categoryList,props:t.props,filterable:"",clearable:""},on:{change:t.getSpecsLst},model:{value:t.formValidate.cate_id,callback:function(e){t.$set(t.formValidate,"cate_id",e)},expression:"formValidate.cate_id"}})],1)],1),t._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"商户商品分类:",prop:"mer_cate_id"}},[a("el-cascader",{staticClass:"selWidth",attrs:{options:t.merCateList,props:t.propsMer,filterable:"",clearable:""},model:{value:t.formValidate.mer_cate_id,callback:function(e){t.$set(t.formValidate,"mer_cate_id",e)},expression:"formValidate.mer_cate_id"}})],1)],1),t._v(" "),t.labelList.length&&"TypeSupplyChain"==t.$store.state.user.merchantType.type_code?a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"商品标签:"}},[a("el-select",{staticClass:"selWidth",attrs:{multiple:"",placeholder:"请选择"},model:{value:t.formValidate.mer_labels,callback:function(e){t.$set(t.formValidate,"mer_labels",e)},expression:"formValidate.mer_labels"}},t._l(t.labelList,(function(t){return a("el-option",{key:t.product_label_id,attrs:{label:t.label_name,value:t.product_label_id}})})),1)],1)],1):t._e(),t._v(" "),a("el-col",t._b({},"el-col",t.grid2,!1),[a("el-form-item",{attrs:{label:"品牌选择:"}},[a("el-select",{staticClass:"selWidth",attrs:{filterable:"",placeholder:"请选择"},model:{value:t.formValidate.brand_id,callback:function(e){t.$set(t.formValidate,"brand_id",e)},expression:"formValidate.brand_id"}},t._l(t.BrandList,(function(t){return a("el-option",{key:t.brand_id,attrs:{label:t.brand_name,value:t.brand_id}})})),1)],1)],1),t._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"商品封面图:",prop:"image"}},[a("div",{staticClass:"upLoadPicBox",attrs:{title:"750*750px"},on:{click:function(e){return t.modalPicTap("1")}}},[t.formValidate.image?a("div",{staticClass:"pictrue"},[a("img",{attrs:{src:t.formValidate.image}})]):a("div",{staticClass:"upLoad"},[a("i",{staticClass:"el-icon-camera cameraIconfont"})])])])],1),t._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"商品轮播图:",prop:"slider_image"}},[a("div",{staticClass:"acea-row"},[t._l(t.formValidate.slider_image,(function(e,i){return a("div",{key:i,staticClass:"pictrue",attrs:{draggable:"false"},on:{dragstart:function(a){return t.handleDragStart(a,e)},dragover:function(a){return a.preventDefault(),t.handleDragOver(a,e)},dragenter:function(a){return t.handleDragEnter(a,e)},dragend:function(a){return t.handleDragEnd(a,e)}}},[a("img",{attrs:{src:e}}),t._v(" "),a("i",{staticClass:"el-icon-error btndel",on:{click:function(e){return t.handleRemove(i)}}})])})),t._v(" "),t.formValidate.slider_image.length<10?a("div",{staticClass:"uploadCont",attrs:{title:"750*750px"}},[a("div",{staticClass:"upLoadPicBox",on:{click:function(e){return t.modalPicTap("2")}}},[a("div",{staticClass:"upLoad"},[a("i",{staticClass:"el-icon-camera cameraIconfont"})])])]):t._e()],2)])],1),t._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"主图视频:",prop:"video_link"}},[a("el-input",{staticClass:"perW50",attrs:{placeholder:"请输入视频链接"},model:{value:t.videoLink,callback:function(e){t.videoLink=e},expression:"videoLink"}}),t._v(" "),a("input",{ref:"refid",staticStyle:{display:"none"},attrs:{type:"file"},on:{change:t.zh_uploadFile_change}}),t._v(" "),a("el-button",{staticClass:"uploadVideo",attrs:{type:"primary",icon:"ios-cloud-upload-outline"},on:{click:t.zh_uploadFile}},[t._v("\n "+t._s(t.videoLink?"确认添加":"上传视频")+"\n ")]),t._v(" "),a("el-col",{attrs:{span:12}},[t.upload.videoIng?a("el-progress",{staticStyle:{"margin-top":"10px"},attrs:{percentage:t.progress,"text-inside":!0,"stroke-width":20}}):t._e()],1),t._v(" "),a("el-col",{attrs:{span:24}},[t.formValidate.video_link?a("div",{staticClass:"iview-video-style"},[a("video",{staticStyle:{width:"100%",height:"100% !important","border-radius":"10px"},attrs:{src:t.formValidate.video_link,controls:"controls"}},[t._v("\n 您的浏览器不支持 video 标签。\n ")]),t._v(" "),a("div",{staticClass:"mark"}),t._v(" "),a("i",{staticClass:"el-icon-delete iconv",on:{click:t.delVideo}})]):t._e()])],1)],1),t._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"单位:",prop:"unit_name"}},[a("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入单位"},model:{value:t.formValidate.unit_name,callback:function(e){t.$set(t.formValidate,"unit_name",e)},expression:"formValidate.unit_name"}})],1)],1),t._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"商品关键字:"}},[a("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入商品关键字"},model:{value:t.formValidate.keyword,callback:function(e){t.$set(t.formValidate,"keyword",e)},expression:"formValidate.keyword"}})],1)],1),t._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"商品简介:",prop:"store_info"}},[a("el-input",{staticClass:"selWidth",attrs:{type:"textarea",rows:3,placeholder:"请输入商品简介"},model:{value:t.formValidate.store_info,callback:function(e){t.$set(t.formValidate,"store_info",e)},expression:"formValidate.store_info"}})],1)],1)],1):t._e(),t._v(" "),"2"==t.currentTab?a("el-row",[t._e(),t._v(" "),t._e(),t._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"商品规格:",props:"spec_type"}},[a("el-radio-group",{on:{change:function(e){return t.onChangeSpec(t.formValidate.spec_type)}},model:{value:t.formValidate.spec_type,callback:function(e){t.$set(t.formValidate,"spec_type",e)},expression:"formValidate.spec_type"}},[a("el-radio",{staticClass:"radio",attrs:{label:0}},[t._v("单规格")]),t._v(" "),a("el-radio",{attrs:{label:1}},[t._v("多规格")])],1)],1)],1),t._v(" "),1===t.formValidate.spec_type?a("el-col",{staticClass:"noForm",attrs:{span:24}},[a("el-form-item",{attrs:{label:"选择规格:"}},[a("div",{staticClass:"acea-row"},[a("el-select",{model:{value:t.selectRule,callback:function(e){t.selectRule=e},expression:"selectRule"}},t._l(t.ruleList,(function(t){return a("el-option",{key:t.attr_template_id,attrs:{label:t.template_name,value:t.attr_template_id}})})),1),t._v(" "),a("el-button",{staticClass:"ml15",attrs:{type:"primary",size:"small"},on:{click:t.confirm}},[t._v("确认")]),t._v(" "),a("el-button",{staticClass:"ml15",attrs:{size:"small"},on:{click:t.addRule}},[t._v("添加规格模板")])],1)]),t._v(" "),t.formValidate.attr.length>0?a("el-form-item",t._l(t.formValidate.attr,(function(e,i){return a("div",{key:i},[a("div",{staticClass:"acea-row row-middle"},[a("span",{staticClass:"mr5"},[t._v(t._s(e.value))]),t._v(" "),a("i",{staticClass:"el-icon-circle-close",on:{click:function(e){return t.handleRemoveAttr(i)}}})]),t._v(" "),a("div",{staticClass:"rulesBox"},[t._l(e.detail,(function(i,r){return a("el-tag",{key:r,staticClass:"mb5 mr10",attrs:{closable:"",size:"medium","disable-transitions":!1},on:{close:function(a){return t.handleClose(e.detail,r)}}},[t._v(t._s(i)+"\n ")])})),t._v(" "),e.inputVisible?a("el-input",{ref:"saveTagInput",refInFor:!0,staticClass:"input-new-tag",attrs:{size:"small"},on:{blur:function(a){return t.createAttr(e.detail.attrsVal,i)}},nativeOn:{keyup:function(a){return!a.type.indexOf("key")&&t._k(a.keyCode,"enter",13,a.key,"Enter")?null:t.createAttr(e.detail.attrsVal,i)}},model:{value:e.detail.attrsVal,callback:function(a){t.$set(e.detail,"attrsVal",a)},expression:"item.detail.attrsVal"}}):a("el-button",{staticClass:"button-new-tag",attrs:{size:"small"},on:{click:function(a){return t.showInput(e)}}},[t._v("+ 添加")])],2)])})),0):t._e(),t._v(" "),t.isBtn?a("el-col",[a("el-col",{attrs:{xl:6,lg:9,md:9,sm:24,xs:24}},[a("el-form-item",{attrs:{label:"规格:"}},[a("el-input",{attrs:{placeholder:"请输入规格"},model:{value:t.formDynamic.attrsName,callback:function(e){t.$set(t.formDynamic,"attrsName",e)},expression:"formDynamic.attrsName"}})],1)],1),t._v(" "),a("el-col",{attrs:{xl:6,lg:9,md:9,sm:24,xs:24}},[a("el-form-item",{attrs:{label:"规格值:"}},[a("el-input",{attrs:{placeholder:"请输入规格值"},model:{value:t.formDynamic.attrsVal,callback:function(e){t.$set(t.formDynamic,"attrsVal",e)},expression:"formDynamic.attrsVal"}})],1)],1),t._v(" "),a("el-col",{attrs:{xl:12,lg:6,md:6,sm:24,xs:24}},[a("el-form-item",{staticClass:"noLeft"},[a("el-button",{staticClass:"mr15",attrs:{type:"primary"},on:{click:t.createAttrName}},[t._v("确定")]),t._v(" "),a("el-button",{on:{click:t.offAttrName}},[t._v("取消")])],1)],1)],1):t._e(),t._v(" "),t.isBtn?t._e():a("el-form-item",[a("el-button",{staticClass:"mr15",attrs:{type:"primary",icon:"md-add"},on:{click:t.addBtn}},[t._v("添加新规格")])],1)],1):t._e(),t._v(" "),a("el-col",{attrs:{xl:24,lg:24,md:24,sm:24,xs:24}},[0===t.formValidate.spec_type?a("el-form-item",[a("el-table",{staticClass:"tabNumWidth",attrs:{data:t.OneattrValue,border:"",size:"mini"}},[a("el-table-column",{attrs:{align:"center",label:"图片","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"upLoadPicBox",on:{click:function(e){return t.modalPicTap("1","dan","pi")}}},[t.formValidate.image?a("div",{staticClass:"pictrue tabPic"},[a("img",{attrs:{src:e.row.image}})]):a("div",{staticClass:"upLoad tabPic"},[a("i",{staticClass:"el-icon-camera cameraIconfont"})])])]}}],null,!1,1357914119)}),t._v(" "),t._l(t.attrValue,(function(e,i){return a("el-table-column",{key:i,attrs:{label:t.formThead[i].title,align:"center","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[0!=t.formValidate.svip_price_type?a("div",["付费会员价"===t.formThead[i].title?a("el-input-number",{staticClass:"priceBox",attrs:{min:0,disabled:1==t.formValidate.svip_price_type,"controls-position":"right"},model:{value:e.row[i],callback:function(a){t.$set(e.row,i,a)},expression:"scope.row[iii]"}}):t._e(),t._v(" "),"商品条码"===t.formThead[i].title?a("el-input",{staticClass:"priceBox",attrs:{type:"text"},model:{value:e.row[i],callback:function(a){t.$set(e.row,i,a)},expression:"scope.row[iii]"}}):t._e(),t._v(" "),"付费会员价"!==t.formThead[i].title&&"商品条码"!==t.formThead[i].title?a("el-input-number",{staticClass:"priceBox",attrs:{min:0,"controls-position":"right"},model:{value:e.row[i],callback:function(a){t.$set(e.row,i,a)},expression:"scope.row[iii]"}}):t._e()],1):a("div",["商品条码"===t.formThead[i].title?a("el-input",{staticClass:"priceBox",attrs:{type:"text"},model:{value:e.row[i],callback:function(a){t.$set(e.row,i,a)},expression:"scope.row[iii]"}}):a("el-input-number",{staticClass:"priceBox",attrs:{min:0,"controls-position":"right"},model:{value:e.row[i],callback:function(a){t.$set(e.row,i,a)},expression:"scope.row[iii]"}})],1)]}}],null,!0)})})),t._v(" "),1===t.formValidate.extension_type?[a("el-table-column",{attrs:{align:"center",label:"一级返佣(元)","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-input-number",{staticClass:"priceBox",attrs:{min:0,"controls-position":"right"},model:{value:e.row.extension_one,callback:function(a){t.$set(e.row,"extension_one",a)},expression:"scope.row.extension_one"}})]}}],null,!1,1308693019)}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"二级返佣(元)","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-input-number",{staticClass:"priceBox",attrs:{min:0,"controls-position":"right"},model:{value:e.row.extension_two,callback:function(a){t.$set(e.row,"extension_two",a)},expression:"scope.row.extension_two"}})]}}],null,!1,899977843)})]:t._e()],2)],1):t._e(),t._v(" "),1===t.formValidate.spec_type&&t.formValidate.attr.length>0?a("el-form-item",{staticClass:"labeltop",attrs:{label:"规格列表:"}},[a("el-table",{staticClass:"tabNumWidth",attrs:{data:t.ManyAttrValue,border:"",size:"mini"}},[t.manyTabDate?t._l(t.manyTabDate,(function(e,i){return a("el-table-column",{key:i,attrs:{align:"center",label:t.manyTabTit[i].title,"min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{staticClass:"priceBox",domProps:{textContent:t._s(e.row[i])}})]}}],null,!0)})})):t._e(),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"图片","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"upLoadPicBox",attrs:{title:"750*750px"},on:{click:function(a){return t.modalPicTap("1","duo",e.$index)}}},[e.row.image?a("div",{staticClass:"pictrue tabPic"},[a("img",{attrs:{src:e.row.image}})]):a("div",{staticClass:"upLoad tabPic"},[a("i",{staticClass:"el-icon-camera cameraIconfont"})])])]}}],null,!1,1344940579)}),t._v(" "),t._l(t.attrValue,(function(e,i){return a("el-table-column",{key:i,attrs:{label:t.formThead[i].title,align:"center","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[0!=t.formValidate.svip_price_type?a("div",["付费会员价"===t.formThead[i].title?a("el-input-number",{staticClass:"priceBox",attrs:{min:0,disabled:1==t.formValidate.svip_price_type,"controls-position":"right"},model:{value:e.row[i],callback:function(a){t.$set(e.row,i,a)},expression:"scope.row[iii]"}}):t._e(),t._v(" "),"商品条码"===t.formThead[i].title?a("el-input",{staticClass:"priceBox",attrs:{type:"text"},model:{value:e.row[i],callback:function(a){t.$set(e.row,i,a)},expression:"scope.row[iii]"}}):t._e(),t._v(" "),"付费会员价"!==t.formThead[i].title&&"商品条码"!==t.formThead[i].title?a("el-input-number",{staticClass:"priceBox",attrs:{min:0,"controls-position":"right"},model:{value:e.row[i],callback:function(a){t.$set(e.row,i,a)},expression:"scope.row[iii]"}}):t._e()],1):a("div",["商品条码"===t.formThead[i].title?a("el-input",{staticClass:"priceBox",attrs:{type:"text"},model:{value:e.row[i],callback:function(a){t.$set(e.row,i,a)},expression:"scope.row[iii]"}}):a("el-input-number",{staticClass:"priceBox",attrs:{min:0,"controls-position":"right"},model:{value:e.row[i],callback:function(a){t.$set(e.row,i,a)},expression:"scope.row[iii]"}})],1)]}}],null,!0)})})),t._v(" "),1===t.formValidate.extension_type?[a("el-table-column",{key:"1",attrs:{align:"center",label:"一级返佣(元)","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-input-number",{staticClass:"priceBox",attrs:{min:0,"controls-position":"right"},model:{value:e.row.extension_one,callback:function(a){t.$set(e.row,"extension_one",a)},expression:"scope.row.extension_one"}})]}}],null,!1,1308693019)}),t._v(" "),a("el-table-column",{key:"2",attrs:{align:"center",label:"二级返佣(元)","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-input-number",{staticClass:"priceBox",attrs:{min:0,"controls-position":"right"},model:{value:e.row.extension_two,callback:function(a){t.$set(e.row,"extension_two",a)},expression:"scope.row.extension_two"}})]}}],null,!1,899977843)})]:t._e(),t._v(" "),a("el-table-column",{key:"3",attrs:{align:"center",label:"操作","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{staticClass:"submission",attrs:{type:"text"},on:{click:function(a){return t.delAttrTable(e.$index)}}},[t._v("删除")])]}}],null,!1,2803824461)})],2)],1):t._e()],1)],1):t._e(),t._v(" "),"3"==t.currentTab?a("el-row",[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"商品图片:"}},[a("div",{staticClass:"upLoadPicBox",attrs:{title:"750*750px"},on:{click:function(e){return t.modalPicTap("3")}}},[t._l(t.formValidate.content.image,(function(e,i){return a("div",{key:i+e,staticClass:"pictrue details_pictrue",on:{click:function(e){return e.stopPropagation(),t.deleteContentImg(i)}}},[a("img",{key:i,attrs:{src:e}})])})),t._v(" "),a("div",{staticClass:"upLoad details_pictrue"},[a("i",{staticClass:"el-icon-camera cameraIconfont"})])],2)])],1)],1):t._e(),t._v(" "),"4"==t.currentTab?a("el-row",[t.deliveryList.length>0?a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"送货方式:",prop:"delivery_way"}},[a("div",{staticClass:"acea-row"},[a("el-checkbox-group",{staticStyle:{"pointer-events":"none"},model:{value:t.formValidate.delivery_way,callback:function(e){t.$set(t.formValidate,"delivery_way",e)},expression:"formValidate.delivery_way"}},t._l(t.deliveryList,(function(e){return a("el-checkbox",{key:e.value,attrs:{label:e.value}},[t._v("\n "+t._s(e.name)+"\n ")])})),1)],1)])],1):t._e(),t._v(" "),(2==t.formValidate.delivery_way.length||1==t.formValidate.delivery_way.length&&2==t.formValidate.delivery_way[0])&&0==t.formValidate.type?a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"是否包邮:"}},[a("el-radio-group",{model:{value:t.formValidate.delivery_free,callback:function(e){t.$set(t.formValidate,"delivery_free",e)},expression:"formValidate.delivery_free"}},[a("el-radio",{staticClass:"radio",attrs:{label:0}},[t._v("否")]),t._v(" "),a("el-radio",{attrs:{label:1}},[t._v("是")])],1)],1)],1):t._e(),t._v(" "),0==t.formValidate.delivery_free&&(2==t.formValidate.delivery_way.length||1==t.formValidate.delivery_way.length&&2==t.formValidate.delivery_way[0])&&0==t.formValidate.type?a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"运费模板:",prop:"temp_id"}},[a("div",{staticClass:"acea-row"},[a("el-select",{staticClass:"selWidth",attrs:{placeholder:"请选择"},model:{value:t.formValidate.temp_id,callback:function(e){t.$set(t.formValidate,"temp_id",e)},expression:"formValidate.temp_id"}},t._l(t.shippingList,(function(t){return a("el-option",{key:t.shipping_template_id,attrs:{label:t.name,value:t.shipping_template_id}})})),1),t._v(" "),a("el-button",{staticClass:"ml15",attrs:{size:"small"},on:{click:t.addTem}},[t._v("添加运费模板")])],1)])],1):t._e()],1):t._e(),t._v(" "),a("el-form-item",{staticStyle:{"margin-top":"30px"}},[a("el-button",{directives:[{name:"show",rawName:"v-show",value:t.currentTab>1,expression:"currentTab > 1"}],staticClass:"submission",attrs:{type:"primary",size:"small"},on:{click:t.handleSubmitUp}},[t._v("上一步\n ")]),t._v(" "),a("el-button",{directives:[{name:"show",rawName:"v-show",value:t.currentTab<4,expression:"currentTab < 4"}],staticClass:"submission",attrs:{type:"primary",size:"small"},on:{click:function(e){return t.handleSubmitNest("formValidate")}}},[t._v("下一步\n ")]),t._v(" "),a("el-button",{directives:[{name:"show",rawName:"v-show",value:"4"==t.currentTab||t.$route.params.id,expression:"currentTab == '4' || $route.params.id"}],staticClass:"submission",attrs:{loading:t.loading,type:"primary",size:"small"},on:{click:function(e){return t.handleSubmit("formValidate")}}},[t._v("提交\n ")]),t._v(" "),a("el-button",{staticClass:"submission",attrs:{loading:t.loading,type:"primary",size:"small"},on:{click:function(e){return t.handlePreview("formValidate")}}},[t._v("预览\n ")])],1)],1)],1),t._v(" "),a("guarantee-service",{ref:"serviceGuarantee",on:{"get-list":t.getGuaranteeList}}),t._v(" "),t.previewVisible?a("div",[a("div",{staticClass:"bg",on:{click:function(e){e.stopPropagation(),t.previewVisible=!1}}}),t._v(" "),t.previewVisible?a("preview-box",{ref:"previewBox",attrs:{"preview-key":t.previewKey}}):t._e()],1):t._e(),t._v(" "),a("tao-bao",{ref:"taoBao",on:{"info-data":t.infoData}})],1)},r=[],n=(a("456d"),a("c7eb")),o=(a("96cf"),a("1da1")),s=(a("a481"),a("c5f6"),a("b85c")),l=(a("7f7f"),a("ade3")),c=(a("28a5"),a("8615"),a("55dd"),a("ac6a"),a("6762"),a("2fdb"),a("6b54"),a("2909")),d=a("ef0d"),u=a("6625"),m=a.n(u),p=(a("aa47"),a("5c96")),f=a("c4c8"),h=a("83d6"),g=a("ae43"),_=a("8c98"),v=a("bbcc"),b=a("5f87"),y=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"Box"},[t.modals?a("el-dialog",{attrs:{visible:t.modals,width:"70%",title:"商品采集","custom-class":"dialog-scustom"},on:{"update:visible":function(e){t.modals=e}}},[a("el-card",[a("div",[t._v("复制淘宝、天猫、京东、苏宁、1688;")]),t._v("\n 生成的商品默认是没有上架的,请手动上架商品!\n "),a("span",{staticStyle:{color:"rgb(237, 64, 20)"}},[t._v("商品复制次数剩余:"+t._s(t.count)+"次")]),t._v(" "),a("router-link",{attrs:{to:{path:t.roterPre+"/setting/sms/sms_pay/index?type=copy"}}},[a("el-button",{attrs:{size:"small",type:"text"}},[t._v("增加采集次数")])],1),t._v(" "),a("el-button",{staticStyle:{"margin-left":"15px"},attrs:{size:"small",type:"primary"},on:{click:t.openRecords}},[t._v("查看商品复制记录")])],1),t._v(" "),a("el-form",{ref:"formValidate",staticClass:"formValidate mt20",attrs:{model:t.formValidate,rules:t.ruleInline,"label-width":"130px","label-position":"right"},nativeOn:{submit:function(t){t.preventDefault()}}},[a("el-form-item",{attrs:{label:"链接地址:"}},[a("el-input",{staticClass:"numPut",attrs:{search:"",placeholder:"请输入链接地址"},model:{value:t.soure_link,callback:function(e){t.soure_link=e},expression:"soure_link"}}),t._v(" "),a("el-button",{attrs:{loading:t.loading,size:"small",type:"primary"},on:{click:t.add}},[t._v("确定")])],1)],1)],1):t._e(),t._v(" "),a("copy-record",{ref:"copyRecord"})],1)},V=[],w=function(){var t=this,e=t.$createElement,a=t._self._c||e;return t.showRecord?a("el-dialog",{attrs:{title:"复制记录",visible:t.showRecord,width:"900px"},on:{"update:visible":function(e){t.showRecord=e}}},[a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}]},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"table",staticStyle:{width:"100%"},attrs:{data:t.tableData.data,size:"mini","highlight-current-row":""}},[a("el-table-column",{attrs:{label:"ID",prop:"mer_id","min-width":"50"}}),t._v(" "),a("el-table-column",{attrs:{label:"使用次数",prop:"num","min-width":"80"}}),t._v(" "),a("el-table-column",{attrs:{label:"复制商品平台名称",prop:"type","min-width":"120"}}),t._v(" "),a("el-table-column",{attrs:{label:"剩余次数",prop:"number","min-width":"80"}}),t._v(" "),a("el-table-column",{attrs:{label:"商品复制链接",prop:"info","min-width":"180"}}),t._v(" "),a("el-table-column",{attrs:{label:"操作时间",prop:"create_time","min-width":"120"}})],1),t._v(" "),a("div",{staticClass:"block"},[a("el-pagination",{attrs:{"page-sizes":[10,20],"page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"total, sizes, prev, pager, next, jumper",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1)]):t._e()},x=[],k={name:"CopyRecord",data:function(){return{showRecord:!1,loading:!1,tableData:{data:[],total:0},tableFrom:{page:1,limit:10}}},methods:{getRecord:function(){var t=this;this.showRecord=!0,this.loading=!0,Object(f["db"])(this.tableFrom).then((function(e){t.tableData.data=e.data.list,t.tableData.total=e.data.count,t.loading=!1})).catch((function(e){t.$message.error(e.message),t.listLoading=!1}))},pageChange:function(t){this.tableFrom.page=t,this.getRecord()},pageChangeLog:function(t){this.tableFromLog.page=t,this.getRecord()},handleSizeChange:function(t){this.tableFrom.limit=t,this.getRecord()}}},C=k,$=(a("f099"),a("2877")),O=Object($["a"])(C,w,x,!1,null,"6d70337e",null),L=O.exports,T={store_name:"",cate_id:"",temp_id:"",type:0,guarantee_template_id:"",keyword:"",unit_name:"",store_info:"",image:"",slider_image:[],content:"",ficti:0,once_count:0,give_integral:0,is_show:0,price:0,cost:0,ot_price:0,stock:0,soure_link:"",attrs:[],items:[],delivery_way:[],mer_labels:[],delivery_free:0,spec_type:0,is_copoy:1,attrValue:[{image:"",price:0,cost:0,ot_price:0,stock:0,bar_code:"",weight:0,volume:0}]},j={price:{title:"售价"},cost:{title:"成本价"},ot_price:{title:"市场价"},stock:{title:"库存"},bar_code:{title:"商品编号"},weight:{title:"重量(KG)"},volume:{title:"体积(m³)"}},B={name:"CopyTaoBao",components:{ueditorFrom:d["a"],copyRecord:L},data:function(){var t=v["a"].https+"/upload/image/0/file?ueditor=1&token="+Object(b["a"])();return{roterPre:h["roterPre"],modals:!1,loading:!1,loading1:!1,BaseURL:v["a"].https||"http://localhost:8080",OneattrValue:[Object.assign({},T.attrValue[0])],ManyAttrValue:[Object.assign({},T.attrValue[0])],columnsBatch:[{title:"图片",slot:"image",align:"center",minWidth:80},{title:"售价",slot:"price",align:"center",minWidth:95},{title:"成本价",slot:"cost",align:"center",minWidth:95},{title:"市场价",slot:"ot_price",align:"center",minWidth:95},{title:"库存",slot:"stock",align:"center",minWidth:95},{title:"商品编号",slot:"bar_code",align:"center",minWidth:120},{title:"重量(KG)",slot:"weight",align:"center",minWidth:95},{title:"体积(m³)",slot:"volume",align:"center",minWidth:95}],manyTabDate:{},count:0,modal_loading:!1,images:"",soure_link:"",modalPic:!1,isChoice:"",gridPic:{xl:6,lg:8,md:12,sm:12,xs:12},gridBtn:{xl:4,lg:8,md:8,sm:8,xs:8},columns:[],virtual:[{tit:"普通商品",id:0,tit2:"物流发货"},{tit:"虚拟商品",id:1,tit2:"虚拟发货"}],categoryList:[],merCateList:[],BrandList:[],propsMer:{emitPath:!1,multiple:!0},tableFrom:{mer_cate_id:"",cate_id:"",keyword:"",type:"1",is_gift_bag:""},ruleInline:{cate_id:[{required:!0,message:"请选择商品分类",trigger:"change"}],mer_cate_id:[{required:!0,message:"请选择商户分类",trigger:"change",type:"array",min:"1"}],temp_id:[{required:!0,message:"请选择运费模板",trigger:"change",type:"number"}],brand_id:[{required:!0,message:"请选择品牌",trigger:"change"}],store_info:[{required:!0,message:"请输入商品简介",trigger:"blur"}],delivery_way:[{required:!0,message:"请选择送货方式",trigger:"change"}]},grid:{xl:8,lg:8,md:12,sm:24,xs:24},grid2:{xl:12,lg:12,md:12,sm:24,xs:24},myConfig:{autoHeightEnabled:!1,initialFrameHeight:500,initialFrameWidth:"100%",UEDITOR_HOME_URL:"/UEditor/",serverUrl:t,imageUrl:t,imageFieldName:"file",imageUrlPrefix:"",imageActionName:"upfile",imageMaxSize:2048e3,imageAllowFiles:[".png",".jpg",".jpeg",".gif",".bmp"]},formThead:Object.assign({},j),formValidate:Object.assign({},T),items:[{image:"",price:0,cost:0,ot_price:0,stock:0,bar_code:"",weight:0,volume:0}],shippingList:[],guaranteeList:[],isData:!1,artFrom:{type:"taobao",url:""},tableIndex:0,labelPosition:"right",labelWidth:"120",isMore:"",taoBaoStatus:{},attrInfo:{},labelList:[],oneFormBatch:[{image:"",price:0,cost:0,ot_price:0,stock:0,bar_code:"",weight:0,volume:0}]}},computed:{attrValue:function(){var t=Object.assign({},T.attrValue[0]);return delete t.image,t}},watch:{},created:function(){},mounted:function(){this.getCopyCount()},methods:{getLabelLst:function(){var t=this;Object(f["x"])().then((function(e){t.labelList=e.data})).catch((function(e){t.$message.error(e.message)}))},getCopyCount:function(){var t=this;Object(f["cb"])().then((function(e){t.count=e.data.count}))},openRecords:function(){this.$refs.copyRecord.getRecord()},batchDel:function(){this.oneFormBatch=[{image:"",price:0,cost:0,ot_price:0,stock:0,bar_code:"",weight:0,volume:0}]},batchAdd:function(){var t,e=Object(s["a"])(this.ManyAttrValue);try{for(e.s();!(t=e.n()).done;){var a=t.value;this.$set(a,"image",this.oneFormBatch[0].image),this.$set(a,"price",this.oneFormBatch[0].price),this.$set(a,"cost",this.oneFormBatch[0].cost),this.$set(a,"ot_price",this.oneFormBatch[0].ot_price),this.$set(a,"stock",this.oneFormBatch[0].stock),this.$set(a,"bar_code",this.oneFormBatch[0].bar_code),this.$set(a,"weight",this.oneFormBatch[0].weight),this.$set(a,"volume",this.oneFormBatch[0].volume),this.$set(a,"extension_one",this.oneFormBatch[0].extension_one),this.$set(a,"extension_two",this.oneFormBatch[0].extension_two)}}catch(i){e.e(i)}finally{e.f()}},delAttrTable:function(t){this.ManyAttrValue.splice(t,1)},productGetTemplate:function(){var t=this;Object(f["Ab"])().then((function(e){t.shippingList=e.data}))},getGuaranteeList:function(){var t=this;Object(f["D"])().then((function(e){t.guaranteeList=e.data}))},handleRemove:function(t){this.formValidate.slider_image.splice(t,1)},checked:function(t,e){this.formValidate.image=t},goodsCategory:function(){var t=this;Object(f["r"])().then((function(e){t.categoryList=e.data})).catch((function(e){t.$message.error(e.message)}))},getCategorySelect:function(){var t=this;Object(f["s"])().then((function(e){t.merCateList=e.data})).catch((function(e){t.$message.error(e.message)}))},getBrandListApi:function(){var t=this;Object(f["q"])().then((function(e){t.BrandList=e.data})).catch((function(e){t.$message.error(e.message)}))},virtualbtn:function(t,e){this.formValidate.type=t,this.productCon()},watCh:function(t){var e=this,a={},i={};this.formValidate.attr.forEach((function(t,e){a["value"+e]={title:t.value},i["value"+e]=""})),this.ManyAttrValue=this.attrFormat(t),console.log(this.ManyAttrValue),this.ManyAttrValue.forEach((function(t,a){var i=Object.values(t.detail).sort().join("/");e.attrInfo[i]&&(e.ManyAttrValue[a]=e.attrInfo[i]),t.image=e.formValidate.image})),this.attrInfo={},this.ManyAttrValue.forEach((function(t){"undefined"!==t.detail&&null!==t.detail&&(e.attrInfo[Object.values(t.detail).sort().join("/")]=t)})),this.manyTabTit=a,this.manyTabDate=i,this.formThead=Object.assign({},this.formThead,a)},attrFormat:function(t){var e=[],a=[];return i(t);function i(t){if(t.length>1)t.forEach((function(i,r){0===r&&(e=t[r]["detail"]);var n=[];e.forEach((function(e){t[r+1]&&t[r+1]["detail"]&&t[r+1]["detail"].forEach((function(i){var o=(0!==r?"":t[r]["value"]+"_$_")+e+"-$-"+t[r+1]["value"]+"_$_"+i;if(n.push(o),r===t.length-2){var s={image:"",price:0,cost:0,ot_price:0,stock:0,bar_code:"",weight:0,volume:0,brokerage:0,brokerage_two:0};o.split("-$-").forEach((function(t,e){var a=t.split("_$_");s["detail"]||(s["detail"]={}),s["detail"][a[0]]=a.length>1?a[1]:""})),Object.values(s.detail).forEach((function(t,e){s["value"+e]=t})),a.push(s)}}))})),e=n.length?n:[]}));else{var i=[];t.forEach((function(t,e){t["detail"].forEach((function(e,r){i[r]=t["value"]+"_"+e,a[r]={image:"",price:0,cost:0,ot_price:0,stock:0,bar_code:"",weight:0,volume:0,brokerage:0,brokerage_two:0,detail:Object(l["a"])({},t["value"],e)},Object.values(a[r].detail).forEach((function(t,e){a[r]["value"+e]=t}))}))})),e.push(i.join("$&"))}return console.log(a),a}},add:function(){var t=this;if(this.soure_link){var e=/(http|ftp|https):\/\/[\w\-_]+(\.[\w\-_]+)+([\w\-\.,@?^=%&:/~\+#]*[\w\-\@?^=%&/~\+#])?/;if(!e.test(this.soure_link))return this.$message.warning("请输入以http开头的地址!");this.artFrom.url=this.soure_link,this.loading=!0,Object(f["u"])(this.artFrom).then((function(e){var a=e.data;t.modals=!1,t.$emit("info-data",a)})).catch((function(e){t.$message.error(e.message),t.loading=!1}))}else this.$message.warning("请输入链接地址!")},handleSubmit:function(t){var e=this;this.$refs[t].validate((function(t){t?(e.modal_loading=!0,e.formValidate.cate_id=e.formValidate.cate_id instanceof Array?e.formValidate.cate_id.pop():e.formValidate.cate_id,e.formValidate.once_count=e.formValidate.once_count||0,1==e.formValidate.spec_type?e.formValidate.attrValue=e.ManyAttrValue:(e.formValidate.attrValue=e.OneattrValue,e.formValidate.attr=[]),e.formValidate.is_copoy=1,e.loading1=!0,Object(f["bb"])(e.formValidate).then((function(t){e.$message.success("商品默认为不上架状态请手动上架商品!"),e.loading1=!1,setTimeout((function(){e.modal_loading=!1}),500),setTimeout((function(){e.modals=!1}),600),e.$emit("getSuccess")})).catch((function(t){e.modal_loading=!1,e.$message.error(t.message),e.loading1=!1}))):e.formValidate.cate_id||e.$message.warning("请填写商品分类!")}))},modalPicTap:function(t,e,a){this.tableIndex=a;var i=this;this.$modalUpload((function(e){console.log(i.formValidate.attr[i.tableIndex]),"1"===t&&("pi"===a?i.oneFormBatch[0].image=e[0]:i.OneattrValue[0].image=e[0]),"2"===t&&(i.ManyAttrValue[i.tableIndex].image=e[0]),i.modalPic=!1}),t)},getPic:function(t){this.callback(t),this.formValidate.attr[this.tableIndex].pic=t.att_dir,this.modalPic=!1},handleDragStart:function(t,e){this.dragging=e},handleDragEnd:function(t,e){this.dragging=null},handleDragOver:function(t){t.dataTransfer.dropEffect="move"},handleDragEnter:function(t,e){if(t.dataTransfer.effectAllowed="move",e!==this.dragging){var a=Object(c["a"])(this.formValidate.slider_image),i=a.indexOf(this.dragging),r=a.indexOf(e);a.splice.apply(a,[r,0].concat(Object(c["a"])(a.splice(i,1)))),this.formValidate.slider_image=a}},addCustomDialog:function(t){window.UE.registerUI("test-dialog",(function(t,e){var a=new window.UE.ui.Dialog({iframeUrl:"/admin/widget.images/index.html?fodder=dialog",editor:t,name:e,title:"上传图片",cssRules:"width:1200px;height:500px;padding:20px;"});this.dialog=a;var i=new window.UE.ui.Button({name:"dialog-button",title:"上传图片",cssRules:"background-image: url(../../../assets/images/icons.png);background-position: -726px -77px;",onclick:function(){a.render(),a.open()}});return i}))}}},S=B,F=(a("c722"),Object($["a"])(S,y,V,!1,null,"5245ffd2",null)),D=F.exports,A={image:"",slider_image:[],store_name:"",store_info:"",keyword:"",brand_id:"",cate_id:"",mer_cate_id:[],param_temp_id:[],unit_name:"",sort:0,once_max_count:0,is_good:0,temp_id:"",video_link:"",guarantee_template_id:"",delivery_way:[],mer_labels:[],delivery_free:0,pay_limit:0,once_min_count:0,svip_price_type:0,params:[],attrValue:[{image:"",price:null,cost:null,ot_price:null,procure_price:null,svip_price:null,stock:null,bar_code:"",weight:null,volume:null}],attr:[],extension_type:0,integral_rate:-1,content:{title:"",image:[]},spec_type:0,give_coupon_ids:[],is_gift_bag:0,couponData:[],extend:[],type:0},E={price:{title:"零售价"},cost:{title:"成本价"},ot_price:{title:"市场价"},procure_price:{title:"批发价"},svip_price:{title:"付费会员价"},stock:{title:"库存"},bar_code:{title:"商品条码"},weight:{title:"重量(KG)"},volume:{title:"体积(m³)"}},P=[{name:"店铺推荐",value:"is_good"}],R={name:"ProductProductAdd",components:{ueditorFrom:d["a"],VueUeditorWrap:m.a,guaranteeService:g["a"],previewBox:_["a"],taoBao:D,copyRecord:L},data:function(){var t=v["a"].https+"/upload/image/0/file?ueditor=1&token="+Object(b["a"])();return{myConfig:{autoHeightEnabled:!1,initialFrameHeight:500,initialFrameWidth:"100%",enableAutoSave:!1,UEDITOR_HOME_URL:"/UEditor/",serverUrl:t,imageUrl:t,imageFieldName:"file",imageUrlPrefix:"",imageActionName:"upfile",imageMaxSize:2048e3,imageAllowFiles:[".png",".jpg",".jpeg",".gif",".bmp"]},optionsCate:{value:"store_category_id",label:"cate_name",children:"children",emitPath:!1},roterPre:h["roterPre"],selectRule:"",checkboxGroup:[],recommend:P,tabs:[],fullscreenLoading:!1,props:{emitPath:!1},propsMer:{emitPath:!0},active:0,deduction_set:-1,OneattrValue:[Object.assign({},A.attrValue[0])],ManyAttrValue:[Object.assign({},A.attrValue[0])],ruleList:[],merCateList:[],categoryList:[],shippingList:[],guaranteeList:[],BrandList:[],deliveryList:[],labelList:[],formThead:Object.assign({},E),formValidate:Object.assign({},A),picValidate:!0,formDynamics:{template_name:"",template_value:[]},manyTabTit:{},manyTabDate:{},grid2:{xl:10,lg:12,md:12,sm:24,xs:24},formDynamic:{attrsName:"",attrsVal:""},isBtn:!1,manyFormValidate:[],images:[],currentTab:"1",isChoice:"",upload:{videoIng:!1},progress:10,videoLink:"",grid:{xl:8,lg:8,md:12,sm:24,xs:24},loading:!1,ruleValidate:{give_coupon_ids:[{required:!0,message:"请选择优惠券",trigger:"change",type:"array"}],store_name:[{required:!0,message:"请输入商品名称",trigger:"blur"}],mer_cate_id:[{required:!1,message:"请选择商户商品分类",trigger:"change"}],cate_id:[{required:!0,message:"请选择平台分类",trigger:"change"}],keyword:[{required:!0,message:"请输入商品关键字",trigger:"blur"}],unit_name:[{required:!0,message:"请输入单位",trigger:"blur"}],store_info:[{required:!1,message:"请输入商品简介",trigger:"blur"}],temp_id:[{required:!0,message:"请选择运费模板",trigger:"change"}],once_max_count:[{required:!0,message:"请输入限购数量",trigger:"change"}],image:[{required:!0,message:"请上传商品图",trigger:"change"}],slider_image:[{required:!0,message:"请上传商品轮播图",type:"array",trigger:"change"}],spec_type:[{required:!0,message:"请选择商品规格",trigger:"change"}],delivery_way:[{required:!0,message:"请选择送货方式",trigger:"change"}]},attrInfo:{},keyNum:0,extensionStatus:0,deductionStatus:0,previewVisible:!1,previewKey:"",deliveryType:[],virtual:[{tit:"普通商品",id:0,tit2:"物流发货"}],customBtn:0,CustomList:[{value:"text",label:"文本框"},{value:"number",label:"数字"},{value:"email",label:"邮件"},{value:"date",label:"日期"},{value:"time",label:"时间"},{value:"idCard",label:"身份证"},{value:"mobile",label:"手机号"},{value:"image",label:"图片"}],customess:{content:[]},headTab:[{title:"商品信息",name:"1"},{title:"规格设置",name:"2"},{title:"商品详情",name:"3"},{title:"其他设置",name:"4"}],type:0,modals:!1,attrVal:{price:null,cost:null,ot_price:null,procure_price:null,stock:null,bar_code:"",weight:null,volume:null},open_svip:!1,svip_rate:0,customSpecs:[],merSpecsSelect:[],sysSpecsSelect:[]}},computed:{attrValue:function(){var t=Object.assign({},this.attrVal);return t},oneFormBatch:function(){var t=[Object.assign({},A.attrValue[0])];return this.OneattrValue[0]&&this.OneattrValue[0]["image"]&&(t[0]["image"]=this.OneattrValue[0]["image"]),delete t[0].bar_code,t}},watch:{"formValidate.attr":{handler:function(t){1===this.formValidate.spec_type&&this.watCh(t)},immediate:!1,deep:!0},currentTab:function(t){var e=this;4==t&&this.$nextTick((function(t){e.setSort()}))}},created:function(){this.tempRoute=Object.assign({},this.$route),this.$route.params.id&&1===this.formValidate.spec_type&&this.$watch("formValidate.attr",this.watCh)},mounted:function(){var t=this;"TypeSupplyChain"!=this.$store.state.user.merchantType.type_code&&delete this.attrVal.procure_price,this.formValidate.slider_image=[],this.$route.params.id?(this.setTagsViewTitle(),this.getInfo()):(this.getSpecsLst(this.formValidate.cate_id),-1==this.deduction_set&&(this.formValidate.integral_rate=-1)),this.formValidate.attr.map((function(e){t.$set(e,"inputVisible",!1)})),1==this.$route.query.type?(this.type=this.$route.query.type,this.$refs.taoBao.modals=!0):this.type=0,this.getCategorySelect(),this.getCategoryList(),this.getBrandListApi(),this.getShippingList(),this.getGuaranteeList(),this.productCon(),this.productGetRule(),this.getLabelLst(),this.$store.dispatch("settings/setEdit",!0)},destroyed:function(){window.removeEventListener("popstate",this.goBack,!1)},methods:{setSort:function(){},elChangeExForArray:function(t,e,a){var i=a[t];return a[t]=a[e],a[e]=i,a},goBack:function(){sessionStorage.clear(),window.history.back()},handleCloseCoupon:function(t){var e=this;this.formValidate.couponData.splice(this.formValidate.couponData.indexOf(t),1),this.formValidate.give_coupon_ids=[],this.formValidate.couponData.map((function(t){e.formValidate.give_coupon_ids.push(t.coupon_id)}))},getSpecsLst:function(t){var e=this,a=t||this.formValidate.cate_id;Object(f["Db"])({cate_id:a}).then((function(t){e.merSpecsSelect=t.data.mer,e.sysSpecsSelect=t.data.sys})).catch((function(t){e.$message.error(t.message)}))},productCon:function(){var t=this;Object(f["ab"])().then((function(e){t.extensionStatus=e.data.extension_status,t.deductionStatus=e.data.integral_status,t.deliveryType=e.data.delivery_way.map(String),t.open_svip=1==e.data.mer_svip_status&&1==e.data.svip_switch_status,t.svip_rate=e.data.svip_store_rate;var a=0==t.formValidate.type?"快递配送":"虚拟发货";t.$route.params.id||(t.formValidate.delivery_way=t.deliveryType),2==t.deliveryType.length?t.deliveryList=[{value:"1",name:"到店自提"},{value:"2",name:a}]:1==t.deliveryType.length&&"1"==t.deliveryType[0]?t.deliveryList=[{value:"1",name:"到店自提"}]:t.deliveryList=[{value:"2",name:a}]})).catch((function(e){t.$message.error(e.message)}))},getLabelLst:function(){var t=this;Object(f["N"])({type:1}).then((function(e){t.labelList=e.data.list})).catch((function(e){t.$message.error(e.message)}))},addCoupon:function(){var t=this;this.$modalCoupon(this.formValidate.couponData,"wu",t.formValidate.give_coupon_ids,this.keyNum+=1,(function(e){t.formValidate.give_coupon_ids=[],t.formValidate.couponData=e,e.map((function(e){t.formValidate.give_coupon_ids.push(e.coupon_id)}))}))},delSpecs:function(t){this.formValidate.params.splice(t,1)},addSpecs:function(){this.formValidate.params.push({name:"",value:"",sort:0})},getSpecsList:function(){var t=this,e=Object(c["a"])(this.customSpecs),a=[this.formValidate.param_temp_id].concat(),i=[].concat(Object(c["a"])(e),Object(c["a"])(a));console.log(i),console.log(this.customSpecs),i.length<=0?(this.formValidate.merParams=[],this.formValidate.sysParams=[]):Object(f["mb"])({template_ids:i.toString()}).then((function(e){t.formValidate.params=e.data})).catch((function(e){t.$message.error(e.message)}))},setTagsViewTitle:function(){var t="编辑商品",e=Object.assign({},this.tempRoute,{title:"".concat(t,"-").concat(this.$route.params.id)});this.$store.dispatch("tagsView/updateVisitedView",e)},onChangeGroup:function(){this.checkboxGroup.includes("is_good")?this.formValidate.is_good=1:this.formValidate.is_good=0},watCh:function(t){var e=this,a={},i={};this.formValidate.attr.forEach((function(t,e){a["value"+e]={title:t.value},i["value"+e]=""})),this.ManyAttrValue=this.attrFormat(t),this.ManyAttrValue.forEach((function(t,a){var i=Object.values(t.detail).sort().join("/");e.attrInfo[i]&&(e.ManyAttrValue[a]=e.attrInfo[i])})),this.attrInfo={},this.ManyAttrValue.forEach((function(t){"undefined"!==t.detail&&null!==t.detail&&(e.attrInfo[Object.values(t.detail).sort().join("/")]=t)})),this.manyTabTit=a,this.manyTabDate=i,this.formThead=Object.assign({},this.formThead,a)},attrFormat:function(t){var e=[],a=[];return i(t);function i(t){if(t.length>1)t.forEach((function(i,r){0===r&&(e=t[r]["detail"]);var n=[];e.forEach((function(e){t[r+1]&&t[r+1]["detail"]&&t[r+1]["detail"].forEach((function(i){var o=(0!==r?"":t[r]["value"]+"_$_")+e+"-$-"+t[r+1]["value"]+"_$_"+i;if(n.push(o),r===t.length-2){var s={image:"",price:0,cost:0,ot_price:0,stock:0,bar_code:"",weight:0,volume:0,brokerage:0,brokerage_two:0};o.split("-$-").forEach((function(t,e){var a=t.split("_$_");s["detail"]||(s["detail"]={}),s["detail"][a[0]]=a.length>1?a[1]:""})),Object.values(s.detail).forEach((function(t,e){s["value"+e]=t})),a.push(s)}}))})),e=n.length?n:[]}));else{var i=[];t.forEach((function(t,e){t["detail"].forEach((function(e,r){i[r]=t["value"]+"_"+e,a[r]={image:"",price:0,cost:0,ot_price:0,stock:0,bar_code:"",weight:0,volume:0,brokerage:0,brokerage_two:0,detail:Object(l["a"])({},t["value"],e)},Object.values(a[r].detail).forEach((function(t,e){a[r]["value"+e]=t}))}))})),e.push(i.join("$&"))}return a}},addTem:function(){var t=this;this.$modalTemplates(0,(function(){t.getShippingList()}))},addServiceTem:function(){this.$refs.serviceGuarantee.add()},delVideo:function(){var t=this;t.$set(t.formValidate,"video_link","")},zh_uploadFile:function(){this.videoLink?this.formValidate.video_link=this.videoLink:this.$refs.refid.click()},zh_uploadFile_change:function(t){var e=this;e.progress=10;var a=t.target.files[0].name.substr(t.target.files[0].name.indexOf("."));if(".mp4"!==a)return e.$message.error("只能上传MP4文件");Object(f["hb"])().then((function(a){e.$videoCloud.videoUpload({type:a.data.type,evfile:t,res:a,uploading:function(t,a){e.upload.videoIng=t}}).then((function(t){e.formValidate.video_link=t.url||t.data.src,e.$message.success("视频上传成功"),e.progress=100})).catch((function(t){e.upload.videoIng=!1,e.$message.error(t.message)}))}))},addRule:function(){var t=this;this.$modalAttr(this.formDynamics,(function(){t.productGetRule()}))},onChangeSpec:function(t){1===t&&this.productGetRule()},changeIntergral:function(t){this.formValidate.integral_rate=-1==t?-1:this.formValidate.integral_rate},confirm:function(){var t=this;if(!this.selectRule)return this.$message.warning("请选择属性");this.ruleList.forEach((function(e){e.attr_template_id===t.selectRule&&(t.formValidate.attr=e.template_value)}))},getCategorySelect:function(){var t=this;Object(f["s"])().then((function(e){t.merCateList=e.data})).catch((function(e){t.$message.error(e.message)}))},getCategoryList:function(){var t=this;Object(f["r"])().then((function(e){e.data.forEach((function(t){t.children.forEach((function(t){t.children=null}))})),t.categoryList=e.data})).catch((function(e){t.$message.error(e.message)}))},getBrandListApi:function(){var t=this;Object(f["q"])().then((function(e){t.BrandList=e.data})).catch((function(e){t.$message.error(e.message)}))},productGetRule:function(){var t=this;Object(f["Rb"])().then((function(e){t.ruleList=e.data}))},getShippingList:function(){var t=this;Object(f["Ab"])().then((function(e){t.shippingList=e.data}))},getGuaranteeList:function(){var t=this;Object(f["D"])().then((function(e){t.guaranteeList=e.data}))},showInput:function(t){this.$set(t,"inputVisible",!0)},virtualbtn:function(t,e){if(this.$route.params.id)return this.$message.warning("商品类型不能切换!");this.formValidate.type=t,this.productCon()},customMessBtn:function(t){t||(this.formValidate.extend=[])},addcustom:function(){this.formValidate.extend.length>9?this.$message.warning("最多添加10条"):this.formValidate.extend.push({title:"",key:"text",value:"",require:!1})},delcustom:function(t){this.formValidate.extend.splice(t,1)},onChangetype:function(t){var e=this;1===t?(this.OneattrValue.map((function(t){e.$set(t,"extension_one",null),e.$set(t,"extension_two",null)})),this.ManyAttrValue.map((function(t){e.$set(t,"extension_one",null),e.$set(t,"extension_two",null)}))):(this.OneattrValue.map((function(t){delete t.extension_one,delete t.extension_two,e.$set(t,"extension_one",null),e.$set(t,"extension_two",null)})),this.ManyAttrValue.map((function(t){delete t.extension_one,delete t.extension_two})))},onChangeSpecs:function(t){if(1==t||2==t){this.attrVal={price:null,cost:null,ot_price:null,svip_price:null,stock:null,bar_code:"",weight:null,volume:null},this.OneattrValue[0]["svip_price"]=this.OneattrValue[0]["price"]?this.accMul(this.OneattrValue[0]["price"],this.svip_rate):0;var e,a=0,i=Object(s["a"])(this.ManyAttrValue);try{for(i.s();!(e=i.n()).done;){var r=e.value;a=r.price?this.accMul(r.price,this.svip_rate):0,this.$set(r,"svip_price",a)}}catch(n){i.e(n)}finally{i.f()}}else this.attrVal={price:null,cost:null,ot_price:null,stock:null,bar_code:"",weight:null,volume:null}},memberPrice:function(t,e){"售价"==t.title&&(e.svip_price=this.accMul(e.price,this.svip_rate))},accMul:function(t,e){var a=0,i=t.toString(),r=e.toString();try{a+=i.split(".")[1].length}catch(n){}try{a+=r.split(".")[1].length}catch(n){}return Number(i.replace(".",""))*Number(r.replace(".",""))/Math.pow(10,a)},delAttrTable:function(t){this.ManyAttrValue.splice(t,1)},batchAdd:function(){var t,e=Object(s["a"])(this.ManyAttrValue);try{for(e.s();!(t=e.n()).done;){var a=t.value;console.log(this.oneFormBatch[0]),""!=this.oneFormBatch[0].image&&this.$set(a,"image",this.oneFormBatch[0].image),null!=this.oneFormBatch[0].price&&this.$set(a,"price",this.oneFormBatch[0].price),null!=this.oneFormBatch[0].cost&&this.$set(a,"cost",this.oneFormBatch[0].cost),null!=this.oneFormBatch[0].ot_price&&this.$set(a,"ot_price",this.oneFormBatch[0].ot_price),null!=this.oneFormBatch[0].svip_price&&this.$set(a,"svip_price",this.oneFormBatch[0].svip_price),null!=this.oneFormBatch[0].stock&&this.$set(a,"stock",this.oneFormBatch[0].stock),null!=this.oneFormBatch[0].bar_code&&this.$set(a,"bar_code",this.oneFormBatch[0].bar_code),null!=this.oneFormBatch[0].weight&&this.$set(a,"weight",this.oneFormBatch[0].weight),null!=this.oneFormBatch[0].volume&&this.$set(a,"volume",this.oneFormBatch[0].volume),null!=this.oneFormBatch[0].extension_one&&this.$set(a,"extension_one",this.oneFormBatch[0].extension_one),null!=this.oneFormBatch[0].extension_two&&this.$set(a,"extension_two",this.oneFormBatch[0].extension_two)}}catch(i){e.e(i)}finally{e.f()}},addBtn:function(){this.clearAttr(),this.isBtn=!0},offAttrName:function(){this.isBtn=!1},clearAttr:function(){this.formDynamic.attrsName="",this.formDynamic.attrsVal=""},handleRemoveAttr:function(t){this.formValidate.attr.splice(t,1),this.manyFormValidate.splice(t,1)},handleClose:function(t,e){t.splice(e,1)},createAttrName:function(){if(this.formDynamic.attrsName&&this.formDynamic.attrsVal){var t={value:this.formDynamic.attrsName,detail:[this.formDynamic.attrsVal]};this.formValidate.attr.push(t);var e={};this.formValidate.attr=this.formValidate.attr.reduce((function(t,a){return!e[a.value]&&(e[a.value]=t.push(a)),t}),[]),this.clearAttr(),this.isBtn=!1}else this.$message.warning("请添加完整的规格!")},createAttr:function(t,e){if(t){this.formValidate.attr[e].detail.push(t);var a={};this.formValidate.attr[e].detail=this.formValidate.attr[e].detail.reduce((function(t,e){return!a[e]&&(a[e]=t.push(e)),t}),[]),this.formValidate.attr[e].inputVisible=!1}else this.$message.warning("请添加属性")},getInfo:function(){var t=this;this.fullscreenLoading=!0,Object(f["gb"])(this.$route.params.id).then(function(){var e=Object(o["a"])(Object(n["a"])().mark((function e(a){var i;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:a.data.content_arr&&a.data.content_arr.length>0&&(a.data.content=a.data.content_arr),i=a.data,t.infoData(i),t.getSpecsLst(i.cate_id);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.fullscreenLoading=!1,t.$message.error(e.message)}))},infoData:function(t){var e=this;this.deduction_set=-1==t.integral_rate?-1:1,this.formValidate={image:t.image,attrValue:t.attrValue,slider_image:t.slider_image,store_name:t.store_name,store_info:t.store_info,keyword:t.keyword,params:t.params,param_temp_id:t.param_temp_id,brand_id:t.brand_id,cate_id:t.cate_id,mer_cate_id:t.mer_cate_id,unit_name:t.unit_name,sort:t.sort,once_max_count:t.once_max_count||1,once_min_count:t.once_min_count||0,is_good:t.is_good,temp_id:t.temp_id,guarantee_template_id:t.guarantee_template_id?t.guarantee_template_id:"",attr:t.attr,pay_limit:t.pay_limit||0,extension_type:t.extension_type,content:t.content,spec_type:Number(t.spec_type),give_coupon_ids:t.give_coupon_ids,is_gift_bag:t.is_gift_bag,couponData:t.coupon,video_link:t.video_link?t.video_link:"",integral_rate:t.integral_rate,delivery_way:t.delivery_way&&t.delivery_way.length?t.delivery_way.map(String):this.deliveryType,delivery_free:t.delivery_free?t.delivery_free:0,mer_labels:t.mer_labels&&t.mer_labels.length?t.mer_labels.map(Number):[],type:t.type||0,extend:t.extend||[],svip_price_type:t.svip_price_type||0},0!=t.svip_price_type&&(this.attrVal={price:null,cost:null,ot_price:null,svip_price:null,stock:null,bar_code:"",weight:null,volume:null}),0!=this.formValidate.extend.length&&(this.customBtn=1),0===this.formValidate.spec_type?this.OneattrValue=t.attrValue:(this.ManyAttrValue=t.attrValue,this.ManyAttrValue.forEach((function(t){"undefined"!==t.detail&&null!==t.detail&&(e.attrInfo[Object.values(t.detail).sort().join("/")]=t)}))),1===this.formValidate.is_good&&this.checkboxGroup.push("is_good"),this.fullscreenLoading=!1},onClose:function(t){this.modals=!1,this.infoData(t)},handleRemove:function(t){this.formValidate.slider_image.splice(t,1)},modalPicTap:function(t,e,a){var i=this,r=[];this.$modalUpload((function(n){if("1"!==t||e||(i.formValidate.image=n[0],i.OneattrValue[0].image=n[0]),"2"!==t||e||n.map((function(t){r.push(t.attachment_src),i.formValidate.slider_image.push(t),i.formValidate.slider_image.length>10&&(i.formValidate.slider_image.length=10)})),"1"===t&&"dan"===e&&(i.OneattrValue[0].image=n[0]),"1"===t&&"duo"===e&&(i.ManyAttrValue[a].image=n[0]),"1"===t&&"pi"===e&&(i.oneFormBatch[0].image=n[0]),"3"===t){var o=i.formValidate.content.image?i.formValidate.content.image:[];i.formValidate.content={image:[].concat(Object(c["a"])(o),Object(c["a"])(n)),title:i.formValidate.content.title},console.log("选择好的",i.formValidate.content)}}),t)},deleteContentImg:function(t){this.formValidate.content.image.splice(t,1)},handleSubmitUp:function(){this.currentTab=(Number(this.currentTab)-1).toString()},handleSubmitNest:function(t){var e=this;this.$refs[t].validate((function(t){t&&(e.currentTab=(Number(e.currentTab)+1).toString())}))},validateAttr:function(){var t=this;Object.keys(this.formValidate.attrValue[0]).forEach((function(e){void 0==t.formValidate.attrValue[0][e]&&"bar_code"!=e&&(t.formValidate.attrValue[0][e]=0)}))},handleSubmit:function(t){var e=this;this.$store.dispatch("settings/setEdit",!1),this.onChangeGroup(),1===this.formValidate.spec_type?this.formValidate.attrValue=this.ManyAttrValue:(this.formValidate.attrValue=this.OneattrValue,this.formValidate.attr=[]);var a={price:!1,procure_price:!1};return this.formValidate.attrValue.forEach((function(t){t.price&&0!=t.price||(a.price=!0),t.procure_price&&0!=t.procure_price||(a.procure_price=!0)})),a.price?p["Message"].error("零售价不能为小于等于0"):a.procure_price&&"TypeSupplyChain"==this.$store.state.user.merchantType.type_code?p["Message"].error("批发价不能为小于等于0"):void this.$refs[t].validate((function(a){if(a){e.validateAttr(),e.fullscreenLoading=!0,e.loading=!0;var i=e.$route.params.id&&!e.$route.query.type;i?Object(f["pb"])(e.$route.params.id,e.formValidate).then(function(){var a=Object(o["a"])(Object(n["a"])().mark((function a(i){return Object(n["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:e.fullscreenLoading=!1,e.$message.success(i.message),e.$router.push({path:e.roterPre+"/product/list"}),e.$refs[t].resetFields(),e.formValidate.slider_image=[],e.loading=!1;case 6:case"end":return a.stop()}}),a)})));return function(t){return a.apply(this,arguments)}}()).catch((function(t){e.fullscreenLoading=!1,e.loading=!1,e.$message.error(t.message)})):Object(f["eb"])(e.formValidate).then(function(){var t=Object(o["a"])(Object(n["a"])().mark((function t(a){return Object(n["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.fullscreenLoading=!1,e.$message.success(a.message),e.$router.push({path:e.roterPre+"/product/list"}),e.loading=!1;case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.fullscreenLoading=!1,e.loading=!1,e.$message.error(t.message)}))}else{if(!e.formValidate.store_name.trim())return e.$message.warning("基本信息-商品名称不能为空");if(!e.formValidate.unit_name)return e.$message.warning("基本信息-单位不能为空");if(!e.formValidate.cate_id)return e.$message.warning("基本信息-平台商品分类不能为空");if(!e.formValidate.image)return e.$message.warning("基本信息-商品封面图不能为空");if(e.formValidate.slider_image.length<0)return e.$message.warning("基本信息-商品轮播图不能为空")}}))},handlePreview:function(t){var e=this;this.onChangeGroup(),1===this.formValidate.spec_type?this.formValidate.attrValue=this.ManyAttrValue:(this.formValidate.attrValue=this.OneattrValue,this.formValidate.attr=[]),Object(f["jb"])(this.formValidate).then(function(){var t=Object(o["a"])(Object(n["a"])().mark((function t(a){return Object(n["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.previewVisible=!0,e.previewKey=a.data.preview_key;case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.$message.error(t.message)}))},validate:function(t,e,a){!1===e&&this.$message.warning(a)},specPicValidate:function(t){for(var e=0;ed)a=l[d++],i&&!o.call(s,a)||u.push(t?[a,s[a]]:s[a]);return u}}},8615:function(t,e,a){var i=a("5ca1"),r=a("504c")(!1);i(i.S,"Object",{values:function(t){return r(t)}})},b78c:function(t,e,a){},c13b:function(t,e,a){"use strict";a("cce5")},c33c:function(t,e,a){},c722:function(t,e,a){"use strict";a("b78c")},cce5:function(t,e,a){},f099:function(t,e,a){"use strict";a("c33c")}}]); \ No newline at end of file diff --git a/public/mer/js/chunk-39a0bfcb.9e39ce69.js b/public/mer/js/chunk-39a0bfcb.198b022c.js similarity index 97% rename from public/mer/js/chunk-39a0bfcb.9e39ce69.js rename to public/mer/js/chunk-39a0bfcb.198b022c.js index f058941f..35475e60 100644 --- a/public/mer/js/chunk-39a0bfcb.9e39ce69.js +++ b/public/mer/js/chunk-39a0bfcb.198b022c.js @@ -1 +1 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-39a0bfcb"],{"1f87":function(t,e,a){"use strict";a("5290")},"4c4c":function(t,e,a){"use strict";a.r(e);var l=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"divBox"},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("div",{staticClass:"container"},[a("el-form",{attrs:{size:"small","label-width":"100px"}},[a("span",{staticClass:"seachTiele"},[t._v("时间选择:")]),t._v(" "),a("el-radio-group",{staticClass:"mr20",attrs:{type:"button",size:"small",clearable:""},on:{change:function(e){return t.selectChange(t.tableFrom.date)}},model:{value:t.tableFrom.date,callback:function(e){t.$set(t.tableFrom,"date",e)},expression:"tableFrom.date"}},t._l(t.fromList.fromTxt,(function(e,l){return a("el-radio-button",{key:l,attrs:{label:e.val}},[t._v(t._s(e.text))])})),1),t._v(" "),a("el-date-picker",{staticStyle:{width:"250px"},attrs:{"value-format":"yyyy/MM/dd",format:"yyyy/MM/dd",size:"small",type:"daterange",placement:"bottom-end",placeholder:"自定义时间",clearable:""},on:{change:t.onchangeTime},model:{value:t.timeVal,callback:function(e){t.timeVal=e},expression:"timeVal"}}),t._v(" "),a("div",{staticClass:"mt20"},[a("span",{staticClass:"seachTiele"},[t._v("评价分类:")]),t._v(" "),a("el-select",{staticClass:"filter-item selWidth mr20",attrs:{placeholder:"请选择",clearable:""},on:{change:function(e){return t.getList(1)}},model:{value:t.tableFrom.is_reply,callback:function(e){t.$set(t.tableFrom,"is_reply",e)},expression:"tableFrom.is_reply"}},t._l(t.evaluationStatusList,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1),t._v(" "),a("span",{staticClass:"seachTiele"},[t._v("商品信息:")]),t._v(" "),a("el-input",{staticClass:"selWidth mr20",attrs:{placeholder:"请输入商品ID或者商品信息",clearable:""},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getList(1)}},model:{value:t.tableFrom.keyword,callback:function(e){t.$set(t.tableFrom,"keyword",e)},expression:"tableFrom.keyword"}}),t._v(" "),a("span",{staticClass:"seachTiele"},[t._v("用户名称:")]),t._v(" "),a("el-input",{staticClass:"selWidth mr20",attrs:{placeholder:"请输入用户名称"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getList(1)}},model:{value:t.tableFrom.nickname,callback:function(e){t.$set(t.tableFrom,"nickname",e)},expression:"tableFrom.nickname"}}),t._v(" "),a("el-button",{attrs:{size:"small",type:"primary",icon:"el-icon-search"},on:{click:function(e){return t.getList(1)}}},[t._v("搜索")])],1)],1)],1)]),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{data:t.tableData.data,size:"mini","row-class-name":t.tableRowClassName},on:{rowclick:function(e){return e.stopPropagation(),t.closeEdit(e)}}},[a("el-table-column",{attrs:{prop:"product_id",label:"商品ID","min-width":"50"}}),t._v(" "),a("el-table-column",{attrs:{label:"商品信息","min-width":"180"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"tabBox acea-row row-middle"},[a("div",{staticClass:"demo-image__preview"},[a("el-image",{attrs:{src:e.row.image,"preview-src-list":[e.row.image]}})],1),t._v(" "),a("span",{staticClass:"tabBox_tit"},[t._v(t._s(e.row.store_name))])])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"nickname",label:"用户名称","min-width":"80"}}),t._v(" "),a("el-table-column",{attrs:{prop:"product_score",label:"产品评分","min-width":"50"}}),t._v(" "),a("el-table-column",{attrs:{prop:"service_score",label:"服务评分","min-width":"50"}}),t._v(" "),a("el-table-column",{attrs:{prop:"postage_score",label:"物流评分","min-width":"50"}}),t._v(" "),a("el-table-column",{attrs:{prop:"comment",label:"评价内容","min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"mb5 content_font"},[t._v(t._s(e.row.comment))]),t._v(" "),a("div",{staticClass:"demo-image__preview"},t._l(e.row.pics,(function(t,e){return a("el-image",{key:e,staticClass:"mr5",attrs:{src:t,"preview-src-list":[t]}})})),1)]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"merchant_reply_content",label:"回复内容","min-width":"100"}}),t._v(" "),a("el-table-column",{attrs:{prop:"create_time",label:"评价时间","min-width":"100"}}),t._v(" "),a("el-table-column",{attrs:{prop:"sort",label:"排序","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.index===t.tabClickIndex?a("span",[a("el-input",{attrs:{type:"number",maxlength:"300",size:"mini",autofocus:""},on:{blur:function(a){return t.inputBlur(e)}},model:{value:e.row["sort"],callback:function(a){t.$set(e.row,"sort",t._n(a))},expression:"scope.row['sort']"}})],1):a("span",{on:{dblclick:function(a){return a.stopPropagation(),t.tabClick(e.row)}}},[t._v(t._s(e.row["sort"]))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作","min-width":"80",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.handleReply(e.row.reply_id)}}},[t._v("回复")])]}}])})],1),t._v(" "),a("div",{staticClass:"block"},[a("el-pagination",{attrs:{"page-sizes":[20,40,60,80],"page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"total, sizes, prev, pager, next, jumper",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1)],1)},i=[],n=(a("55dd"),a("c4c8")),s={data:function(){return{tableData:{data:[],total:0},listLoading:!0,tableFrom:{is_reply:"",nickname:"",keyword:"",order_sn:"",product_id:this.$route.query.product_id?this.$route.query.product_id:"",status:"",date:"",page:1,limit:20},timeVal:[],fromList:{title:"选择时间",custom:!0,fromTxt:[{text:"全部",val:""},{text:"今天",val:"today"},{text:"昨天",val:"yesterday"},{text:"最近7天",val:"lately7"},{text:"最近30天",val:"lately30"},{text:"本月",val:"month"},{text:"本年",val:"year"}]},selectionList:[],tabClickIndex:"",ids:"",tableFromLog:{page:1,limit:10},tableDataLog:{data:[],total:0},LogLoading:!1,dialogVisible:!1,evaluationStatusList:[{value:"",label:"全部"},{value:1,label:"已回复"},{value:0,label:"未回复"}],orderDatalist:null}},mounted:function(){this.getList(1)},methods:{handleReply:function(t){var e=this;this.$modalForm(Object(n["qb"])(t)).then((function(){return e.getList(1)}))},handleSelectionChange:function(t){this.selectionList=t;var e=[];this.selectionList.map((function(t){e.push(t.id)})),this.ids=e.join(",")},selectChange:function(t){this.tableFrom.date=t,this.timeVal=[],this.getList(1)},onchangeTime:function(t){this.timeVal=t,this.tableFrom.date=t?this.timeVal.join("-"):"",this.getList(1)},tableRowClassName:function(t){var e=t.row,a=t.rowIndex;e.index=a},tabClick:function(t){this.tabClickIndex=t.index},inputBlur:function(t){var e=this;(!t.row.sort||t.row.sort<0)&&(t.row.sort=0),Object(n["rb"])(t.row.reply_id,{sort:t.row.sort}).then((function(t){e.closeEdit()})).catch((function(t){}))},closeEdit:function(){this.tabClickIndex=null},getList:function(t){var e=this;this.listLoading=!0,this.tableFrom.page=t||this.tableFrom.page,Object(n["pb"])(this.tableFrom).then((function(t){e.tableData.data=t.data.list,e.tableData.total=t.data.count,e.listLoading=!1})).catch((function(t){e.listLoading=!1,e.$message.error(t.message)}))},pageChange:function(t){this.tableFrom.page=t,this.getList("")},handleSizeChange:function(t){this.tableFrom.limit=t,this.getList("")}}},o=s,r=(a("1f87"),a("2877")),c=Object(r["a"])(o,l,i,!1,null,"95fdc4c8",null);e["default"]=c.exports},5290:function(t,e,a){}}]); \ No newline at end of file +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-39a0bfcb"],{"1f87":function(t,e,a){"use strict";a("5290")},"4c4c":function(t,e,a){"use strict";a.r(e);var l=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"divBox"},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("div",{staticClass:"container"},[a("el-form",{attrs:{size:"small","label-width":"100px"}},[a("span",{staticClass:"seachTiele"},[t._v("时间选择:")]),t._v(" "),a("el-radio-group",{staticClass:"mr20",attrs:{type:"button",size:"small",clearable:""},on:{change:function(e){return t.selectChange(t.tableFrom.date)}},model:{value:t.tableFrom.date,callback:function(e){t.$set(t.tableFrom,"date",e)},expression:"tableFrom.date"}},t._l(t.fromList.fromTxt,(function(e,l){return a("el-radio-button",{key:l,attrs:{label:e.val}},[t._v(t._s(e.text))])})),1),t._v(" "),a("el-date-picker",{staticStyle:{width:"250px"},attrs:{"value-format":"yyyy/MM/dd",format:"yyyy/MM/dd",size:"small",type:"daterange",placement:"bottom-end",placeholder:"自定义时间",clearable:""},on:{change:t.onchangeTime},model:{value:t.timeVal,callback:function(e){t.timeVal=e},expression:"timeVal"}}),t._v(" "),a("div",{staticClass:"mt20"},[a("span",{staticClass:"seachTiele"},[t._v("评价分类:")]),t._v(" "),a("el-select",{staticClass:"filter-item selWidth mr20",attrs:{placeholder:"请选择",clearable:""},on:{change:function(e){return t.getList(1)}},model:{value:t.tableFrom.is_reply,callback:function(e){t.$set(t.tableFrom,"is_reply",e)},expression:"tableFrom.is_reply"}},t._l(t.evaluationStatusList,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1),t._v(" "),a("span",{staticClass:"seachTiele"},[t._v("商品信息:")]),t._v(" "),a("el-input",{staticClass:"selWidth mr20",attrs:{placeholder:"请输入商品ID或者商品信息",clearable:""},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getList(1)}},model:{value:t.tableFrom.keyword,callback:function(e){t.$set(t.tableFrom,"keyword",e)},expression:"tableFrom.keyword"}}),t._v(" "),a("span",{staticClass:"seachTiele"},[t._v("用户名称:")]),t._v(" "),a("el-input",{staticClass:"selWidth mr20",attrs:{placeholder:"请输入用户名称"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getList(1)}},model:{value:t.tableFrom.nickname,callback:function(e){t.$set(t.tableFrom,"nickname",e)},expression:"tableFrom.nickname"}}),t._v(" "),a("el-button",{attrs:{size:"small",type:"primary",icon:"el-icon-search"},on:{click:function(e){return t.getList(1)}}},[t._v("搜索")])],1)],1)],1)]),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{data:t.tableData.data,size:"mini","row-class-name":t.tableRowClassName},on:{rowclick:function(e){return e.stopPropagation(),t.closeEdit(e)}}},[a("el-table-column",{attrs:{prop:"product_id",label:"商品ID","min-width":"50"}}),t._v(" "),a("el-table-column",{attrs:{label:"商品信息","min-width":"180"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"tabBox acea-row row-middle"},[a("div",{staticClass:"demo-image__preview"},[a("el-image",{attrs:{src:e.row.image,"preview-src-list":[e.row.image]}})],1),t._v(" "),a("span",{staticClass:"tabBox_tit"},[t._v(t._s(e.row.store_name))])])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"nickname",label:"用户名称","min-width":"80"}}),t._v(" "),a("el-table-column",{attrs:{prop:"product_score",label:"产品评分","min-width":"50"}}),t._v(" "),a("el-table-column",{attrs:{prop:"service_score",label:"服务评分","min-width":"50"}}),t._v(" "),a("el-table-column",{attrs:{prop:"postage_score",label:"物流评分","min-width":"50"}}),t._v(" "),a("el-table-column",{attrs:{prop:"comment",label:"评价内容","min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"mb5 content_font"},[t._v(t._s(e.row.comment))]),t._v(" "),a("div",{staticClass:"demo-image__preview"},t._l(e.row.pics,(function(t,e){return a("el-image",{key:e,staticClass:"mr5",attrs:{src:t,"preview-src-list":[t]}})})),1)]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"merchant_reply_content",label:"回复内容","min-width":"100"}}),t._v(" "),a("el-table-column",{attrs:{prop:"create_time",label:"评价时间","min-width":"100"}}),t._v(" "),a("el-table-column",{attrs:{prop:"sort",label:"排序","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.index===t.tabClickIndex?a("span",[a("el-input",{attrs:{type:"number",maxlength:"300",size:"mini",autofocus:""},on:{blur:function(a){return t.inputBlur(e)}},model:{value:e.row["sort"],callback:function(a){t.$set(e.row,"sort",t._n(a))},expression:"scope.row['sort']"}})],1):a("span",{on:{dblclick:function(a){return a.stopPropagation(),t.tabClick(e.row)}}},[t._v(t._s(e.row["sort"]))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作","min-width":"80",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.handleReply(e.row.reply_id)}}},[t._v("回复")])]}}])})],1),t._v(" "),a("div",{staticClass:"block"},[a("el-pagination",{attrs:{"page-sizes":[20,40,60,80],"page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"total, sizes, prev, pager, next, jumper",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1)],1)},i=[],n=(a("55dd"),a("c4c8")),s={data:function(){return{tableData:{data:[],total:0},listLoading:!0,tableFrom:{is_reply:"",nickname:"",keyword:"",order_sn:"",product_id:this.$route.query.product_id?this.$route.query.product_id:"",status:"",date:"",page:1,limit:20},timeVal:[],fromList:{title:"选择时间",custom:!0,fromTxt:[{text:"全部",val:""},{text:"今天",val:"today"},{text:"昨天",val:"yesterday"},{text:"最近7天",val:"lately7"},{text:"最近30天",val:"lately30"},{text:"本月",val:"month"},{text:"本年",val:"year"}]},selectionList:[],tabClickIndex:"",ids:"",tableFromLog:{page:1,limit:10},tableDataLog:{data:[],total:0},LogLoading:!1,dialogVisible:!1,evaluationStatusList:[{value:"",label:"全部"},{value:1,label:"已回复"},{value:0,label:"未回复"}],orderDatalist:null}},mounted:function(){this.getList(1)},methods:{handleReply:function(t){var e=this;this.$modalForm(Object(n["sb"])(t)).then((function(){return e.getList(1)}))},handleSelectionChange:function(t){this.selectionList=t;var e=[];this.selectionList.map((function(t){e.push(t.id)})),this.ids=e.join(",")},selectChange:function(t){this.tableFrom.date=t,this.timeVal=[],this.getList(1)},onchangeTime:function(t){this.timeVal=t,this.tableFrom.date=t?this.timeVal.join("-"):"",this.getList(1)},tableRowClassName:function(t){var e=t.row,a=t.rowIndex;e.index=a},tabClick:function(t){this.tabClickIndex=t.index},inputBlur:function(t){var e=this;(!t.row.sort||t.row.sort<0)&&(t.row.sort=0),Object(n["tb"])(t.row.reply_id,{sort:t.row.sort}).then((function(t){e.closeEdit()})).catch((function(t){}))},closeEdit:function(){this.tabClickIndex=null},getList:function(t){var e=this;this.listLoading=!0,this.tableFrom.page=t||this.tableFrom.page,Object(n["rb"])(this.tableFrom).then((function(t){e.tableData.data=t.data.list,e.tableData.total=t.data.count,e.listLoading=!1})).catch((function(t){e.listLoading=!1,e.$message.error(t.message)}))},pageChange:function(t){this.tableFrom.page=t,this.getList("")},handleSizeChange:function(t){this.tableFrom.limit=t,this.getList("")}}},o=s,r=(a("1f87"),a("2877")),c=Object(r["a"])(o,l,i,!1,null,"95fdc4c8",null);e["default"]=c.exports},5290:function(t,e,a){}}]); \ No newline at end of file diff --git a/public/mer/js/chunk-3e2c114c.23b319f7.js b/public/mer/js/chunk-3e2c114c.da84215f.js similarity index 99% rename from public/mer/js/chunk-3e2c114c.23b319f7.js rename to public/mer/js/chunk-3e2c114c.da84215f.js index 121d7161..c38d9038 100644 --- a/public/mer/js/chunk-3e2c114c.23b319f7.js +++ b/public/mer/js/chunk-3e2c114c.da84215f.js @@ -1 +1 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3e2c114c"],{"147a":function(t,e,n){"use strict";n("8b6e")},5296:function(t,e,n){"use strict";n("6620")},6620:function(t,e,n){},"8b6e":function(t,e,n){},"90e7":function(t,e,n){"use strict";n.d(e,"m",(function(){return r})),n.d(e,"u",(function(){return o})),n.d(e,"x",(function(){return i})),n.d(e,"v",(function(){return s})),n.d(e,"w",(function(){return c})),n.d(e,"c",(function(){return u})),n.d(e,"a",(function(){return l})),n.d(e,"g",(function(){return d})),n.d(e,"b",(function(){return p})),n.d(e,"f",(function(){return m})),n.d(e,"e",(function(){return f})),n.d(e,"d",(function(){return h})),n.d(e,"A",(function(){return b})),n.d(e,"B",(function(){return g})),n.d(e,"j",(function(){return v})),n.d(e,"k",(function(){return _})),n.d(e,"l",(function(){return y})),n.d(e,"y",(function(){return w})),n.d(e,"z",(function(){return C})),n.d(e,"n",(function(){return F})),n.d(e,"o",(function(){return k})),n.d(e,"i",(function(){return x})),n.d(e,"h",(function(){return O})),n.d(e,"C",(function(){return S})),n.d(e,"p",(function(){return j})),n.d(e,"r",(function(){return L})),n.d(e,"s",(function(){return z})),n.d(e,"t",(function(){return P})),n.d(e,"q",(function(){return $}));var a=n("0c6d");function r(t){return a["a"].get("system/role/lst",t)}function o(){return a["a"].get("system/role/create/form")}function i(t){return a["a"].get("system/role/update/form/".concat(t))}function s(t){return a["a"].delete("system/role/delete/".concat(t))}function c(t,e){return a["a"].post("system/role/status/".concat(t),{status:e})}function u(t){return a["a"].get("system/admin/lst",t)}function l(){return a["a"].get("/system/admin/create/form")}function d(t){return a["a"].get("system/admin/update/form/".concat(t))}function p(t){return a["a"].delete("system/admin/delete/".concat(t))}function m(t,e){return a["a"].post("system/admin/status/".concat(t),{status:e})}function f(t){return a["a"].get("system/admin/password/form/".concat(t))}function h(t){return a["a"].get("system/admin/log",t)}function b(){return a["a"].get("take/info")}function g(t){return a["a"].post("take/update",t)}function v(){return a["a"].get("margin/code")}function _(t){return a["a"].get("margin/lst",t)}function y(){return a["a"].post("financial/refund/margin")}function w(){return a["a"].get("serve/info")}function C(t){return a["a"].get("serve/meal",t)}function F(t){return a["a"].get("serve/code",t)}function k(t){return a["a"].get("serve/paylst",t)}function x(t){return a["a"].get("expr/temps",t)}function O(){return a["a"].get("serve/config")}function S(t){return a["a"].post("serve/config",t)}function j(){return a["a"].get("store/printer/create/form")}function L(t){return a["a"].get("store/printer/lst",t)}function z(t,e){return a["a"].post("store/printer/status/".concat(t),e)}function P(t){return a["a"].get("store/printer/update/".concat(t,"/form"))}function $(t){return a["a"].delete("store/printer/delete/".concat(t))}},c7de:function(t,e,n){t.exports=n.p+"mer/img/ren.c7bc0d99.png"},f28d:function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"divBox"},[t.isShowList?n("el-card",{staticClass:"box-card"},[n("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[t.accountInfo.info?n("div",{staticClass:"acea-row header-count row-middle"},[n("div",{staticClass:"header-extra"},[n("div",{staticClass:"mb-5"},[n("span",[t._v("采集次数")])]),t._v(" "),n("div",[n("div",[t._v(t._s(t.copy.num||0))]),t._v(" "),n("el-button",{staticClass:"mt3",attrs:{size:"small",type:"primary",disabled:2!=t.copy.open},on:{click:function(e){return t.mealPay("copy")}}},[t._v("套餐购买")])],1)]),t._v(" "),n("div",{staticClass:"header-extra"},[n("div",{staticClass:"mb-5"},[n("span",[t._v("面单打印次数")])]),t._v(" "),n("div",[n("div",[t._v(t._s(t.dump.num||0))]),t._v(" "),n("el-button",{staticClass:"mt3",attrs:{size:"small",type:"primary",disabled:1!=t.dump.open},on:{click:function(e){return t.mealPay("dump")}}},[t._v("套餐购买")])],1)])]):n("div",{staticClass:"demo-basic--circle acea-row row-middle"},[n("span",{staticStyle:{color:"red"}},[t._v("平台未登录一号通!")])])])]):t._e()],1),t._v(" "),n("el-card",{staticClass:"ivu-mt"},[t.isShowList?n("table-list",{ref:"tableLists",attrs:{copy:t.copy,dump:t.dump,"account-info":t.accountInfo}}):t._e()],1)],1)},r=[],o=n("c7eb"),i=(n("96cf"),n("1da1")),s=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"divBox"},[n("el-card",{attrs:{bordered:!1,"dis-hover":""}},[n("el-tabs",{on:{"tab-click":t.onChangeType},model:{value:t.tableFrom.type,callback:function(e){t.$set(t.tableFrom,"type",e)},expression:"tableFrom.type"}},[n("el-tab-pane",{attrs:{label:"商品采集",name:"copy"}}),t._v(" "),n("el-tab-pane",{attrs:{label:"电子面单打印",name:"mer_dump"}})],1),t._v(" "),n("el-row",[n("el-col",{staticClass:"record_count",attrs:{span:24}},[n("el-button",{attrs:{type:"primary",plain:""},on:{click:t.getPurchase}},[t._v("购买记录")])],1)],1),t._v(" "),n("div",[n("el-table",{staticClass:"table",attrs:{data:t.tableList,loading:t.loading,size:"mini"}},[n("el-table-column",{key:"7",attrs:{label:"序号","min-width":"50"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(e.$index+(t.tableFrom.page-1)*t.tableFrom.limit+1))])]}}])}),t._v(" "),"mer_dump"==t.tableFrom.type?n("el-table-column",{key:"1",attrs:{prop:"info.order_sn",label:"订单号","min-width":"200"}}):t._e(),t._v(" "),"mer_dump"==t.tableFrom.type?n("el-table-column",{key:"2",attrs:{prop:"info.from_name",label:"发货人","min-width":"90"}}):t._e(),t._v(" "),"mer_dump"==t.tableFrom.type?n("el-table-column",{attrs:{label:"收货人","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(e.row.info&&e.row.info.to_name?e.row.info.to_name:""))])]}}],null,!1,396801068)}):t._e(),t._v(" "),"mer_dump"==t.tableFrom.type?n("el-table-column",{key:"3",attrs:{prop:"info.delivery_id",label:"快递单号","min-width":"90"}}):t._e(),t._v(" "),"mer_dump"==t.tableFrom.type?n("el-table-column",{key:"4",attrs:{prop:"info.delivery_name",label:"快递公司编码","min-width":"90"}}):t._e(),t._v(" "),"copy"==t.tableFrom.type?n("el-table-column",{key:"6",attrs:{prop:"info",label:"复制URL","min-width":"200"}}):t._e(),t._v(" "),n("el-table-column",{key:"8",attrs:{prop:"create_time",label:"copy"!=t.tableFrom.type?"打印时间":"添加时间","min-width":"90"}})],1),t._v(" "),n("div",{staticClass:"block"},[n("el-pagination",{attrs:{"page-sizes":[20,40,60,80],"page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1)],1),t._v(" "),t.dialogVisible?n("el-dialog",{attrs:{title:"copy"==t.tableFrom.type?"商品采集购买记录":"电子面单购买记录",visible:t.dialogVisible,width:"700px"},on:{"update:visible":function(e){t.dialogVisible=e}}},[n("el-table",{staticClass:"mt25",attrs:{data:t.tableData,loading:t.loading}},[n("el-table-column",{attrs:{label:"序号","min-width":"50"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(e.$index+(t.purchaseForm.page-1)*t.purchaseForm.limit+1))])]}}],null,!1,2493257592)}),t._v(" "),n("el-table-column",{attrs:{prop:"order_sn",label:"订单号","min-width":"120"}}),t._v(" "),n("el-table-column",{attrs:{label:"购买记录","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.order_info?n("span",[t._v(t._s(e.row.order_info.price)+"元 / "+t._s(e.row.order_info.num)+"次")]):t._e()]}}],null,!1,3496719446)}),t._v(" "),n("el-table-column",{attrs:{prop:"create_time",label:"购买时间","min-width":"90"}})],1),t._v(" "),n("div",{staticClass:"block"},[n("el-pagination",{attrs:{"page-sizes":[20,40,60,80],"page-size":t.purchaseForm.limit,"current-page":t.purchaseForm.page,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChangeOther,"current-change":t.pageChangeOther}})],1)],1):t._e()],1)},c=[],u=n("c4c8"),l=n("90e7"),d={name:"TableList",props:{copy:{type:Object,default:null},dump:{type:Object,default:null},accountInfo:{type:Object,default:null}},data:function(){return{isChecked:"copy",tableFrom:{page:1,limit:20,type:"copy"},total:0,loading:!1,tableList:[],modals:!1,dialogVisible:!1,tableData:[],purchaseForm:{page:1,limit:10}}},watch:{},created:function(){this.getRecordList()},mounted:function(){},methods:{onChangeType:function(){this.getRecordList()},getRecordList:function(){var t=this;this.loading=!0,Object(u["bb"])(this.tableFrom).then(function(){var e=Object(i["a"])(Object(o["a"])().mark((function e(n){var a;return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:a=n.data,t.tableList=a.list,t.total=n.data.count,t.loading=!1;case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.loading=!1,t.$message.error(e.message)}))},handleSizeChange:function(t){this.tableFrom.limit=t,this.getRecordList("")},handleSizeChangeOther:function(t){this.purchaseForm.limit=t,this.getPurchase()},pageChange:function(t){this.tableFrom.page=t,this.getRecordList()},pageChangeOther:function(t){this.purchaseForm.page=t,this.getPurchase()},getPurchase:function(){var t=this;this.dialogVisible=!0,this.purchaseForm.type="copy"==this.tableFrom.type?1:2,Object(l["o"])(this.purchaseForm).then(function(){var e=Object(i["a"])(Object(o["a"])().mark((function e(n){var a;return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:a=n.data,t.tableData=a.list,t.total=n.data.count,t.loading=!1;case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.loading=!1,t.$message.error(e.message)}))}}},p=d,m=(n("5296"),n("2877")),f=Object(m["a"])(p,s,c,!1,null,"220c2673",null),h=f.exports,b=n("83d6"),g={name:"SmsConfig",components:{tableList:h},data:function(){return{roterPre:b["roterPre"],imgUrl:n("c7de"),spinShow:!1,isShowList:!1,smsAccount:"",accountInfo:{},dump:{},copy:{}}},created:function(){this.getServeInfo()},methods:{onOpen:function(t){this.$refs.tableLists.onOpenIndex(t)},mealPay:function(t){this.$router.push({path:this.roterPre+"/setting/sms/sms_pay/index",query:{type:t}})},getServeInfo:function(){var t=this;this.spinShow=!0,Object(l["y"])().then(function(){var e=Object(i["a"])(Object(o["a"])().mark((function e(n){var a;return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:a=n.data,t.isShowList=!0,t.dump={num:a.export_dump_num,open:a.crmeb_serve_dump},t.copy={num:a.copy_product_num,open:a.copy_product_status},t.spinShow=!1,t.smsAccount=a.account,t.accountInfo=a;case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$message.error(e.message),t.isShowLogn=!0,t.isShowList=!1,t.spinShow=!1}))}}},v=g,_=(n("147a"),Object(m["a"])(v,a,r,!1,null,"cbe0a1ca",null));e["default"]=_.exports}}]); \ No newline at end of file +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3e2c114c"],{"147a":function(t,e,n){"use strict";n("8b6e")},5296:function(t,e,n){"use strict";n("6620")},6620:function(t,e,n){},"8b6e":function(t,e,n){},"90e7":function(t,e,n){"use strict";n.d(e,"m",(function(){return r})),n.d(e,"u",(function(){return o})),n.d(e,"x",(function(){return i})),n.d(e,"v",(function(){return s})),n.d(e,"w",(function(){return c})),n.d(e,"c",(function(){return u})),n.d(e,"a",(function(){return l})),n.d(e,"g",(function(){return d})),n.d(e,"b",(function(){return p})),n.d(e,"f",(function(){return m})),n.d(e,"e",(function(){return f})),n.d(e,"d",(function(){return h})),n.d(e,"A",(function(){return b})),n.d(e,"B",(function(){return g})),n.d(e,"j",(function(){return v})),n.d(e,"k",(function(){return _})),n.d(e,"l",(function(){return y})),n.d(e,"y",(function(){return w})),n.d(e,"z",(function(){return C})),n.d(e,"n",(function(){return F})),n.d(e,"o",(function(){return k})),n.d(e,"i",(function(){return x})),n.d(e,"h",(function(){return O})),n.d(e,"C",(function(){return S})),n.d(e,"p",(function(){return j})),n.d(e,"r",(function(){return L})),n.d(e,"s",(function(){return z})),n.d(e,"t",(function(){return P})),n.d(e,"q",(function(){return $}));var a=n("0c6d");function r(t){return a["a"].get("system/role/lst",t)}function o(){return a["a"].get("system/role/create/form")}function i(t){return a["a"].get("system/role/update/form/".concat(t))}function s(t){return a["a"].delete("system/role/delete/".concat(t))}function c(t,e){return a["a"].post("system/role/status/".concat(t),{status:e})}function u(t){return a["a"].get("system/admin/lst",t)}function l(){return a["a"].get("/system/admin/create/form")}function d(t){return a["a"].get("system/admin/update/form/".concat(t))}function p(t){return a["a"].delete("system/admin/delete/".concat(t))}function m(t,e){return a["a"].post("system/admin/status/".concat(t),{status:e})}function f(t){return a["a"].get("system/admin/password/form/".concat(t))}function h(t){return a["a"].get("system/admin/log",t)}function b(){return a["a"].get("take/info")}function g(t){return a["a"].post("take/update",t)}function v(){return a["a"].get("margin/code")}function _(t){return a["a"].get("margin/lst",t)}function y(){return a["a"].post("financial/refund/margin")}function w(){return a["a"].get("serve/info")}function C(t){return a["a"].get("serve/meal",t)}function F(t){return a["a"].get("serve/code",t)}function k(t){return a["a"].get("serve/paylst",t)}function x(t){return a["a"].get("expr/temps",t)}function O(){return a["a"].get("serve/config")}function S(t){return a["a"].post("serve/config",t)}function j(){return a["a"].get("store/printer/create/form")}function L(t){return a["a"].get("store/printer/lst",t)}function z(t,e){return a["a"].post("store/printer/status/".concat(t),e)}function P(t){return a["a"].get("store/printer/update/".concat(t,"/form"))}function $(t){return a["a"].delete("store/printer/delete/".concat(t))}},c7de:function(t,e,n){t.exports=n.p+"mer/img/ren.c7bc0d99.png"},f28d:function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"divBox"},[t.isShowList?n("el-card",{staticClass:"box-card"},[n("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[t.accountInfo.info?n("div",{staticClass:"acea-row header-count row-middle"},[n("div",{staticClass:"header-extra"},[n("div",{staticClass:"mb-5"},[n("span",[t._v("采集次数")])]),t._v(" "),n("div",[n("div",[t._v(t._s(t.copy.num||0))]),t._v(" "),n("el-button",{staticClass:"mt3",attrs:{size:"small",type:"primary",disabled:2!=t.copy.open},on:{click:function(e){return t.mealPay("copy")}}},[t._v("套餐购买")])],1)]),t._v(" "),n("div",{staticClass:"header-extra"},[n("div",{staticClass:"mb-5"},[n("span",[t._v("面单打印次数")])]),t._v(" "),n("div",[n("div",[t._v(t._s(t.dump.num||0))]),t._v(" "),n("el-button",{staticClass:"mt3",attrs:{size:"small",type:"primary",disabled:1!=t.dump.open},on:{click:function(e){return t.mealPay("dump")}}},[t._v("套餐购买")])],1)])]):n("div",{staticClass:"demo-basic--circle acea-row row-middle"},[n("span",{staticStyle:{color:"red"}},[t._v("平台未登录一号通!")])])])]):t._e()],1),t._v(" "),n("el-card",{staticClass:"ivu-mt"},[t.isShowList?n("table-list",{ref:"tableLists",attrs:{copy:t.copy,dump:t.dump,"account-info":t.accountInfo}}):t._e()],1)],1)},r=[],o=n("c7eb"),i=(n("96cf"),n("1da1")),s=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"divBox"},[n("el-card",{attrs:{bordered:!1,"dis-hover":""}},[n("el-tabs",{on:{"tab-click":t.onChangeType},model:{value:t.tableFrom.type,callback:function(e){t.$set(t.tableFrom,"type",e)},expression:"tableFrom.type"}},[n("el-tab-pane",{attrs:{label:"商品采集",name:"copy"}}),t._v(" "),n("el-tab-pane",{attrs:{label:"电子面单打印",name:"mer_dump"}})],1),t._v(" "),n("el-row",[n("el-col",{staticClass:"record_count",attrs:{span:24}},[n("el-button",{attrs:{type:"primary",plain:""},on:{click:t.getPurchase}},[t._v("购买记录")])],1)],1),t._v(" "),n("div",[n("el-table",{staticClass:"table",attrs:{data:t.tableList,loading:t.loading,size:"mini"}},[n("el-table-column",{key:"7",attrs:{label:"序号","min-width":"50"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(e.$index+(t.tableFrom.page-1)*t.tableFrom.limit+1))])]}}])}),t._v(" "),"mer_dump"==t.tableFrom.type?n("el-table-column",{key:"1",attrs:{prop:"info.order_sn",label:"订单号","min-width":"200"}}):t._e(),t._v(" "),"mer_dump"==t.tableFrom.type?n("el-table-column",{key:"2",attrs:{prop:"info.from_name",label:"发货人","min-width":"90"}}):t._e(),t._v(" "),"mer_dump"==t.tableFrom.type?n("el-table-column",{attrs:{label:"收货人","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(e.row.info&&e.row.info.to_name?e.row.info.to_name:""))])]}}],null,!1,396801068)}):t._e(),t._v(" "),"mer_dump"==t.tableFrom.type?n("el-table-column",{key:"3",attrs:{prop:"info.delivery_id",label:"快递单号","min-width":"90"}}):t._e(),t._v(" "),"mer_dump"==t.tableFrom.type?n("el-table-column",{key:"4",attrs:{prop:"info.delivery_name",label:"快递公司编码","min-width":"90"}}):t._e(),t._v(" "),"copy"==t.tableFrom.type?n("el-table-column",{key:"6",attrs:{prop:"info",label:"复制URL","min-width":"200"}}):t._e(),t._v(" "),n("el-table-column",{key:"8",attrs:{prop:"create_time",label:"copy"!=t.tableFrom.type?"打印时间":"添加时间","min-width":"90"}})],1),t._v(" "),n("div",{staticClass:"block"},[n("el-pagination",{attrs:{"page-sizes":[20,40,60,80],"page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1)],1),t._v(" "),t.dialogVisible?n("el-dialog",{attrs:{title:"copy"==t.tableFrom.type?"商品采集购买记录":"电子面单购买记录",visible:t.dialogVisible,width:"700px"},on:{"update:visible":function(e){t.dialogVisible=e}}},[n("el-table",{staticClass:"mt25",attrs:{data:t.tableData,loading:t.loading}},[n("el-table-column",{attrs:{label:"序号","min-width":"50"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(e.$index+(t.purchaseForm.page-1)*t.purchaseForm.limit+1))])]}}],null,!1,2493257592)}),t._v(" "),n("el-table-column",{attrs:{prop:"order_sn",label:"订单号","min-width":"120"}}),t._v(" "),n("el-table-column",{attrs:{label:"购买记录","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.order_info?n("span",[t._v(t._s(e.row.order_info.price)+"元 / "+t._s(e.row.order_info.num)+"次")]):t._e()]}}],null,!1,3496719446)}),t._v(" "),n("el-table-column",{attrs:{prop:"create_time",label:"购买时间","min-width":"90"}})],1),t._v(" "),n("div",{staticClass:"block"},[n("el-pagination",{attrs:{"page-sizes":[20,40,60,80],"page-size":t.purchaseForm.limit,"current-page":t.purchaseForm.page,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChangeOther,"current-change":t.pageChangeOther}})],1)],1):t._e()],1)},c=[],u=n("c4c8"),l=n("90e7"),d={name:"TableList",props:{copy:{type:Object,default:null},dump:{type:Object,default:null},accountInfo:{type:Object,default:null}},data:function(){return{isChecked:"copy",tableFrom:{page:1,limit:20,type:"copy"},total:0,loading:!1,tableList:[],modals:!1,dialogVisible:!1,tableData:[],purchaseForm:{page:1,limit:10}}},watch:{},created:function(){this.getRecordList()},mounted:function(){},methods:{onChangeType:function(){this.getRecordList()},getRecordList:function(){var t=this;this.loading=!0,Object(u["db"])(this.tableFrom).then(function(){var e=Object(i["a"])(Object(o["a"])().mark((function e(n){var a;return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:a=n.data,t.tableList=a.list,t.total=n.data.count,t.loading=!1;case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.loading=!1,t.$message.error(e.message)}))},handleSizeChange:function(t){this.tableFrom.limit=t,this.getRecordList("")},handleSizeChangeOther:function(t){this.purchaseForm.limit=t,this.getPurchase()},pageChange:function(t){this.tableFrom.page=t,this.getRecordList()},pageChangeOther:function(t){this.purchaseForm.page=t,this.getPurchase()},getPurchase:function(){var t=this;this.dialogVisible=!0,this.purchaseForm.type="copy"==this.tableFrom.type?1:2,Object(l["o"])(this.purchaseForm).then(function(){var e=Object(i["a"])(Object(o["a"])().mark((function e(n){var a;return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:a=n.data,t.tableData=a.list,t.total=n.data.count,t.loading=!1;case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.loading=!1,t.$message.error(e.message)}))}}},p=d,m=(n("5296"),n("2877")),f=Object(m["a"])(p,s,c,!1,null,"220c2673",null),h=f.exports,b=n("83d6"),g={name:"SmsConfig",components:{tableList:h},data:function(){return{roterPre:b["roterPre"],imgUrl:n("c7de"),spinShow:!1,isShowList:!1,smsAccount:"",accountInfo:{},dump:{},copy:{}}},created:function(){this.getServeInfo()},methods:{onOpen:function(t){this.$refs.tableLists.onOpenIndex(t)},mealPay:function(t){this.$router.push({path:this.roterPre+"/setting/sms/sms_pay/index",query:{type:t}})},getServeInfo:function(){var t=this;this.spinShow=!0,Object(l["y"])().then(function(){var e=Object(i["a"])(Object(o["a"])().mark((function e(n){var a;return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:a=n.data,t.isShowList=!0,t.dump={num:a.export_dump_num,open:a.crmeb_serve_dump},t.copy={num:a.copy_product_num,open:a.copy_product_status},t.spinShow=!1,t.smsAccount=a.account,t.accountInfo=a;case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$message.error(e.message),t.isShowLogn=!0,t.isShowList=!1,t.spinShow=!1}))}}},v=g,_=(n("147a"),Object(m["a"])(v,a,r,!1,null,"cbe0a1ca",null));e["default"]=_.exports}}]); \ No newline at end of file diff --git a/public/mer/js/chunk-3ec8e821.9b2e0ff9.js b/public/mer/js/chunk-3ec8e821.2c48b3ac.js similarity index 58% rename from public/mer/js/chunk-3ec8e821.9b2e0ff9.js rename to public/mer/js/chunk-3ec8e821.2c48b3ac.js index e9272751..0d54a1c7 100644 --- a/public/mer/js/chunk-3ec8e821.9b2e0ff9.js +++ b/public/mer/js/chunk-3ec8e821.2c48b3ac.js @@ -1 +1 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3ec8e821"],{"0928":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"divBox"},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("el-steps",{attrs:{active:e.currentTab,"align-center":"","finish-status":"success"}},[a("el-step",{attrs:{title:"选择拼团商品"}}),e._v(" "),a("el-step",{attrs:{title:"填写基础信息"}}),e._v(" "),a("el-step",{attrs:{title:"修改商品详情"}})],1)],1),e._v(" "),a("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.fullscreenLoading,expression:"fullscreenLoading"}],ref:"formValidate",staticClass:"formValidate mt20",attrs:{rules:e.ruleValidate,model:e.formValidate,"label-width":"160px"},nativeOn:{submit:function(e){e.preventDefault()}}},[a("div",{directives:[{name:"show",rawName:"v-show",value:0===e.currentTab,expression:"currentTab === 0"}],staticStyle:{overflow:"hidden"}},[a("el-row",{attrs:{gutter:24}},[a("el-col",e._b({},"el-col",e.grid2,!1),[a("el-form-item",{attrs:{label:"选择商品:",prop:"image"}},[a("div",{staticClass:"upLoadPicBox",on:{click:function(t){return e.add()}}},[e.formValidate.image?a("div",{staticClass:"pictrue"},[a("img",{attrs:{src:e.formValidate.image}})]):a("div",{staticClass:"upLoad"},[a("i",{staticClass:"el-icon-camera cameraIconfont"})])])])],1)],1)],1),e._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:1===e.currentTab,expression:"currentTab === 1"}]},[a("el-row",{attrs:{gutter:24}},[a("el-col",e._b({},"el-col",e.grid2,!1),[a("el-form-item",{attrs:{label:"商品主图:",prop:"image"}},[a("div",{staticClass:"upLoadPicBox",on:{click:function(t){return e.modalPicTap("1")}}},[e.formValidate.image?a("div",{staticClass:"pictrue"},[a("img",{attrs:{src:e.formValidate.image}})]):a("div",{staticClass:"upLoad"},[a("i",{staticClass:"el-icon-camera cameraIconfont"})])])])],1),e._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"商品轮播图:",prop:"slider_image"}},[a("div",{staticClass:"acea-row"},[e._l(e.formValidate.slider_image,(function(t,i){return a("div",{key:i,staticClass:"pictrue",attrs:{draggable:"false"},on:{dragstart:function(a){return e.handleDragStart(a,t)},dragover:function(a){return a.preventDefault(),e.handleDragOver(a,t)},dragenter:function(a){return e.handleDragEnter(a,t)},dragend:function(a){return e.handleDragEnd(a,t)}}},[a("img",{attrs:{src:t}}),e._v(" "),a("i",{staticClass:"el-icon-error btndel",on:{click:function(t){return e.handleRemove(i)}}})])})),e._v(" "),e.formValidate.slider_image.length<10?a("div",{staticClass:"upLoadPicBox",on:{click:function(t){return e.modalPicTap("2")}}},[a("div",{staticClass:"upLoad"},[a("i",{staticClass:"el-icon-camera cameraIconfont"})])]):e._e()],2)])],1),e._v(" "),a("el-col",{staticClass:"sp100"},[a("el-form-item",{attrs:{label:"拼团名称:",prop:"store_name"}},[a("el-input",{attrs:{placeholder:"请输入商品名称"},model:{value:e.formValidate.store_name,callback:function(t){e.$set(e.formValidate,"store_name",t)},expression:"formValidate.store_name"}})],1)],1)],1),e._v(" "),a("el-row",{attrs:{gutter:24}},[a("el-col",{staticClass:"sp100"},[a("el-form-item",{attrs:{label:"拼团简介:",prop:"store_info"}},[a("el-input",{attrs:{type:"textarea",rows:3,placeholder:"请输入秒杀活动简介"},model:{value:e.formValidate.store_info,callback:function(t){e.$set(e.formValidate,"store_info",t)},expression:"formValidate.store_info"}})],1)],1)],1),e._v(" "),a("el-row",{attrs:{gutter:24}},[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"拼团时间:",required:""}},[a("el-date-picker",{attrs:{type:"datetimerange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期",align:"right"},on:{change:e.onchangeTime},model:{value:e.timeVal,callback:function(t){e.timeVal=t},expression:"timeVal"}}),e._v(" "),a("span",{staticClass:"item_desc"},[e._v("设置活动开启结束时间,用户可以在设置时间内发起参与拼团")])],1)],1),e._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"送货方式:",prop:"delivery_way"}},[a("div",{staticClass:"acea-row"},[a("el-checkbox-group",{model:{value:e.formValidate.delivery_way,callback:function(t){e.$set(e.formValidate,"delivery_way",t)},expression:"formValidate.delivery_way"}},e._l(e.deliveryList,(function(t){return a("el-checkbox",{key:t.value,attrs:{label:t.value}},[e._v("\n "+e._s(t.name)+"\n ")])})),1)],1)])],1),e._v(" "),2==e.formValidate.delivery_way.length||1==e.formValidate.delivery_way.length&&2==e.formValidate.delivery_way[0]?a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"是否包邮:"}},[a("el-radio-group",{model:{value:e.formValidate.delivery_free,callback:function(t){e.$set(e.formValidate,"delivery_free",t)},expression:"formValidate.delivery_free"}},[a("el-radio",{staticClass:"radio",attrs:{label:0}},[e._v("否")]),e._v(" "),a("el-radio",{attrs:{label:1}},[e._v("是")])],1)],1)],1):e._e(),e._v(" "),0==e.formValidate.delivery_free&&(2==e.formValidate.delivery_way.length||1==e.formValidate.delivery_way.length&&2==e.formValidate.delivery_way[0])?a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"运费模板:",prop:"temp_id"}},[a("div",{staticClass:"acea-row"},[a("el-select",{staticClass:"selWidthd mr20",attrs:{placeholder:"请选择"},model:{value:e.formValidate.temp_id,callback:function(t){e.$set(e.formValidate,"temp_id",t)},expression:"formValidate.temp_id"}},e._l(e.shippingList,(function(e){return a("el-option",{key:e.shipping_template_id,attrs:{label:e.name,value:e.shipping_template_id}})})),1),e._v(" "),a("el-button",{staticClass:"mr15",attrs:{size:"small"},on:{click:e.addTem}},[e._v("添加运费模板")])],1)])],1):e._e(),e._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"平台保障服务:"}},[a("div",{staticClass:"acea-row"},[a("el-select",{staticClass:"selWidthd mr20",attrs:{placeholder:"请选择",clearable:""},model:{value:e.formValidate.guarantee_template_id,callback:function(t){e.$set(e.formValidate,"guarantee_template_id",t)},expression:"formValidate.guarantee_template_id"}},e._l(e.guaranteeList,(function(e){return a("el-option",{key:e.guarantee_template_id,attrs:{label:e.template_name,value:e.guarantee_template_id}})})),1),e._v(" "),a("el-button",{staticClass:"mr15",attrs:{size:"small"},on:{click:e.addServiceTem}},[e._v("添加服务说明模板")])],1)])],1),e._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"拼团时效(单位:小时):",prop:"time"}},[a("el-input-number",{attrs:{min:1,placeholder:"请输入时效"},model:{value:e.formValidate.time,callback:function(t){e.$set(e.formValidate,"time",t)},expression:"formValidate.time"}}),e._v(" "),a("span",{staticClass:"item_desc"},[e._v("用户发起拼团后开始计时,需在设置时间内邀请到规定好友人数参团,超过时效时间,则系统判定拼团失败,自动发起退款")])],1)],1),e._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"拼团人数:",prop:"buying_count_num"}},[a("el-input-number",{attrs:{min:2,placeholder:"请输入人数"},on:{change:e.calFictiCount},model:{value:e.formValidate.buying_count_num,callback:function(t){e.$set(e.formValidate,"buying_count_num",t)},expression:"formValidate.buying_count_num"}}),e._v(" "),a("span",{staticClass:"item_desc"},[e._v("单次拼团需要参与的用户数")])],1)],1),e._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"活动期间限购件数:",prop:"pay_count"}},[a("el-input-number",{attrs:{min:1,placeholder:"请输入数量"},model:{value:e.formValidate.pay_count,callback:function(t){e.$set(e.formValidate,"pay_count",t)},expression:"formValidate.pay_count"}}),e._v(" "),a("span",{staticClass:"item_desc"},[e._v("该商品活动期间内,用户可购买的最大数量。例如设置为4,表示本地活动有效期内,每个用户最多可购买4件")])],1)],1),e._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"单次限购件数:",prop:"once_pay_count"}},[a("el-input-number",{attrs:{min:1,max:e.formValidate.pay_count,placeholder:"请输入数量"},model:{value:e.formValidate.once_pay_count,callback:function(t){e.$set(e.formValidate,"once_pay_count",t)},expression:"formValidate.once_pay_count"}}),e._v(" "),a("span",{staticClass:"item_desc"},[e._v("用户参与拼团时,一次购买最大数量限制。例如设置为2,表示每次参与拼团时,用户一次购买数量最大可选择2个")])],1)],1),e._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"单位:",prop:"unit_name"}},[a("el-input",{staticStyle:{width:"250px"},attrs:{placeholder:"请输入单位"},model:{value:e.formValidate.unit_name,callback:function(t){e.$set(e.formValidate,"unit_name",t)},expression:"formValidate.unit_name"}})],1)],1)],1),e._v(" "),1==e.combinationData.ficti_status?a("el-row",{attrs:{gutter:24}},[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"虚拟成团:"}},[a("el-switch",{attrs:{"active-text":"开启","inactive-text":"关闭"},model:{value:e.formValidate.ficti_status,callback:function(t){e.$set(e.formValidate,"ficti_status",t)},expression:"formValidate.ficti_status"}})],1)],1),e._v(" "),1==e.formValidate.ficti_status?a("el-col",{attrs:{span:16}},[a("el-form-item",{attrs:{label:"虚拟成团补齐人数:",prop:"ficti_num"}},[a("el-input-number",{attrs:{min:0,max:e.max_ficti_num,placeholder:"请输入数量"},model:{value:e.formValidate.ficti_num,callback:function(t){e.$set(e.formValidate,"ficti_num",t)},expression:"formValidate.ficti_num"}}),e._v(" "),a("span",{staticClass:"item_desc"},[e._v("拼团时效到时,系统自动补齐的最大拼团人数")])],1)],1):e._e()],1):e._e(),e._v(" "),a("el-row",{attrs:{gutter:24}},[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"排序:",prop:"sort"}},[a("el-input-number",{attrs:{min:0,placeholder:"请输入排序数值"},model:{value:e.formValidate.sort,callback:function(t){e.$set(e.formValidate,"sort",t)},expression:"formValidate.sort"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"显示状态"}},[a("el-radio-group",{model:{value:e.formValidate.is_show,callback:function(t){e.$set(e.formValidate,"is_show",t)},expression:"formValidate.is_show"}},[a("el-radio",{staticClass:"radio",attrs:{label:0}},[e._v("关闭")]),e._v(" "),a("el-radio",{attrs:{label:1}},[e._v("开启")])],1)],1)],1)],1),e._v(" "),a("el-row",{attrs:{gutter:24}},[a("el-col",{attrs:{xl:24,lg:24,md:24,sm:24,xs:24}},[0===e.formValidate.spec_type?a("el-form-item",[a("el-table",{staticClass:"tabNumWidth",attrs:{data:e.OneattrValue,border:"",size:"mini"}},[a("el-table-column",{attrs:{align:"center",label:"图片","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"upLoadPicBox",on:{click:function(t){return e.modalPicTap("1","dan","pi")}}},[e.formValidate.image?a("div",{staticClass:"pictrue tabPic"},[a("img",{attrs:{src:t.row.image}})]):a("div",{staticClass:"upLoad tabPic"},[a("i",{staticClass:"el-icon-camera cameraIconfont"})])])]}}],null,!1,1357914119)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"市场价","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row["price"]))])]}}],null,!1,1703924291)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"拼团价","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{staticClass:"priceBox",attrs:{type:"number",min:0,max:t.row["price"]},on:{blur:function(a){return e.limitPrice(t.row)}},model:{value:t.row["active_price"],callback:function(a){e.$set(t.row,"active_price",e._n(a))},expression:"scope.row['active_price']"}})]}}],null,!1,1431579223)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"成本价","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row["cost"]))])]}}],null,!1,4236060069)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"库存","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row["old_stock"]))])]}}],null,!1,1655454038)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"限量","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{staticClass:"priceBox",attrs:{type:"number",max:t.row["old_stock"],min:0},on:{change:function(a){return e.limitInventory(t.row)}},model:{value:t.row["stock"],callback:function(a){e.$set(t.row,"stock",e._n(a))},expression:"scope.row['stock']"}})]}}],null,!1,3327557396)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"商品编号","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row["bar_code"]))])]}}],null,!1,2057585133)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"重量(KG)","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row["weight"]))])]}}],null,!1,1649766542)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"体积(m³)","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row["volume"]))])]}}],null,!1,2118841126)})],1)],1):e._e()],1)],1),e._v(" "),a("el-row",{attrs:{gutter:24}},[1===e.formValidate.spec_type?a("el-form-item",{staticClass:"labeltop",attrs:{label:"规格列表:"}},[a("el-table",{ref:"multipleSelection",attrs:{data:e.ManyAttrValue,"tooltip-effect":"dark","row-key":function(e){return e.id}},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{align:"center",type:"selection","reserve-selection":!0,"min-width":"50"}}),e._v(" "),e.manyTabDate?e._l(e.manyTabDate,(function(t,i){return a("el-table-column",{key:i,attrs:{align:"center",label:e.manyTabTit[i].title,"min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{staticClass:"priceBox",domProps:{textContent:e._s(t.row[i])}})]}}],null,!0)})})):e._e(),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"图片","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"upLoadPicBox",on:{click:function(a){return e.modalPicTap("1","duo",t.$index)}}},[t.row.image?a("div",{staticClass:"pictrue tabPic"},[a("img",{attrs:{src:t.row.image}})]):a("div",{staticClass:"upLoad tabPic"},[a("i",{staticClass:"el-icon-camera cameraIconfont"})])])]}}],null,!1,3478746955)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"市场价","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row["price"]))])]}}],null,!1,1703924291)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"拼团价","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{staticClass:"priceBox",attrs:{type:"number",min:0,max:t.row["price"]},on:{blur:function(a){return e.limitPrice(t.row)}},model:{value:t.row["active_price"],callback:function(a){e.$set(t.row,"active_price",e._n(a))},expression:" scope.row['active_price']"}})]}}],null,!1,3314660055)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"成本价","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row["cost"]))])]}}],null,!1,4236060069)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"库存","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row["old_stock"]))])]}}],null,!1,1655454038)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"限量","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{staticClass:"priceBox",attrs:{type:"number",min:0,max:t.row["old_stock"]},model:{value:t.row["stock"],callback:function(a){e.$set(t.row,"stock",e._n(a))},expression:"scope.row['stock']"}})]}}],null,!1,4025255182)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"商品编号","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row["bar_code"]))])]}}],null,!1,2057585133)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"重量(KG)","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row["weight"]))])]}}],null,!1,1649766542)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"体积(m³)","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row["volume"]))])]}}],null,!1,2118841126)})],2)],1):e._e()],1)],1),e._v(" "),a("el-row",{directives:[{name:"show",rawName:"v-show",value:2===e.currentTab,expression:"currentTab === 2"}]},[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"商品详情:"}},[a("ueditorFrom",{attrs:{content:e.formValidate.content},model:{value:e.formValidate.content,callback:function(t){e.$set(e.formValidate,"content",t)},expression:"formValidate.content"}})],1)],1)],1),e._v(" "),a("el-form-item",{staticStyle:{"margin-top":"30px"}},[a("el-button",{directives:[{name:"show",rawName:"v-show",value:e.currentTab>0,expression:"currentTab>0"}],staticClass:"submission",attrs:{type:"primary",size:"small"},on:{click:e.handleSubmitUp}},[e._v("上一步")]),e._v(" "),a("el-button",{directives:[{name:"show",rawName:"v-show",value:0==e.currentTab,expression:"currentTab == 0"}],staticClass:"submission",attrs:{type:"primary",size:"small"},on:{click:function(t){return e.handleSubmitNest1("formValidate")}}},[e._v("下一步")]),e._v(" "),a("el-button",{directives:[{name:"show",rawName:"v-show",value:1==e.currentTab,expression:"currentTab == 1"}],staticClass:"submission",attrs:{type:"primary",size:"small"},on:{click:function(t){return e.handleSubmitNest2("formValidate")}}},[e._v("下一步")]),e._v(" "),a("el-button",{directives:[{name:"show",rawName:"v-show",value:2===e.currentTab,expression:"currentTab===2"}],staticClass:"submission",attrs:{loading:e.loading,type:"primary",size:"small"},on:{click:function(t){return e.handleSubmit("formValidate")}}},[e._v("提交")]),e._v(" "),a("el-button",{directives:[{name:"show",rawName:"v-show",value:2===e.currentTab,expression:"currentTab===2"}],staticClass:"submission",attrs:{loading:e.loading,type:"primary",size:"small"},on:{click:e.handlePreview}},[e._v("预览")])],1)],1)],1),e._v(" "),a("goods-list",{ref:"goodsList",on:{getProduct:e.getProduct}}),e._v(" "),a("guarantee-service",{ref:"serviceGuarantee",on:{"get-list":e.getGuaranteeList}}),e._v(" "),e.previewVisible?a("div",[a("div",{staticClass:"bg",on:{click:function(t){t.stopPropagation(),e.previewVisible=!1}}}),e._v(" "),e.previewVisible?a("preview-box",{ref:"previewBox",attrs:{"product-type":4,"preview-key":e.previewKey}}):e._e()],1):e._e()],1)},r=[],n=a("2909"),l=(a("7f7f"),a("c7eb")),s=(a("c5f6"),a("96cf"),a("1da1")),o=(a("8615"),a("55dd"),a("ac6a"),a("ef0d")),c=a("6625"),u=a.n(c),m=a("7719"),d=a("ae43"),f=a("8c98"),p=a("c4c8"),_=a("b7be"),g=a("83d6"),h={product_id:"",image:"",slider_image:[],store_name:"",store_info:"",start_time:"",end_time:"",time:1,is_show:1,keyword:"",brand_id:"",cate_id:"",mer_cate_id:[],pay_count:1,unit_name:"",sort:0,is_good:0,temp_id:"",guarantee_template_id:"",buying_count_num:2,ficti_status:!0,ficti_num:1,once_pay_count:1,delivery_way:[],mer_labels:[],delivery_free:0,attrValue:[{image:"",price:null,active_price:null,cost:null,ot_price:null,old_stock:null,stock:null,bar_code:"",weight:null,volume:null}],attr:[],extension_type:0,content:"",spec_type:0,is_gift_bag:0},b=[{name:"店铺推荐",value:"is_good"}],v={name:"CombinationProductAdd",components:{ueditorFrom:o["a"],goodsList:m["a"],VueUeditorWrap:u.a,guaranteeService:d["a"],previewBox:f["a"]},data:function(){return{pickerOptions:{disabledDate:function(e){return e.getTime()>Date.now()}},timeVal:"",max_ficti_num:0,dialogVisible:!1,product_id:"",multipleSelection:[],optionsCate:{value:"store_category_id",label:"cate_name",children:"children",emitPath:!1},roterPre:g["roterPre"],selectRule:"",checkboxGroup:[],recommend:b,tabs:[],fullscreenLoading:!1,props:{emitPath:!1},propsMer:{emitPath:!1,multiple:!0},active:0,OneattrValue:[Object.assign({},h.attrValue[0])],ManyAttrValue:[Object.assign({},h.attrValue[0])],ruleList:[],merCateList:[],categoryList:[],shippingList:[],guaranteeList:[],deliveryList:[],labelList:[],BrandList:[],formValidate:Object.assign({},h),maxStock:"",addNum:0,singleSpecification:{},multipleSpecifications:[],formDynamics:{template_name:"",template_value:[]},manyTabTit:{},manyTabDate:{},grid2:{lg:10,md:12,sm:24,xs:24},formDynamic:{attrsName:"",attrsVal:""},isBtn:!1,manyFormValidate:[],images:[],currentTab:0,isChoice:"",combinationData:{ficti_status:0,group_buying_rate:""},grid:{xl:8,lg:8,md:12,sm:24,xs:24},loading:!1,ruleValidate:{store_name:[{required:!0,message:"请输入商品名称",trigger:"blur"}],timeVal:[{required:!0,message:"请选择拼团活动日期",trigger:"blur"}],time:[{required:!0,message:"请输入拼团时效",trigger:"blur"}],buying_count_num:[{required:!0,message:"请输入拼团人数",trigger:"blur"}],pay_count:[{required:!0,message:"请输入限购量",trigger:"blur"}],sort:[{required:!0,message:"请输入排序数值",trigger:"blur"}],once_pay_count:[{required:!0,message:"请输入单人单次限购数量",trigger:"blur"}],unit_name:[{required:!0,message:"请输入单位",trigger:"blur"}],store_info:[{required:!0,message:"请输入拼团活动简介",trigger:"blur"}],temp_id:[{required:!0,message:"请选择运费模板",trigger:"change"}],ficti_num:[{required:!0,message:"请输入虚拟成团补齐人数",trigger:"blur"}],image:[{required:!0,message:"请上传商品图",trigger:"change"}],slider_image:[{required:!0,message:"请上传商品轮播图",type:"array",trigger:"change"}],delivery_way:[{required:!0,message:"请选择送货方式",trigger:"change"}]},attrInfo:{},keyNum:0,extensionStatus:0,isNew:!1,previewVisible:!1,previewKey:"",deliveryType:[]}},computed:{attrValue:function(){var e=Object.assign({},h.attrValue[0]);return delete e.image,e},oneFormBatch:function(){var e=[Object.assign({},h.attrValue[0])];return delete e[0].bar_code,e}},watch:{"formValidate.attr":{handler:function(e){1===this.formValidate.spec_type&&this.watCh(e)},immediate:!1,deep:!0},"formValidate.buying_count_num":{handler:function(e,t){e&&1==this.formValidate.ficti_status&&(this.max_ficti_num=Math.round((1-this.combinationData.group_buying_rate/100)*this.formValidate.buying_count_num),this.isNew&&this.formValidate.ficti_num>this.max_ficti_num&&(this.formValidate.ficti_num=this.max_ficti_num))},immediate:!1,deep:!0}},created:function(){this.tempRoute=Object.assign({},this.$route),this.$route.params.id&&1===this.formValidate.spec_type&&this.$watch("formValidate.attr",this.watCh)},mounted:function(){var e=this;this.formValidate.slider_image=[],this.getCombinationData(),this.$route.params.id?(this.setTagsViewTitle(),this.getInfo(this.$route.params.id),this.currentTab=1):this.formValidate.attr.map((function(t){e.$set(t,"inputVisible",!1)})),this.getCategorySelect(),this.getCategoryList(),this.getBrandListApi(),this.getShippingList(),this.getGuaranteeList(),this.productCon(),this.getLabelLst(),this.$store.dispatch("settings/setEdit",!0)},methods:{getLabelLst:function(){var e=this;Object(p["v"])().then((function(t){e.labelList=t.data})).catch((function(t){e.$message.error(t.message)}))},productCon:function(){var e=this;Object(p["Y"])().then((function(t){e.deliveryType=t.data.delivery_way.map(String),2==e.deliveryType.length?e.deliveryList=[{value:"1",name:"到店自提"},{value:"2",name:"快递配送"}]:1==e.deliveryType.length&&"1"==e.deliveryType[0]?e.deliveryList=[{value:"1",name:"到店自提"}]:e.deliveryList=[{value:"2",name:"快递配送"}]})).catch((function(t){e.$message.error(t.message)}))},getCombinationData:function(){var e=this;Object(_["q"])().then((function(t){e.combinationData=t.data})).catch((function(t){e.$message.error(t.message)}))},calFictiCount:function(){this.max_ficti_num=Math.round((1-this.combinationData.group_buying_rate/100)*this.formValidate.buying_count_num),this.isNew=!0,this.formValidate.ficti_num>this.max_ficti_num&&(this.formValidate.ficti_num=this.max_ficti_num)},limitInventory:function(e){e.stock-e.old_stock>0&&(e.stock=e.old_stock)},limitPrice:function(e){e.active_price-e.price>0&&(e.active_price=e.price)},add:function(){this.$refs.goodsList.dialogVisible=!0},getProduct:function(e){this.formValidate.image=e.src,this.product_id=e.id,console.log(this.product_id)},handleSelectionChange:function(e){this.multipleSelection=e},onchangeTime:function(e){this.timeVal=e,console.log(this.moment(e[0]).format("YYYY-MM-DD HH:mm:ss")),this.formValidate.start_time=e?this.moment(e[0]).format("YYYY-MM-DD HH:mm:ss"):"",this.formValidate.end_time=e?this.moment(e[1]).format("YYYY-MM-DD HH:mm:ss"):""},setTagsViewTitle:function(){var e="编辑商品",t=Object.assign({},this.tempRoute,{title:"".concat(e,"-").concat(this.$route.params.id)});this.$store.dispatch("tagsView/updateVisitedView",t)},watCh:function(e){var t=this,a={},i={};this.formValidate.attr.forEach((function(e,t){a["value"+t]={title:e.value},i["value"+t]=""})),this.ManyAttrValue.forEach((function(e,a){var i=Object.values(e.detail).sort().join("/");t.attrInfo[i]&&(t.ManyAttrValue[a]=t.attrInfo[i])})),this.attrInfo={},this.ManyAttrValue.forEach((function(e){t.attrInfo[Object.values(e.detail).sort().join("/")]=e})),this.manyTabTit=a,this.manyTabDate=i,console.log(this.manyTabTit),console.log(this.manyTabDate)},addTem:function(){var e=this;this.$modalTemplates(0,(function(){e.getShippingList()}))},addServiceTem:function(){this.$refs.serviceGuarantee.add()},getCategorySelect:function(){var e=this;Object(p["r"])().then((function(t){e.merCateList=t.data})).catch((function(t){e.$message.error(t.message)}))},getCategoryList:function(){var e=this;Object(p["q"])().then((function(t){e.categoryList=t.data})).catch((function(t){e.$message.error(t.message)}))},getBrandListApi:function(){var e=this;Object(p["p"])().then((function(t){e.BrandList=t.data})).catch((function(t){e.$message.error(t.message)}))},productGetRule:function(){var e=this;Object(p["Pb"])().then((function(t){e.ruleList=t.data}))},getShippingList:function(){var e=this;Object(p["yb"])().then((function(t){e.shippingList=t.data}))},getGuaranteeList:function(){var e=this;Object(p["B"])().then((function(t){e.guaranteeList=t.data}))},getInfo:function(e){var t=this;this.fullscreenLoading=!0,this.$route.params.id?Object(_["t"])(e).then(function(){var e=Object(s["a"])(Object(l["a"])().mark((function e(a){var i,r;return Object(l["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:i=a.data,t.formValidate={product_id:i.product_group_id,image:i.product.image,slider_image:i.product.slider_image,store_name:i.product.store_name,store_info:i.product.store_info,unit_name:i.product.unit_name,time:i.time,buying_count_num:i.buying_count_num,guarantee_template_id:i.product.guarantee_template_id,ficti_status:!!i.ficti_status,start_time:i.start_time?i.start_time:"",end_time:i.end_time?i.end_time:"",brand_id:i.product.brand_id,cate_id:i.cate_id?i.cate_id:"",mer_cate_id:i.mer_cate_id,pay_count:i.pay_count,once_pay_count:i.once_pay_count,sort:i.product.sort,is_good:i.product.is_good,temp_id:i.product.temp_id,is_show:i.is_show,attr:i.product.attr,extension_type:i.extension_type,content:i.product.content.content,spec_type:i.product.spec_type,is_gift_bag:i.product.is_gift_bag,ficti_num:i.ficti_num,delivery_way:i.product.delivery_way&&i.product.delivery_way.length?i.product.delivery_way.map(String):t.deliveryType,delivery_free:i.product.delivery_free?i.product.delivery_free:0,mer_labels:i.mer_labels&&i.mer_labels.length?i.mer_labels.map(Number):[]},1===t.combinationData.ficti_status&&(t.max_ficti_num=Math.round((1-t.combinationData.group_buying_rate/100)*i.buying_count_num)),0===t.formValidate.spec_type?(t.OneattrValue=i.product.attrValue,t.OneattrValue.forEach((function(e,a){t.attrInfo[Object.values(e.detail).sort().join("/")]=e,t.$set(t.OneattrValue[a],"active_price",e._sku?e._sku.active_price:e.price),t.$set(t.OneattrValue[a],"stock",e._sku?e._sku.stock:e.old_stock)})),t.singleSpecification=JSON.parse(JSON.stringify(i.product.attrValue)),t.formValidate.attrValue=t.OneattrValue):(r=[],t.ManyAttrValue=i.product.attrValue,t.ManyAttrValue.forEach((function(e,a){t.attrInfo[Object.values(e.detail).sort().join("/")]=e,t.$set(t.ManyAttrValue[a],"active_price",e._sku?e._sku.active_price:e.price),t.$set(t.ManyAttrValue[a],"stock",e._sku?e._sku.stock:e.old_stock),e._sku&&(t.multipleSpecifications=JSON.parse(JSON.stringify(i.product.attrValue)),r.push(e))})),t.multipleSpecifications=JSON.parse(JSON.stringify(r)),t.$nextTick((function(){r.forEach((function(e){t.$refs.multipleSelection.toggleRowSelection(e,!0)}))})),t.formValidate.attrValue=t.multipleSelection),console.log(t.ManyAttrValue),t.fullscreenLoading=!1,t.timeVal=[new Date(t.formValidate.start_time),new Date(t.formValidate.end_time)],t.$store.dispatch("settings/setEdit",!0);case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.fullscreenLoading=!1,t.$message.error(e.message)})):Object(p["eb"])(e).then(function(){var e=Object(s["a"])(Object(l["a"])().mark((function e(a){var i;return Object(l["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:i=a.data,t.formValidate={product_id:i.product_id,image:i.image,slider_image:i.slider_image,store_name:i.store_name,store_info:i.store_info,unit_name:i.unit_name,time:1,buying_count_num:2,ficti_status:!0,start_time:"",end_time:"",brand_id:i.brand_id,cate_id:i.cate_id,mer_cate_id:i.mer_cate_id,pay_count:1,once_pay_count:1,sort:i.sort?i.sort:0,is_good:i.is_good,temp_id:i.temp_id,is_show:i.is_show,attr:i.attr,extension_type:i.extension_type,content:i.content,spec_type:i.spec_type,is_gift_bag:i.is_gift_bag,ficti_num:1===t.combinationData.ficti_status?Math.round(1-t.combinationData.group_buying_rate/100):"",delivery_way:i.delivery_way&&i.delivery_way.length?i.delivery_way.map(String):t.deliveryType,delivery_free:i.delivery_free?i.delivery_free:0,mer_labels:i.mer_labels&&i.mer_labels.length?i.mer_labels.map(Number):[]},1===t.combinationData.ficti_status&&(t.max_ficti_num=Math.round(1*(1-t.combinationData.group_buying_rate/100))),t.timeVal=[],0===t.formValidate.spec_type?(t.OneattrValue=i.attrValue,t.OneattrValue.forEach((function(e,a){t.$set(t.OneattrValue[a],"active_price",t.OneattrValue[a].price)})),t.singleSpecification=JSON.parse(JSON.stringify(i.attrValue)),t.formValidate.attrValue=t.OneattrValue):(t.ManyAttrValue=i.attrValue,t.multipleSpecifications=JSON.parse(JSON.stringify(i.attrValue)),t.ManyAttrValue.forEach((function(e,a){t.attrInfo[Object.values(e.detail).sort().join("/")]=e,t.$set(t.ManyAttrValue[a],"active_price",t.ManyAttrValue[a].price)})),t.multipleSelection=i.attrValue,t.$nextTick((function(){i.attrValue.forEach((function(e){t.$refs.multipleSelection.toggleRowSelection(e,!0)}))}))),1===t.formValidate.is_good&&t.checkboxGroup.push("is_good"),t.fullscreenLoading=!1;case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.fullscreenLoading=!1,t.$message.error(e.message)}))},handleRemove:function(e){this.formValidate.slider_image.splice(e,1)},modalPicTap:function(e,t,a){var i=this,r=[];this.$modalUpload((function(n){"1"!==e||t||(i.formValidate.image=n[0],i.OneattrValue[0].image=n[0]),"2"!==e||t||n.map((function(e){r.push(e.attachment_src),i.formValidate.slider_image.push(e),i.formValidate.slider_image.length>10&&(i.formValidate.slider_image.length=10)})),"1"===e&&"dan"===t&&(i.OneattrValue[0].image=n[0]),"1"===e&&"duo"===t&&(i.ManyAttrValue[a].image=n[0]),"1"===e&&"pi"===t&&(i.oneFormBatch[0].image=n[0])}),e)},handleSubmitUp:function(){this.currentTab--<0&&(this.currentTab=0)},handleSubmitNest1:function(e){this.formValidate.image?(this.currentTab++,this.$route.params.id||this.getInfo(this.product_id)):this.$message.warning("请选择商品!")},handleSubmitNest2:function(e){var t=this;1===this.formValidate.spec_type?this.formValidate.attrValue=this.multipleSelection:this.formValidate.attrValue=this.OneattrValue,console.log(this.formValidate),this.$refs[e].validate((function(e){if(e){if(!t.formValidate.store_name||!t.formValidate.store_info||!t.formValidate.image||!t.formValidate.slider_image)return void t.$message.warning("请填写完整拼团商品信息!");if(!t.formValidate.start_time||!t.formValidate.end_time)return void t.$message.warning("请选择拼团时间!");if(!t.formValidate.attrValue||0===t.formValidate.attrValue.length)return void t.$message.warning("请选择商品规格!");t.currentTab++}}))},handleSubmit:function(e){var t=this;this.$refs[e].validate((function(a){a?(t.$store.dispatch("settings/setEdit",!1),t.fullscreenLoading=!0,t.loading=!0,console.log(t.formValidate),t.$route.params.id?(console.log(t.ManyAttrValue),Object(_["w"])(t.$route.params.id,t.formValidate).then(function(){var a=Object(s["a"])(Object(l["a"])().mark((function a(i){return Object(l["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:t.fullscreenLoading=!1,t.$message.success(i.message),t.$router.push({path:t.roterPre+"/marketing/combination/combination_goods"}),t.$refs[e].resetFields(),t.formValidate.slider_image=[],t.loading=!1;case 6:case"end":return a.stop()}}),a)})));return function(e){return a.apply(this,arguments)}}()).catch((function(e){t.fullscreenLoading=!1,t.loading=!1,t.$message.error(e.message)}))):Object(_["p"])(t.formValidate).then(function(){var a=Object(s["a"])(Object(l["a"])().mark((function a(i){return Object(l["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:t.fullscreenLoading=!1,t.$message.success(i.message),t.$router.push({path:t.roterPre+"/marketing/combination/combination_goods"}),t.$refs[e].resetFields(),t.formValidate.slider_image=[],t.loading=!1;case 6:case"end":return a.stop()}}),a)})));return function(e){return a.apply(this,arguments)}}()).catch((function(e){t.fullscreenLoading=!1,t.loading=!1,t.$message.error(e.message)}))):t.formValidate.store_name&&t.formValidate.store_info&&t.formValidate.image&&t.formValidate.slider_image||t.$message.warning("请填写完整商品信息!")}))},handlePreview:function(){var e=this;Object(p["x"])(this.formValidate).then(function(){var t=Object(s["a"])(Object(l["a"])().mark((function t(a){return Object(l["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.previewVisible=!0,e.previewKey=a.data.preview_key;case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.$message.error(t.message)}))},validate:function(e,t,a){!1===t&&this.$message.warning(a)},handleDragStart:function(e,t){this.dragging=t},handleDragEnd:function(e,t){this.dragging=null},handleDragOver:function(e){e.dataTransfer.dropEffect="move"},handleDragEnter:function(e,t){if(e.dataTransfer.effectAllowed="move",t!==this.dragging){var a=Object(n["a"])(this.formValidate.slider_image),i=a.indexOf(this.dragging),r=a.indexOf(t);a.splice.apply(a,[r,0].concat(Object(n["a"])(a.splice(i,1)))),this.formValidate.slider_image=a}}}},y=v,w=(a("d562"),a("2877")),V=Object(w["a"])(y,i,r,!1,null,"1cc142ff",null);t["default"]=V.exports},3910:function(e,t,a){"use strict";a("901b")},"504c":function(e,t,a){var i=a("9e1e"),r=a("0d58"),n=a("6821"),l=a("52a7").f;e.exports=function(e){return function(t){var a,s=n(t),o=r(s),c=o.length,u=0,m=[];while(c>u)a=o[u++],i&&!l.call(s,a)||m.push(e?[a,s[a]]:s[a]);return m}}},6494:function(e,t,a){},7719:function(e,t,a){"use strict";var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return e.dialogVisible?a("el-dialog",{attrs:{title:"商品信息",visible:e.dialogVisible,width:"1200px"},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("div",{staticClass:"divBox"},[a("div",{staticClass:"header clearfix"},[a("div",{staticClass:"container"},[a("el-form",{attrs:{size:"small",inline:"","label-width":"100px"}},[a("el-form-item",{staticClass:"width100",attrs:{label:"商品分类:"}},[a("el-select",{staticClass:"filter-item selWidth mr20",attrs:{placeholder:"请选择",clearable:""},on:{change:function(t){return e.getList()}},model:{value:e.tableFrom.mer_cate_id,callback:function(t){e.$set(e.tableFrom,"mer_cate_id",t)},expression:"tableFrom.mer_cate_id"}},e._l(e.merCateList,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),a("el-form-item",{staticClass:"width100",attrs:{label:"商品搜索:"}},[a("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入商品名称,关键字,产品编号",clearable:""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.getList(t)}},model:{value:e.tableFrom.keyword,callback:function(t){e.$set(e.tableFrom,"keyword",t)},expression:"tableFrom.keyword"}},[a("el-button",{staticClass:"el-button-solt",attrs:{slot:"append",icon:"el-icon-search"},on:{click:e.getList},slot:"append"})],1)],1)],1)],1)]),e._v(" "),e.resellShow?a("el-alert",{attrs:{title:"注:添加为预售商品后,原普通商品会下架;如该商品已开启其它营销活动,请勿选择!",type:"warning","show-icon":""}}):e._e(),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],staticStyle:{width:"100%","margin-top":"10px"},attrs:{data:e.tableData.data,size:"mini"}},[a("el-table-column",{attrs:{width:"55"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-radio",{attrs:{label:t.row.product_id},nativeOn:{change:function(a){return e.getTemplateRow(t.row)}},model:{value:e.templateRadio,callback:function(t){e.templateRadio=t},expression:"templateRadio"}},[e._v(" ")])]}}],null,!1,3465899556)}),e._v(" "),a("el-table-column",{attrs:{prop:"product_id",label:"ID","min-width":"50"}}),e._v(" "),a("el-table-column",{attrs:{label:"商品图","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(e){return[a("div",{staticClass:"demo-image__preview"},[a("el-image",{staticStyle:{width:"36px",height:"36px"},attrs:{src:e.row.image,"preview-src-list":[e.row.image]}})],1)]}}],null,!1,2331550732)}),e._v(" "),a("el-table-column",{attrs:{prop:"store_name",label:"商品名称","min-width":"200"}}),e._v(" "),a("el-table-column",{attrs:{prop:"stock",label:"库存","min-width":"80"}})],1),e._v(" "),a("div",{staticClass:"block mb20"},[a("el-pagination",{attrs:{"page-sizes":[20,40,60,80],"page-size":e.tableFrom.limit,"current-page":e.tableFrom.page,layout:"total, sizes, prev, pager, next, jumper",total:e.tableData.total},on:{"size-change":e.handleSizeChange,"current-change":e.pageChange}})],1)],1)]):e._e()},r=[],n=a("c4c8"),l=a("83d6"),s={name:"GoodsList",props:{resellShow:{type:Boolean,default:!1}},data:function(){return{dialogVisible:!1,templateRadio:0,merCateList:[],roterPre:l["roterPre"],listLoading:!0,tableData:{data:[],total:0},tableFrom:{page:1,limit:20,cate_id:"",store_name:"",keyword:"",is_gift_bag:0,status:1},multipleSelection:{},checked:[]}},mounted:function(){var e=this;this.getList(),this.getCategorySelect(),window.addEventListener("unload",(function(t){return e.unloadHandler(t)}))},methods:{getTemplateRow:function(e){this.multipleSelection={src:e.image,id:e.product_id},this.dialogVisible=!1,this.$emit("getProduct",this.multipleSelection)},getCategorySelect:function(){var e=this;Object(n["r"])().then((function(t){e.merCateList=t.data})).catch((function(t){e.$message.error(t.message)}))},getList:function(){var e=this;this.listLoading=!0,Object(n["gb"])(this.tableFrom).then((function(t){e.tableData.data=t.data.list,e.tableData.total=t.data.count,e.listLoading=!1})).catch((function(t){e.listLoading=!1,e.$message.error(t.message)}))},pageChange:function(e){this.tableFrom.page=e,this.getList()},handleSizeChange:function(e){this.tableFrom.limit=e,this.getList()}}},o=s,c=(a("3910"),a("2877")),u=Object(c["a"])(o,i,r,!1,null,"5e74a40e",null);t["a"]=u.exports},8615:function(e,t,a){var i=a("5ca1"),r=a("504c")(!1);i(i.S,"Object",{values:function(e){return r(e)}})},"901b":function(e,t,a){},d562:function(e,t,a){"use strict";a("6494")}}]); \ No newline at end of file +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3ec8e821"],{"0928":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"divBox"},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("el-steps",{attrs:{active:e.currentTab,"align-center":"","finish-status":"success"}},[a("el-step",{attrs:{title:"选择拼团商品"}}),e._v(" "),a("el-step",{attrs:{title:"填写基础信息"}}),e._v(" "),a("el-step",{attrs:{title:"修改商品详情"}})],1)],1),e._v(" "),a("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.fullscreenLoading,expression:"fullscreenLoading"}],ref:"formValidate",staticClass:"formValidate mt20",attrs:{rules:e.ruleValidate,model:e.formValidate,"label-width":"160px"},nativeOn:{submit:function(e){e.preventDefault()}}},[a("div",{directives:[{name:"show",rawName:"v-show",value:0===e.currentTab,expression:"currentTab === 0"}],staticStyle:{overflow:"hidden"}},[a("el-row",{attrs:{gutter:24}},[a("el-col",e._b({},"el-col",e.grid2,!1),[a("el-form-item",{attrs:{label:"选择商品:",prop:"image"}},[a("div",{staticClass:"upLoadPicBox",on:{click:function(t){return e.add()}}},[e.formValidate.image?a("div",{staticClass:"pictrue"},[a("img",{attrs:{src:e.formValidate.image}})]):a("div",{staticClass:"upLoad"},[a("i",{staticClass:"el-icon-camera cameraIconfont"})])])])],1)],1)],1),e._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:1===e.currentTab,expression:"currentTab === 1"}]},[a("el-row",{attrs:{gutter:24}},[a("el-col",e._b({},"el-col",e.grid2,!1),[a("el-form-item",{attrs:{label:"商品主图:",prop:"image"}},[a("div",{staticClass:"upLoadPicBox",on:{click:function(t){return e.modalPicTap("1")}}},[e.formValidate.image?a("div",{staticClass:"pictrue"},[a("img",{attrs:{src:e.formValidate.image}})]):a("div",{staticClass:"upLoad"},[a("i",{staticClass:"el-icon-camera cameraIconfont"})])])])],1),e._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"商品轮播图:",prop:"slider_image"}},[a("div",{staticClass:"acea-row"},[e._l(e.formValidate.slider_image,(function(t,i){return a("div",{key:i,staticClass:"pictrue",attrs:{draggable:"false"},on:{dragstart:function(a){return e.handleDragStart(a,t)},dragover:function(a){return a.preventDefault(),e.handleDragOver(a,t)},dragenter:function(a){return e.handleDragEnter(a,t)},dragend:function(a){return e.handleDragEnd(a,t)}}},[a("img",{attrs:{src:t}}),e._v(" "),a("i",{staticClass:"el-icon-error btndel",on:{click:function(t){return e.handleRemove(i)}}})])})),e._v(" "),e.formValidate.slider_image.length<10?a("div",{staticClass:"upLoadPicBox",on:{click:function(t){return e.modalPicTap("2")}}},[a("div",{staticClass:"upLoad"},[a("i",{staticClass:"el-icon-camera cameraIconfont"})])]):e._e()],2)])],1),e._v(" "),a("el-col",{staticClass:"sp100"},[a("el-form-item",{attrs:{label:"拼团名称:",prop:"store_name"}},[a("el-input",{attrs:{placeholder:"请输入商品名称"},model:{value:e.formValidate.store_name,callback:function(t){e.$set(e.formValidate,"store_name",t)},expression:"formValidate.store_name"}})],1)],1)],1),e._v(" "),a("el-row",{attrs:{gutter:24}},[a("el-col",{staticClass:"sp100"},[a("el-form-item",{attrs:{label:"拼团简介:",prop:"store_info"}},[a("el-input",{attrs:{type:"textarea",rows:3,placeholder:"请输入秒杀活动简介"},model:{value:e.formValidate.store_info,callback:function(t){e.$set(e.formValidate,"store_info",t)},expression:"formValidate.store_info"}})],1)],1)],1),e._v(" "),a("el-row",{attrs:{gutter:24}},[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"拼团时间:",required:""}},[a("el-date-picker",{attrs:{type:"datetimerange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期",align:"right"},on:{change:e.onchangeTime},model:{value:e.timeVal,callback:function(t){e.timeVal=t},expression:"timeVal"}}),e._v(" "),a("span",{staticClass:"item_desc"},[e._v("设置活动开启结束时间,用户可以在设置时间内发起参与拼团")])],1)],1),e._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"送货方式:",prop:"delivery_way"}},[a("div",{staticClass:"acea-row"},[a("el-checkbox-group",{model:{value:e.formValidate.delivery_way,callback:function(t){e.$set(e.formValidate,"delivery_way",t)},expression:"formValidate.delivery_way"}},e._l(e.deliveryList,(function(t){return a("el-checkbox",{key:t.value,attrs:{label:t.value}},[e._v("\n "+e._s(t.name)+"\n ")])})),1)],1)])],1),e._v(" "),2==e.formValidate.delivery_way.length||1==e.formValidate.delivery_way.length&&2==e.formValidate.delivery_way[0]?a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"是否包邮:"}},[a("el-radio-group",{model:{value:e.formValidate.delivery_free,callback:function(t){e.$set(e.formValidate,"delivery_free",t)},expression:"formValidate.delivery_free"}},[a("el-radio",{staticClass:"radio",attrs:{label:0}},[e._v("否")]),e._v(" "),a("el-radio",{attrs:{label:1}},[e._v("是")])],1)],1)],1):e._e(),e._v(" "),0==e.formValidate.delivery_free&&(2==e.formValidate.delivery_way.length||1==e.formValidate.delivery_way.length&&2==e.formValidate.delivery_way[0])?a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"运费模板:",prop:"temp_id"}},[a("div",{staticClass:"acea-row"},[a("el-select",{staticClass:"selWidthd mr20",attrs:{placeholder:"请选择"},model:{value:e.formValidate.temp_id,callback:function(t){e.$set(e.formValidate,"temp_id",t)},expression:"formValidate.temp_id"}},e._l(e.shippingList,(function(e){return a("el-option",{key:e.shipping_template_id,attrs:{label:e.name,value:e.shipping_template_id}})})),1),e._v(" "),a("el-button",{staticClass:"mr15",attrs:{size:"small"},on:{click:e.addTem}},[e._v("添加运费模板")])],1)])],1):e._e(),e._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"平台保障服务:"}},[a("div",{staticClass:"acea-row"},[a("el-select",{staticClass:"selWidthd mr20",attrs:{placeholder:"请选择",clearable:""},model:{value:e.formValidate.guarantee_template_id,callback:function(t){e.$set(e.formValidate,"guarantee_template_id",t)},expression:"formValidate.guarantee_template_id"}},e._l(e.guaranteeList,(function(e){return a("el-option",{key:e.guarantee_template_id,attrs:{label:e.template_name,value:e.guarantee_template_id}})})),1),e._v(" "),a("el-button",{staticClass:"mr15",attrs:{size:"small"},on:{click:e.addServiceTem}},[e._v("添加服务说明模板")])],1)])],1),e._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"拼团时效(单位:小时):",prop:"time"}},[a("el-input-number",{attrs:{min:1,placeholder:"请输入时效"},model:{value:e.formValidate.time,callback:function(t){e.$set(e.formValidate,"time",t)},expression:"formValidate.time"}}),e._v(" "),a("span",{staticClass:"item_desc"},[e._v("用户发起拼团后开始计时,需在设置时间内邀请到规定好友人数参团,超过时效时间,则系统判定拼团失败,自动发起退款")])],1)],1),e._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"拼团人数:",prop:"buying_count_num"}},[a("el-input-number",{attrs:{min:2,placeholder:"请输入人数"},on:{change:e.calFictiCount},model:{value:e.formValidate.buying_count_num,callback:function(t){e.$set(e.formValidate,"buying_count_num",t)},expression:"formValidate.buying_count_num"}}),e._v(" "),a("span",{staticClass:"item_desc"},[e._v("单次拼团需要参与的用户数")])],1)],1),e._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"活动期间限购件数:",prop:"pay_count"}},[a("el-input-number",{attrs:{min:1,placeholder:"请输入数量"},model:{value:e.formValidate.pay_count,callback:function(t){e.$set(e.formValidate,"pay_count",t)},expression:"formValidate.pay_count"}}),e._v(" "),a("span",{staticClass:"item_desc"},[e._v("该商品活动期间内,用户可购买的最大数量。例如设置为4,表示本地活动有效期内,每个用户最多可购买4件")])],1)],1),e._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"单次限购件数:",prop:"once_pay_count"}},[a("el-input-number",{attrs:{min:1,max:e.formValidate.pay_count,placeholder:"请输入数量"},model:{value:e.formValidate.once_pay_count,callback:function(t){e.$set(e.formValidate,"once_pay_count",t)},expression:"formValidate.once_pay_count"}}),e._v(" "),a("span",{staticClass:"item_desc"},[e._v("用户参与拼团时,一次购买最大数量限制。例如设置为2,表示每次参与拼团时,用户一次购买数量最大可选择2个")])],1)],1),e._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"单位:",prop:"unit_name"}},[a("el-input",{staticStyle:{width:"250px"},attrs:{placeholder:"请输入单位"},model:{value:e.formValidate.unit_name,callback:function(t){e.$set(e.formValidate,"unit_name",t)},expression:"formValidate.unit_name"}})],1)],1)],1),e._v(" "),1==e.combinationData.ficti_status?a("el-row",{attrs:{gutter:24}},[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"虚拟成团:"}},[a("el-switch",{attrs:{"active-text":"开启","inactive-text":"关闭"},model:{value:e.formValidate.ficti_status,callback:function(t){e.$set(e.formValidate,"ficti_status",t)},expression:"formValidate.ficti_status"}})],1)],1),e._v(" "),1==e.formValidate.ficti_status?a("el-col",{attrs:{span:16}},[a("el-form-item",{attrs:{label:"虚拟成团补齐人数:",prop:"ficti_num"}},[a("el-input-number",{attrs:{min:0,max:e.max_ficti_num,placeholder:"请输入数量"},model:{value:e.formValidate.ficti_num,callback:function(t){e.$set(e.formValidate,"ficti_num",t)},expression:"formValidate.ficti_num"}}),e._v(" "),a("span",{staticClass:"item_desc"},[e._v("拼团时效到时,系统自动补齐的最大拼团人数")])],1)],1):e._e()],1):e._e(),e._v(" "),a("el-row",{attrs:{gutter:24}},[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"排序:",prop:"sort"}},[a("el-input-number",{attrs:{min:0,placeholder:"请输入排序数值"},model:{value:e.formValidate.sort,callback:function(t){e.$set(e.formValidate,"sort",t)},expression:"formValidate.sort"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"显示状态"}},[a("el-radio-group",{model:{value:e.formValidate.is_show,callback:function(t){e.$set(e.formValidate,"is_show",t)},expression:"formValidate.is_show"}},[a("el-radio",{staticClass:"radio",attrs:{label:0}},[e._v("关闭")]),e._v(" "),a("el-radio",{attrs:{label:1}},[e._v("开启")])],1)],1)],1)],1),e._v(" "),a("el-row",{attrs:{gutter:24}},[a("el-col",{attrs:{xl:24,lg:24,md:24,sm:24,xs:24}},[0===e.formValidate.spec_type?a("el-form-item",[a("el-table",{staticClass:"tabNumWidth",attrs:{data:e.OneattrValue,border:"",size:"mini"}},[a("el-table-column",{attrs:{align:"center",label:"图片","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"upLoadPicBox",on:{click:function(t){return e.modalPicTap("1","dan","pi")}}},[e.formValidate.image?a("div",{staticClass:"pictrue tabPic"},[a("img",{attrs:{src:t.row.image}})]):a("div",{staticClass:"upLoad tabPic"},[a("i",{staticClass:"el-icon-camera cameraIconfont"})])])]}}],null,!1,1357914119)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"市场价","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row["price"]))])]}}],null,!1,1703924291)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"拼团价","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{staticClass:"priceBox",attrs:{type:"number",min:0,max:t.row["price"]},on:{blur:function(a){return e.limitPrice(t.row)}},model:{value:t.row["active_price"],callback:function(a){e.$set(t.row,"active_price",e._n(a))},expression:"scope.row['active_price']"}})]}}],null,!1,1431579223)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"成本价","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row["cost"]))])]}}],null,!1,4236060069)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"库存","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row["old_stock"]))])]}}],null,!1,1655454038)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"限量","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{staticClass:"priceBox",attrs:{type:"number",max:t.row["old_stock"],min:0},on:{change:function(a){return e.limitInventory(t.row)}},model:{value:t.row["stock"],callback:function(a){e.$set(t.row,"stock",e._n(a))},expression:"scope.row['stock']"}})]}}],null,!1,3327557396)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"商品编号","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row["bar_code"]))])]}}],null,!1,2057585133)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"重量(KG)","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row["weight"]))])]}}],null,!1,1649766542)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"体积(m³)","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row["volume"]))])]}}],null,!1,2118841126)})],1)],1):e._e()],1)],1),e._v(" "),a("el-row",{attrs:{gutter:24}},[1===e.formValidate.spec_type?a("el-form-item",{staticClass:"labeltop",attrs:{label:"规格列表:"}},[a("el-table",{ref:"multipleSelection",attrs:{data:e.ManyAttrValue,"tooltip-effect":"dark","row-key":function(e){return e.id}},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{align:"center",type:"selection","reserve-selection":!0,"min-width":"50"}}),e._v(" "),e.manyTabDate?e._l(e.manyTabDate,(function(t,i){return a("el-table-column",{key:i,attrs:{align:"center",label:e.manyTabTit[i].title,"min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{staticClass:"priceBox",domProps:{textContent:e._s(t.row[i])}})]}}],null,!0)})})):e._e(),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"图片","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"upLoadPicBox",on:{click:function(a){return e.modalPicTap("1","duo",t.$index)}}},[t.row.image?a("div",{staticClass:"pictrue tabPic"},[a("img",{attrs:{src:t.row.image}})]):a("div",{staticClass:"upLoad tabPic"},[a("i",{staticClass:"el-icon-camera cameraIconfont"})])])]}}],null,!1,3478746955)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"市场价","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row["price"]))])]}}],null,!1,1703924291)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"拼团价","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{staticClass:"priceBox",attrs:{type:"number",min:0,max:t.row["price"]},on:{blur:function(a){return e.limitPrice(t.row)}},model:{value:t.row["active_price"],callback:function(a){e.$set(t.row,"active_price",e._n(a))},expression:" scope.row['active_price']"}})]}}],null,!1,3314660055)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"成本价","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row["cost"]))])]}}],null,!1,4236060069)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"库存","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row["old_stock"]))])]}}],null,!1,1655454038)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"限量","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{staticClass:"priceBox",attrs:{type:"number",min:0,max:t.row["old_stock"]},model:{value:t.row["stock"],callback:function(a){e.$set(t.row,"stock",e._n(a))},expression:"scope.row['stock']"}})]}}],null,!1,4025255182)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"商品编号","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row["bar_code"]))])]}}],null,!1,2057585133)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"重量(KG)","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row["weight"]))])]}}],null,!1,1649766542)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"体积(m³)","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row["volume"]))])]}}],null,!1,2118841126)})],2)],1):e._e()],1)],1),e._v(" "),a("el-row",{directives:[{name:"show",rawName:"v-show",value:2===e.currentTab,expression:"currentTab === 2"}]},[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"商品详情:"}},[a("ueditorFrom",{attrs:{content:e.formValidate.content},model:{value:e.formValidate.content,callback:function(t){e.$set(e.formValidate,"content",t)},expression:"formValidate.content"}})],1)],1)],1),e._v(" "),a("el-form-item",{staticStyle:{"margin-top":"30px"}},[a("el-button",{directives:[{name:"show",rawName:"v-show",value:e.currentTab>0,expression:"currentTab>0"}],staticClass:"submission",attrs:{type:"primary",size:"small"},on:{click:e.handleSubmitUp}},[e._v("上一步")]),e._v(" "),a("el-button",{directives:[{name:"show",rawName:"v-show",value:0==e.currentTab,expression:"currentTab == 0"}],staticClass:"submission",attrs:{type:"primary",size:"small"},on:{click:function(t){return e.handleSubmitNest1("formValidate")}}},[e._v("下一步")]),e._v(" "),a("el-button",{directives:[{name:"show",rawName:"v-show",value:1==e.currentTab,expression:"currentTab == 1"}],staticClass:"submission",attrs:{type:"primary",size:"small"},on:{click:function(t){return e.handleSubmitNest2("formValidate")}}},[e._v("下一步")]),e._v(" "),a("el-button",{directives:[{name:"show",rawName:"v-show",value:2===e.currentTab,expression:"currentTab===2"}],staticClass:"submission",attrs:{loading:e.loading,type:"primary",size:"small"},on:{click:function(t){return e.handleSubmit("formValidate")}}},[e._v("提交")]),e._v(" "),a("el-button",{directives:[{name:"show",rawName:"v-show",value:2===e.currentTab,expression:"currentTab===2"}],staticClass:"submission",attrs:{loading:e.loading,type:"primary",size:"small"},on:{click:e.handlePreview}},[e._v("预览")])],1)],1)],1),e._v(" "),a("goods-list",{ref:"goodsList",on:{getProduct:e.getProduct}}),e._v(" "),a("guarantee-service",{ref:"serviceGuarantee",on:{"get-list":e.getGuaranteeList}}),e._v(" "),e.previewVisible?a("div",[a("div",{staticClass:"bg",on:{click:function(t){t.stopPropagation(),e.previewVisible=!1}}}),e._v(" "),e.previewVisible?a("preview-box",{ref:"previewBox",attrs:{"product-type":4,"preview-key":e.previewKey}}):e._e()],1):e._e()],1)},r=[],n=a("2909"),l=(a("7f7f"),a("c7eb")),s=(a("c5f6"),a("96cf"),a("1da1")),o=(a("8615"),a("55dd"),a("ac6a"),a("ef0d")),c=a("6625"),u=a.n(c),m=a("7719"),d=a("ae43"),f=a("8c98"),p=a("c4c8"),_=a("b7be"),g=a("83d6"),h={product_id:"",image:"",slider_image:[],store_name:"",store_info:"",start_time:"",end_time:"",time:1,is_show:1,keyword:"",brand_id:"",cate_id:"",mer_cate_id:[],pay_count:1,unit_name:"",sort:0,is_good:0,temp_id:"",guarantee_template_id:"",buying_count_num:2,ficti_status:!0,ficti_num:1,once_pay_count:1,delivery_way:[],mer_labels:[],delivery_free:0,attrValue:[{image:"",price:null,active_price:null,cost:null,ot_price:null,old_stock:null,stock:null,bar_code:"",weight:null,volume:null}],attr:[],extension_type:0,content:"",spec_type:0,is_gift_bag:0},b=[{name:"店铺推荐",value:"is_good"}],v={name:"CombinationProductAdd",components:{ueditorFrom:o["a"],goodsList:m["a"],VueUeditorWrap:u.a,guaranteeService:d["a"],previewBox:f["a"]},data:function(){return{pickerOptions:{disabledDate:function(e){return e.getTime()>Date.now()}},timeVal:"",max_ficti_num:0,dialogVisible:!1,product_id:"",multipleSelection:[],optionsCate:{value:"store_category_id",label:"cate_name",children:"children",emitPath:!1},roterPre:g["roterPre"],selectRule:"",checkboxGroup:[],recommend:b,tabs:[],fullscreenLoading:!1,props:{emitPath:!1},propsMer:{emitPath:!1,multiple:!0},active:0,OneattrValue:[Object.assign({},h.attrValue[0])],ManyAttrValue:[Object.assign({},h.attrValue[0])],ruleList:[],merCateList:[],categoryList:[],shippingList:[],guaranteeList:[],deliveryList:[],labelList:[],BrandList:[],formValidate:Object.assign({},h),maxStock:"",addNum:0,singleSpecification:{},multipleSpecifications:[],formDynamics:{template_name:"",template_value:[]},manyTabTit:{},manyTabDate:{},grid2:{lg:10,md:12,sm:24,xs:24},formDynamic:{attrsName:"",attrsVal:""},isBtn:!1,manyFormValidate:[],images:[],currentTab:0,isChoice:"",combinationData:{ficti_status:0,group_buying_rate:""},grid:{xl:8,lg:8,md:12,sm:24,xs:24},loading:!1,ruleValidate:{store_name:[{required:!0,message:"请输入商品名称",trigger:"blur"}],timeVal:[{required:!0,message:"请选择拼团活动日期",trigger:"blur"}],time:[{required:!0,message:"请输入拼团时效",trigger:"blur"}],buying_count_num:[{required:!0,message:"请输入拼团人数",trigger:"blur"}],pay_count:[{required:!0,message:"请输入限购量",trigger:"blur"}],sort:[{required:!0,message:"请输入排序数值",trigger:"blur"}],once_pay_count:[{required:!0,message:"请输入单人单次限购数量",trigger:"blur"}],unit_name:[{required:!0,message:"请输入单位",trigger:"blur"}],store_info:[{required:!0,message:"请输入拼团活动简介",trigger:"blur"}],temp_id:[{required:!0,message:"请选择运费模板",trigger:"change"}],ficti_num:[{required:!0,message:"请输入虚拟成团补齐人数",trigger:"blur"}],image:[{required:!0,message:"请上传商品图",trigger:"change"}],slider_image:[{required:!0,message:"请上传商品轮播图",type:"array",trigger:"change"}],delivery_way:[{required:!0,message:"请选择送货方式",trigger:"change"}]},attrInfo:{},keyNum:0,extensionStatus:0,isNew:!1,previewVisible:!1,previewKey:"",deliveryType:[]}},computed:{attrValue:function(){var e=Object.assign({},h.attrValue[0]);return delete e.image,e},oneFormBatch:function(){var e=[Object.assign({},h.attrValue[0])];return delete e[0].bar_code,e}},watch:{"formValidate.attr":{handler:function(e){1===this.formValidate.spec_type&&this.watCh(e)},immediate:!1,deep:!0},"formValidate.buying_count_num":{handler:function(e,t){e&&1==this.formValidate.ficti_status&&(this.max_ficti_num=Math.round((1-this.combinationData.group_buying_rate/100)*this.formValidate.buying_count_num),this.isNew&&this.formValidate.ficti_num>this.max_ficti_num&&(this.formValidate.ficti_num=this.max_ficti_num))},immediate:!1,deep:!0}},created:function(){this.tempRoute=Object.assign({},this.$route),this.$route.params.id&&1===this.formValidate.spec_type&&this.$watch("formValidate.attr",this.watCh)},mounted:function(){var e=this;this.formValidate.slider_image=[],this.getCombinationData(),this.$route.params.id?(this.setTagsViewTitle(),this.getInfo(this.$route.params.id),this.currentTab=1):this.formValidate.attr.map((function(t){e.$set(t,"inputVisible",!1)})),this.getCategorySelect(),this.getCategoryList(),this.getBrandListApi(),this.getShippingList(),this.getGuaranteeList(),this.productCon(),this.getLabelLst(),this.$store.dispatch("settings/setEdit",!0)},methods:{getLabelLst:function(){var e=this;Object(p["x"])().then((function(t){e.labelList=t.data})).catch((function(t){e.$message.error(t.message)}))},productCon:function(){var e=this;Object(p["ab"])().then((function(t){e.deliveryType=t.data.delivery_way.map(String),2==e.deliveryType.length?e.deliveryList=[{value:"1",name:"到店自提"},{value:"2",name:"快递配送"}]:1==e.deliveryType.length&&"1"==e.deliveryType[0]?e.deliveryList=[{value:"1",name:"到店自提"}]:e.deliveryList=[{value:"2",name:"快递配送"}]})).catch((function(t){e.$message.error(t.message)}))},getCombinationData:function(){var e=this;Object(_["q"])().then((function(t){e.combinationData=t.data})).catch((function(t){e.$message.error(t.message)}))},calFictiCount:function(){this.max_ficti_num=Math.round((1-this.combinationData.group_buying_rate/100)*this.formValidate.buying_count_num),this.isNew=!0,this.formValidate.ficti_num>this.max_ficti_num&&(this.formValidate.ficti_num=this.max_ficti_num)},limitInventory:function(e){e.stock-e.old_stock>0&&(e.stock=e.old_stock)},limitPrice:function(e){e.active_price-e.price>0&&(e.active_price=e.price)},add:function(){this.$refs.goodsList.dialogVisible=!0},getProduct:function(e){this.formValidate.image=e.src,this.product_id=e.id,console.log(this.product_id)},handleSelectionChange:function(e){this.multipleSelection=e},onchangeTime:function(e){this.timeVal=e,console.log(this.moment(e[0]).format("YYYY-MM-DD HH:mm:ss")),this.formValidate.start_time=e?this.moment(e[0]).format("YYYY-MM-DD HH:mm:ss"):"",this.formValidate.end_time=e?this.moment(e[1]).format("YYYY-MM-DD HH:mm:ss"):""},setTagsViewTitle:function(){var e="编辑商品",t=Object.assign({},this.tempRoute,{title:"".concat(e,"-").concat(this.$route.params.id)});this.$store.dispatch("tagsView/updateVisitedView",t)},watCh:function(e){var t=this,a={},i={};this.formValidate.attr.forEach((function(e,t){a["value"+t]={title:e.value},i["value"+t]=""})),this.ManyAttrValue.forEach((function(e,a){var i=Object.values(e.detail).sort().join("/");t.attrInfo[i]&&(t.ManyAttrValue[a]=t.attrInfo[i])})),this.attrInfo={},this.ManyAttrValue.forEach((function(e){t.attrInfo[Object.values(e.detail).sort().join("/")]=e})),this.manyTabTit=a,this.manyTabDate=i,console.log(this.manyTabTit),console.log(this.manyTabDate)},addTem:function(){var e=this;this.$modalTemplates(0,(function(){e.getShippingList()}))},addServiceTem:function(){this.$refs.serviceGuarantee.add()},getCategorySelect:function(){var e=this;Object(p["s"])().then((function(t){e.merCateList=t.data})).catch((function(t){e.$message.error(t.message)}))},getCategoryList:function(){var e=this;Object(p["r"])().then((function(t){e.categoryList=t.data})).catch((function(t){e.$message.error(t.message)}))},getBrandListApi:function(){var e=this;Object(p["q"])().then((function(t){e.BrandList=t.data})).catch((function(t){e.$message.error(t.message)}))},productGetRule:function(){var e=this;Object(p["Rb"])().then((function(t){e.ruleList=t.data}))},getShippingList:function(){var e=this;Object(p["Ab"])().then((function(t){e.shippingList=t.data}))},getGuaranteeList:function(){var e=this;Object(p["D"])().then((function(t){e.guaranteeList=t.data}))},getInfo:function(e){var t=this;this.fullscreenLoading=!0,this.$route.params.id?Object(_["t"])(e).then(function(){var e=Object(s["a"])(Object(l["a"])().mark((function e(a){var i,r;return Object(l["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:i=a.data,t.formValidate={product_id:i.product_group_id,image:i.product.image,slider_image:i.product.slider_image,store_name:i.product.store_name,store_info:i.product.store_info,unit_name:i.product.unit_name,time:i.time,buying_count_num:i.buying_count_num,guarantee_template_id:i.product.guarantee_template_id,ficti_status:!!i.ficti_status,start_time:i.start_time?i.start_time:"",end_time:i.end_time?i.end_time:"",brand_id:i.product.brand_id,cate_id:i.cate_id?i.cate_id:"",mer_cate_id:i.mer_cate_id,pay_count:i.pay_count,once_pay_count:i.once_pay_count,sort:i.product.sort,is_good:i.product.is_good,temp_id:i.product.temp_id,is_show:i.is_show,attr:i.product.attr,extension_type:i.extension_type,content:i.product.content.content,spec_type:i.product.spec_type,is_gift_bag:i.product.is_gift_bag,ficti_num:i.ficti_num,delivery_way:i.product.delivery_way&&i.product.delivery_way.length?i.product.delivery_way.map(String):t.deliveryType,delivery_free:i.product.delivery_free?i.product.delivery_free:0,mer_labels:i.mer_labels&&i.mer_labels.length?i.mer_labels.map(Number):[]},1===t.combinationData.ficti_status&&(t.max_ficti_num=Math.round((1-t.combinationData.group_buying_rate/100)*i.buying_count_num)),0===t.formValidate.spec_type?(t.OneattrValue=i.product.attrValue,t.OneattrValue.forEach((function(e,a){t.attrInfo[Object.values(e.detail).sort().join("/")]=e,t.$set(t.OneattrValue[a],"active_price",e._sku?e._sku.active_price:e.price),t.$set(t.OneattrValue[a],"stock",e._sku?e._sku.stock:e.old_stock)})),t.singleSpecification=JSON.parse(JSON.stringify(i.product.attrValue)),t.formValidate.attrValue=t.OneattrValue):(r=[],t.ManyAttrValue=i.product.attrValue,t.ManyAttrValue.forEach((function(e,a){t.attrInfo[Object.values(e.detail).sort().join("/")]=e,t.$set(t.ManyAttrValue[a],"active_price",e._sku?e._sku.active_price:e.price),t.$set(t.ManyAttrValue[a],"stock",e._sku?e._sku.stock:e.old_stock),e._sku&&(t.multipleSpecifications=JSON.parse(JSON.stringify(i.product.attrValue)),r.push(e))})),t.multipleSpecifications=JSON.parse(JSON.stringify(r)),t.$nextTick((function(){r.forEach((function(e){t.$refs.multipleSelection.toggleRowSelection(e,!0)}))})),t.formValidate.attrValue=t.multipleSelection),console.log(t.ManyAttrValue),t.fullscreenLoading=!1,t.timeVal=[new Date(t.formValidate.start_time),new Date(t.formValidate.end_time)],t.$store.dispatch("settings/setEdit",!0);case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.fullscreenLoading=!1,t.$message.error(e.message)})):Object(p["gb"])(e).then(function(){var e=Object(s["a"])(Object(l["a"])().mark((function e(a){var i;return Object(l["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:i=a.data,t.formValidate={product_id:i.product_id,image:i.image,slider_image:i.slider_image,store_name:i.store_name,store_info:i.store_info,unit_name:i.unit_name,time:1,buying_count_num:2,ficti_status:!0,start_time:"",end_time:"",brand_id:i.brand_id,cate_id:i.cate_id,mer_cate_id:i.mer_cate_id,pay_count:1,once_pay_count:1,sort:i.sort?i.sort:0,is_good:i.is_good,temp_id:i.temp_id,is_show:i.is_show,attr:i.attr,extension_type:i.extension_type,content:i.content,spec_type:i.spec_type,is_gift_bag:i.is_gift_bag,ficti_num:1===t.combinationData.ficti_status?Math.round(1-t.combinationData.group_buying_rate/100):"",delivery_way:i.delivery_way&&i.delivery_way.length?i.delivery_way.map(String):t.deliveryType,delivery_free:i.delivery_free?i.delivery_free:0,mer_labels:i.mer_labels&&i.mer_labels.length?i.mer_labels.map(Number):[]},1===t.combinationData.ficti_status&&(t.max_ficti_num=Math.round(1*(1-t.combinationData.group_buying_rate/100))),t.timeVal=[],0===t.formValidate.spec_type?(t.OneattrValue=i.attrValue,t.OneattrValue.forEach((function(e,a){t.$set(t.OneattrValue[a],"active_price",t.OneattrValue[a].price)})),t.singleSpecification=JSON.parse(JSON.stringify(i.attrValue)),t.formValidate.attrValue=t.OneattrValue):(t.ManyAttrValue=i.attrValue,t.multipleSpecifications=JSON.parse(JSON.stringify(i.attrValue)),t.ManyAttrValue.forEach((function(e,a){t.attrInfo[Object.values(e.detail).sort().join("/")]=e,t.$set(t.ManyAttrValue[a],"active_price",t.ManyAttrValue[a].price)})),t.multipleSelection=i.attrValue,t.$nextTick((function(){i.attrValue.forEach((function(e){t.$refs.multipleSelection.toggleRowSelection(e,!0)}))}))),1===t.formValidate.is_good&&t.checkboxGroup.push("is_good"),t.fullscreenLoading=!1;case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.fullscreenLoading=!1,t.$message.error(e.message)}))},handleRemove:function(e){this.formValidate.slider_image.splice(e,1)},modalPicTap:function(e,t,a){var i=this,r=[];this.$modalUpload((function(n){"1"!==e||t||(i.formValidate.image=n[0],i.OneattrValue[0].image=n[0]),"2"!==e||t||n.map((function(e){r.push(e.attachment_src),i.formValidate.slider_image.push(e),i.formValidate.slider_image.length>10&&(i.formValidate.slider_image.length=10)})),"1"===e&&"dan"===t&&(i.OneattrValue[0].image=n[0]),"1"===e&&"duo"===t&&(i.ManyAttrValue[a].image=n[0]),"1"===e&&"pi"===t&&(i.oneFormBatch[0].image=n[0])}),e)},handleSubmitUp:function(){this.currentTab--<0&&(this.currentTab=0)},handleSubmitNest1:function(e){this.formValidate.image?(this.currentTab++,this.$route.params.id||this.getInfo(this.product_id)):this.$message.warning("请选择商品!")},handleSubmitNest2:function(e){var t=this;1===this.formValidate.spec_type?this.formValidate.attrValue=this.multipleSelection:this.formValidate.attrValue=this.OneattrValue,console.log(this.formValidate),this.$refs[e].validate((function(e){if(e){if(!t.formValidate.store_name||!t.formValidate.store_info||!t.formValidate.image||!t.formValidate.slider_image)return void t.$message.warning("请填写完整拼团商品信息!");if(!t.formValidate.start_time||!t.formValidate.end_time)return void t.$message.warning("请选择拼团时间!");if(!t.formValidate.attrValue||0===t.formValidate.attrValue.length)return void t.$message.warning("请选择商品规格!");t.currentTab++}}))},handleSubmit:function(e){var t=this;this.$refs[e].validate((function(a){a?(t.$store.dispatch("settings/setEdit",!1),t.fullscreenLoading=!0,t.loading=!0,console.log(t.formValidate),t.$route.params.id?(console.log(t.ManyAttrValue),Object(_["w"])(t.$route.params.id,t.formValidate).then(function(){var a=Object(s["a"])(Object(l["a"])().mark((function a(i){return Object(l["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:t.fullscreenLoading=!1,t.$message.success(i.message),t.$router.push({path:t.roterPre+"/marketing/combination/combination_goods"}),t.$refs[e].resetFields(),t.formValidate.slider_image=[],t.loading=!1;case 6:case"end":return a.stop()}}),a)})));return function(e){return a.apply(this,arguments)}}()).catch((function(e){t.fullscreenLoading=!1,t.loading=!1,t.$message.error(e.message)}))):Object(_["p"])(t.formValidate).then(function(){var a=Object(s["a"])(Object(l["a"])().mark((function a(i){return Object(l["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:t.fullscreenLoading=!1,t.$message.success(i.message),t.$router.push({path:t.roterPre+"/marketing/combination/combination_goods"}),t.$refs[e].resetFields(),t.formValidate.slider_image=[],t.loading=!1;case 6:case"end":return a.stop()}}),a)})));return function(e){return a.apply(this,arguments)}}()).catch((function(e){t.fullscreenLoading=!1,t.loading=!1,t.$message.error(e.message)}))):t.formValidate.store_name&&t.formValidate.store_info&&t.formValidate.image&&t.formValidate.slider_image||t.$message.warning("请填写完整商品信息!")}))},handlePreview:function(){var e=this;Object(p["z"])(this.formValidate).then(function(){var t=Object(s["a"])(Object(l["a"])().mark((function t(a){return Object(l["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.previewVisible=!0,e.previewKey=a.data.preview_key;case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.$message.error(t.message)}))},validate:function(e,t,a){!1===t&&this.$message.warning(a)},handleDragStart:function(e,t){this.dragging=t},handleDragEnd:function(e,t){this.dragging=null},handleDragOver:function(e){e.dataTransfer.dropEffect="move"},handleDragEnter:function(e,t){if(e.dataTransfer.effectAllowed="move",t!==this.dragging){var a=Object(n["a"])(this.formValidate.slider_image),i=a.indexOf(this.dragging),r=a.indexOf(t);a.splice.apply(a,[r,0].concat(Object(n["a"])(a.splice(i,1)))),this.formValidate.slider_image=a}}}},y=v,w=(a("d562"),a("2877")),V=Object(w["a"])(y,i,r,!1,null,"1cc142ff",null);t["default"]=V.exports},3910:function(e,t,a){"use strict";a("901b")},"504c":function(e,t,a){var i=a("9e1e"),r=a("0d58"),n=a("6821"),l=a("52a7").f;e.exports=function(e){return function(t){var a,s=n(t),o=r(s),c=o.length,u=0,m=[];while(c>u)a=o[u++],i&&!l.call(s,a)||m.push(e?[a,s[a]]:s[a]);return m}}},6494:function(e,t,a){},7719:function(e,t,a){"use strict";var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return e.dialogVisible?a("el-dialog",{attrs:{title:"商品信息",visible:e.dialogVisible,width:"1200px"},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("div",{staticClass:"divBox"},[a("div",{staticClass:"header clearfix"},[a("div",{staticClass:"container"},[a("el-form",{attrs:{size:"small",inline:"","label-width":"100px"}},[a("el-form-item",{staticClass:"width100",attrs:{label:"商品分类:"}},[a("el-select",{staticClass:"filter-item selWidth mr20",attrs:{placeholder:"请选择",clearable:""},on:{change:function(t){return e.getList()}},model:{value:e.tableFrom.mer_cate_id,callback:function(t){e.$set(e.tableFrom,"mer_cate_id",t)},expression:"tableFrom.mer_cate_id"}},e._l(e.merCateList,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),a("el-form-item",{staticClass:"width100",attrs:{label:"商品搜索:"}},[a("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入商品名称,关键字,产品编号",clearable:""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.getList(t)}},model:{value:e.tableFrom.keyword,callback:function(t){e.$set(e.tableFrom,"keyword",t)},expression:"tableFrom.keyword"}},[a("el-button",{staticClass:"el-button-solt",attrs:{slot:"append",icon:"el-icon-search"},on:{click:e.getList},slot:"append"})],1)],1)],1)],1)]),e._v(" "),e.resellShow?a("el-alert",{attrs:{title:"注:添加为预售商品后,原普通商品会下架;如该商品已开启其它营销活动,请勿选择!",type:"warning","show-icon":""}}):e._e(),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],staticStyle:{width:"100%","margin-top":"10px"},attrs:{data:e.tableData.data,size:"mini"}},[a("el-table-column",{attrs:{width:"55"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-radio",{attrs:{label:t.row.product_id},nativeOn:{change:function(a){return e.getTemplateRow(t.row)}},model:{value:e.templateRadio,callback:function(t){e.templateRadio=t},expression:"templateRadio"}},[e._v(" ")])]}}],null,!1,3465899556)}),e._v(" "),a("el-table-column",{attrs:{prop:"product_id",label:"ID","min-width":"50"}}),e._v(" "),a("el-table-column",{attrs:{label:"商品图","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(e){return[a("div",{staticClass:"demo-image__preview"},[a("el-image",{staticStyle:{width:"36px",height:"36px"},attrs:{src:e.row.image,"preview-src-list":[e.row.image]}})],1)]}}],null,!1,2331550732)}),e._v(" "),a("el-table-column",{attrs:{prop:"store_name",label:"商品名称","min-width":"200"}}),e._v(" "),a("el-table-column",{attrs:{prop:"stock",label:"库存","min-width":"80"}})],1),e._v(" "),a("div",{staticClass:"block mb20"},[a("el-pagination",{attrs:{"page-sizes":[20,40,60,80],"page-size":e.tableFrom.limit,"current-page":e.tableFrom.page,layout:"total, sizes, prev, pager, next, jumper",total:e.tableData.total},on:{"size-change":e.handleSizeChange,"current-change":e.pageChange}})],1)],1)]):e._e()},r=[],n=a("c4c8"),l=a("83d6"),s={name:"GoodsList",props:{resellShow:{type:Boolean,default:!1}},data:function(){return{dialogVisible:!1,templateRadio:0,merCateList:[],roterPre:l["roterPre"],listLoading:!0,tableData:{data:[],total:0},tableFrom:{page:1,limit:20,cate_id:"",store_name:"",keyword:"",is_gift_bag:0,status:1},multipleSelection:{},checked:[]}},mounted:function(){var e=this;this.getList(),this.getCategorySelect(),window.addEventListener("unload",(function(t){return e.unloadHandler(t)}))},methods:{getTemplateRow:function(e){this.multipleSelection={src:e.image,id:e.product_id},this.dialogVisible=!1,this.$emit("getProduct",this.multipleSelection)},getCategorySelect:function(){var e=this;Object(n["s"])().then((function(t){e.merCateList=t.data})).catch((function(t){e.$message.error(t.message)}))},getList:function(){var e=this;this.listLoading=!0,Object(n["ib"])(this.tableFrom).then((function(t){e.tableData.data=t.data.list,e.tableData.total=t.data.count,e.listLoading=!1})).catch((function(t){e.listLoading=!1,e.$message.error(t.message)}))},pageChange:function(e){this.tableFrom.page=e,this.getList()},handleSizeChange:function(e){this.tableFrom.limit=e,this.getList()}}},o=s,c=(a("3910"),a("2877")),u=Object(c["a"])(o,i,r,!1,null,"5e74a40e",null);t["a"]=u.exports},8615:function(e,t,a){var i=a("5ca1"),r=a("504c")(!1);i(i.S,"Object",{values:function(e){return r(e)}})},"901b":function(e,t,a){},d562:function(e,t,a){"use strict";a("6494")}}]); \ No newline at end of file diff --git a/public/mer/js/chunk-412d33f7.2e80f203.js b/public/mer/js/chunk-412d33f7.b3b1ebce.js similarity index 94% rename from public/mer/js/chunk-412d33f7.2e80f203.js rename to public/mer/js/chunk-412d33f7.b3b1ebce.js index c2aaf8e1..0c4cda1e 100644 --- a/public/mer/js/chunk-412d33f7.2e80f203.js +++ b/public/mer/js/chunk-412d33f7.b3b1ebce.js @@ -1 +1 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-412d33f7"],{"12e6":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"divBox"},[a("el-card",{staticClass:"box-card"},[a("div",{attrs:{slot:"header"},slot:"header"},[a("div",{staticClass:"container"},[a("div",{staticClass:"demo-input-suffix acea-row"},[a("el-form",{attrs:{inline:"",size:"small","label-width":"100px"}},[a("el-form-item",{attrs:{label:"搜索:"}},[a("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入参数模板名称"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getList(1)}},model:{value:t.tableFrom.template_name,callback:function(e){t.$set(t.tableFrom,"template_name",e)},expression:"tableFrom.template_name"}},[a("el-button",{staticClass:"el-button-solt",attrs:{slot:"append",icon:"el-icon-search"},on:{click:function(e){return t.getList(1)}},slot:"append"})],1)],1)],1)],1)]),t._v(" "),a("el-button",{attrs:{size:"small",type:"primary"},on:{click:t.onAdd}},[t._v("添加参数模板")])],1),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{data:t.tableData.data,size:"small"}},[a("el-table-column",{attrs:{prop:"template_id",label:"ID","min-width":"60"}}),t._v(" "),a("el-table-column",{attrs:{prop:"template_name",label:"参数模板名称","min-width":"60"}}),t._v(" "),a("el-table-column",{attrs:{prop:"sort",label:"排序","min-width":"60"}}),t._v(" "),a("el-table-column",{attrs:{prop:"create_time",label:"创建时间","min-width":"60"}}),t._v(" "),a("el-table-column",{attrs:{label:"操作","min-width":"100",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.onEdit(e.row.template_id)}}},[t._v("编辑")]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.onDetail(e.row.template_id)}}},[t._v("查看")]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.handleDelete(e.row.template_id,e.$index)}}},[t._v("删除")])]}}])})],1),t._v(" "),a("div",{staticClass:"block"},[a("el-pagination",{attrs:{"page-sizes":[20,40,60,80],"page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"total, sizes, prev, pager, next, jumper",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1),t._v(" "),a("el-dialog",{attrs:{title:t.title,visible:t.dialogVisible,width:"400px"},on:{"update:visible":function(e){t.dialogVisible=e}}},[a("div",{staticStyle:{"min-height":"500px"}},[a("div",{staticClass:"description"},[a("div",{staticClass:"acea-row"},t._l(t.specsInfo.parameter,(function(e,i){return a("div",{key:i,staticClass:"description-term"},[a("span",{staticClass:"name"},[t._v(t._s(e.name))]),t._v(" "),a("span",{staticClass:"value"},[t._v(t._s(e.value))])])})),0)])])])],1)},n=[],s=(a("ac6a"),a("83d6")),l=a("c4c8"),o={name:"SpecsList",data:function(){return{listLoading:!0,cateList:[],tableData:{data:[],total:0},tableFrom:{page:1,limit:20},specsInfo:{},dialogVisible:!1,title:""}},mounted:function(){this.getCategorySelect(),this.getList("")},methods:{getList:function(t){var e=this;this.listLoading=!0,this.tableFrom.page=t||this.tableFrom.page,Object(l["mb"])(this.tableFrom).then((function(t){t.data.list.forEach((function(t,e){t.cate_name=[],t.cateId.forEach((function(e,a){t.cate_name.push(e.category.cate_name)}))})),e.tableData.data=t.data.list,e.tableData.total=t.data.count,e.listLoading=!1})).catch((function(t){e.listLoading=!1,e.$message.error(t.message)}))},pageChange:function(t){this.tableFrom.page=t,this.getList("")},handleSizeChange:function(t){this.tableFrom.limit=t,this.getList("")},getCategorySelect:function(){var t=this;Object(l["q"])().then((function(e){t.cateList=e.data})).catch((function(e){t.$message.error(e.message)}))},onAdd:function(){this.$router.push("".concat(s["roterPre"],"/product/specs/create"))},onEdit:function(t){this.$router.push("".concat(s["roterPre"],"/product/specs/create/").concat(t))},onDetail:function(t){var e=this;Object(l["zb"])(t).then((function(t){e.specsInfo=t.data,e.title=t.data.template_name,e.dialogVisible=!0})).catch((function(t){e.$message.error(t.message)}))},handleDelete:function(t,e){var a=this;this.$modalSure("确定删除该模板").then((function(){Object(l["Ab"])(t).then((function(t){var e=t.message;a.$message.success(e),a.getList("")})).catch((function(t){var e=t.message;a.$message.error(e)}))}))}}},c=o,r=(a("b28c"),a("2877")),u=Object(r["a"])(c,i,n,!1,null,"8e659c8e",null);e["default"]=u.exports},"5ef1":function(t,e,a){},b28c:function(t,e,a){"use strict";a("5ef1")}}]); \ No newline at end of file +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-412d33f7"],{"12e6":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"divBox"},[a("el-card",{staticClass:"box-card"},[a("div",{attrs:{slot:"header"},slot:"header"},[a("div",{staticClass:"container"},[a("div",{staticClass:"demo-input-suffix acea-row"},[a("el-form",{attrs:{inline:"",size:"small","label-width":"100px"}},[a("el-form-item",{attrs:{label:"搜索:"}},[a("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入参数模板名称"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getList(1)}},model:{value:t.tableFrom.template_name,callback:function(e){t.$set(t.tableFrom,"template_name",e)},expression:"tableFrom.template_name"}},[a("el-button",{staticClass:"el-button-solt",attrs:{slot:"append",icon:"el-icon-search"},on:{click:function(e){return t.getList(1)}},slot:"append"})],1)],1)],1)],1)]),t._v(" "),a("el-button",{attrs:{size:"small",type:"primary"},on:{click:t.onAdd}},[t._v("添加参数模板")])],1),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{data:t.tableData.data,size:"small"}},[a("el-table-column",{attrs:{prop:"template_id",label:"ID","min-width":"60"}}),t._v(" "),a("el-table-column",{attrs:{prop:"template_name",label:"参数模板名称","min-width":"60"}}),t._v(" "),a("el-table-column",{attrs:{prop:"sort",label:"排序","min-width":"60"}}),t._v(" "),a("el-table-column",{attrs:{prop:"create_time",label:"创建时间","min-width":"60"}}),t._v(" "),a("el-table-column",{attrs:{label:"操作","min-width":"100",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.onEdit(e.row.template_id)}}},[t._v("编辑")]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.onDetail(e.row.template_id)}}},[t._v("查看")]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.handleDelete(e.row.template_id,e.$index)}}},[t._v("删除")])]}}])})],1),t._v(" "),a("div",{staticClass:"block"},[a("el-pagination",{attrs:{"page-sizes":[20,40,60,80],"page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"total, sizes, prev, pager, next, jumper",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1),t._v(" "),a("el-dialog",{attrs:{title:t.title,visible:t.dialogVisible,width:"400px"},on:{"update:visible":function(e){t.dialogVisible=e}}},[a("div",{staticStyle:{"min-height":"500px"}},[a("div",{staticClass:"description"},[a("div",{staticClass:"acea-row"},t._l(t.specsInfo.parameter,(function(e,i){return a("div",{key:i,staticClass:"description-term"},[a("span",{staticClass:"name"},[t._v(t._s(e.name))]),t._v(" "),a("span",{staticClass:"value"},[t._v(t._s(e.value))])])})),0)])])])],1)},n=[],s=(a("ac6a"),a("83d6")),l=a("c4c8"),o={name:"SpecsList",data:function(){return{listLoading:!0,cateList:[],tableData:{data:[],total:0},tableFrom:{page:1,limit:20},specsInfo:{},dialogVisible:!1,title:""}},mounted:function(){this.getCategorySelect(),this.getList("")},methods:{getList:function(t){var e=this;this.listLoading=!0,this.tableFrom.page=t||this.tableFrom.page,Object(l["ob"])(this.tableFrom).then((function(t){t.data.list.forEach((function(t,e){t.cate_name=[],t.cateId.forEach((function(e,a){t.cate_name.push(e.category.cate_name)}))})),e.tableData.data=t.data.list,e.tableData.total=t.data.count,e.listLoading=!1})).catch((function(t){e.listLoading=!1,e.$message.error(t.message)}))},pageChange:function(t){this.tableFrom.page=t,this.getList("")},handleSizeChange:function(t){this.tableFrom.limit=t,this.getList("")},getCategorySelect:function(){var t=this;Object(l["r"])().then((function(e){t.cateList=e.data})).catch((function(e){t.$message.error(e.message)}))},onAdd:function(){this.$router.push("".concat(s["roterPre"],"/product/specs/create"))},onEdit:function(t){this.$router.push("".concat(s["roterPre"],"/product/specs/create/").concat(t))},onDetail:function(t){var e=this;Object(l["Bb"])(t).then((function(t){e.specsInfo=t.data,e.title=t.data.template_name,e.dialogVisible=!0})).catch((function(t){e.$message.error(t.message)}))},handleDelete:function(t,e){var a=this;this.$modalSure("确定删除该模板").then((function(){Object(l["Cb"])(t).then((function(t){var e=t.message;a.$message.success(e),a.getList("")})).catch((function(t){var e=t.message;a.$message.error(e)}))}))}}},c=o,r=(a("b28c"),a("2877")),u=Object(r["a"])(c,i,n,!1,null,"8e659c8e",null);e["default"]=u.exports},"5ef1":function(t,e,a){},b28c:function(t,e,a){"use strict";a("5ef1")}}]); \ No newline at end of file diff --git a/public/mer/js/chunk-4428d098.763673e0.js b/public/mer/js/chunk-4428d098.5964ddab.js similarity index 98% rename from public/mer/js/chunk-4428d098.763673e0.js rename to public/mer/js/chunk-4428d098.5964ddab.js index 48c204ce..0982d72b 100644 --- a/public/mer/js/chunk-4428d098.763673e0.js +++ b/public/mer/js/chunk-4428d098.5964ddab.js @@ -1 +1 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4428d098"],{"0b69":function(t,e,a){"use strict";a("26bb")},"0e41":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"divBox"},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("div",{staticClass:"container"},[a("el-form",{attrs:{size:"small","label-width":"120px"}},[a("el-form-item",{staticClass:"width100",attrs:{label:"时间选择:"}},[a("el-radio-group",{staticClass:"mr20",attrs:{type:"button",size:"small"},on:{change:function(e){return t.selectChange(t.tableFrom.date)}},model:{value:t.tableFrom.date,callback:function(e){t.$set(t.tableFrom,"date",e)},expression:"tableFrom.date"}},t._l(t.fromList.fromTxt,(function(e,i){return a("el-radio-button",{key:i,attrs:{label:e.val}},[t._v(t._s(e.text))])})),1),t._v(" "),a("el-date-picker",{staticStyle:{width:"250px"},attrs:{"value-format":"yyyy/MM/dd",format:"yyyy/MM/dd",size:"small",type:"daterange",placement:"bottom-end",placeholder:"自定义时间"},on:{change:t.onchangeTime},model:{value:t.timeVal,callback:function(e){t.timeVal=e},expression:"timeVal"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"商品搜索:"}},[a("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入商品名称/ID"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getList(1)}},model:{value:t.tableFrom.keyword,callback:function(e){t.$set(t.tableFrom,"keyword",e)},expression:"tableFrom.keyword"}},[a("el-button",{staticClass:"el-button-solt",attrs:{slot:"append",icon:"el-icon-search"},on:{click:function(e){return t.getList(1)}},slot:"append"})],1)],1),t._v(" "),a("el-form-item",{attrs:{label:"发起人搜索:"}},[a("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入发起人昵称"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getList(1)}},model:{value:t.tableFrom.user_name,callback:function(e){t.$set(t.tableFrom,"user_name",e)},expression:"tableFrom.user_name"}},[a("el-button",{staticClass:"el-button-solt",attrs:{slot:"append",icon:"el-icon-search"},on:{click:function(e){return t.getList(1)}},slot:"append"})],1)],1)],1)],1)]),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{data:t.tableData.data,size:"mini"}},[a("el-table-column",{attrs:{prop:"product_assist_set_id",label:"ID","min-width":"50"}}),t._v(" "),a("el-table-column",{attrs:{label:"助力商品图片","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"demo-image__preview"},[e.row.product?a("el-image",{attrs:{src:e.row.product.image,"preview-src-list":[e.row.product.image]}}):t._e()],1)]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"商品名称","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.assist.store_name))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"助力价格","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.assist&&e.row.assist.assistSku[0].assist_price||""))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"assist_count",label:"助力人数","min-width":"90"}}),t._v(" "),a("el-table-column",{attrs:{label:"发起人","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.user&&e.row.user.nickname||""))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"create_time",label:"发起时间","min-width":"130"}}),t._v(" "),a("el-table-column",{attrs:{prop:"yet_assist_count",label:"已参与人数","min-width":"130"}}),t._v(" "),a("el-table-column",{attrs:{label:"活动时间","min-width":"160"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v("开始日期:"+t._s(e.row.assist&&e.row.assist.start_time?e.row.assist.start_time.slice(0,10):""))]),t._v(" "),a("div",[t._v("结束日期:"+t._s(e.row.assist.end_time&&e.row.assist.end_time?e.row.assist.end_time.slice(0,10):""))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作","min-width":"150",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{staticClass:"mr10",attrs:{type:"text",size:"small"},on:{click:function(a){return t.goDetail(e.row.product_assist_set_id)}}},[t._v("查看详情")])]}}])})],1),t._v(" "),a("div",{staticClass:"block"},[a("el-pagination",{attrs:{"page-sizes":[20,40,60,80],"page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"total, sizes, prev, pager, next, jumper",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1),t._v(" "),a("details-data",{ref:"detailsData",attrs:{"is-show":t.isShowDetail}})],1)},l=[],s=a("c4c8"),n=a("83d6"),o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return t.dialogVisible?a("el-dialog",{attrs:{title:"查看详情",visible:t.dialogVisible,width:"700px"},on:{"update:visible":function(e){t.dialogVisible=e}}},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{data:t.tableData.data,size:"mini"}},[a("el-table-column",{attrs:{prop:"uid",label:"ID","min-width":"80"}}),t._v(" "),a("el-table-column",{attrs:{prop:"nickname",label:"用户名称","min-width":"120"}}),t._v(" "),a("el-table-column",{attrs:{label:"用户头像","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(t){return[a("div",{staticClass:"demo-image__preview"},[a("el-image",{staticStyle:{width:"36px",height:"36px"},attrs:{src:t.row.avatar_img,"preview-src-list":[t.row.avatar_img]}})],1)]}}],null,!1,3385799628)}),t._v(" "),a("el-table-column",{attrs:{prop:"create_time",label:"参与时间","min-width":"200"}})],1),t._v(" "),a("div",{staticClass:"block mb20"},[a("el-pagination",{attrs:{"page-sizes":[20,40,60,80],"page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"total, sizes, prev, pager, next, jumper",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1):t._e()},r=[],c={name:"Info",props:{isShow:{type:Boolean,default:!0}},data:function(){return{id:"",loading:!1,dialogVisible:!1,tableData:{data:[],total:0},tableFrom:{page:1,limit:20}}},computed:{},methods:{getList:function(t){var e=this;this.id=t,this.listLoading=!0,Object(s["c"])(this.id,this.tableFrom).then((function(t){e.tableData.data=t.data.list,e.tableData.total=t.data.count,e.listLoading=!1})).catch((function(t){e.listLoading=!1,e.$message.error(t.message)}))},pageChange:function(t){this.tableFrom.page=t,this.getList(this.id)},handleSizeChange:function(t){this.tableFrom.limit=t,this.getList(this.id)}}},d=c,u=(a("0b69"),a("2877")),m=Object(u["a"])(d,o,r,!1,null,"56894922",null),b=m.exports,p={name:"ProductList",components:{detailsData:b},data:function(){return{props:{emitPath:!1},roterPre:n["roterPre"],listLoading:!0,tableData:{data:[],total:0},assistStatusList:[{label:"未开始",value:0},{label:"正在进行",value:1},{label:"已结束",value:2}],fromList:{title:"选择时间",custom:!0,fromTxt:[{text:"全部",val:""},{text:"今天",val:"today"},{text:"昨天",val:"yesterday"},{text:"最近7天",val:"lately7"},{text:"最近30天",val:"lately30"},{text:"本月",val:"month"},{text:"本年",val:"year"}]},tableFrom:{page:1,limit:20,keyword:"",date:"",type:"",user_name:""},modals:!1,dialogVisible:!1,loading:!1,manyTabTit:{},manyTabDate:{},attrInfo:{},timeVal:"",isShowDetail:!1}},mounted:function(){this.getList("")},methods:{watCh:function(){},goDetail:function(t){this.$refs.detailsData.dialogVisible=!0,this.isShowDetail=!0,this.$refs.detailsData.getList(t)},selectChange:function(t){this.tableFrom.date=t,this.tableFrom.page=1,this.timeVal=[],this.getList("")},onchangeTime:function(t){this.timeVal=t,this.tableFrom.date=t?this.timeVal.join("-"):"",this.tableFrom.page=1,this.getList("")},getList:function(t){var e=this;this.listLoading=!0,this.tableFrom.page=t||this.tableFrom.page,Object(s["d"])(this.tableFrom).then((function(t){e.tableData.data=t.data.list,e.tableData.total=t.data.count,e.listLoading=!1})).catch((function(t){e.listLoading=!1,e.$message.error(t.message)}))},pageChange:function(t){this.tableFrom.page=t,this.getList("")},handleSizeChange:function(t){this.tableFrom.limit=t,this.getList("")}}},h=p,g=(a("6e9f"),Object(u["a"])(h,i,l,!1,null,"4bf39339",null));e["default"]=g.exports},"26bb":function(t,e,a){},"6e9f":function(t,e,a){"use strict";a("b8b9")},b8b9:function(t,e,a){}}]); \ No newline at end of file +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4428d098"],{"0b69":function(t,e,a){"use strict";a("26bb")},"0e41":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"divBox"},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("div",{staticClass:"container"},[a("el-form",{attrs:{size:"small","label-width":"120px"}},[a("el-form-item",{staticClass:"width100",attrs:{label:"时间选择:"}},[a("el-radio-group",{staticClass:"mr20",attrs:{type:"button",size:"small"},on:{change:function(e){return t.selectChange(t.tableFrom.date)}},model:{value:t.tableFrom.date,callback:function(e){t.$set(t.tableFrom,"date",e)},expression:"tableFrom.date"}},t._l(t.fromList.fromTxt,(function(e,i){return a("el-radio-button",{key:i,attrs:{label:e.val}},[t._v(t._s(e.text))])})),1),t._v(" "),a("el-date-picker",{staticStyle:{width:"250px"},attrs:{"value-format":"yyyy/MM/dd",format:"yyyy/MM/dd",size:"small",type:"daterange",placement:"bottom-end",placeholder:"自定义时间"},on:{change:t.onchangeTime},model:{value:t.timeVal,callback:function(e){t.timeVal=e},expression:"timeVal"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"商品搜索:"}},[a("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入商品名称/ID"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getList(1)}},model:{value:t.tableFrom.keyword,callback:function(e){t.$set(t.tableFrom,"keyword",e)},expression:"tableFrom.keyword"}},[a("el-button",{staticClass:"el-button-solt",attrs:{slot:"append",icon:"el-icon-search"},on:{click:function(e){return t.getList(1)}},slot:"append"})],1)],1),t._v(" "),a("el-form-item",{attrs:{label:"发起人搜索:"}},[a("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入发起人昵称"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getList(1)}},model:{value:t.tableFrom.user_name,callback:function(e){t.$set(t.tableFrom,"user_name",e)},expression:"tableFrom.user_name"}},[a("el-button",{staticClass:"el-button-solt",attrs:{slot:"append",icon:"el-icon-search"},on:{click:function(e){return t.getList(1)}},slot:"append"})],1)],1)],1)],1)]),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{data:t.tableData.data,size:"mini"}},[a("el-table-column",{attrs:{prop:"product_assist_set_id",label:"ID","min-width":"50"}}),t._v(" "),a("el-table-column",{attrs:{label:"助力商品图片","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"demo-image__preview"},[e.row.product?a("el-image",{attrs:{src:e.row.product.image,"preview-src-list":[e.row.product.image]}}):t._e()],1)]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"商品名称","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.assist.store_name))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"助力价格","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.assist&&e.row.assist.assistSku[0].assist_price||""))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"assist_count",label:"助力人数","min-width":"90"}}),t._v(" "),a("el-table-column",{attrs:{label:"发起人","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.user&&e.row.user.nickname||""))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"create_time",label:"发起时间","min-width":"130"}}),t._v(" "),a("el-table-column",{attrs:{prop:"yet_assist_count",label:"已参与人数","min-width":"130"}}),t._v(" "),a("el-table-column",{attrs:{label:"活动时间","min-width":"160"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v("开始日期:"+t._s(e.row.assist&&e.row.assist.start_time?e.row.assist.start_time.slice(0,10):""))]),t._v(" "),a("div",[t._v("结束日期:"+t._s(e.row.assist.end_time&&e.row.assist.end_time?e.row.assist.end_time.slice(0,10):""))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作","min-width":"150",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{staticClass:"mr10",attrs:{type:"text",size:"small"},on:{click:function(a){return t.goDetail(e.row.product_assist_set_id)}}},[t._v("查看详情")])]}}])})],1),t._v(" "),a("div",{staticClass:"block"},[a("el-pagination",{attrs:{"page-sizes":[20,40,60,80],"page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"total, sizes, prev, pager, next, jumper",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1),t._v(" "),a("details-data",{ref:"detailsData",attrs:{"is-show":t.isShowDetail}})],1)},l=[],s=a("c4c8"),n=a("83d6"),o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return t.dialogVisible?a("el-dialog",{attrs:{title:"查看详情",visible:t.dialogVisible,width:"700px"},on:{"update:visible":function(e){t.dialogVisible=e}}},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{data:t.tableData.data,size:"mini"}},[a("el-table-column",{attrs:{prop:"uid",label:"ID","min-width":"80"}}),t._v(" "),a("el-table-column",{attrs:{prop:"nickname",label:"用户名称","min-width":"120"}}),t._v(" "),a("el-table-column",{attrs:{label:"用户头像","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(t){return[a("div",{staticClass:"demo-image__preview"},[a("el-image",{staticStyle:{width:"36px",height:"36px"},attrs:{src:t.row.avatar_img,"preview-src-list":[t.row.avatar_img]}})],1)]}}],null,!1,3385799628)}),t._v(" "),a("el-table-column",{attrs:{prop:"create_time",label:"参与时间","min-width":"200"}})],1),t._v(" "),a("div",{staticClass:"block mb20"},[a("el-pagination",{attrs:{"page-sizes":[20,40,60,80],"page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"total, sizes, prev, pager, next, jumper",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1):t._e()},r=[],c={name:"Info",props:{isShow:{type:Boolean,default:!0}},data:function(){return{id:"",loading:!1,dialogVisible:!1,tableData:{data:[],total:0},tableFrom:{page:1,limit:20}}},computed:{},methods:{getList:function(t){var e=this;this.id=t,this.listLoading=!0,Object(s["d"])(this.id,this.tableFrom).then((function(t){e.tableData.data=t.data.list,e.tableData.total=t.data.count,e.listLoading=!1})).catch((function(t){e.listLoading=!1,e.$message.error(t.message)}))},pageChange:function(t){this.tableFrom.page=t,this.getList(this.id)},handleSizeChange:function(t){this.tableFrom.limit=t,this.getList(this.id)}}},d=c,u=(a("0b69"),a("2877")),m=Object(u["a"])(d,o,r,!1,null,"56894922",null),b=m.exports,p={name:"ProductList",components:{detailsData:b},data:function(){return{props:{emitPath:!1},roterPre:n["roterPre"],listLoading:!0,tableData:{data:[],total:0},assistStatusList:[{label:"未开始",value:0},{label:"正在进行",value:1},{label:"已结束",value:2}],fromList:{title:"选择时间",custom:!0,fromTxt:[{text:"全部",val:""},{text:"今天",val:"today"},{text:"昨天",val:"yesterday"},{text:"最近7天",val:"lately7"},{text:"最近30天",val:"lately30"},{text:"本月",val:"month"},{text:"本年",val:"year"}]},tableFrom:{page:1,limit:20,keyword:"",date:"",type:"",user_name:""},modals:!1,dialogVisible:!1,loading:!1,manyTabTit:{},manyTabDate:{},attrInfo:{},timeVal:"",isShowDetail:!1}},mounted:function(){this.getList("")},methods:{watCh:function(){},goDetail:function(t){this.$refs.detailsData.dialogVisible=!0,this.isShowDetail=!0,this.$refs.detailsData.getList(t)},selectChange:function(t){this.tableFrom.date=t,this.tableFrom.page=1,this.timeVal=[],this.getList("")},onchangeTime:function(t){this.timeVal=t,this.tableFrom.date=t?this.timeVal.join("-"):"",this.tableFrom.page=1,this.getList("")},getList:function(t){var e=this;this.listLoading=!0,this.tableFrom.page=t||this.tableFrom.page,Object(s["e"])(this.tableFrom).then((function(t){e.tableData.data=t.data.list,e.tableData.total=t.data.count,e.listLoading=!1})).catch((function(t){e.listLoading=!1,e.$message.error(t.message)}))},pageChange:function(t){this.tableFrom.page=t,this.getList("")},handleSizeChange:function(t){this.tableFrom.limit=t,this.getList("")}}},h=p,g=(a("6e9f"),Object(u["a"])(h,i,l,!1,null,"4bf39339",null));e["default"]=g.exports},"26bb":function(t,e,a){},"6e9f":function(t,e,a){"use strict";a("b8b9")},b8b9:function(t,e,a){}}]); \ No newline at end of file diff --git a/public/mer/js/chunk-59e52b70.7b18a2f1.js b/public/mer/js/chunk-59e52b70.28b87cb7.js similarity index 95% rename from public/mer/js/chunk-59e52b70.7b18a2f1.js rename to public/mer/js/chunk-59e52b70.28b87cb7.js index 10d8e080..692b0be7 100644 --- a/public/mer/js/chunk-59e52b70.7b18a2f1.js +++ b/public/mer/js/chunk-59e52b70.28b87cb7.js @@ -1 +1 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-59e52b70"],{"056a":function(A,t){A.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQQAAACUCAYAAAB1GVf9AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAABBKADAAQAAAABAAAAlAAAAAD7OG/zAAAH8ElEQVR4Ae3dWXPUOBQGUGcYoKCAByi2///f2LewE5bAzVSXIBPfdu8y9/gFpdVedKT+4pbtcHRycnI6WAgQIPBL4B8KBAgQWAgIhIWEfwkQcIZgDBAg0AScITQLJQLlBQRC+SEAgEATEAjNQolAeQGBUH4IACDQBARCs1AiUF5AIJQfAgAINAGB0CyUCJQXEAjlhwAAAk1AIDQLJQLlBQRC+SEAgEATEAjNQolAeQGBUH4IACDQBARCs1AiUF5AIJQfAgAINAGB0CyUCJQXEAjlhwAAAk1AIDQLJQLlBQRC+SEAgEATEAjNQolAeQGBUH4IACDQBARCs1AiUF5AIJQfAgAINAGB0CyUCJQXEAjlhwAAAk1AIDQLJQLlBQRC+SEAgEATEAjNQolAeQGBUH4IACDQBARCs1AiUF5AIJQfAgAINAGB0CyUCJQXEAjlhwAAAk1AIDQLJQLlBQRC+SEAgEATEAjNQolAeQGBUH4IACDQBARCs1AiUF5AIJQfAgAINAGB0CyUCJQXEAjlhwAAAk1AIDQLJQLlBQRC+SEAgEATEAjNQolAeQGBUH4IACDQBARCs1AiUF5AIJQfAgAINAGB0CyUCJQXEAjlhwAAAk1AIDQLJQLlBQRC+SEAgEATEAjNQolAeQGBUH4IACDQBP5tRaW5CLx//374+PHjcHJyMnz//n24dOnScOXKleH69evDjRs35tIMx9mhwNGvQXXa4XE5pAsEvn79Orx8+XL48uXLBbX/vXT16tXhzp07w+XLl0ffo4LAmIBAGJPp7PUIgadPnw6np8vz++joaLh///4Q4WAhsIqAOYRVtA703giB58+fTwqDOMRV379Jsz5//jwcHx9vsgnrdiQgEDrqjLFDefv27dlcwVj9Ra/H3EKst8vl27dvZ0H15s2bs/mMXe7LtvcjIBD247zRXj59+rTW+uuuN2VncRby4sWL4cePH2dvj7kNy/wFBMIM+jCuJqyzrLvelH29evXqj8nN2FecKVjmLSAQ5t1/Bzn6d+/eDXHp8/wScwm7DKHz+/Pz9gUEwvZNt77FuMdgnWXd9bJ9xdWOODsYW3x1GJOZx+sCYQb9dO3atbWOct31xnYWE5VxtSNb4gzh9evX2VvUdSwgEDrunMWh3bp16+xuxMXPU/6NuxdjvalLXD5ctjx79mzS1Y64uuGrwzLNPusFQp/98sdRxY1Gd+/eHeLfKcuq74/T/Ljp6cOHD6Obj/es8iGPKxBTbqIa3aGKgwgIhIOwr77TuOvw4cOHS+8+nPq+xRHElYHFBGF8iOMZifNL1C/ec75u7Oe4zdpVhzGdfl9363K/fTN6ZPHh3MbDTbGdiyYB7927NyzmH2IS8cmTJ6PHsqziwYMHS0Ns2TbU709AIOzPuqs9RaBkE4TxLEQ8IPX48eNJ8wZjjYttxJnN1K87Y9vx+n4EBMJ+nLvay5QHpeIDHB/mVeYNxhp58+bN4fbt22PVXu9IwBxCR52xj0OJD3hcLVg24Rf12wiDaFPcyBQhZOlfQCD030dbO8J4GCnCYPH8wdY2PGFDrjpMQOrgLQKhg07YxyFECEy9j2AXxxNhlN3huIt92ubqAgJhdbPZrRGn/3GfQVwKPOQSVzWm3AB1yGOsvm+BUGAExNWEbc0HbMoVlzmXzV9sug/rry8gENa3m8Wa8QHc5d9FWBUhvjp41mFVtf29XyDsz3pre4r5gHjQaNkSH7xV7zBcts1t1MdVh55Cahtt+lu2IRBm1pPxQXr06NHZ3YPZnEB86Hb9J9Q2oYszl0Nc7djkmCusKxBm0svxvTtm6RdXCuLUO24pvuj6fjyk1PuMfpzh+OrQ3+ATCP31yf+OKCYE48Mfv/V/X+I3bFw9+P2BpJjFj2v+c1h6/DozB7ddHqP/uWmXulvYdoRA9ts+zhziKkL85yzxF5LiDMJCYF0BgbCu3I7Xi1PqVa4QxHvj+QOX9HbcMX/55gVChx0cXwHWmXQTBh125swOSSB01mERBL5bd9YphQ7HpGJnnS0MOuuQYocjEIp1uOYSyAQEQqajjkAxAYFQrMM1l0AmIBAyHXUEigkIhGIdrrkEMgGBkOmoI1BMwF9dLtbhmksgE3CGkOmoI1BMQCAU63DNJZAJCIRMRx2BYgICoViHay6BTEAgZDrqCBQTEAjFOlxzCWQCAiHTUUegmIBAKNbhmksgExAImY46AsUEBEKxDtdcApmAQMh01BEoJiAQinW45hLIBARCpqOOQDEBgVCswzWXQCYgEDIddQSKCQiEYh2uuQQyAYGQ6agjUExAIBTrcM0lkAkIhExHHYFiAgKhWIdrLoFMQCBkOuoIFBMQCMU6XHMJZAICIdNRR6CYgEAo1uGaSyATEAiZjjoCxQQEQrEO11wCmYBAyHTUESgmIBCKdbjmEsgEBEKmo45AMQGBUKzDNZdAJiAQMh11BIoJCIRiHa65BDIBgZDpqCNQTEAgFOtwzSWQCQiETEcdgWICAqFYh2sugUxAIGQ66ggUExAIxTpccwlkAgIh01FHoJiAQCjW4ZpLIBMQCJmOOgLFBARCsQ7XXAKZgEDIdNQRKCYgEIp1uOYSyAQEQqajjkAxAYFQrMM1l0AmIBAyHXUEigkIhGIdrrkEMgGBkOmoI1BMQCAU63DNJZAJCIRMRx2BYgICoViHay6BTEAgZDrqCBQTEAjFOlxzCWQCPwEYef7DpS5s4AAAAABJRU5ErkJggg=="},"400e":function(A,t,e){"use strict";e.r(t);var s=function(){var A=this,t=A.$createElement,e=A._self._c||t;return e("div",{staticClass:"divBox"},[e("el-card",{staticClass:"box-card"},[e("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[e("el-button",{attrs:{size:"small",type:"primary"},on:{click:A.onAdd}},[A._v("添加商品分类")])],1),A._v(" "),e("el-table",{directives:[{name:"loading",rawName:"v-loading",value:A.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{data:A.tableData.data,size:"samll","highlight-current-row":"","row-key":"store_category_id","default-expand-all":!1,"tree-props":{children:"children",hasChildren:"hasChildren"}}},[e("el-table-column",{attrs:{label:"分类名称","min-width":"200"},scopedSlots:A._u([{key:"default",fn:function(t){return[e("span",[A._v(A._s(t.row.cate_name+" [ "+t.row.store_category_id+" ]"))])]}}])}),A._v(" "),e("el-table-column",{attrs:{label:"分类图标","min-width":"80"},scopedSlots:A._u([{key:"default",fn:function(t){return[e("div",{staticClass:"demo-image__preview"},[e("el-image",{staticStyle:{width:"36px",height:"36px"},attrs:{src:t.row.pic?t.row.pic:A.moren,"preview-src-list":[t.row.pic?t.row.pic:A.moren]}})],1)]}}])}),A._v(" "),e("el-table-column",{attrs:{prop:"sort",label:"排序","min-width":"50"}}),A._v(" "),e("el-table-column",{attrs:{prop:"status",label:"是否显示","min-width":"100"},scopedSlots:A._u([{key:"default",fn:function(t){return[e("el-switch",{attrs:{"active-value":1,"inactive-value":0,"active-text":"显示","inactive-text":"隐藏"},on:{change:function(e){return A.onchangeIsShow(t.row)}},model:{value:t.row.is_show,callback:function(e){A.$set(t.row,"is_show",e)},expression:"scope.row.is_show"}})]}}])}),A._v(" "),e("el-table-column",{attrs:{prop:"create_time",label:"创建时间","min-width":"150"}}),A._v(" "),e("el-table-column",{attrs:{label:"操作","min-width":"100",fixed:"right"},scopedSlots:A._u([{key:"default",fn:function(t){return[e("el-button",{attrs:{type:"text",size:"small"},on:{click:function(e){return A.onEdit(t.row.store_category_id)}}},[A._v("编辑")]),A._v(" "),e("el-button",{attrs:{type:"text",size:"small"},on:{click:function(e){return A.handleDelete(t.row.store_category_id,t.$index)}}},[A._v("删除")])]}}])})],1)],1)],1)},a=[],i=e("c4c8"),n={name:"ProductClassify",data:function(){return{moren:e("056a"),isChecked:!1,listLoading:!0,tableData:{data:[],total:0}}},mounted:function(){this.getList()},methods:{getList:function(){var A=this;this.listLoading=!0,Object(i["Lb"])().then((function(t){A.tableData.data=t.data,A.listLoading=!1})).catch((function(t){A.listLoading=!1,A.$message.error(t.message)}))},onAdd:function(){var A=this;this.$modalForm(Object(i["Jb"])()).then((function(){return A.getList()}))},onEdit:function(A){var t=this;this.$modalForm(Object(i["Nb"])(A)).then((function(){return t.getList()}))},handleDelete:function(A,t){var e=this;this.$modalSure("删除该分类").then((function(){Object(i["Kb"])(A).then((function(A){var t=A.message;e.$message.success(t),e.getList()})).catch((function(A){var t=A.message;e.$message.error(t)}))}))},onchangeIsShow:function(A){var t=this;Object(i["Mb"])(A.store_category_id,A.is_show).then((function(A){var e=A.message;t.$message.success(e)})).catch((function(A){var e=A.message;t.$message.error(e)}))}}},o=n,l=e("2877"),r=Object(l["a"])(o,s,a,!1,null,"943bd6ae",null);t["default"]=r.exports}}]); \ No newline at end of file +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-59e52b70"],{"056a":function(A,t){A.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQQAAACUCAYAAAB1GVf9AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAABBKADAAQAAAABAAAAlAAAAAD7OG/zAAAH8ElEQVR4Ae3dWXPUOBQGUGcYoKCAByi2///f2LewE5bAzVSXIBPfdu8y9/gFpdVedKT+4pbtcHRycnI6WAgQIPBL4B8KBAgQWAgIhIWEfwkQcIZgDBAg0AScITQLJQLlBQRC+SEAgEATEAjNQolAeQGBUH4IACDQBARCs1AiUF5AIJQfAgAINAGB0CyUCJQXEAjlhwAAAk1AIDQLJQLlBQRC+SEAgEATEAjNQolAeQGBUH4IACDQBARCs1AiUF5AIJQfAgAINAGB0CyUCJQXEAjlhwAAAk1AIDQLJQLlBQRC+SEAgEATEAjNQolAeQGBUH4IACDQBARCs1AiUF5AIJQfAgAINAGB0CyUCJQXEAjlhwAAAk1AIDQLJQLlBQRC+SEAgEATEAjNQolAeQGBUH4IACDQBARCs1AiUF5AIJQfAgAINAGB0CyUCJQXEAjlhwAAAk1AIDQLJQLlBQRC+SEAgEATEAjNQolAeQGBUH4IACDQBARCs1AiUF5AIJQfAgAINAGB0CyUCJQXEAjlhwAAAk1AIDQLJQLlBQRC+SEAgEATEAjNQolAeQGBUH4IACDQBARCs1AiUF5AIJQfAgAINAGB0CyUCJQXEAjlhwAAAk1AIDQLJQLlBQRC+SEAgEATEAjNQolAeQGBUH4IACDQBP5tRaW5CLx//374+PHjcHJyMnz//n24dOnScOXKleH69evDjRs35tIMx9mhwNGvQXXa4XE5pAsEvn79Orx8+XL48uXLBbX/vXT16tXhzp07w+XLl0ffo4LAmIBAGJPp7PUIgadPnw6np8vz++joaLh///4Q4WAhsIqAOYRVtA703giB58+fTwqDOMRV379Jsz5//jwcHx9vsgnrdiQgEDrqjLFDefv27dlcwVj9Ra/H3EKst8vl27dvZ0H15s2bs/mMXe7LtvcjIBD247zRXj59+rTW+uuuN2VncRby4sWL4cePH2dvj7kNy/wFBMIM+jCuJqyzrLvelH29evXqj8nN2FecKVjmLSAQ5t1/Bzn6d+/eDXHp8/wScwm7DKHz+/Pz9gUEwvZNt77FuMdgnWXd9bJ9xdWOODsYW3x1GJOZx+sCYQb9dO3atbWOct31xnYWE5VxtSNb4gzh9evX2VvUdSwgEDrunMWh3bp16+xuxMXPU/6NuxdjvalLXD5ctjx79mzS1Y64uuGrwzLNPusFQp/98sdRxY1Gd+/eHeLfKcuq74/T/Ljp6cOHD6Obj/es8iGPKxBTbqIa3aGKgwgIhIOwr77TuOvw4cOHS+8+nPq+xRHElYHFBGF8iOMZifNL1C/ec75u7Oe4zdpVhzGdfl9363K/fTN6ZPHh3MbDTbGdiyYB7927NyzmH2IS8cmTJ6PHsqziwYMHS0Ns2TbU709AIOzPuqs9RaBkE4TxLEQ8IPX48eNJ8wZjjYttxJnN1K87Y9vx+n4EBMJ+nLvay5QHpeIDHB/mVeYNxhp58+bN4fbt22PVXu9IwBxCR52xj0OJD3hcLVg24Rf12wiDaFPcyBQhZOlfQCD030dbO8J4GCnCYPH8wdY2PGFDrjpMQOrgLQKhg07YxyFECEy9j2AXxxNhlN3huIt92ubqAgJhdbPZrRGn/3GfQVwKPOQSVzWm3AB1yGOsvm+BUGAExNWEbc0HbMoVlzmXzV9sug/rry8gENa3m8Wa8QHc5d9FWBUhvjp41mFVtf29XyDsz3pre4r5gHjQaNkSH7xV7zBcts1t1MdVh55Cahtt+lu2IRBm1pPxQXr06NHZ3YPZnEB86Hb9J9Q2oYszl0Nc7djkmCusKxBm0svxvTtm6RdXCuLUO24pvuj6fjyk1PuMfpzh+OrQ3+ATCP31yf+OKCYE48Mfv/V/X+I3bFw9+P2BpJjFj2v+c1h6/DozB7ddHqP/uWmXulvYdoRA9ts+zhziKkL85yzxF5LiDMJCYF0BgbCu3I7Xi1PqVa4QxHvj+QOX9HbcMX/55gVChx0cXwHWmXQTBh125swOSSB01mERBL5bd9YphQ7HpGJnnS0MOuuQYocjEIp1uOYSyAQEQqajjkAxAYFQrMM1l0AmIBAyHXUEigkIhGIdrrkEMgGBkOmoI1BMwF9dLtbhmksgE3CGkOmoI1BMQCAU63DNJZAJCIRMRx2BYgICoViHay6BTEAgZDrqCBQTEAjFOlxzCWQCAiHTUUegmIBAKNbhmksgExAImY46AsUEBEKxDtdcApmAQMh01BEoJiAQinW45hLIBARCpqOOQDEBgVCswzWXQCYgEDIddQSKCQiEYh2uuQQyAYGQ6agjUExAIBTrcM0lkAkIhExHHYFiAgKhWIdrLoFMQCBkOuoIFBMQCMU6XHMJZAICIdNRR6CYgEAo1uGaSyATEAiZjjoCxQQEQrEO11wCmYBAyHTUESgmIBCKdbjmEsgEBEKmo45AMQGBUKzDNZdAJiAQMh11BIoJCIRiHa65BDIBgZDpqCNQTEAgFOtwzSWQCQiETEcdgWICAqFYh2sugUxAIGQ66ggUExAIxTpccwlkAgIh01FHoJiAQCjW4ZpLIBMQCJmOOgLFBARCsQ7XXAKZgEDIdNQRKCYgEIp1uOYSyAQEQqajjkAxAYFQrMM1l0AmIBAyHXUEigkIhGIdrrkEMgGBkOmoI1BMQCAU63DNJZAJCIRMRx2BYgICoViHay6BTEAgZDrqCBQTEAjFOlxzCWQCPwEYef7DpS5s4AAAAABJRU5ErkJggg=="},"400e":function(A,t,e){"use strict";e.r(t);var s=function(){var A=this,t=A.$createElement,e=A._self._c||t;return e("div",{staticClass:"divBox"},[e("el-card",{staticClass:"box-card"},[e("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[e("el-button",{attrs:{size:"small",type:"primary"},on:{click:A.onAdd}},[A._v("添加商品分类")])],1),A._v(" "),e("el-table",{directives:[{name:"loading",rawName:"v-loading",value:A.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{data:A.tableData.data,size:"samll","highlight-current-row":"","row-key":"store_category_id","default-expand-all":!1,"tree-props":{children:"children",hasChildren:"hasChildren"}}},[e("el-table-column",{attrs:{label:"分类名称","min-width":"200"},scopedSlots:A._u([{key:"default",fn:function(t){return[e("span",[A._v(A._s(t.row.cate_name+" [ "+t.row.store_category_id+" ]"))])]}}])}),A._v(" "),e("el-table-column",{attrs:{label:"分类图标","min-width":"80"},scopedSlots:A._u([{key:"default",fn:function(t){return[e("div",{staticClass:"demo-image__preview"},[e("el-image",{staticStyle:{width:"36px",height:"36px"},attrs:{src:t.row.pic?t.row.pic:A.moren,"preview-src-list":[t.row.pic?t.row.pic:A.moren]}})],1)]}}])}),A._v(" "),e("el-table-column",{attrs:{prop:"sort",label:"排序","min-width":"50"}}),A._v(" "),e("el-table-column",{attrs:{prop:"status",label:"是否显示","min-width":"100"},scopedSlots:A._u([{key:"default",fn:function(t){return[e("el-switch",{attrs:{"active-value":1,"inactive-value":0,"active-text":"显示","inactive-text":"隐藏"},on:{change:function(e){return A.onchangeIsShow(t.row)}},model:{value:t.row.is_show,callback:function(e){A.$set(t.row,"is_show",e)},expression:"scope.row.is_show"}})]}}])}),A._v(" "),e("el-table-column",{attrs:{prop:"create_time",label:"创建时间","min-width":"150"}}),A._v(" "),e("el-table-column",{attrs:{label:"操作","min-width":"100",fixed:"right"},scopedSlots:A._u([{key:"default",fn:function(t){return[e("el-button",{attrs:{type:"text",size:"small"},on:{click:function(e){return A.onEdit(t.row.store_category_id)}}},[A._v("编辑")]),A._v(" "),e("el-button",{attrs:{type:"text",size:"small"},on:{click:function(e){return A.handleDelete(t.row.store_category_id,t.$index)}}},[A._v("删除")])]}}])})],1)],1)],1)},a=[],i=e("c4c8"),n={name:"ProductClassify",data:function(){return{moren:e("056a"),isChecked:!1,listLoading:!0,tableData:{data:[],total:0}}},mounted:function(){this.getList()},methods:{getList:function(){var A=this;this.listLoading=!0,Object(i["Nb"])().then((function(t){A.tableData.data=t.data,A.listLoading=!1})).catch((function(t){A.listLoading=!1,A.$message.error(t.message)}))},onAdd:function(){var A=this;this.$modalForm(Object(i["Lb"])()).then((function(){return A.getList()}))},onEdit:function(A){var t=this;this.$modalForm(Object(i["Pb"])(A)).then((function(){return t.getList()}))},handleDelete:function(A,t){var e=this;this.$modalSure("删除该分类").then((function(){Object(i["Mb"])(A).then((function(A){var t=A.message;e.$message.success(t),e.getList()})).catch((function(A){var t=A.message;e.$message.error(t)}))}))},onchangeIsShow:function(A){var t=this;Object(i["Ob"])(A.store_category_id,A.is_show).then((function(A){var e=A.message;t.$message.success(e)})).catch((function(A){var e=A.message;t.$message.error(e)}))}}},o=n,l=e("2877"),r=Object(l["a"])(o,s,a,!1,null,"943bd6ae",null);t["default"]=r.exports}}]); \ No newline at end of file diff --git a/public/mer/js/chunk-634734f0.5ffc5539.js b/public/mer/js/chunk-634734f0.d0ecdaa2.js similarity index 58% rename from public/mer/js/chunk-634734f0.5ffc5539.js rename to public/mer/js/chunk-634734f0.d0ecdaa2.js index 6b8184bd..5a2314af 100644 --- a/public/mer/js/chunk-634734f0.5ffc5539.js +++ b/public/mer/js/chunk-634734f0.d0ecdaa2.js @@ -1 +1 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-634734f0"],{3910:function(e,t,a){"use strict";a("901b")},"443d":function(e,t,a){"use strict";a("817c")},"504c":function(e,t,a){var i=a("9e1e"),r=a("0d58"),l=a("6821"),s=a("52a7").f;e.exports=function(e){return function(t){var a,n=l(t),o=r(n),c=o.length,d=0,m=[];while(c>d)a=o[d++],i&&!s.call(n,a)||m.push(e?[a,n[a]]:n[a]);return m}}},"64a3":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"divBox"},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("el-steps",{attrs:{active:e.currentTab,"align-center":"","finish-status":"success"}},[a("el-step",{attrs:{title:"选择秒杀商品"}}),e._v(" "),a("el-step",{attrs:{title:"填写基础信息"}}),e._v(" "),a("el-step",{attrs:{title:"修改商品详情"}})],1)],1),e._v(" "),a("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.fullscreenLoading,expression:"fullscreenLoading"}],ref:"formValidate",staticClass:"formValidate mt20",attrs:{rules:e.ruleValidate,model:e.formValidate,"label-width":"120px"},nativeOn:{submit:function(e){e.preventDefault()}}},[a("div",{directives:[{name:"show",rawName:"v-show",value:0===e.currentTab,expression:"currentTab === 0"}],staticStyle:{overflow:"hidden"}},[a("el-row",{attrs:{gutter:24}},[a("el-col",e._b({},"el-col",e.grid2,!1),[a("el-form-item",{attrs:{label:"选择商品:",prop:"spike_image"}},[a("div",{staticClass:"upLoadPicBox",on:{click:function(t){return e.add()}}},[e.formValidate.spike_image?a("div",{staticClass:"pictrue"},[a("img",{attrs:{src:e.formValidate.spike_image}})]):a("div",{staticClass:"upLoad"},[a("i",{staticClass:"el-icon-camera cameraIconfont"})])])])],1)],1)],1),e._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:1===e.currentTab,expression:"currentTab === 1"}]},[a("el-row",{attrs:{gutter:24}},[a("el-col",e._b({},"el-col",e.grid2,!1),[a("el-form-item",{attrs:{label:"商品主图:",prop:"image"}},[a("div",{staticClass:"upLoadPicBox",on:{click:function(t){return e.modalPicTap("1")}}},[e.formValidate.image?a("div",{staticClass:"pictrue"},[a("img",{attrs:{src:e.formValidate.image}})]):a("div",{staticClass:"upLoad"},[a("i",{staticClass:"el-icon-camera cameraIconfont"})])])])],1),e._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"商品轮播图:",prop:"slider_image"}},[a("div",{staticClass:"acea-row"},[e._l(e.formValidate.slider_image,(function(t,i){return a("div",{key:i,staticClass:"pictrue",attrs:{draggable:"false"},on:{dragstart:function(a){return e.handleDragStart(a,t)},dragover:function(a){return a.preventDefault(),e.handleDragOver(a,t)},dragenter:function(a){return e.handleDragEnter(a,t)},dragend:function(a){return e.handleDragEnd(a,t)}}},[a("img",{attrs:{src:t}}),e._v(" "),a("i",{staticClass:"el-icon-error btndel",on:{click:function(t){return e.handleRemove(i)}}})])})),e._v(" "),e.formValidate.slider_image.length<10?a("div",{staticClass:"upLoadPicBox",on:{click:function(t){return e.modalPicTap("2")}}},[a("div",{staticClass:"upLoad"},[a("i",{staticClass:"el-icon-camera cameraIconfont"})])]):e._e()],2)])],1),e._v(" "),a("el-col",{staticClass:"sp100"},[a("el-form-item",{attrs:{label:"商品名称:",prop:"store_name"}},[a("el-input",{attrs:{placeholder:"请输入商品名称"},model:{value:e.formValidate.store_name,callback:function(t){e.$set(e.formValidate,"store_name",t)},expression:"formValidate.store_name"}})],1)],1)],1),e._v(" "),a("el-row",{attrs:{gutter:24}},[a("el-col",e._b({},"el-col",e.grid2,!1),[a("el-form-item",{attrs:{label:"秒杀商品关键字:"}},[a("el-input",{attrs:{placeholder:"请输入商品关键字"},model:{value:e.formValidate.keyword,callback:function(t){e.$set(e.formValidate,"keyword",t)},expression:"formValidate.keyword"}})],1)],1)],1),e._v(" "),a("el-row",{attrs:{gutter:24}},[a("el-col",{staticClass:"sp100"},[a("el-form-item",{attrs:{label:"秒杀活动简介:",prop:"store_info"}},[a("el-input",{attrs:{type:"textarea",rows:3,placeholder:"请输入秒杀活动简介"},model:{value:e.formValidate.store_info,callback:function(t){e.$set(e.formValidate,"store_info",t)},expression:"formValidate.store_info"}})],1)],1)],1),e._v(" "),a("el-row",{attrs:{gutter:24}},[a("el-col",e._b({},"el-col",e.grid2,!1),[a("el-form-item",{attrs:{label:"秒杀活动日期:"}},[a("i",{staticClass:"required"},[e._v("*")]),e._v(" "),a("el-date-picker",{attrs:{"value-format":"yyyy-MM-dd",format:"yyyy-MM-dd",size:"small",type:"daterange",placement:"bottom-end",placeholder:"请选择活动时间"},on:{change:e.onchangeTime},model:{value:e.timeVal,callback:function(t){e.timeVal=t},expression:"timeVal"}})],1)],1),e._v(" "),a("el-col",e._b({},"el-col",e.grid2,!1),[a("el-form-item",{attrs:{label:"活动日期内最多购买次数:",prop:"all_pay_count","label-width":"210px"}},[a("el-input-number",{model:{value:e.formValidate.all_pay_count,callback:function(t){e.$set(e.formValidate,"all_pay_count",t)},expression:"formValidate.all_pay_count"}})],1)],1),e._v(" "),a("el-col",e._b({},"el-col",e.grid2,!1),[a("el-form-item",{attrs:{label:"秒杀活动时间:"}},[a("i",{staticClass:"required"},[e._v("*")]),e._v(" "),a("div",{staticClass:"acea-row"},[a("el-select",{staticClass:"selWidthd mr20",attrs:{placeholder:"请选择"},on:{change:e.onchangeTime2},model:{value:e.timeVal2,callback:function(t){e.timeVal2=t},expression:"timeVal2"}},e._l(e.spikeTimeList,(function(e){return a("el-option",{key:e.seckill_time_id,attrs:{label:e.name,value:e.name}})})),1)],1)])],1),e._v(" "),a("el-col",e._b({},"el-col",e.grid2,!1),[a("el-form-item",{attrs:{label:"秒杀时间段内最多购买次数:",prop:"once_pay_count","label-width":"210px"}},[a("el-input-number",{model:{value:e.formValidate.once_pay_count,callback:function(t){e.$set(e.formValidate,"once_pay_count",t)},expression:"formValidate.once_pay_count"}})],1)],1),e._v(" "),a("el-col",e._b({},"el-col",e.grid2,!1),[a("el-form-item",{attrs:{label:"单位:",prop:"unit_name"}},[a("el-input",{staticStyle:{width:"250px"},attrs:{placeholder:"请输入单位"},model:{value:e.formValidate.unit_name,callback:function(t){e.$set(e.formValidate,"unit_name",t)},expression:"formValidate.unit_name"}})],1)],1),e._v(" "),a("el-col",e._b({},"el-col",e.grid2,!1),[a("el-form-item",{attrs:{label:"排序:","label-width":"210px"}},[a("el-input-number",{staticStyle:{width:"200px"},attrs:{placeholder:"请输入排序序号"},model:{value:e.formValidate.sort,callback:function(t){e.$set(e.formValidate,"sort",t)},expression:"formValidate.sort"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"送货方式:",prop:"delivery_way"}},[a("div",{staticClass:"acea-row"},[a("el-checkbox-group",{model:{value:e.formValidate.delivery_way,callback:function(t){e.$set(e.formValidate,"delivery_way",t)},expression:"formValidate.delivery_way"}},e._l(e.deliveryList,(function(t){return a("el-checkbox",{key:t.value,attrs:{label:t.value}},[e._v("\n "+e._s(t.name)+"\n ")])})),1)],1)])],1),e._v(" "),2==e.formValidate.delivery_way.length||1==e.formValidate.delivery_way.length&&2==e.formValidate.delivery_way[0]?a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"是否包邮:"}},[a("el-radio-group",{model:{value:e.formValidate.delivery_free,callback:function(t){e.$set(e.formValidate,"delivery_free",t)},expression:"formValidate.delivery_free"}},[a("el-radio",{staticClass:"radio",attrs:{label:0}},[e._v("否")]),e._v(" "),a("el-radio",{attrs:{label:1}},[e._v("是")])],1)],1)],1):e._e(),e._v(" "),0==e.formValidate.delivery_free&&(2==e.formValidate.delivery_way.length||1==e.formValidate.delivery_way.length&&2==e.formValidate.delivery_way[0])?a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"运费模板:",prop:"temp_id"}},[a("div",{staticClass:"acea-row"},[a("el-select",{staticClass:"selWidthd mr20",attrs:{placeholder:"请选择"},model:{value:e.formValidate.temp_id,callback:function(t){e.$set(e.formValidate,"temp_id",t)},expression:"formValidate.temp_id"}},e._l(e.shippingList,(function(e){return a("el-option",{key:e.shipping_template_id,attrs:{label:e.name,value:e.shipping_template_id}})})),1),e._v(" "),a("el-button",{staticClass:"mr15",attrs:{size:"small"},on:{click:e.addTem}},[e._v("添加运费模板")])],1)])],1):e._e(),e._v(" "),e.labelList.length?a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"商品标签:"}},[a("el-select",{staticClass:"selWidthd",attrs:{multiple:"",placeholder:"请选择"},model:{value:e.formValidate.mer_labels,callback:function(t){e.$set(e.formValidate,"mer_labels",t)},expression:"formValidate.mer_labels"}},e._l(e.labelList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1):e._e(),e._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"平台保障服务:"}},[a("div",{staticClass:"acea-row"},[a("el-select",{staticClass:"selWidthd mr20",attrs:{placeholder:"请选择",clearable:""},model:{value:e.formValidate.guarantee_template_id,callback:function(t){e.$set(e.formValidate,"guarantee_template_id",t)},expression:"formValidate.guarantee_template_id"}},e._l(e.guaranteeList,(function(e){return a("el-option",{key:e.guarantee_template_id,attrs:{label:e.template_name,value:e.guarantee_template_id}})})),1),e._v(" "),a("el-button",{staticClass:"mr15",attrs:{size:"small"},on:{click:e.addServiceTem}},[e._v("添加服务说明模板")])],1)])],1)],1),e._v(" "),a("el-row",{attrs:{gutter:24}},[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"活动状态:"}},[a("el-radio-group",{model:{value:e.formValidate.is_show,callback:function(t){e.$set(e.formValidate,"is_show",t)},expression:"formValidate.is_show"}},[a("el-radio",{staticClass:"radio",attrs:{label:0}},[e._v("关闭")]),e._v(" "),a("el-radio",{attrs:{label:1}},[e._v("开启")])],1)],1)],1)],1),e._v(" "),a("el-row",{attrs:{gutter:24}},[a("el-col",{attrs:{xl:24,lg:24,md:24,sm:24,xs:24}},[0===e.formValidate.spec_type?a("el-form-item",[a("el-table",{staticClass:"tabNumWidth",attrs:{data:e.OneattrValue,border:"",size:"mini"}},[a("el-table-column",{attrs:{align:"center",label:"图片","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"upLoadPicBox",on:{click:function(t){return e.modalPicTap("1","dan","pi")}}},[e.formValidate.image?a("div",{staticClass:"pictrue tabPic"},[a("img",{attrs:{src:t.row.image}})]):a("div",{staticClass:"upLoad tabPic"},[a("i",{staticClass:"el-icon-camera cameraIconfont"})])])]}}],null,!1,1357914119)}),e._v(" "),e._l(e.attrValue,(function(t,i){return a("el-table-column",{key:i,attrs:{label:e.formThead[i].title,align:"center","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){return["限量"==e.formThead[i].title?a("el-input",{staticClass:"priceBox",attrs:{type:"number",min:0},on:{change:function(a){return e.judgInventory(t.row)}},model:{value:t.row[i],callback:function(a){e.$set(t.row,i,a)},expression:"scope.row[iii]"}}):"秒杀价"==e.formThead[i].title?a("el-input",{staticClass:"priceBox",attrs:{type:"商品编号"===e.formThead[i].title?"text":"number",min:0},model:{value:t.row[i],callback:function(a){e.$set(t.row,i,a)},expression:"scope.row[iii]"}}):a("span",[e._v(e._s(t.row[i]))])]}}],null,!0)})}))],2)],1):e._e()],1)],1),e._v(" "),a("el-row",{attrs:{gutter:24}},[1===e.formValidate.spec_type&&e.formValidate.attr.length>0?a("el-form-item",{staticClass:"labeltop",attrs:{label:"规格列表:"}},[a("el-table",{ref:"multipleSelection",attrs:{data:e.ManyAttrValue,"tooltip-effect":"dark","row-key":function(e){return e.id}},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{align:"center",type:"selection","reserve-selection":!0,"min-width":"50"}}),e._v(" "),e.manyTabDate?e._l(e.manyTabDate,(function(t,i){return a("el-table-column",{key:i,attrs:{align:"center",label:e.manyTabTit[i].title,"min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{staticClass:"priceBox",domProps:{textContent:e._s(t.row[i])}})]}}],null,!0)})})):e._e(),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"图片","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"upLoadPicBox",on:{click:function(a){return e.modalPicTap("1","duo",t.$index)}}},[t.row.image?a("div",{staticClass:"pictrue tabPic"},[a("img",{attrs:{src:t.row.image}})]):a("div",{staticClass:"upLoad tabPic"},[a("i",{staticClass:"el-icon-camera cameraIconfont"})])])]}}],null,!1,3478746955)}),e._v(" "),e._l(e.attrValue,(function(t,i){return a("el-table-column",{key:i,attrs:{label:e.formThead[i].title,align:"center","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){return["限量"==e.formThead[i].title?a("el-input",{staticClass:"priceBox",attrs:{type:"number",min:0},on:{change:function(a){return e.judgInventory(t.row,t.$index)}},model:{value:t.row[i],callback:function(a){e.$set(t.row,i,a)},expression:"scope.row[iii]"}}):"秒杀价"==e.formThead[i].title?a("el-input",{staticClass:"priceBox",attrs:{type:"商品编号"===e.formThead[i].title?"text":"number"},model:{value:t.row[i],callback:function(a){e.$set(t.row,i,a)},expression:"scope.row[iii]"}}):a("span",[e._v(e._s(t.row[i]))])]}}],null,!0)})}))],2)],1):e._e()],1),e._v(" "),a("el-row",{attrs:{gutter:24}},[a("el-col",e._b({},"el-col",e.grid2,!1),[a("el-form-item",{attrs:{label:"商户商品分类:",prop:"mer_cate_id"}},[a("el-cascader",{staticClass:"selWidth",attrs:{options:e.merCateList,props:e.propsMer,clearable:""},model:{value:e.formValidate.mer_cate_id,callback:function(t){e.$set(e.formValidate,"mer_cate_id",t)},expression:"formValidate.mer_cate_id"}})],1)],1),e._v(" "),a("el-col",e._b({},"el-col",e.grid2,!1),[a("el-form-item",{attrs:{label:"平台商品分类:",prop:"cate_id"}},[a("el-cascader",{staticClass:"selWidth",attrs:{options:e.categoryList,props:e.props,clearable:""},model:{value:e.formValidate.cate_id,callback:function(t){e.$set(e.formValidate,"cate_id",t)},expression:"formValidate.cate_id"}})],1)],1)],1)],1),e._v(" "),a("el-row",{directives:[{name:"show",rawName:"v-show",value:2===e.currentTab,expression:"currentTab === 2"}]},[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"商品详情:"}},[a("ueditorFrom",{attrs:{content:e.formValidate.content},model:{value:e.formValidate.content,callback:function(t){e.$set(e.formValidate,"content",t)},expression:"formValidate.content"}})],1)],1)],1),e._v(" "),a("el-form-item",{staticStyle:{"margin-top":"30px"}},[a("el-button",{directives:[{name:"show",rawName:"v-show",value:e.currentTab>0,expression:"currentTab>0"}],staticClass:"submission",attrs:{type:"primary",size:"small"},on:{click:e.handleSubmitUp}},[e._v("上一步")]),e._v(" "),a("el-button",{directives:[{name:"show",rawName:"v-show",value:0==e.currentTab,expression:"currentTab == 0"}],staticClass:"submission",attrs:{type:"primary",size:"small"},on:{click:function(t){return e.handleSubmitNest1("formValidate")}}},[e._v("下一步")]),e._v(" "),a("el-button",{directives:[{name:"show",rawName:"v-show",value:1==e.currentTab,expression:"currentTab == 1"}],staticClass:"submission",attrs:{type:"primary",size:"small"},on:{click:function(t){return e.handleSubmitNest2("formValidate")}}},[e._v("下一步")]),e._v(" "),a("el-button",{directives:[{name:"show",rawName:"v-show",value:2===e.currentTab,expression:"currentTab===2"}],staticClass:"submission",attrs:{loading:e.loading,type:"primary",size:"small"},on:{click:function(t){return e.handleSubmit("formValidate")}}},[e._v("提交")]),e._v(" "),a("el-button",{directives:[{name:"show",rawName:"v-show",value:2===e.currentTab,expression:"currentTab===2"}],staticClass:"submission",attrs:{loading:e.loading,type:"primary",size:"small"},on:{click:function(t){return e.handlePreview("formValidate")}}},[e._v("预览")])],1)],1)],1),e._v(" "),a("goods-list",{ref:"goodsList",on:{getProduct:e.getProduct}}),e._v(" "),a("guarantee-service",{ref:"serviceGuarantee",on:{"get-list":e.getGuaranteeList}}),e._v(" "),e.previewVisible?a("div",[a("div",{staticClass:"bg",on:{click:function(t){t.stopPropagation(),e.previewVisible=!1}}}),e._v(" "),e.previewVisible?a("preview-box",{ref:"previewBox",attrs:{"product-type":1,"preview-key":e.previewKey}}):e._e()],1):e._e()],1)},r=[],l=a("2909"),s=(a("7f7f"),a("c7eb")),n=(a("c5f6"),a("96cf"),a("1da1")),o=a("b85c"),c=(a("8615"),a("55dd"),a("ac6a"),a("28a5"),a("ef0d")),d=a("7719"),m=a("ae43"),u=a("8c98"),f=a("c4c8"),p=a("83d6"),g=a("bbcc"),_=a("5f87"),h={old_product_id:"",image:"",spike_image:"",slider_image:[],store_name:"",store_info:"",start_day:"",end_day:"",start_time:"",end_time:"",all_pay_count:1,once_pay_count:1,is_open_recommend:1,is_open_state:1,is_show:1,keyword:"",cate_id:"",mer_cate_id:[],unit_name:"",integral:0,sort:0,is_good:0,temp_id:"",guarantee_template_id:"",delivery_way:[],mer_labels:[],delivery_free:0,attrValue:[{image:"",price:null,cost:null,ot_price:null,old_stock:null,stock:null,bar_code:"",weight:null,volume:null}],attr:[],extension_type:0,content:"",spec_type:0,is_gift_bag:0},v={price:{title:"秒杀价"},cost:{title:"成本价"},ot_price:{title:"市场价"},old_stock:{title:"库存"},stock:{title:"限量"},bar_code:{title:"商品编号"},weight:{title:"重量(KG)"},volume:{title:"体积(m³)"}},b=[{name:"店铺推荐",value:"is_good"}],y={name:"SeckillProductAdd",components:{ueditorFrom:c["a"],goodsList:d["a"],guaranteeService:m["a"],previewBox:u["a"]},data:function(){var e=g["a"].https+"/upload/image/0/file?ueditor=1&token="+Object(_["a"])();return{myConfig:{autoHeightEnabled:!1,initialFrameHeight:500,initialFrameWidth:"100%",UEDITOR_HOME_URL:"/UEditor/",serverUrl:e,imageUrl:e,imageFieldName:"file",imageUrlPrefix:"",imageActionName:"upfile",imageMaxSize:2048e3,imageAllowFiles:[".png",".jpg",".jpeg",".gif",".bmp"]},pickerOptions:{disabledDate:function(e){return e.getTime()>Date.now()}},dialogVisible:!1,product_id:"",multipleSelection:[],optionsCate:{value:"store_category_id",label:"cate_name",children:"children",emitPath:!1},roterPre:p["roterPre"],selectRule:"",checkboxGroup:[],recommend:b,tabs:[],fullscreenLoading:!1,props:{emitPath:!1},propsMer:{emitPath:!1,multiple:!0},active:0,OneattrValue:[Object.assign({},h.attrValue[0])],ManyAttrValue:[Object.assign({},h.attrValue[0])],merCateList:[],categoryList:[],shippingList:[],guaranteeList:[],spikeTimeList:[],deliveryList:[],labelList:[],formThead:Object.assign({},v),formValidate:Object.assign({},h),timeVal:"",timeVal2:"",maxStock:"",addNum:0,singleSpecification:{},multipleSpecifications:[],formDynamics:{template_name:"",template_value:[]},manyTabTit:{},manyTabDate:{},grid2:{lg:10,md:12,sm:24,xs:24},formDynamic:{attrsName:"",attrsVal:""},isBtn:!1,manyFormValidate:[],images:[],currentTab:0,isChoice:"",grid:{xl:8,lg:8,md:12,sm:24,xs:24},loading:!1,ruleValidate:{store_name:[{required:!0,message:"请输入商品名称",trigger:"blur"}],activity_date:[{required:!0,message:"请输入秒杀活动日期",trigger:"blur"}],activity_time:[{required:!0,message:"请输入秒杀活动日期",trigger:"blur"}],all_pay_count:[{required:!0,message:"请输入购买次数",trigger:"blur"},{pattern:/^\+?[1-9][0-9]*$/,message:"最小为1"}],once_pay_count:[{required:!0,message:"请输入购买次数",trigger:"blur"},{pattern:/^\+?[1-9][0-9]*$/,message:"最小为1"}],mer_cate_id:[{required:!0,message:"请选择商户分类",trigger:"change",type:"array",min:"1"}],cate_id:[{required:!0,message:"请选择平台分类",trigger:"change"}],keyword:[{required:!0,message:"请输入商品关键字",trigger:"blur"}],unit_name:[{required:!0,message:"请输入单位",trigger:"blur"}],store_info:[{required:!0,message:"请输入秒杀活动简介",trigger:"blur"}],temp_id:[{required:!0,message:"请选择运费模板",trigger:"change"}],image:[{required:!0,message:"请上传商品图",trigger:"change"}],spike_image:[{required:!0,message:"请选择商品",trigger:"change"}],slider_image:[{required:!0,message:"请上传商品轮播图",type:"array",trigger:"change"}],delivery_way:[{required:!0,message:"请选择送货方式",trigger:"change"}]},attrInfo:{},previewVisible:!1,previewKey:"",deliveryType:[]}},computed:{attrValue:function(){var e=Object.assign({},h.attrValue[0]);return delete e.image,e},oneFormBatch:function(){var e=[Object.assign({},h.attrValue[0])];return delete e[0].bar_code,e}},watch:{"formValidate.attr":{handler:function(e){1===this.formValidate.spec_type&&this.watCh(e)},immediate:!1,deep:!0}},created:function(){this.tempRoute=Object.assign({},this.$route),this.$route.params.id&&1===this.formValidate.spec_type&&this.$watch("formValidate.attr",this.watCh)},mounted:function(){var e=this;this.formValidate.slider_image=[],this.$route.params.id&&(this.setTagsViewTitle(),this.getInfo(this.$route.params.id)),this.formValidate.attr.map((function(t){e.$set(t,"inputVisible",!1)})),this.getCategorySelect(),this.getCategoryList(),this.getShippingList(),this.getGuaranteeList(),this.getSpikeTimeList(),this.$store.dispatch("settings/setEdit",!0),this.productCon(),this.getLabelLst()},methods:{getLabelLst:function(){var e=this;Object(f["v"])().then((function(t){e.labelList=t.data})).catch((function(t){e.$message.error(t.message)}))},productCon:function(){var e=this;Object(f["Y"])().then((function(t){e.deliveryType=t.data.delivery_way.map(String),2==e.deliveryType.length?e.deliveryList=[{value:"1",name:"到店自提"},{value:"2",name:"快递配送"}]:1==e.deliveryType.length&&"1"==e.deliveryType[0]?e.deliveryList=[{value:"1",name:"到店自提"}]:e.deliveryList=[{value:"2",name:"快递配送"}]})).catch((function(t){e.$message.error(t.message)}))},add:function(){this.$refs.goodsList.dialogVisible=!0},getProduct:function(e){this.formValidate.spike_image=e.src,this.product_id=e.id,console.log(this.product_id)},handleSelectionChange:function(e){this.multipleSelection=e},onchangeTime:function(e){this.timeVal=e,this.formValidate.start_day=e?e[0]:"",this.formValidate.end_day=e?e[1]:""},onchangeTime2:function(e){this.timeVal2=e,this.formValidate.start_time=e?e.split("-")[0]:"",this.formValidate.end_time=e?e.split("-")[1]:""},setTagsViewTitle:function(){var e="编辑商品",t=Object.assign({},this.tempRoute,{title:"".concat(e,"-").concat(this.$route.params.id)});this.$store.dispatch("tagsView/updateVisitedView",t)},watCh:function(e){var t=this,a={},i={};this.formValidate.attr.forEach((function(e,t){a["value"+t]={title:e.value},i["value"+t]=""})),this.ManyAttrValue.forEach((function(e,a){var i=Object.values(e.detail).sort().join("/");t.attrInfo[i]&&(t.ManyAttrValue[a]=t.attrInfo[i])})),this.attrInfo={},this.ManyAttrValue.forEach((function(e){t.attrInfo[Object.values(e.detail).sort().join("/")]=e})),this.manyTabTit=a,this.manyTabDate=i,this.formThead=Object.assign({},this.formThead,a),console.log(this.formThead)},judgInventory:function(e,t){var a=e.stock;"undefined"===typeof t?this.singleSpecification[0]["old_stock"]10&&(i.formValidate.slider_image.length=10)})),"1"===e&&"dan"===t&&(i.OneattrValue[0].image=l[0]),"1"===e&&"duo"===t&&(i.ManyAttrValue[a].image=l[0]),"1"===e&&"pi"===t&&(i.oneFormBatch[0].image=l[0])}),e)},handleSubmitUp:function(){this.currentTab--<0&&(this.currentTab=0)},handleSubmitNest1:function(e){this.formValidate.spike_image?(this.currentTab++,this.$route.params.id||this.getInfo(this.product_id)):this.$message.warning("请选择商品!")},handleSubmitNest2:function(e){var t=this;1===this.formValidate.spec_type?this.formValidate.attrValue=this.multipleSelection:(this.formValidate.attrValue=this.OneattrValue,this.formValidate.attr=[]),this.$refs[e].validate((function(e){if(e){if(!t.formValidate.store_name||!t.formValidate.cate_id||!t.formValidate.unit_name||!t.formValidate.store_info||!t.formValidate.image||!t.formValidate.slider_image||!t.formValidate.start_day||!t.formValidate.end_day||!t.formValidate.start_time||!t.formValidate.end_time)return void t.$message.warning("请填写完整商品信息!");if(t.formValidate.all_pay_countd)a=o[d++],i&&!s.call(n,a)||m.push(e?[a,n[a]]:n[a]);return m}}},"64a3":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"divBox"},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("el-steps",{attrs:{active:e.currentTab,"align-center":"","finish-status":"success"}},[a("el-step",{attrs:{title:"选择秒杀商品"}}),e._v(" "),a("el-step",{attrs:{title:"填写基础信息"}}),e._v(" "),a("el-step",{attrs:{title:"修改商品详情"}})],1)],1),e._v(" "),a("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.fullscreenLoading,expression:"fullscreenLoading"}],ref:"formValidate",staticClass:"formValidate mt20",attrs:{rules:e.ruleValidate,model:e.formValidate,"label-width":"120px"},nativeOn:{submit:function(e){e.preventDefault()}}},[a("div",{directives:[{name:"show",rawName:"v-show",value:0===e.currentTab,expression:"currentTab === 0"}],staticStyle:{overflow:"hidden"}},[a("el-row",{attrs:{gutter:24}},[a("el-col",e._b({},"el-col",e.grid2,!1),[a("el-form-item",{attrs:{label:"选择商品:",prop:"spike_image"}},[a("div",{staticClass:"upLoadPicBox",on:{click:function(t){return e.add()}}},[e.formValidate.spike_image?a("div",{staticClass:"pictrue"},[a("img",{attrs:{src:e.formValidate.spike_image}})]):a("div",{staticClass:"upLoad"},[a("i",{staticClass:"el-icon-camera cameraIconfont"})])])])],1)],1)],1),e._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:1===e.currentTab,expression:"currentTab === 1"}]},[a("el-row",{attrs:{gutter:24}},[a("el-col",e._b({},"el-col",e.grid2,!1),[a("el-form-item",{attrs:{label:"商品主图:",prop:"image"}},[a("div",{staticClass:"upLoadPicBox",on:{click:function(t){return e.modalPicTap("1")}}},[e.formValidate.image?a("div",{staticClass:"pictrue"},[a("img",{attrs:{src:e.formValidate.image}})]):a("div",{staticClass:"upLoad"},[a("i",{staticClass:"el-icon-camera cameraIconfont"})])])])],1),e._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"商品轮播图:",prop:"slider_image"}},[a("div",{staticClass:"acea-row"},[e._l(e.formValidate.slider_image,(function(t,i){return a("div",{key:i,staticClass:"pictrue",attrs:{draggable:"false"},on:{dragstart:function(a){return e.handleDragStart(a,t)},dragover:function(a){return a.preventDefault(),e.handleDragOver(a,t)},dragenter:function(a){return e.handleDragEnter(a,t)},dragend:function(a){return e.handleDragEnd(a,t)}}},[a("img",{attrs:{src:t}}),e._v(" "),a("i",{staticClass:"el-icon-error btndel",on:{click:function(t){return e.handleRemove(i)}}})])})),e._v(" "),e.formValidate.slider_image.length<10?a("div",{staticClass:"upLoadPicBox",on:{click:function(t){return e.modalPicTap("2")}}},[a("div",{staticClass:"upLoad"},[a("i",{staticClass:"el-icon-camera cameraIconfont"})])]):e._e()],2)])],1),e._v(" "),a("el-col",{staticClass:"sp100"},[a("el-form-item",{attrs:{label:"商品名称:",prop:"store_name"}},[a("el-input",{attrs:{placeholder:"请输入商品名称"},model:{value:e.formValidate.store_name,callback:function(t){e.$set(e.formValidate,"store_name",t)},expression:"formValidate.store_name"}})],1)],1)],1),e._v(" "),a("el-row",{attrs:{gutter:24}},[a("el-col",e._b({},"el-col",e.grid2,!1),[a("el-form-item",{attrs:{label:"秒杀商品关键字:"}},[a("el-input",{attrs:{placeholder:"请输入商品关键字"},model:{value:e.formValidate.keyword,callback:function(t){e.$set(e.formValidate,"keyword",t)},expression:"formValidate.keyword"}})],1)],1)],1),e._v(" "),a("el-row",{attrs:{gutter:24}},[a("el-col",{staticClass:"sp100"},[a("el-form-item",{attrs:{label:"秒杀活动简介:",prop:"store_info"}},[a("el-input",{attrs:{type:"textarea",rows:3,placeholder:"请输入秒杀活动简介"},model:{value:e.formValidate.store_info,callback:function(t){e.$set(e.formValidate,"store_info",t)},expression:"formValidate.store_info"}})],1)],1)],1),e._v(" "),a("el-row",{attrs:{gutter:24}},[a("el-col",e._b({},"el-col",e.grid2,!1),[a("el-form-item",{attrs:{label:"秒杀活动日期:"}},[a("i",{staticClass:"required"},[e._v("*")]),e._v(" "),a("el-date-picker",{attrs:{"value-format":"yyyy-MM-dd",format:"yyyy-MM-dd",size:"small",type:"daterange",placement:"bottom-end",placeholder:"请选择活动时间"},on:{change:e.onchangeTime},model:{value:e.timeVal,callback:function(t){e.timeVal=t},expression:"timeVal"}})],1)],1),e._v(" "),a("el-col",e._b({},"el-col",e.grid2,!1),[a("el-form-item",{attrs:{label:"活动日期内最多购买次数:",prop:"all_pay_count","label-width":"210px"}},[a("el-input-number",{model:{value:e.formValidate.all_pay_count,callback:function(t){e.$set(e.formValidate,"all_pay_count",t)},expression:"formValidate.all_pay_count"}})],1)],1),e._v(" "),a("el-col",e._b({},"el-col",e.grid2,!1),[a("el-form-item",{attrs:{label:"秒杀活动时间:"}},[a("i",{staticClass:"required"},[e._v("*")]),e._v(" "),a("div",{staticClass:"acea-row"},[a("el-select",{staticClass:"selWidthd mr20",attrs:{placeholder:"请选择"},on:{change:e.onchangeTime2},model:{value:e.timeVal2,callback:function(t){e.timeVal2=t},expression:"timeVal2"}},e._l(e.spikeTimeList,(function(e){return a("el-option",{key:e.seckill_time_id,attrs:{label:e.name,value:e.name}})})),1)],1)])],1),e._v(" "),a("el-col",e._b({},"el-col",e.grid2,!1),[a("el-form-item",{attrs:{label:"秒杀时间段内最多购买次数:",prop:"once_pay_count","label-width":"210px"}},[a("el-input-number",{model:{value:e.formValidate.once_pay_count,callback:function(t){e.$set(e.formValidate,"once_pay_count",t)},expression:"formValidate.once_pay_count"}})],1)],1),e._v(" "),a("el-col",e._b({},"el-col",e.grid2,!1),[a("el-form-item",{attrs:{label:"单位:",prop:"unit_name"}},[a("el-input",{staticStyle:{width:"250px"},attrs:{placeholder:"请输入单位"},model:{value:e.formValidate.unit_name,callback:function(t){e.$set(e.formValidate,"unit_name",t)},expression:"formValidate.unit_name"}})],1)],1),e._v(" "),a("el-col",e._b({},"el-col",e.grid2,!1),[a("el-form-item",{attrs:{label:"排序:","label-width":"210px"}},[a("el-input-number",{staticStyle:{width:"200px"},attrs:{placeholder:"请输入排序序号"},model:{value:e.formValidate.sort,callback:function(t){e.$set(e.formValidate,"sort",t)},expression:"formValidate.sort"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"送货方式:",prop:"delivery_way"}},[a("div",{staticClass:"acea-row"},[a("el-checkbox-group",{model:{value:e.formValidate.delivery_way,callback:function(t){e.$set(e.formValidate,"delivery_way",t)},expression:"formValidate.delivery_way"}},e._l(e.deliveryList,(function(t){return a("el-checkbox",{key:t.value,attrs:{label:t.value}},[e._v("\n "+e._s(t.name)+"\n ")])})),1)],1)])],1),e._v(" "),2==e.formValidate.delivery_way.length||1==e.formValidate.delivery_way.length&&2==e.formValidate.delivery_way[0]?a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"是否包邮:"}},[a("el-radio-group",{model:{value:e.formValidate.delivery_free,callback:function(t){e.$set(e.formValidate,"delivery_free",t)},expression:"formValidate.delivery_free"}},[a("el-radio",{staticClass:"radio",attrs:{label:0}},[e._v("否")]),e._v(" "),a("el-radio",{attrs:{label:1}},[e._v("是")])],1)],1)],1):e._e(),e._v(" "),0==e.formValidate.delivery_free&&(2==e.formValidate.delivery_way.length||1==e.formValidate.delivery_way.length&&2==e.formValidate.delivery_way[0])?a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"运费模板:",prop:"temp_id"}},[a("div",{staticClass:"acea-row"},[a("el-select",{staticClass:"selWidthd mr20",attrs:{placeholder:"请选择"},model:{value:e.formValidate.temp_id,callback:function(t){e.$set(e.formValidate,"temp_id",t)},expression:"formValidate.temp_id"}},e._l(e.shippingList,(function(e){return a("el-option",{key:e.shipping_template_id,attrs:{label:e.name,value:e.shipping_template_id}})})),1),e._v(" "),a("el-button",{staticClass:"mr15",attrs:{size:"small"},on:{click:e.addTem}},[e._v("添加运费模板")])],1)])],1):e._e(),e._v(" "),e.labelList.length?a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"商品标签:"}},[a("el-select",{staticClass:"selWidthd",attrs:{multiple:"",placeholder:"请选择"},model:{value:e.formValidate.mer_labels,callback:function(t){e.$set(e.formValidate,"mer_labels",t)},expression:"formValidate.mer_labels"}},e._l(e.labelList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1):e._e(),e._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"平台保障服务:"}},[a("div",{staticClass:"acea-row"},[a("el-select",{staticClass:"selWidthd mr20",attrs:{placeholder:"请选择",clearable:""},model:{value:e.formValidate.guarantee_template_id,callback:function(t){e.$set(e.formValidate,"guarantee_template_id",t)},expression:"formValidate.guarantee_template_id"}},e._l(e.guaranteeList,(function(e){return a("el-option",{key:e.guarantee_template_id,attrs:{label:e.template_name,value:e.guarantee_template_id}})})),1),e._v(" "),a("el-button",{staticClass:"mr15",attrs:{size:"small"},on:{click:e.addServiceTem}},[e._v("添加服务说明模板")])],1)])],1)],1),e._v(" "),a("el-row",{attrs:{gutter:24}},[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"活动状态:"}},[a("el-radio-group",{model:{value:e.formValidate.is_show,callback:function(t){e.$set(e.formValidate,"is_show",t)},expression:"formValidate.is_show"}},[a("el-radio",{staticClass:"radio",attrs:{label:0}},[e._v("关闭")]),e._v(" "),a("el-radio",{attrs:{label:1}},[e._v("开启")])],1)],1)],1)],1),e._v(" "),a("el-row",{attrs:{gutter:24}},[a("el-col",{attrs:{xl:24,lg:24,md:24,sm:24,xs:24}},[0===e.formValidate.spec_type?a("el-form-item",[a("el-table",{staticClass:"tabNumWidth",attrs:{data:e.OneattrValue,border:"",size:"mini"}},[a("el-table-column",{attrs:{align:"center",label:"图片","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"upLoadPicBox",on:{click:function(t){return e.modalPicTap("1","dan","pi")}}},[e.formValidate.image?a("div",{staticClass:"pictrue tabPic"},[a("img",{attrs:{src:t.row.image}})]):a("div",{staticClass:"upLoad tabPic"},[a("i",{staticClass:"el-icon-camera cameraIconfont"})])])]}}],null,!1,1357914119)}),e._v(" "),e._l(e.attrValue,(function(t,i){return a("el-table-column",{key:i,attrs:{label:e.formThead[i].title,align:"center","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){return["限量"==e.formThead[i].title?a("el-input",{staticClass:"priceBox",attrs:{type:"number",min:0},on:{change:function(a){return e.judgInventory(t.row)}},model:{value:t.row[i],callback:function(a){e.$set(t.row,i,a)},expression:"scope.row[iii]"}}):"秒杀价"==e.formThead[i].title?a("el-input",{staticClass:"priceBox",attrs:{type:"商品编号"===e.formThead[i].title?"text":"number",min:0},model:{value:t.row[i],callback:function(a){e.$set(t.row,i,a)},expression:"scope.row[iii]"}}):a("span",[e._v(e._s(t.row[i]))])]}}],null,!0)})}))],2)],1):e._e()],1)],1),e._v(" "),a("el-row",{attrs:{gutter:24}},[1===e.formValidate.spec_type&&e.formValidate.attr.length>0?a("el-form-item",{staticClass:"labeltop",attrs:{label:"规格列表:"}},[a("el-table",{ref:"multipleSelection",attrs:{data:e.ManyAttrValue,"tooltip-effect":"dark","row-key":function(e){return e.id}},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{align:"center",type:"selection","reserve-selection":!0,"min-width":"50"}}),e._v(" "),e.manyTabDate?e._l(e.manyTabDate,(function(t,i){return a("el-table-column",{key:i,attrs:{align:"center",label:e.manyTabTit[i].title,"min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{staticClass:"priceBox",domProps:{textContent:e._s(t.row[i])}})]}}],null,!0)})})):e._e(),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"图片","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"upLoadPicBox",on:{click:function(a){return e.modalPicTap("1","duo",t.$index)}}},[t.row.image?a("div",{staticClass:"pictrue tabPic"},[a("img",{attrs:{src:t.row.image}})]):a("div",{staticClass:"upLoad tabPic"},[a("i",{staticClass:"el-icon-camera cameraIconfont"})])])]}}],null,!1,3478746955)}),e._v(" "),e._l(e.attrValue,(function(t,i){return a("el-table-column",{key:i,attrs:{label:e.formThead[i].title,align:"center","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){return["限量"==e.formThead[i].title?a("el-input",{staticClass:"priceBox",attrs:{type:"number",min:0},on:{change:function(a){return e.judgInventory(t.row,t.$index)}},model:{value:t.row[i],callback:function(a){e.$set(t.row,i,a)},expression:"scope.row[iii]"}}):"秒杀价"==e.formThead[i].title?a("el-input",{staticClass:"priceBox",attrs:{type:"商品编号"===e.formThead[i].title?"text":"number"},model:{value:t.row[i],callback:function(a){e.$set(t.row,i,a)},expression:"scope.row[iii]"}}):a("span",[e._v(e._s(t.row[i]))])]}}],null,!0)})}))],2)],1):e._e()],1),e._v(" "),a("el-row",{attrs:{gutter:24}},[a("el-col",e._b({},"el-col",e.grid2,!1),[a("el-form-item",{attrs:{label:"商户商品分类:",prop:"mer_cate_id"}},[a("el-cascader",{staticClass:"selWidth",attrs:{options:e.merCateList,props:e.propsMer,clearable:""},model:{value:e.formValidate.mer_cate_id,callback:function(t){e.$set(e.formValidate,"mer_cate_id",t)},expression:"formValidate.mer_cate_id"}})],1)],1),e._v(" "),a("el-col",e._b({},"el-col",e.grid2,!1),[a("el-form-item",{attrs:{label:"平台商品分类:",prop:"cate_id"}},[a("el-cascader",{staticClass:"selWidth",attrs:{options:e.categoryList,props:e.props,clearable:""},model:{value:e.formValidate.cate_id,callback:function(t){e.$set(e.formValidate,"cate_id",t)},expression:"formValidate.cate_id"}})],1)],1)],1)],1),e._v(" "),a("el-row",{directives:[{name:"show",rawName:"v-show",value:2===e.currentTab,expression:"currentTab === 2"}]},[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"商品详情:"}},[a("ueditorFrom",{attrs:{content:e.formValidate.content},model:{value:e.formValidate.content,callback:function(t){e.$set(e.formValidate,"content",t)},expression:"formValidate.content"}})],1)],1)],1),e._v(" "),a("el-form-item",{staticStyle:{"margin-top":"30px"}},[a("el-button",{directives:[{name:"show",rawName:"v-show",value:e.currentTab>0,expression:"currentTab>0"}],staticClass:"submission",attrs:{type:"primary",size:"small"},on:{click:e.handleSubmitUp}},[e._v("上一步")]),e._v(" "),a("el-button",{directives:[{name:"show",rawName:"v-show",value:0==e.currentTab,expression:"currentTab == 0"}],staticClass:"submission",attrs:{type:"primary",size:"small"},on:{click:function(t){return e.handleSubmitNest1("formValidate")}}},[e._v("下一步")]),e._v(" "),a("el-button",{directives:[{name:"show",rawName:"v-show",value:1==e.currentTab,expression:"currentTab == 1"}],staticClass:"submission",attrs:{type:"primary",size:"small"},on:{click:function(t){return e.handleSubmitNest2("formValidate")}}},[e._v("下一步")]),e._v(" "),a("el-button",{directives:[{name:"show",rawName:"v-show",value:2===e.currentTab,expression:"currentTab===2"}],staticClass:"submission",attrs:{loading:e.loading,type:"primary",size:"small"},on:{click:function(t){return e.handleSubmit("formValidate")}}},[e._v("提交")]),e._v(" "),a("el-button",{directives:[{name:"show",rawName:"v-show",value:2===e.currentTab,expression:"currentTab===2"}],staticClass:"submission",attrs:{loading:e.loading,type:"primary",size:"small"},on:{click:function(t){return e.handlePreview("formValidate")}}},[e._v("预览")])],1)],1)],1),e._v(" "),a("goods-list",{ref:"goodsList",on:{getProduct:e.getProduct}}),e._v(" "),a("guarantee-service",{ref:"serviceGuarantee",on:{"get-list":e.getGuaranteeList}}),e._v(" "),e.previewVisible?a("div",[a("div",{staticClass:"bg",on:{click:function(t){t.stopPropagation(),e.previewVisible=!1}}}),e._v(" "),e.previewVisible?a("preview-box",{ref:"previewBox",attrs:{"product-type":1,"preview-key":e.previewKey}}):e._e()],1):e._e()],1)},r=[],l=a("2909"),s=(a("7f7f"),a("c7eb")),n=(a("c5f6"),a("96cf"),a("1da1")),o=a("b85c"),c=(a("8615"),a("55dd"),a("ac6a"),a("28a5"),a("ef0d")),d=a("7719"),m=a("ae43"),u=a("8c98"),f=a("c4c8"),p=a("83d6"),g=a("bbcc"),_=a("5f87"),h={old_product_id:"",image:"",spike_image:"",slider_image:[],store_name:"",store_info:"",start_day:"",end_day:"",start_time:"",end_time:"",all_pay_count:1,once_pay_count:1,is_open_recommend:1,is_open_state:1,is_show:1,keyword:"",cate_id:"",mer_cate_id:[],unit_name:"",integral:0,sort:0,is_good:0,temp_id:"",guarantee_template_id:"",delivery_way:[],mer_labels:[],delivery_free:0,attrValue:[{image:"",price:null,cost:null,ot_price:null,old_stock:null,stock:null,bar_code:"",weight:null,volume:null}],attr:[],extension_type:0,content:"",spec_type:0,is_gift_bag:0},v={price:{title:"秒杀价"},cost:{title:"成本价"},ot_price:{title:"市场价"},old_stock:{title:"库存"},stock:{title:"限量"},bar_code:{title:"商品编号"},weight:{title:"重量(KG)"},volume:{title:"体积(m³)"}},b=[{name:"店铺推荐",value:"is_good"}],y={name:"SeckillProductAdd",components:{ueditorFrom:c["a"],goodsList:d["a"],guaranteeService:m["a"],previewBox:u["a"]},data:function(){var e=g["a"].https+"/upload/image/0/file?ueditor=1&token="+Object(_["a"])();return{myConfig:{autoHeightEnabled:!1,initialFrameHeight:500,initialFrameWidth:"100%",UEDITOR_HOME_URL:"/UEditor/",serverUrl:e,imageUrl:e,imageFieldName:"file",imageUrlPrefix:"",imageActionName:"upfile",imageMaxSize:2048e3,imageAllowFiles:[".png",".jpg",".jpeg",".gif",".bmp"]},pickerOptions:{disabledDate:function(e){return e.getTime()>Date.now()}},dialogVisible:!1,product_id:"",multipleSelection:[],optionsCate:{value:"store_category_id",label:"cate_name",children:"children",emitPath:!1},roterPre:p["roterPre"],selectRule:"",checkboxGroup:[],recommend:b,tabs:[],fullscreenLoading:!1,props:{emitPath:!1},propsMer:{emitPath:!1,multiple:!0},active:0,OneattrValue:[Object.assign({},h.attrValue[0])],ManyAttrValue:[Object.assign({},h.attrValue[0])],merCateList:[],categoryList:[],shippingList:[],guaranteeList:[],spikeTimeList:[],deliveryList:[],labelList:[],formThead:Object.assign({},v),formValidate:Object.assign({},h),timeVal:"",timeVal2:"",maxStock:"",addNum:0,singleSpecification:{},multipleSpecifications:[],formDynamics:{template_name:"",template_value:[]},manyTabTit:{},manyTabDate:{},grid2:{lg:10,md:12,sm:24,xs:24},formDynamic:{attrsName:"",attrsVal:""},isBtn:!1,manyFormValidate:[],images:[],currentTab:0,isChoice:"",grid:{xl:8,lg:8,md:12,sm:24,xs:24},loading:!1,ruleValidate:{store_name:[{required:!0,message:"请输入商品名称",trigger:"blur"}],activity_date:[{required:!0,message:"请输入秒杀活动日期",trigger:"blur"}],activity_time:[{required:!0,message:"请输入秒杀活动日期",trigger:"blur"}],all_pay_count:[{required:!0,message:"请输入购买次数",trigger:"blur"},{pattern:/^\+?[1-9][0-9]*$/,message:"最小为1"}],once_pay_count:[{required:!0,message:"请输入购买次数",trigger:"blur"},{pattern:/^\+?[1-9][0-9]*$/,message:"最小为1"}],mer_cate_id:[{required:!0,message:"请选择商户分类",trigger:"change",type:"array",min:"1"}],cate_id:[{required:!0,message:"请选择平台分类",trigger:"change"}],keyword:[{required:!0,message:"请输入商品关键字",trigger:"blur"}],unit_name:[{required:!0,message:"请输入单位",trigger:"blur"}],store_info:[{required:!0,message:"请输入秒杀活动简介",trigger:"blur"}],temp_id:[{required:!0,message:"请选择运费模板",trigger:"change"}],image:[{required:!0,message:"请上传商品图",trigger:"change"}],spike_image:[{required:!0,message:"请选择商品",trigger:"change"}],slider_image:[{required:!0,message:"请上传商品轮播图",type:"array",trigger:"change"}],delivery_way:[{required:!0,message:"请选择送货方式",trigger:"change"}]},attrInfo:{},previewVisible:!1,previewKey:"",deliveryType:[]}},computed:{attrValue:function(){var e=Object.assign({},h.attrValue[0]);return delete e.image,e},oneFormBatch:function(){var e=[Object.assign({},h.attrValue[0])];return delete e[0].bar_code,e}},watch:{"formValidate.attr":{handler:function(e){1===this.formValidate.spec_type&&this.watCh(e)},immediate:!1,deep:!0}},created:function(){this.tempRoute=Object.assign({},this.$route),this.$route.params.id&&1===this.formValidate.spec_type&&this.$watch("formValidate.attr",this.watCh)},mounted:function(){var e=this;this.formValidate.slider_image=[],this.$route.params.id&&(this.setTagsViewTitle(),this.getInfo(this.$route.params.id)),this.formValidate.attr.map((function(t){e.$set(t,"inputVisible",!1)})),this.getCategorySelect(),this.getCategoryList(),this.getShippingList(),this.getGuaranteeList(),this.getSpikeTimeList(),this.$store.dispatch("settings/setEdit",!0),this.productCon(),this.getLabelLst()},methods:{getLabelLst:function(){var e=this;Object(f["x"])().then((function(t){e.labelList=t.data})).catch((function(t){e.$message.error(t.message)}))},productCon:function(){var e=this;Object(f["ab"])().then((function(t){e.deliveryType=t.data.delivery_way.map(String),2==e.deliveryType.length?e.deliveryList=[{value:"1",name:"到店自提"},{value:"2",name:"快递配送"}]:1==e.deliveryType.length&&"1"==e.deliveryType[0]?e.deliveryList=[{value:"1",name:"到店自提"}]:e.deliveryList=[{value:"2",name:"快递配送"}]})).catch((function(t){e.$message.error(t.message)}))},add:function(){this.$refs.goodsList.dialogVisible=!0},getProduct:function(e){this.formValidate.spike_image=e.src,this.product_id=e.id,console.log(this.product_id)},handleSelectionChange:function(e){this.multipleSelection=e},onchangeTime:function(e){this.timeVal=e,this.formValidate.start_day=e?e[0]:"",this.formValidate.end_day=e?e[1]:""},onchangeTime2:function(e){this.timeVal2=e,this.formValidate.start_time=e?e.split("-")[0]:"",this.formValidate.end_time=e?e.split("-")[1]:""},setTagsViewTitle:function(){var e="编辑商品",t=Object.assign({},this.tempRoute,{title:"".concat(e,"-").concat(this.$route.params.id)});this.$store.dispatch("tagsView/updateVisitedView",t)},watCh:function(e){var t=this,a={},i={};this.formValidate.attr.forEach((function(e,t){a["value"+t]={title:e.value},i["value"+t]=""})),this.ManyAttrValue.forEach((function(e,a){var i=Object.values(e.detail).sort().join("/");t.attrInfo[i]&&(t.ManyAttrValue[a]=t.attrInfo[i])})),this.attrInfo={},this.ManyAttrValue.forEach((function(e){t.attrInfo[Object.values(e.detail).sort().join("/")]=e})),this.manyTabTit=a,this.manyTabDate=i,this.formThead=Object.assign({},this.formThead,a),console.log(this.formThead)},judgInventory:function(e,t){var a=e.stock;"undefined"===typeof t?this.singleSpecification[0]["old_stock"]10&&(i.formValidate.slider_image.length=10)})),"1"===e&&"dan"===t&&(i.OneattrValue[0].image=l[0]),"1"===e&&"duo"===t&&(i.ManyAttrValue[a].image=l[0]),"1"===e&&"pi"===t&&(i.oneFormBatch[0].image=l[0])}),e)},handleSubmitUp:function(){this.currentTab--<0&&(this.currentTab=0)},handleSubmitNest1:function(e){this.formValidate.spike_image?(this.currentTab++,this.$route.params.id||this.getInfo(this.product_id)):this.$message.warning("请选择商品!")},handleSubmitNest2:function(e){var t=this;1===this.formValidate.spec_type?this.formValidate.attrValue=this.multipleSelection:(this.formValidate.attrValue=this.OneattrValue,this.formValidate.attr=[]),this.$refs[e].validate((function(e){if(e){if(!t.formValidate.store_name||!t.formValidate.cate_id||!t.formValidate.unit_name||!t.formValidate.store_info||!t.formValidate.image||!t.formValidate.slider_image||!t.formValidate.start_day||!t.formValidate.end_day||!t.formValidate.start_time||!t.formValidate.end_time)return void t.$message.warning("请填写完整商品信息!");if(t.formValidate.all_pay_countu)a=s[u++],i&&!r.call(n,a)||m.push(t?[a,n[a]]:n[a]);return m}}},5407:function(t,e,a){"use strict";a("a7a3")},"669c":function(t,e,a){"use strict";a("7f44")},"7f44":function(t,e,a){},8615:function(t,e,a){var i=a("5ca1"),o=a("504c")(!1);i(i.S,"Object",{values:function(t){return o(t)}})},a7a3:function(t,e,a){},af57:function(t,e,a){"use strict";a("f9b4")},c437:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"divBox"},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("el-tabs",{on:{"tab-click":function(e){t.getList(1),t.getLstFilterApi()}},model:{value:t.tableFrom.type,callback:function(e){t.$set(t.tableFrom,"type",e)},expression:"tableFrom.type"}},t._l(t.headeNum,(function(t,e){return a("el-tab-pane",{key:e,attrs:{name:t.type.toString(),label:t.name+"("+t.count+")"}})})),1),t._v(" "),a("div",{staticClass:"container"},[a("el-form",{attrs:{size:"small","label-width":"120px",inline:!0}},[a("el-form-item",{attrs:{label:"平台商品分类:"}},[a("el-cascader",{staticClass:"selWidth",attrs:{options:t.categoryList,props:t.props,clearable:""},on:{change:function(e){return t.getList(1)}},model:{value:t.tableFrom.cate_id,callback:function(e){t.$set(t.tableFrom,"cate_id",e)},expression:"tableFrom.cate_id"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"商户商品分类:"}},[a("el-select",{staticClass:"filter-item selWidth",attrs:{placeholder:"请选择",clearable:""},on:{change:function(e){return t.getList(1)}},model:{value:t.tableFrom.mer_cate_id,callback:function(e){t.$set(t.tableFrom,"mer_cate_id",e)},expression:"tableFrom.mer_cate_id"}},t._l(t.merCateList,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1),t._v(" "),a("el-form-item",{attrs:{label:"是否为礼包:"}},[a("el-select",{staticClass:"selWidth",attrs:{placeholder:"请选择",clearable:""},on:{change:function(e){return t.getList(1)}},model:{value:t.tableFrom.is_gift_bag,callback:function(e){t.$set(t.tableFrom,"is_gift_bag",e)},expression:"tableFrom.is_gift_bag"}},[a("el-option",{attrs:{label:"是",value:"1"}}),t._v(" "),a("el-option",{attrs:{label:"否",value:"0"}})],1)],1),t._v(" "),a("el-form-item",{attrs:{label:"会员价设置:"}},[a("el-select",{staticClass:"selWidth",attrs:{placeholder:"请选择",clearable:""},on:{change:function(e){return t.getList(1)}},model:{value:t.tableFrom.svip_price_type,callback:function(e){t.$set(t.tableFrom,"svip_price_type",e)},expression:"tableFrom.svip_price_type"}},[a("el-option",{attrs:{label:"未设置",value:"0"}}),t._v(" "),a("el-option",{attrs:{label:"默认设置",value:"1"}}),t._v(" "),a("el-option",{attrs:{label:"自定义设置",value:"2"}})],1)],1),t._v(" "),a("el-form-item",{attrs:{label:"商品状态:"}},[a("el-select",{staticClass:"filter-item selWidth",attrs:{placeholder:"请选择",clearable:""},on:{change:t.getList},model:{value:t.tableFrom.us_status,callback:function(e){t.$set(t.tableFrom,"us_status",e)},expression:"tableFrom.us_status"}},t._l(t.productStatusList,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1),t._v(" "),a("el-form-item",{attrs:{label:"运费模板:"}},[a("el-select",{staticClass:"filter-item selWidth",attrs:{placeholder:"请选择",clearable:"",filterable:""},on:{change:function(e){return t.getList(1)}},model:{value:t.tableFrom.temp_id,callback:function(e){t.$set(t.tableFrom,"temp_id",e)},expression:"tableFrom.temp_id"}},t._l(t.tempList,(function(t){return a("el-option",{key:t.shipping_template_id,attrs:{label:t.name,value:t.shipping_template_id}})})),1)],1),t._v(" "),a("el-form-item",{attrs:{label:"关键字搜索:"}},[a("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入商品名称,关键字"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getList(1)}},model:{value:t.tableFrom.keyword,callback:function(e){t.$set(t.tableFrom,"keyword",e)},expression:"tableFrom.keyword"}},[a("el-button",{staticClass:"el-button-solt",attrs:{slot:"append",icon:"el-icon-search"},on:{click:function(e){return t.getList(1)}},slot:"append"})],1)],1)],1)],1),t._v(" "),a("router-link",{attrs:{to:{path:t.roterPre+"/product/list/addProduct"}}},[a("el-button",{attrs:{size:"small",type:"primary"}},[t._v("添加商品")])],1),t._v(" "),a("el-button",{attrs:{size:"mini",disabled:1!=t.tableFrom.type||0==t.multipleSelection.length},on:{click:t.batchOff}},[t._v("批量下架")]),t._v(" "),a("el-button",{attrs:{size:"mini",disabled:2!=t.tableFrom.type||0==t.multipleSelection.length},on:{click:t.batchShelf}},[t._v("批量上架")]),t._v(" "),a("el-button",{attrs:{size:"mini",disabled:0==t.multipleSelection.length},on:{click:t.batchFreight}},[t._v("批量设置运费")]),t._v(" "),1==t.open_svip?a("el-button",{attrs:{size:"mini",disabled:0==t.multipleSelection.length},on:{click:t.batchSvip}},[t._v("批量设置会员价")]):t._e(),t._v(" "),a("el-button",{attrs:{size:"mini",type:"success"},on:{click:t.importShort}},[t._v("商品模板导入")]),t._v(" "),a("el-button",{attrs:{size:"mini",type:"success"},on:{click:t.importShortImg}},[t._v("商品图片导入")])],1),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{data:t.tableData.data,size:"mini","row-class-name":t.tableRowClassName,"row-key":function(t){return t.product_id}},on:{"selection-change":t.handleSelectionChange,rowclick:function(e){return e.stopPropagation(),t.closeEdit(e)}}},[a("el-table-column",{attrs:{type:"selection","reserve-selection":!0,width:"55"}}),t._v(" "),a("el-table-column",{attrs:{type:"expand"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-form",{staticClass:"demo-table-expand demo-table-expand1",attrs:{"label-position":"left",inline:""}},[a("el-form-item",{attrs:{label:"平台分类:"}},[a("span",[t._v(t._s(e.row.storeCategory?e.row.storeCategory.cate_name:"-"))])]),t._v(" "),a("el-form-item",{attrs:{label:"商品分类:"}},[e.row.merCateId.length?t._l(e.row.merCateId,(function(e,i){return a("span",{key:i,staticClass:"mr10"},[t._v(t._s(e.category.cate_name))])})):a("span",[t._v("-")])],2),t._v(" "),a("el-form-item",{attrs:{label:"品牌:"}},[a("span",{staticClass:"mr10"},[t._v(t._s(e.row.brand?e.row.brand.brand_name:"-"))])]),t._v(" "),a("el-form-item",{attrs:{label:"市场价格:"}},[a("span",[t._v(t._s(t._f("filterEmpty")(e.row.ot_price)))])]),t._v(" "),a("el-form-item",{attrs:{label:"成本价:"}},[a("span",[t._v(t._s(t._f("filterEmpty")(e.row.cost)))])]),t._v(" "),a("el-form-item",{attrs:{label:"收藏:"}},[a("span",[t._v(t._s(t._f("filterEmpty")(e.row.care_count)))])]),t._v(" "),"7"===t.tableFrom.type?a("el-form-item",{key:"1",attrs:{label:"未通过原因:"}},[a("span",[t._v(t._s(e.row.refusal))])]):t._e()],1)]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"product_id",label:"ID","min-width":"50"}}),t._v(" "),a("el-table-column",{attrs:{label:"商品图","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(t){return[a("div",{staticClass:"demo-image__preview"},[a("el-image",{attrs:{src:t.row.image,"preview-src-list":[t.row.image]}})],1)]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"store_name",label:"商品名称","min-width":"200"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.attrValue&&e.row.attrValue.length>1?a("div",[a("span",{staticStyle:{color:"#fe8c51","font-size":"10px","margin-right":"4px"}},[t._v("[多规格]")]),t._v(t._s(e.row.store_name)+"\n ")]):a("span",[t._v(t._s(e.row.store_name))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"price",label:"商品售价","min-width":"90"}}),t._v(" "),a("el-table-column",{attrs:{prop:"price",label:"批发价","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.attrValue[0]?a("span",[t._v("\n "+t._s(e.row.attrValue[0].procure_price||"-"))]):a("span",[t._v("-")])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"sales",label:"销量","min-width":"90"}}),t._v(" "),a("el-table-column",{attrs:{prop:"stock",label:"库存","min-width":"70"}}),t._v(" "),a("el-table-column",{attrs:{prop:"sort",align:"center",label:"排序","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.index===t.tabClickIndex?a("span",[a("el-input",{attrs:{type:"number",maxlength:"300",size:"mini",autofocus:""},on:{blur:function(a){return t.inputBlur(e)}},model:{value:e.row["sort"],callback:function(a){t.$set(e.row,"sort",t._n(a))},expression:"scope.row['sort']"}})],1):a("span",{on:{dblclick:function(a){return a.stopPropagation(),t.tabClick(e.row)}}},[t._v(t._s(e.row["sort"]))])]}}])}),t._v(" "),Number(t.tableFrom.type)<5?a("el-table-column",{key:"1",attrs:{prop:"status",label:"上/下架","min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-switch",{attrs:{"active-value":1,"inactive-value":0,"active-text":"上架","inactive-text":"下架"},on:{change:function(a){return t.onchangeIsShow(e.row)}},model:{value:e.row.is_show,callback:function(a){t.$set(e.row,"is_show",a)},expression:"scope.row.is_show"}})]}}],null,!1,132813036)}):t._e(),t._v(" "),a("el-table-column",{attrs:{prop:"stock",label:"商品状态","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("productStatusFilter")(e.row.us_status)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"create_time",label:"创建时间","min-width":"150"}}),t._v(" "),a("el-table-column",{attrs:{label:"操作","min-width":"150",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[5!=t.tableFrom.type?a("router-link",{attrs:{to:{path:t.roterPre+"/product/list/addProduct/"+e.row.product_id}}},[a("el-button",{staticClass:"mr10",attrs:{type:"text",size:"small"}},[t._v("编辑")])],1):t._e(),t._v(" "),5!=t.tableFrom.type?a("router-link",{attrs:{to:{path:t.roterPre+"/product/list/addProduct/"+e.row.product_id+"?type=copy"}}},[a("el-button",{staticClass:"mr10",attrs:{type:"text",size:"small"}},[t._v("复制")])],1):t._e(),t._v(" "),"5"!==t.tableFrom.type?a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.handlePreview(e.row.product_id)}}},[t._v("预览")]):t._e(),t._v(" "),5!=t.tableFrom.type?a("router-link",{attrs:{to:{path:t.roterPre+"/product/reviews/?product_id="+e.row.product_id}}},[a("el-button",{staticClass:"mr10",attrs:{type:"text",size:"small"}},[t._v("查看评价")])],1):t._e(),t._v(" "),"5"!==t.tableFrom.type&&"1"==t.is_audit?a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.onAuditFree(e.row)}}},[t._v("免审编辑")]):t._e(),t._v(" "),"5"===t.tableFrom.type?a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.handleRestore(e.row.product_id)}}},[t._v("恢复商品")]):t._e(),t._v(" "),"1"!==t.tableFrom.type&&"3"!==t.tableFrom.type&&"4"!==t.tableFrom.type?a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.handleDelete(e.row.product_id,e.$index)}}},[t._v(t._s("5"===t.tableFrom.type?"删除":"加入回收站"))]):t._e()]}}])})],1),t._v(" "),a("div",{staticClass:"block"},[a("el-pagination",{attrs:{"page-sizes":[20,40,60,80],"page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"total, sizes, prev, pager, next, jumper",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1),t._v(" "),a("tao-bao",{ref:"taoBao",attrs:{deliveryType:t.deliveryType,deliveryList:t.deliveryList},on:{getSuccess:t.getSuccess}}),t._v(" "),t.previewVisible?a("div",[a("div",{staticClass:"bg",on:{click:function(e){e.stopPropagation(),t.previewVisible=!1}}}),t._v(" "),t.previewVisible?a("preview-box",{ref:"previewBox",attrs:{"goods-id":t.goodsId,"product-type":t.product,"preview-key":t.previewKey}}):t._e()],1):t._e(),t._v(" "),t.dialogLabel?a("el-dialog",{attrs:{title:"选择标签",visible:t.dialogLabel,width:"800px","before-close":t.handleClose},on:{"update:visible":function(e){t.dialogLabel=e}}},[a("el-form",{ref:"labelForm",attrs:{model:t.labelForm},nativeOn:{submit:function(t){t.preventDefault()}}},[a("el-form-item",[a("el-select",{staticClass:"selWidth",attrs:{clearable:"",multiple:"",placeholder:"请选择"},model:{value:t.labelForm.mer_labels,callback:function(e){t.$set(t.labelForm,"mer_labels",e)},expression:"labelForm.mer_labels"}},t._l(t.labelList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1)],1)],1),t._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.submitForm("labelForm")}}},[t._v("提交")])],1)],1):t._e(),t._v(" "),a("edit-attr",{ref:"editAttr"}),t._v(" "),t.dialogFreight?a("el-dialog",{attrs:{title:"选择运费模板",visible:t.dialogFreight,width:"800px","before-close":t.handleFreightClose},on:{"update:visible":function(e){t.dialogFreight=e}}},[a("el-form",{ref:"tempForm",attrs:{model:t.tempForm,rules:t.tempRule},nativeOn:{submit:function(t){t.preventDefault()}}},[a("el-form-item",{attrs:{prop:"temp_id"}},[a("el-select",{staticClass:"selWidth",attrs:{clearable:"",placeholder:"请选择"},model:{value:t.tempForm.temp_id,callback:function(e){t.$set(t.tempForm,"temp_id",e)},expression:"tempForm.temp_id"}},t._l(t.tempList,(function(t){return a("el-option",{key:t.shipping_template_id,attrs:{label:t.name,value:t.shipping_template_id}})})),1)],1)],1),t._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.submitTempForm("tempForm")}}},[t._v("提交")])],1)],1):t._e(),t._v(" "),t.dialogCommision?a("el-dialog",{attrs:{title:"设置佣金",visible:t.dialogCommision,width:"600px"},on:{"update:visible":function(e){t.dialogCommision=e}}},[a("el-form",{ref:"commisionForm",attrs:{model:t.commisionForm,rules:t.commisionRule},nativeOn:{submit:function(t){t.preventDefault()}}},[a("el-form-item",{attrs:{label:"一级佣金比例:",prop:"extension_one"}},[a("el-input-number",{staticClass:"priceBox",attrs:{precision:2,step:.1,min:0,max:1,"controls-position":"right"},model:{value:t.commisionForm.extension_one,callback:function(e){t.$set(t.commisionForm,"extension_one",e)},expression:"commisionForm.extension_one"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"二级佣金比例:",prop:"extension_two"}},[a("el-input-number",{staticClass:"priceBox",attrs:{precision:2,step:.1,min:0,max:1,"controls-position":"right"},model:{value:t.commisionForm.extension_two,callback:function(e){t.$set(t.commisionForm,"extension_two",e)},expression:"commisionForm.extension_two"}})],1),t._v(" "),a("el-form-item",[a("span",[t._v("备注:订单交易成功后给上级返佣的比例,例:0.5 =\n 返订单金额的50%")])])],1),t._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.submitCommisionForm("commisionForm")}}},[t._v("提交")])],1)],1):t._e(),t._v(" "),t.dialogSvip?a("el-dialog",{attrs:{title:"批量设置付费会员价",visible:t.dialogSvip,width:"700px"},on:{"update:visible":function(e){t.dialogSvip=e}}},[a("el-form",{ref:"svipForm",attrs:{model:t.svipForm,"label-width":"80px"},nativeOn:{submit:function(t){t.preventDefault()}}},[a("el-form-item",{attrs:{label:"参与方式:"}},[a("el-radio-group",{model:{value:t.svipForm.svip_price_type,callback:function(e){t.$set(t.svipForm,"svip_price_type",e)},expression:"svipForm.svip_price_type"}},[a("el-radio",{staticClass:"radio",attrs:{label:0}},[t._v("不设置会员价")]),t._v(" "),a("el-radio",{staticClass:"radio",attrs:{label:1}},[t._v("默认设置会员价")])],1)],1),t._v(" "),a("el-form-item",[t._v("\n 备注:默认设置会员价是指商户在\n "),a("router-link",{staticStyle:{color:"#1890ff"},attrs:{to:{path:t.roterPre+"/systemForm/Basics/svip"}}},[t._v("[设置-付费会员设置]")]),t._v("中设置的会员折扣价,选择后每个商品默认展示此处设置的会员折扣价。\n ")],1)],1),t._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.submitSvipForm("svipForm")}}},[t._v("提交")])],1)],1):t._e(),t._v(" "),t.dialogImport?a("el-dialog",{attrs:{title:"商品模板导入",visible:t.dialogImport,width:"800px","before-close":t.importClose},on:{"update:visible":function(e){t.dialogImport=e}}},[a("el-form",{attrs:{model:t.importInfo}},[a("el-form-item",{attrs:{label:"商品模板","label-width":"100px"}},[a("div",{staticStyle:{display:"flex"}},[a("el-upload",{staticClass:"upload-demo",attrs:{drag:"",action:"store/import/product",multiple:!1,"http-request":t.importXlsUpload,accept:"application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",limit:1}},[a("i",{staticClass:"el-icon-upload"}),t._v(" "),a("div",{staticClass:"el-upload__text"},[t._v("\n 将文件拖到此处,或"),a("em",[t._v("点击上传")])]),t._v(" "),a("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[t._v("\n 只能上传xls*类型的文件\n ")])]),t._v(" "),a("div",{staticClass:"el-upload__text",staticStyle:{"padding-left":"20px","line-height":"20px"}},[a("div",[t._v("温馨提示:")]),t._v(" "),a("div",[t._v("\n 第一次导入请下载模板查看, 按照模板填写商品信息,\n 点击左边按钮进行上传, 上传完成后请耐心等待商品导入完成,\n "),a("span",{staticStyle:{color:"coral"}},[t._v("商品全部导入成功后再上传商品图片,\n 如果未导入请检查格式是否正确")])]),t._v(" "),a("div",{staticStyle:{color:"#1890ff","padding-top":"10px"}},["TypeSupplyChain"==t.merchantType.type_code?a("a",{attrs:{href:"https://lihai001.oss-cn-chengdu.aliyuncs.com/app/2023111/%E5%B8%82%E7%BA%A7%E4%BE%9B%E5%BA%94%E9%93%BE%E5%95%86%E6%88%B7%E5%95%86%E5%93%81%E8%B5%84%E6%96%99%E5%AF%BC%E5%85%A5%E6%A8%A1%E6%9D%BF.xlsx"}},[a("em",[t._v("下载示例模板")])]):a("a",{attrs:{href:"https://lihai001.oss-cn-chengdu.aliyuncs.com/app/2023111/%E9%95%87%E4%BE%9B%E5%BA%94%E9%93%BE%E5%95%86%E6%88%B7%E5%95%86%E5%93%81%E8%B5%84%E6%96%99%E5%AF%BC%E5%85%A5%E6%A8%A1%E6%9D%BF.xlsx"}},[a("em",[t._v("下载示例模板")])])])])],1)])],1)],1):t._e(),t._v(" "),t.dialogImportImg?a("el-dialog",{attrs:{title:"商品图片导入",visible:t.dialogImportImg,width:"800px","before-close":t.importCloseImg},on:{"update:visible":function(e){t.dialogImportImg=e}}},[a("el-form",{attrs:{model:t.importInfo}},[a("el-form-item",{attrs:{label:"商品图片","label-width":"100px"}},[a("div",{staticStyle:{display:"flex"}},[a("el-upload",{staticClass:"upload-demo",attrs:{drag:"",action:"store/import/import_images",multiple:!1,"http-request":t.importZipUpload,accept:".zip,.rar,application/x-rar-compressed",limit:1}},[a("i",{staticClass:"el-icon-upload"}),t._v(" "),a("div",{staticClass:"el-upload__text"},[t._v("\n 将文件拖到此处,或"),a("em",[t._v("点击上传")])]),t._v(" "),a("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[t._v("\n 只能上传zip, rar, rar4压缩包文件\n ")])]),t._v(" "),a("div",{staticClass:"el-upload__text",staticStyle:{"padding-left":"20px","line-height":"20px"}},[a("div",[t._v("温馨提示:")]),t._v(" "),a("div",[t._v("\n 请先将商品模板导入成功后再导入商品图片, 否则导入的商品图片无效,\n "),a("span",{staticStyle:{color:"coral"}},[t._v("请等待商品完全导入后再上传图片压缩包,\n 如果未导入请检查格式是否正确")])]),t._v(" "),a("div",{staticStyle:{color:"#1890ff","padding-top":"10px"}},[a("a",{attrs:{href:"https://lihai001.oss-cn-chengdu.aliyuncs.com/app/%E5%AF%BC%E5%85%A5%E5%95%86%E5%93%81%E5%9B%BE%E7%89%87%E6%93%8D%E4%BD%9C%E6%8C%87%E5%BC%95.pdf",target:"_blank"}},[a("em",[t._v("查看详细操作步骤")])])]),t._v(" "),a("div",{staticStyle:{color:"#1890ff","padding-top":"10px"}},[a("a",{attrs:{href:"https://lihai001.oss-cn-chengdu.aliyuncs.com/app/XXX%E5%95%86%E6%88%B7%E5%95%86%E5%93%81%E5%9B%BE%E7%89%87.zip"}},[a("em",[t._v("下载示例模板")])])])])],1)])],1)],1):t._e()],1)},o=[],l=a("c7eb"),r=(a("96cf"),a("1da1")),n=(a("7f7f"),a("55dd"),a("c4c8")),s=(a("c24f"),a("83d6")),c=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"Box"},[t.modals?a("el-dialog",{attrs:{visible:t.modals,width:"70%",title:"商品采集","custom-class":"dialog-scustom"},on:{"update:visible":function(e){t.modals=e}}},[a("el-card",[a("div",[t._v("复制淘宝、天猫、京东、苏宁、1688;")]),t._v("\n 生成的商品默认是没有上架的,请手动上架商品!\n "),a("span",{staticStyle:{color:"rgb(237, 64, 20)"}},[t._v("商品复制次数剩余:"+t._s(t.count)+"次")]),t._v(" "),a("router-link",{attrs:{to:{path:t.roterPre+"/setting/sms/sms_pay/index?type=copy"}}},[a("el-button",{attrs:{size:"small",type:"text"}},[t._v("增加采集次数")])],1),t._v(" "),a("el-button",{staticStyle:{"margin-left":"15px"},attrs:{size:"small",type:"primary"},on:{click:t.openRecords}},[t._v("查看商品复制记录")])],1),t._v(" "),a("el-form",{ref:"formValidate",staticClass:"formValidate mt20",attrs:{model:t.formValidate,rules:t.ruleInline,"label-width":"130px","label-position":"right"},nativeOn:{submit:function(t){t.preventDefault()}}},[a("el-form-item",{attrs:{label:"链接地址:"}},[a("el-input",{staticClass:"numPut",attrs:{search:"",placeholder:"请输入链接地址"},model:{value:t.soure_link,callback:function(e){t.soure_link=e},expression:"soure_link"}}),t._v(" "),a("el-button",{attrs:{loading:t.loading,size:"small",type:"primary"},on:{click:t.add}},[t._v("确定")])],1),t._v(" "),a("div",[t.isData?a("div",[a("el-form-item",{attrs:{label:"商品名称:",prop:"store_name"}},[a("el-input",{attrs:{placeholder:"请输入商品名称"},model:{value:t.formValidate.store_name,callback:function(e){t.$set(t.formValidate,"store_name",e)},expression:"formValidate.store_name"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"商品类型:",prop:"type"}},t._l(t.virtual,(function(e,i){return a("div",{key:i,staticClass:"virtual",class:t.formValidate.type==e.id?"virtual_boder":"virtual_boder2",on:{click:function(a){return t.virtualbtn(e.id,2)}}},[a("div",{staticClass:"virtual_top"},[t._v(t._s(e.tit))]),t._v(" "),a("div",{staticClass:"virtual_bottom"},[t._v("("+t._s(e.tit2)+")")]),t._v(" "),t.formValidate.type==e.id?a("div",{staticClass:"virtual_san"}):t._e(),t._v(" "),t.formValidate.type==e.id?a("div",{staticClass:"virtual_dui"},[t._v(" ✓")]):t._e()])})),0),t._v(" "),a("el-form-item",{attrs:{label:"商品简介:",prop:"store_info","label-for":"store_info"}},[a("el-input",{attrs:{type:"textarea",rows:3,placeholder:"请输入商品简介"},model:{value:t.formValidate.store_info,callback:function(e){t.$set(t.formValidate,"store_info",e)},expression:"formValidate.store_info"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"平台商品分类:",prop:"cate_id"}},[a("el-cascader",{staticClass:"selWidth",attrs:{options:t.categoryList,clearable:""},model:{value:t.formValidate.cate_id,callback:function(e){t.$set(t.formValidate,"cate_id",e)},expression:"formValidate.cate_id"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"商户商品分类:",prop:"mer_cate_id"}},[a("el-cascader",{staticClass:"selWidth",attrs:{options:t.merCateList,props:t.propsMer,clearable:""},model:{value:t.formValidate.mer_cate_id,callback:function(e){t.$set(t.formValidate,"mer_cate_id",e)},expression:"formValidate.mer_cate_id"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"品牌选择:",prop:"brand_id"}},[a("el-select",{staticClass:"selWidth",attrs:{filterable:"",placeholder:"请选择"},model:{value:t.formValidate.brand_id,callback:function(e){t.$set(t.formValidate,"brand_id",e)},expression:"formValidate.brand_id"}},t._l(t.BrandList,(function(t){return a("el-option",{key:t.brand_id,attrs:{label:t.brand_name,value:t.brand_id}})})),1)],1),t._v(" "),a("el-form-item",t._b({attrs:{label:"商品关键字:",prop:"keyword","label-for":"keyword"}},"el-form-item",t.grid,!1),[a("el-input",{attrs:{placeholder:"请输入商品关键字"},model:{value:t.formValidate.keyword,callback:function(e){t.$set(t.formValidate,"keyword",e)},expression:"formValidate.keyword"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"单位:",prop:"unit_name","label-for":"unit_name"}},[a("el-input",{attrs:{placeholder:"请输入单位"},model:{value:t.formValidate.unit_name,callback:function(e){t.$set(t.formValidate,"unit_name",e)},expression:"formValidate.unit_name"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"单次最多购买件数:"}},[a("el-input-number",{attrs:{min:0,placeholder:"请输入购买件数"},model:{value:t.formValidate.once_count,callback:function(e){t.$set(t.formValidate,"once_count",e)},expression:"formValidate.once_count"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"送货方式:",prop:"delivery_way"}},[a("div",{staticClass:"acea-row"},[a("el-checkbox-group",{model:{value:t.formValidate.delivery_way,callback:function(e){t.$set(t.formValidate,"delivery_way",e)},expression:"formValidate.delivery_way"}},t._l(t.deliveryList,(function(e){return a("el-checkbox",{key:e.value,attrs:{label:e.value}},[t._v("\n "+t._s(e.name)+"\n ")])})),1)],1)]),t._v(" "),2==t.formValidate.delivery_way.length||1==t.formValidate.delivery_way.length&&2==t.formValidate.delivery_way[0]?a("el-form-item",{attrs:{label:"是否包邮:"}},[a("el-radio-group",{model:{value:t.formValidate.delivery_free,callback:function(e){t.$set(t.formValidate,"delivery_free",e)},expression:"formValidate.delivery_free"}},[a("el-radio",{staticClass:"radio",attrs:{label:0}},[t._v("否")]),t._v(" "),a("el-radio",{attrs:{label:1}},[t._v("是")])],1)],1):t._e(),t._v(" "),0==t.formValidate.delivery_free&&(2==t.formValidate.delivery_way.length||1==t.formValidate.delivery_way.length&&2==t.formValidate.delivery_way[0])?a("el-form-item",t._b({attrs:{label:"运费模板:",prop:"temp_id"}},"el-form-item",t.grid,!1),[a("el-select",{attrs:{clearable:""},model:{value:t.formValidate.temp_id,callback:function(e){t.$set(t.formValidate,"temp_id",e)},expression:"formValidate.temp_id"}},t._l(t.shippingList,(function(t){return a("el-option",{key:t.shipping_template_id,attrs:{label:t.name,value:t.shipping_template_id}})})),1)],1):t._e(),t._v(" "),a("el-form-item",{attrs:{label:"商品标签:"}},[a("el-select",{staticClass:"selWidthd",attrs:{multiple:"",placeholder:"请选择"},model:{value:t.formValidate.mer_labels,callback:function(e){t.$set(t.formValidate,"mer_labels",e)},expression:"formValidate.mer_labels"}},t._l(t.labelList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1)],1),t._v(" "),a("el-form-item",{attrs:{label:"平台保障服务:"}},[a("div",{staticClass:"acea-row"},[a("el-select",{staticClass:"selWidthd mr20",attrs:{placeholder:"请选择",clearable:""},model:{value:t.formValidate.guarantee_template_id,callback:function(e){t.$set(t.formValidate,"guarantee_template_id",e)},expression:"formValidate.guarantee_template_id"}},t._l(t.guaranteeList,(function(t){return a("el-option",{key:t.guarantee_template_id,attrs:{label:t.template_name,value:t.guarantee_template_id}})})),1)],1)]),t._v(" "),a("el-form-item",{attrs:{label:"商品图:"}},[a("div",{staticClass:"pictrueBox"},[t.formValidate.image?a("div",{staticClass:"pictrue"},[a("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.formValidate.image,expression:"formValidate.image"}]})]):t._e()])]),t._v(" "),a("el-form-item",{attrs:{label:"商品轮播图:"}},[a("div",{staticClass:"acea-row"},t._l(t.formValidate.slider_image,(function(e,i){return a("div",{key:i,staticClass:"lunBox mr15",attrs:{draggable:"true"},on:{dragstart:function(a){return t.handleDragStart(a,e)},dragover:function(a){return a.preventDefault(),t.handleDragOver(a,e)},dragenter:function(a){return t.handleDragEnter(a,e)},dragend:function(a){return t.handleDragEnd(a,e)}}},[a("div",{staticClass:"pictrue"},[a("img",{directives:[{name:"lazy",rawName:"v-lazy",value:e,expression:"item"}]})]),t._v(" "),a("div",{staticClass:"buttonGroup"},[a("el-button",{staticClass:"small-btn",nativeOn:{click:function(a){return t.checked(e,i)}}},[t._v("主图")]),t._v(" "),a("el-button",{staticClass:"small-btn",nativeOn:{click:function(e){return t.handleRemove(i)}}},[t._v("移除")])],1)])})),0)]),t._v(" "),1===t.formValidate.spec_type&&t.ManyAttrValue.length>1?a("el-form-item",{staticClass:"labeltop",attrs:{label:"批量设置:"}},[a("el-table",{attrs:{data:t.oneFormBatch}},[a("el-table-column",{attrs:{label:"图片","min-width":"150",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"acea-row row-middle row-center-wrapper",on:{click:function(e){return t.modalPicTap("1","dan","pi")}}},[t.oneFormBatch[0].image?a("div",{staticClass:"pictrue pictrueTab"},[a("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.oneFormBatch[0].image,expression:"oneFormBatch[0].image"}]})]):a("div",{staticClass:"upLoad pictrueTab acea-row row-center-wrapper"},[a("i",{staticClass:"el-icon-camera cameraIconfont"})])])]}}],null,!1,3503723231)}),t._v(" "),a("el-table-column",{attrs:{label:"售价","min-width":"150",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-input",{staticClass:"priceBox",attrs:{type:"number",min:"0"},model:{value:t.oneFormBatch[0].price,callback:function(e){t.$set(t.oneFormBatch[0],"price",e)},expression:"oneFormBatch[0].price"}})]}}],null,!1,2340413431)}),t._v(" "),a("el-table-column",{attrs:{label:"成本价","min-width":"150",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-input",{staticClass:"priceBox",attrs:{type:"number",min:"0"},model:{value:t.oneFormBatch[0].cost,callback:function(e){t.$set(t.oneFormBatch[0],"cost",e)},expression:"oneFormBatch[0].cost"}})]}}],null,!1,3894142481)}),t._v(" "),a("el-table-column",{attrs:{label:"市场价","min-width":"150",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-input",{staticClass:"priceBox",attrs:{type:"number",min:"0"},model:{value:t.oneFormBatch[0].ot_price,callback:function(e){t.$set(t.oneFormBatch[0],"ot_price",e)},expression:"oneFormBatch[0].ot_price"}})]}}],null,!1,3434216275)}),t._v(" "),a("el-table-column",{attrs:{label:"库存","min-width":"150",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-input",{staticClass:"priceBox",model:{value:t.oneFormBatch[0].stock,callback:function(e){t.$set(t.oneFormBatch[0],"stock",t._n(e))},expression:"oneFormBatch[0].stock"}})]}}],null,!1,86708727)}),t._v(" "),a("el-table-column",{attrs:{label:"商品编号","min-width":"150",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-input",{model:{value:t.oneFormBatch[0].bar_code,callback:function(e){t.$set(t.oneFormBatch[0],"bar_code",e)},expression:"oneFormBatch[0].bar_code"}})]}}],null,!1,989028316)}),t._v(" "),a("el-table-column",{attrs:{label:"重量(KG)","min-width":"150",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-input",{staticClass:"priceBox",attrs:{type:"number",min:"0"},model:{value:t.oneFormBatch[0].weight,callback:function(e){t.$set(t.oneFormBatch[0],"weight",e)},expression:"oneFormBatch[0].weight"}})]}}],null,!1,3785536346)}),t._v(" "),a("el-table-column",{attrs:{label:"体积(m²)","min-width":"150",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-input",{staticClass:"priceBox",attrs:{type:"number",min:"0"},model:{value:t.oneFormBatch[0].volume,callback:function(e){t.$set(t.oneFormBatch[0],"volume",e)},expression:"oneFormBatch[0].volume"}})]}}],null,!1,1353389234)}),t._v(" "),a("el-table-column",{attrs:{label:"操作","min-width":"150",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("a",{staticClass:"ela-btn",attrs:{href:"javascript: void(0);"},on:{click:t.batchAdd}},[t._v("添加")]),t._v(" "),a("a",{staticClass:"ela-btn",attrs:{href:"javascript: void(0);"},on:{click:t.batchDel}},[t._v("清空")])]}}],null,!1,2952505336)})],1)],1):t._e(),t._v(" "),0===t.formValidate.spec_type?a("el-form-item",{staticClass:"labeltop",attrs:{label:"规格列表:"}},[a("el-table",{staticClass:"tabNumWidth",attrs:{data:t.OneattrValue,border:"",size:"mini"}},[a("el-table-column",{attrs:{align:"center",label:"图片","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"upLoadPicBox",on:{click:function(a){return t.modalPicTap("1","dan",e.$index)}}},[e.row.image?a("div",{staticClass:"pictrue tabPic"},[a("img",{attrs:{src:e.row.image}})]):a("div",{staticClass:"upLoad tabPic"},[a("i",{staticClass:"el-icon-camera cameraIconfont"})])])]}}],null,!1,2217564926)}),t._v(" "),t._l(t.attrValue,(function(e,i){return a("el-table-column",{key:i,attrs:{label:t.formThead[i].title,align:"center","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-input",{staticClass:"priceBox",attrs:{type:"商品编号"===t.formThead[i].title?"text":"number",min:0},model:{value:e.row[i],callback:function(a){t.$set(e.row,i,a)},expression:"scope.row[iii]"}})]}}],null,!0)})})),t._v(" "),1===t.formValidate.extension_type?[a("el-table-column",{attrs:{align:"center",label:"一级返佣(元)","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-input",{staticClass:"priceBox",attrs:{type:"number",min:0},model:{value:e.row.extension_one,callback:function(a){t.$set(e.row,"extension_one",a)},expression:"scope.row.extension_one"}})]}}],null,!1,2286159726)}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"二级返佣(元)","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-input",{staticClass:"priceBox",attrs:{type:"number",min:0},model:{value:e.row.extension_two,callback:function(a){t.$set(e.row,"extension_two",a)},expression:"scope.row.extension_two"}})]}}],null,!1,4057305350)})]:t._e()],2)],1):t._e(),t._v(" "),1===t.formValidate.spec_type?a("el-form-item",{staticClass:"labeltop",attrs:{label:"规格列表:"}},[a("el-table",{staticClass:"tabNumWidth",attrs:{data:t.ManyAttrValue,border:"",size:"mini"}},[t.manyTabDate?t._l(t.manyTabDate,(function(e,i){return a("el-table-column",{key:i,attrs:{align:"center",label:t.manyTabTit[i].title,"min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{staticClass:"priceBox",domProps:{textContent:t._s(e.row[i])}})]}}],null,!0)})})):t._e(),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"图片","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"upLoadPicBox",attrs:{title:"750*750px"},on:{click:function(a){return t.modalPicTap("2","duo",e.$index)}}},[e.row.image?a("div",{staticClass:"pictrue tabPic"},[a("img",{attrs:{src:e.row.image}})]):a("div",{staticClass:"upLoad tabPic"},[a("i",{staticClass:"el-icon-camera cameraIconfont"})])])]}}],null,!1,477089504)}),t._v(" "),t._l(t.attrValue,(function(e,i){return a("el-table-column",{key:i,attrs:{label:t.formThead[i].title,align:"center","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-input",{staticClass:"priceBox",attrs:{type:"商品编号"===t.formThead[i].title?"text":"number"},model:{value:e.row[i],callback:function(a){t.$set(e.row,i,a)},expression:"scope.row[iii]"}})]}}],null,!0)})})),t._v(" "),1===t.formValidate.extension_type?[a("el-table-column",{attrs:{align:"center",label:"一级返佣(元)","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-input",{staticClass:"priceBox",attrs:{type:"number",min:0},model:{value:e.row.extension_one,callback:function(a){t.$set(e.row,"extension_one",a)},expression:"scope.row.extension_one"}})]}}],null,!1,2286159726)}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"二级返佣(元)","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-input",{staticClass:"priceBox",attrs:{type:"number",min:0},model:{value:e.row.extension_two,callback:function(a){t.$set(e.row,"extension_two",a)},expression:"scope.row.extension_two"}})]}}],null,!1,4057305350)})]:t._e()],2)],1):t._e(),t._v(" "),a("el-form-item",{attrs:{label:"商品详情:"}},[a("ueditorFrom",{attrs:{content:t.formValidate.content},model:{value:t.formValidate.content,callback:function(e){t.$set(t.formValidate,"content",e)},expression:"formValidate.content"}})],1),t._v(" "),a("el-form-item",[a("el-button",{staticClass:"submission",attrs:{loading:t.loading1,type:"primary"},on:{click:function(e){return t.handleSubmit("formValidate")}}},[t._v("提交")])],1)],1):t._e()])],1)],1):t._e(),t._v(" "),a("copy-record",{ref:"copyRecord"})],1)},u=[],m=a("2909"),d=a("ade3"),p=(a("28a5"),a("8615"),a("ac6a"),a("b85c")),f=a("ef0d"),h=function(){var t=this,e=t.$createElement,a=t._self._c||e;return t.showRecord?a("el-dialog",{attrs:{title:"复制记录",visible:t.showRecord,width:"900px"},on:{"update:visible":function(e){t.showRecord=e}}},[a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}]},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"table",staticStyle:{width:"100%"},attrs:{data:t.tableData.data,size:"mini","highlight-current-row":""}},[a("el-table-column",{attrs:{label:"ID",prop:"mer_id","min-width":"50"}}),t._v(" "),a("el-table-column",{attrs:{label:"使用次数",prop:"num","min-width":"80"}}),t._v(" "),a("el-table-column",{attrs:{label:"复制商品平台名称",prop:"type","min-width":"120"}}),t._v(" "),a("el-table-column",{attrs:{label:"剩余次数",prop:"number","min-width":"80"}}),t._v(" "),a("el-table-column",{attrs:{label:"商品复制链接",prop:"info","min-width":"180"}}),t._v(" "),a("el-table-column",{attrs:{label:"操作时间",prop:"create_time","min-width":"120"}})],1),t._v(" "),a("div",{staticClass:"block"},[a("el-pagination",{attrs:{"page-sizes":[10,20],"page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"total, sizes, prev, pager, next, jumper",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1)]):t._e()},_=[],b={name:"CopyRecord",data:function(){return{showRecord:!1,loading:!1,tableData:{data:[],total:0},tableFrom:{page:1,limit:10}}},methods:{getRecord:function(){var t=this;this.showRecord=!0,this.loading=!0,Object(n["db"])(this.tableFrom).then((function(e){t.tableData.data=e.data.list,t.tableData.total=e.data.count,t.loading=!1})).catch((function(e){t.$message.error(e.message),t.listLoading=!1}))},pageChange:function(t){this.tableFrom.page=t,this.getRecord()},pageChangeLog:function(t){this.tableFromLog.page=t,this.getRecord()},handleSizeChange:function(t){this.tableFrom.limit=t,this.getRecord()}}},g=b,v=(a("669c"),a("2877")),y=Object(v["a"])(g,h,_,!1,null,"3500ed7a",null),w=y.exports,x=a("bbcc"),k=a("5f87"),F={store_name:"",cate_id:"",temp_id:"",type:0,guarantee_template_id:"",keyword:"",unit_name:"",store_info:"",image:"",slider_image:[],content:"",ficti:0,once_count:0,give_integral:0,is_show:0,price:0,cost:0,ot_price:0,stock:0,soure_link:"",attrs:[],items:[],delivery_way:[],mer_labels:[],delivery_free:0,spec_type:0,is_copoy:1,attrValue:[{image:"",price:0,cost:0,ot_price:0,stock:0,bar_code:"",weight:0,volume:0}]},C={price:{title:"售价"},cost:{title:"成本价"},ot_price:{title:"市场价"},stock:{title:"库存"},bar_code:{title:"商品编号"},weight:{title:"重量(KG)"},volume:{title:"体积(m³)"}},V={name:"CopyTaoBao",props:{deliveryList:{type:Array,default:[]},deliveryType:{type:Array,default:[]}},components:{ueditorFrom:f["a"],copyRecord:w},data:function(){var t=x["a"].https+"/upload/image/0/file?ueditor=1&token="+Object(k["a"])();return{roterPre:s["roterPre"],modals:!1,loading:!1,loading1:!1,BaseURL:x["a"].https||"http://localhost:8080",OneattrValue:[Object.assign({},F.attrValue[0])],ManyAttrValue:[Object.assign({},F.attrValue[0])],columnsBatch:[{title:"图片",slot:"image",align:"center",minWidth:80},{title:"售价",slot:"price",align:"center",minWidth:95},{title:"成本价",slot:"cost",align:"center",minWidth:95},{title:"市场价",slot:"ot_price",align:"center",minWidth:95},{title:"库存",slot:"stock",align:"center",minWidth:95},{title:"商品编号",slot:"bar_code",align:"center",minWidth:120},{title:"重量(KG)",slot:"weight",align:"center",minWidth:95},{title:"体积(m³)",slot:"volume",align:"center",minWidth:95}],manyTabDate:{},count:0,modal_loading:!1,images:"",soure_link:"",modalPic:!1,isChoice:"",gridPic:{xl:6,lg:8,md:12,sm:12,xs:12},gridBtn:{xl:4,lg:8,md:8,sm:8,xs:8},columns:[],virtual:[{tit:"普通商品",id:0,tit2:"物流发货"},{tit:"虚拟商品",id:1,tit2:"虚拟发货"}],categoryList:[],merCateList:[],BrandList:[],propsMer:{emitPath:!1,multiple:!0},tableFrom:{mer_cate_id:"",cate_id:"",keyword:"",type:"1",is_gift_bag:""},ruleInline:{cate_id:[{required:!0,message:"请选择商品分类",trigger:"change"}],mer_cate_id:[{required:!0,message:"请选择商户分类",trigger:"change",type:"array",min:"1"}],temp_id:[{required:!0,message:"请选择运费模板",trigger:"change",type:"number"}],brand_id:[{required:!0,message:"请选择品牌",trigger:"change"}],store_info:[{required:!0,message:"请输入商品简介",trigger:"blur"}],delivery_way:[{required:!0,message:"请选择送货方式",trigger:"change"}]},grid:{xl:8,lg:8,md:12,sm:24,xs:24},grid2:{xl:12,lg:12,md:12,sm:24,xs:24},myConfig:{autoHeightEnabled:!1,initialFrameHeight:500,initialFrameWidth:"100%",UEDITOR_HOME_URL:"/UEditor/",serverUrl:t,imageUrl:t,imageFieldName:"file",imageUrlPrefix:"",imageActionName:"upfile",imageMaxSize:2048e3,imageAllowFiles:[".png",".jpg",".jpeg",".gif",".bmp"]},formThead:Object.assign({},C),formValidate:Object.assign({},F),items:[{image:"",price:0,cost:0,ot_price:0,stock:0,bar_code:"",weight:0,volume:0}],shippingList:[],guaranteeList:[],isData:!1,artFrom:{type:"taobao",url:""},tableIndex:0,labelPosition:"right",labelWidth:"120",isMore:"",taoBaoStatus:{},attrInfo:{},labelList:[],oneFormBatch:[{image:"",price:0,cost:0,ot_price:0,stock:0,bar_code:"",weight:0,volume:0}]}},computed:{attrValue:function(){var t=Object.assign({},F.attrValue[0]);return delete t.image,t}},watch:{},created:function(){this.goodsCategory(),this.getCategorySelect(),this.getBrandListApi()},mounted:function(){this.productGetTemplate(),this.getGuaranteeList(),this.getCopyCount(),this.getLabelLst()},methods:{getLabelLst:function(){var t=this;Object(n["x"])().then((function(e){t.labelList=e.data})).catch((function(e){t.$message.error(e.message)}))},getCopyCount:function(){var t=this;Object(n["cb"])().then((function(e){t.count=e.data.count}))},openRecords:function(){this.$refs.copyRecord.getRecord()},batchDel:function(){this.oneFormBatch=[{image:"",price:0,cost:0,ot_price:0,stock:0,bar_code:"",weight:0,volume:0}]},batchAdd:function(){var t,e=Object(p["a"])(this.ManyAttrValue);try{for(e.s();!(t=e.n()).done;){var a=t.value;this.$set(a,"image",this.oneFormBatch[0].image),this.$set(a,"price",this.oneFormBatch[0].price),this.$set(a,"cost",this.oneFormBatch[0].cost),this.$set(a,"ot_price",this.oneFormBatch[0].ot_price),this.$set(a,"stock",this.oneFormBatch[0].stock),this.$set(a,"bar_code",this.oneFormBatch[0].bar_code),this.$set(a,"weight",this.oneFormBatch[0].weight),this.$set(a,"volume",this.oneFormBatch[0].volume),this.$set(a,"extension_one",this.oneFormBatch[0].extension_one),this.$set(a,"extension_two",this.oneFormBatch[0].extension_two)}}catch(i){e.e(i)}finally{e.f()}},delAttrTable:function(t){this.ManyAttrValue.splice(t,1)},productGetTemplate:function(){var t=this;Object(n["Ab"])().then((function(e){t.shippingList=e.data}))},getGuaranteeList:function(){var t=this;Object(n["D"])().then((function(e){t.guaranteeList=e.data}))},handleRemove:function(t){this.formValidate.slider_image.splice(t,1)},checked:function(t,e){this.formValidate.image=t},goodsCategory:function(){var t=this;Object(n["r"])().then((function(e){t.categoryList=e.data})).catch((function(e){t.$message.error(e.message)}))},getCategorySelect:function(){var t=this;Object(n["s"])().then((function(e){t.merCateList=e.data})).catch((function(e){t.$message.error(e.message)}))},getBrandListApi:function(){var t=this;Object(n["q"])().then((function(e){t.BrandList=e.data})).catch((function(e){t.$message.error(e.message)}))},virtualbtn:function(t,e){this.formValidate.type=t,this.productCon()},watCh:function(t){var e=this,a={},i={};this.formValidate.attr.forEach((function(t,e){a["value"+e]={title:t.value},i["value"+e]=""})),this.ManyAttrValue=this.attrFormat(t),console.log(this.ManyAttrValue),this.ManyAttrValue.forEach((function(t,a){var i=Object.values(t.detail).sort().join("/");e.attrInfo[i]&&(e.ManyAttrValue[a]=e.attrInfo[i]),t.image=e.formValidate.image})),this.attrInfo={},this.ManyAttrValue.forEach((function(t){"undefined"!==t.detail&&null!==t.detail&&(e.attrInfo[Object.values(t.detail).sort().join("/")]=t)})),this.manyTabTit=a,this.manyTabDate=i,this.formThead=Object.assign({},this.formThead,a)},attrFormat:function(t){var e=[],a=[];return i(t);function i(t){if(t.length>1)t.forEach((function(i,o){0===o&&(e=t[o]["detail"]);var l=[];e.forEach((function(e){t[o+1]&&t[o+1]["detail"]&&t[o+1]["detail"].forEach((function(i){var r=(0!==o?"":t[o]["value"]+"_$_")+e+"-$-"+t[o+1]["value"]+"_$_"+i;if(l.push(r),o===t.length-2){var n={image:"",price:0,cost:0,ot_price:0,stock:0,bar_code:"",weight:0,volume:0,brokerage:0,brokerage_two:0};r.split("-$-").forEach((function(t,e){var a=t.split("_$_");n["detail"]||(n["detail"]={}),n["detail"][a[0]]=a.length>1?a[1]:""})),Object.values(n.detail).forEach((function(t,e){n["value"+e]=t})),a.push(n)}}))})),e=l.length?l:[]}));else{var i=[];t.forEach((function(t,e){t["detail"].forEach((function(e,o){i[o]=t["value"]+"_"+e,a[o]={image:"",price:0,cost:0,ot_price:0,stock:0,bar_code:"",weight:0,volume:0,brokerage:0,brokerage_two:0,detail:Object(d["a"])({},t["value"],e)},Object.values(a[o].detail).forEach((function(t,e){a[o]["value"+e]=t}))}))})),e.push(i.join("$&"))}return console.log(a),a}},add:function(){var t=this;if(this.soure_link){var e=/(http|ftp|https):\/\/[\w\-_]+(\.[\w\-_]+)+([\w\-\.,@?^=%&:/~\+#]*[\w\-\@?^=%&/~\+#])?/;if(!e.test(this.soure_link))return this.$message.warning("请输入以http开头的地址!");this.artFrom.url=this.soure_link,this.loading=!0,Object(n["u"])(this.artFrom).then((function(e){var a=e.data.info;t.columns=a.info&&a.info.header||t.columnsBatch,t.taoBaoStatus=a.info?a.info:"",t.formValidate={content:a.description||"",is_show:0,type:0,soure_link:t.soure_link,attr:a.info&&a.info.attr||[],delivery_way:a.delivery_way&&a.delivery_way.length?a.delivery_way.map(String):t.deliveryType,delivery_free:a.delivery_free?a.delivery_free:0,attrValue:a.info&&a.info.value||[{image:"",price:0,cost:0,ot_price:0,stock:0,bar_code:"",weight:0,volume:0}],spec_type:a.spec_type,image:a.image,slider_image:a.slider_image,store_info:a.store_info,store_name:a.store_name,unit_name:a.unit_name},0===t.formValidate.spec_type?t.OneattrValue=a.info&&a.info.value||[{image:t.formValidate.image,price:0,cost:0,ot_price:0,stock:0,bar_code:"",weight:0,volume:0}]:(t.ManyAttrValue=a.info&&a.info.value||[{image:"",price:0,cost:0,ot_price:0,stock:0,bar_code:"",weight:0,volume:0}],t.watCh(t.formValidate.attr)),t.formValidate.image&&(t.oneFormBatch[0].image=t.formValidate.image),t.isData=!0,t.loading=!1})).catch((function(e){t.$message.error(e.message),t.loading=!1}))}else this.$message.warning("请输入链接地址!")},handleSubmit:function(t){var e=this;this.$refs[t].validate((function(t){t?(e.modal_loading=!0,e.formValidate.cate_id=e.formValidate.cate_id instanceof Array?e.formValidate.cate_id.pop():e.formValidate.cate_id,e.formValidate.once_count=e.formValidate.once_count||0,1===e.formValidate.spec_type?e.formValidate.attrValue=e.ManyAttrValue:(e.formValidate.attrValue=e.OneattrValue,e.formValidate.attr=[]),e.formValidate.is_copoy=1,e.loading1=!0,Object(n["bb"])(e.formValidate).then((function(t){e.$message.success("商品默认为不上架状态请手动上架商品!"),e.loading1=!1,setTimeout((function(){e.modal_loading=!1}),500),setTimeout((function(){e.modals=!1}),600),e.$emit("getSuccess")})).catch((function(t){e.modal_loading=!1,e.$message.error(t.message),e.loading1=!1}))):e.formValidate.cate_id||e.$message.warning("请填写商品分类!")}))},modalPicTap:function(t,e,a){this.tableIndex=a;var i=this;this.$modalUpload((function(e){console.log(i.formValidate.attr[i.tableIndex]),"1"===t&&("pi"===a?i.oneFormBatch[0].image=e[0]:i.OneattrValue[0].image=e[0]),"2"===t&&(i.ManyAttrValue[i.tableIndex].image=e[0]),i.modalPic=!1}),t)},getPic:function(t){this.callback(t),this.formValidate.attr[this.tableIndex].pic=t.att_dir,this.modalPic=!1},handleDragStart:function(t,e){this.dragging=e},handleDragEnd:function(t,e){this.dragging=null},handleDragOver:function(t){t.dataTransfer.dropEffect="move"},handleDragEnter:function(t,e){if(t.dataTransfer.effectAllowed="move",e!==this.dragging){var a=Object(m["a"])(this.formValidate.slider_image),i=a.indexOf(this.dragging),o=a.indexOf(e);a.splice.apply(a,[o,0].concat(Object(m["a"])(a.splice(i,1)))),this.formValidate.slider_image=a}},addCustomDialog:function(t){window.UE.registerUI("test-dialog",(function(t,e){var a=new window.UE.ui.Dialog({iframeUrl:"/admin/widget.images/index.html?fodder=dialog",editor:t,name:e,title:"上传图片",cssRules:"width:1200px;height:500px;padding:20px;"});this.dialog=a;var i=new window.UE.ui.Button({name:"dialog-button",title:"上传图片",cssRules:"background-image: url(../../../assets/images/icons.png);background-position: -726px -77px;",onclick:function(){a.render(),a.open()}});return i}))}}},B=V,$=(a("e96b"),Object(v["a"])(B,c,u,!1,null,"3cd1b9b0",null)),L=$.exports,S=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"Box"},[t.modals?a("el-dialog",{attrs:{visible:t.modals,width:"80%",title:"免审核商品信息编辑","custom-class":"dialog-scustom"},on:{"update:visible":function(e){t.modals=e}}},[a("el-form",{ref:"formValidate",staticClass:"formValidate mt20",attrs:{model:t.formValidate,rules:t.ruleInline,"label-width":"120px","label-position":"right"},nativeOn:{submit:function(t){t.preventDefault()}}},[a("div",[a("div",[a("el-form-item",{attrs:{label:"商户商品分类:",prop:"mer_cate_id"}},[a("el-cascader",{staticClass:"selWidth",attrs:{options:t.merCateList,props:t.propsMer,clearable:""},model:{value:t.formValidate.mer_cate_id,callback:function(e){t.$set(t.formValidate,"mer_cate_id",e)},expression:"formValidate.mer_cate_id"}})],1),t._v(" "),1===t.formValidate.spec_type&&t.ManyAttrValue.length>1?a("el-form-item",{staticClass:"labeltop",attrs:{label:"批量设置:"}},[a("el-table",{attrs:{data:t.oneFormBatch,size:"mini"}},[a("el-table-column",{attrs:{label:"图片","min-width":"150",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"acea-row row-middle row-center-wrapper"},[t.oneFormBatch[0].image?a("div",{staticClass:"pictrue pictrueTab"},[a("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.oneFormBatch[0].image,expression:"oneFormBatch[0].image"}]})]):a("div",{staticClass:"upLoad pictrueTab acea-row row-center-wrapper"},[a("i",{staticClass:"el-icon-camera cameraIconfont"})])])]}}],null,!1,2622395115)}),t._v(" "),a("el-table-column",{attrs:{label:"售价","min-width":"100",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-input-number",{staticClass:"priceBox",attrs:{min:0,"controls-position":"right"},model:{value:t.oneFormBatch[0].price,callback:function(e){t.$set(t.oneFormBatch[0],"price",e)},expression:"oneFormBatch[0].price"}})]}}],null,!1,92719458)}),t._v(" "),a("el-table-column",{attrs:{label:"成本价","min-width":"100",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-input-number",{staticClass:"priceBox",attrs:{min:0,"controls-position":"right"},model:{value:t.oneFormBatch[0].cost,callback:function(e){t.$set(t.oneFormBatch[0],"cost",e)},expression:"oneFormBatch[0].cost"}})]}}],null,!1,2696007940)}),t._v(" "),a("el-table-column",{attrs:{label:"市场价","min-width":"100",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-input-number",{staticClass:"priceBox",attrs:{min:0,"controls-position":"right"},model:{value:t.oneFormBatch[0].ot_price,callback:function(e){t.$set(t.oneFormBatch[0],"ot_price",e)},expression:"oneFormBatch[0].ot_price"}})]}}],null,!1,912438278)}),t._v(" "),a("el-table-column",{attrs:{label:"库存","min-width":"100",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-input-number",{staticClass:"priceBox",attrs:{min:0,"controls-position":"right"},model:{value:t.oneFormBatch[0].stock,callback:function(e){t.$set(t.oneFormBatch[0],"stock",e)},expression:"oneFormBatch[0].stock"}})]}}],null,!1,429960335)}),t._v(" "),a("el-table-column",{attrs:{label:"商品编号","min-width":"100",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-input",{model:{value:t.oneFormBatch[0].bar_code,callback:function(e){t.$set(t.oneFormBatch[0],"bar_code",e)},expression:"oneFormBatch[0].bar_code"}})]}}],null,!1,989028316)}),t._v(" "),a("el-table-column",{attrs:{label:"重量(KG)","min-width":"100",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-input-number",{staticClass:"priceBox",attrs:{min:0,"controls-position":"right"},model:{value:t.oneFormBatch[0].weight,callback:function(e){t.$set(t.oneFormBatch[0],"weight",e)},expression:"oneFormBatch[0].weight"}})]}}],null,!1,976765487)}),t._v(" "),a("el-table-column",{attrs:{label:"体积(m²)","min-width":"100",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-input-number",{staticClass:"priceBox",attrs:{min:0,"controls-position":"right"},model:{value:t.oneFormBatch[0].volume,callback:function(e){t.$set(t.oneFormBatch[0],"volume",e)},expression:"oneFormBatch[0].volume"}})]}}],null,!1,1463276615)}),t._v(" "),a("el-table-column",{attrs:{label:"操作","min-width":"150",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("a",{staticClass:"ela-btn",attrs:{href:"javascript: void(0);"},on:{click:t.batchAdd}},[t._v("添加")]),t._v(" "),a("a",{staticClass:"ela-btn",attrs:{href:"javascript: void(0);"},on:{click:t.batchDel}},[t._v("清空")])]}}],null,!1,2952505336)})],1)],1):t._e(),t._v(" "),0===t.formValidate.spec_type?a("el-form-item",{staticClass:"labeltop",attrs:{label:"规格列表:"}},[a("el-table",{staticClass:"tabNumWidth",attrs:{data:t.OneattrValue,border:"",size:"mini"}},[a("el-table-column",{attrs:{align:"center",label:"图片","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(t){return[a("div",{staticClass:"upLoadPicBox"},[t.row.image?a("div",{staticClass:"pictrue tabPic"},[a("img",{attrs:{src:t.row.image}})]):a("div",{staticClass:"upLoad tabPic"},[a("i",{staticClass:"el-icon-camera cameraIconfont"})])])]}}],null,!1,2631442157)}),t._v(" "),t._l(t.attrValue,(function(e,i){return a("el-table-column",{key:i,attrs:{label:t.formThead[i].title,align:"center","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return["商品编号"===t.formThead[i].title?a("el-input",{staticClass:"priceBox",attrs:{type:"text"},model:{value:e.row[i],callback:function(a){t.$set(e.row,i,a)},expression:"scope.row[iii]"}}):a("el-input-number",{staticClass:"priceBox",attrs:{min:0,"controls-position":"right"},model:{value:e.row[i],callback:function(a){t.$set(e.row,i,a)},expression:"scope.row[iii]"}})]}}],null,!0)})})),t._v(" "),1===t.formValidate.extension_type?[a("el-table-column",{attrs:{align:"center",label:"一级返佣(元)","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-input-number",{staticClass:"priceBox",attrs:{min:0,"controls-position":"right"},model:{value:e.row.extension_one,callback:function(a){t.$set(e.row,"extension_one",a)},expression:"scope.row.extension_one"}})]}}],null,!1,1308693019)}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"二级返佣(元)","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-input-number",{staticClass:"priceBox",attrs:{min:0,"controls-position":"right"},model:{value:e.row.extension_two,callback:function(a){t.$set(e.row,"extension_two",a)},expression:"scope.row.extension_two"}})]}}],null,!1,899977843)})]:t._e()],2)],1):t._e(),t._v(" "),1===t.formValidate.spec_type?a("el-form-item",{staticClass:"labeltop",attrs:{label:"规格列表:"}},[a("el-table",{staticClass:"tabNumWidth",attrs:{data:t.ManyAttrValue,border:"",size:"mini"}},[t.manyTabDate?t._l(t.manyTabDate,(function(e,i){return a("el-table-column",{key:i,attrs:{align:"center",label:t.manyTabTit[i].title,"min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{staticClass:"priceBox",domProps:{textContent:t._s(e.row[i])}})]}}],null,!0)})})):t._e(),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"图片","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(t){return[a("div",{staticClass:"upLoadPicBox",attrs:{title:"750*750px"}},[t.row.image?a("div",{staticClass:"pictrue tabPic"},[a("img",{attrs:{src:t.row.image}})]):a("div",{staticClass:"upLoad tabPic"},[a("i",{staticClass:"el-icon-camera cameraIconfont"})])])]}}],null,!1,324277957)}),t._v(" "),t._l(t.attrValue,(function(e,i){return a("el-table-column",{key:i,attrs:{label:t.formThead[i].title,align:"center","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return["商品编号"===t.formThead[i].title?a("el-input",{staticClass:"priceBox",attrs:{type:"text"},model:{value:e.row[i],callback:function(a){t.$set(e.row,i,a)},expression:"scope.row[iii]"}}):a("el-input-number",{staticClass:"priceBox",attrs:{min:0,"controls-position":"right"},model:{value:e.row[i],callback:function(a){t.$set(e.row,i,a)},expression:"scope.row[iii]"}})]}}],null,!0)})})),t._v(" "),1===t.formValidate.extension_type?[a("el-table-column",{attrs:{align:"center",label:"一级返佣(元)","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-input-number",{staticClass:"priceBox",attrs:{min:0,"controls-position":"right"},model:{value:e.row.extension_one,callback:function(a){t.$set(e.row,"extension_one",a)},expression:"scope.row.extension_one"}})]}}],null,!1,1308693019)}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"二级返佣(元)","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-input-number",{staticClass:"priceBox",attrs:{min:0,"controls-position":"right"},model:{value:e.row.extension_two,callback:function(a){t.$set(e.row,"extension_two",a)},expression:"scope.row.extension_two"}})]}}],null,!1,899977843)})]:t._e()],2)],1):t._e(),t._v(" "),a("el-form-item",[a("el-button",{staticClass:"submission",attrs:{loading:t.loading1,type:"primary"},on:{click:function(e){return t.handleSubmit("formValidate")}}},[t._v("提交")])],1)],1)])])],1):t._e()],1)},O=[],E={store_name:"",cate_id:"",temp_id:"",type:0,guarantee_template_id:"",keyword:"",unit_name:"",store_info:"",image:"",slider_image:[],content:"",ficti:0,once_count:0,give_integral:0,is_show:0,price:0,cost:0,ot_price:0,stock:0,attrs:[],items:[],delivery_way:[],mer_labels:[],delivery_free:0,spec_type:0,is_copoy:1,attrValue:[{image:"",price:0,cost:0,ot_price:0,stock:0,bar_code:"",weight:0,volume:0}]},j={price:{title:"售价"},cost:{title:"成本价"},ot_price:{title:"市场价"},stock:{title:"库存"},bar_code:{title:"商品编号"},weight:{title:"重量(KG)"},volume:{title:"体积(m³)"}},A={name:"editAttr",components:{},data:function(){return{product_id:"",roterPre:s["roterPre"],modals:!1,loading:!1,loading1:!1,OneattrValue:[Object.assign({},E.attrValue[0])],ManyAttrValue:[Object.assign({},E.attrValue[0])],manyTabDate:{},count:0,modal_loading:!1,images:"",modalPic:!1,isChoice:"",columns:[],merCateList:[],propsMer:{emitPath:!1,multiple:!0},ruleInline:{mer_cate_id:[{required:!1,message:"请选择商户分类",trigger:"change",type:"array",min:"1"}]},formThead:Object.assign({},j),formValidate:Object.assign({},E),items:[{image:"",price:0,cost:0,ot_price:0,stock:0,bar_code:"",weight:0,volume:0}],tableIndex:0,attrInfo:{},oneFormBatch:[{image:"",price:0,cost:0,ot_price:0,stock:0,bar_code:"",weight:0,volume:0}]}},computed:{attrValue:function(){var t=Object.assign({},E.attrValue[0]);return delete t.image,t}},watch:{"formValidate.attr":{handler:function(t){1===this.formValidate.spec_type&&this.watCh(t)},immediate:!1,deep:!0}},created:function(){this.getCategorySelect()},mounted:function(){},methods:{batchDel:function(){this.oneFormBatch=[{image:"",price:0,cost:0,ot_price:0,stock:0,bar_code:"",weight:0,volume:0}]},batchAdd:function(){var t,e=Object(p["a"])(this.ManyAttrValue);try{for(e.s();!(t=e.n()).done;){var a=t.value;this.$set(a,"image",this.oneFormBatch[0].image),this.$set(a,"price",this.oneFormBatch[0].price),this.$set(a,"cost",this.oneFormBatch[0].cost),this.$set(a,"ot_price",this.oneFormBatch[0].ot_price),this.$set(a,"stock",this.oneFormBatch[0].stock),this.$set(a,"bar_code",this.oneFormBatch[0].bar_code),this.$set(a,"weight",this.oneFormBatch[0].weight),this.$set(a,"volume",this.oneFormBatch[0].volume),this.$set(a,"extension_one",this.oneFormBatch[0].extension_one),this.$set(a,"extension_two",this.oneFormBatch[0].extension_two)}}catch(i){e.e(i)}finally{e.f()}},getCategorySelect:function(){var t=this;Object(n["s"])().then((function(e){t.merCateList=e.data})).catch((function(e){t.$message.error(e.message)}))},watCh:function(t){var e=this,a={},i={};this.formValidate.attr.forEach((function(t,e){a["value"+e]={title:t.value},i["value"+e]=""})),this.ManyAttrValue=this.attrFormat(t),console.log(this.ManyAttrValue),this.ManyAttrValue.forEach((function(t,a){var i=Object.values(t.detail).sort().join("/");e.attrInfo[i]&&(e.ManyAttrValue[a]=e.attrInfo[i]),t.image=e.formValidate.image})),this.attrInfo={},this.ManyAttrValue.forEach((function(t){"undefined"!==t.detail&&null!==t.detail&&(e.attrInfo[Object.values(t.detail).sort().join("/")]=t)})),this.manyTabTit=a,this.manyTabDate=i,this.formThead=Object.assign({},this.formThead,a)},attrFormat:function(t){var e=[],a=[];return i(t);function i(t){if(t.length>1)t.forEach((function(i,o){0===o&&(e=t[o]["detail"]);var l=[];e.forEach((function(e){t[o+1]&&t[o+1]["detail"]&&t[o+1]["detail"].forEach((function(i){var r=(0!==o?"":t[o]["value"]+"_$_")+e+"-$-"+t[o+1]["value"]+"_$_"+i;if(l.push(r),o===t.length-2){var n={image:"",price:0,cost:0,ot_price:0,stock:0,bar_code:"",weight:0,volume:0,brokerage:0,brokerage_two:0};r.split("-$-").forEach((function(t,e){var a=t.split("_$_");n["detail"]||(n["detail"]={}),n["detail"][a[0]]=a.length>1?a[1]:""})),Object.values(n.detail).forEach((function(t,e){n["value"+e]=t})),a.push(n)}}))})),e=l.length?l:[]}));else{var i=[];t.forEach((function(t,e){t["detail"].forEach((function(e,o){i[o]=t["value"]+"_"+e,a[o]={image:"",price:0,cost:0,ot_price:0,stock:0,bar_code:"",weight:0,volume:0,brokerage:0,brokerage_two:0,detail:Object(d["a"])({},t["value"],e)},Object.values(a[o].detail).forEach((function(t,e){a[o]["value"+e]=t}))}))})),e.push(i.join("$&"))}return a}},getAttrDetail:function(t){var e=this;this.product_id=t,this.loading=!0,this.modals=!0,Object(n["gb"])(t).then((function(t){var a=t.data;e.formValidate={attr:a.attr||[],attrValue:a.attrValue,mer_cate_id:a.mer_cate_id,spec_type:a.spec_type},0===e.formValidate.spec_type?e.OneattrValue=a.attrValue:(e.ManyAttrValue=a.attrValue,e.ManyAttrValue.forEach((function(t){"undefined"!==t.detail&&null!==t.detail&&(e.attrInfo[Object.values(t.detail).sort().join("/")]=t)})),e.$watch("formValidate.attr",e.watCh)),e.loading=!1})).catch((function(t){e.$message.error(t.message),e.loading=!1}))},handleSubmit:function(t){var e=this;e.$refs[t].validate((function(t){t&&(1===e.formValidate.spec_type?e.formValidate.attrValue=e.ManyAttrValue:(e.formValidate.attrValue=e.OneattrValue,e.formValidate.attr=[]),e.loading1=!0,Object(n["w"])(e.product_id,e.formValidate).then((function(t){e.loading1=!1,e.$message.success(t.message),setTimeout((function(){e.modals=!1}),500)})).catch((function(t){e.$message.error(t.message),e.loading1=!1})))}))}}},I=A,T=(a("af57"),Object(v["a"])(I,S,O,!1,null,"7d87bc0d",null)),D=T.exports,P=a("8c98"),z=a("5c96"),M={name:"ProductList",components:{taoBao:L,previewBox:P["a"],editAttr:D},data:function(){return{props:{emitPath:!1},roterPre:s["roterPre"],BASE_URL:x["a"].https,headeNum:[],labelList:[],tempList:[],listLoading:!0,tableData:{data:[],total:0},tableFrom:{page:1,limit:20,mer_cate_id:"",cate_id:"",keyword:"",temp_id:"",type:this.$route.query.type?this.$route.query.type:"1",is_gift_bag:"",us_status:"",mer_labels:"",svip_price_type:"",product_id:this.$route.query.id?this.$route.query.id:"",product_type:""},categoryList:[],merCateList:[],modals:!1,tabClickIndex:"",multipleSelection:[],productStatusList:[{label:"上架显示",value:1},{label:"下架",value:0},{label:"平台关闭",value:-1}],tempRule:{temp_id:[{required:!0,message:"请选择运费模板",trigger:"change"}]},commisionRule:{extension_one:[{required:!0,message:"请输入一级佣金",trigger:"change"}],extension_two:[{required:!0,message:"请输入二级佣金",trigger:"change"}]},importInfo:{},commisionForm:{extension_one:0,extension_two:0},svipForm:{svip_price_type:0},goodsId:"",previewKey:"",product_id:"",previewVisible:!1,dialogLabel:!1,dialogFreight:!1,dialogCommision:!1,dialogSvip:!1,dialogImport:!1,dialogImportImg:!1,is_audit:!1,deliveryType:[],deliveryList:[],labelForm:{},tempForm:{},isBatch:!1,open_svip:!1,product:"",merchantType:{type_code:""}}},mounted:function(){this.merchantType=this.$store.state.user.merchantType;var t=this.merchantType.type_name;"市级供应链"!==t?(this.product=0,this.tableFrom.product_type=""):(this.product=98,this.tableFrom.product_type=98),console.log(this.product),this.getLstFilterApi(),this.getCategorySelect(),this.getCategoryList(),this.getList(1),this.getLabelLst(),this.getTempLst(),this.productCon()},updated:function(){},methods:{tableRowClassName:function(t){var e=t.row,a=t.rowIndex;e.index=a},tabClick:function(t){this.tabClickIndex=t.index},inputBlur:function(t){var e=this;(!t.row.sort||t.row.sort<0)&&(t.row.sort=0),Object(n["kb"])(t.row.product_id,{sort:t.row.sort}).then((function(t){e.closeEdit()})).catch((function(t){}))},closeEdit:function(){this.tabClickIndex=null},handleSelectionChange:function(t){this.multipleSelection=t;var e=[];this.multipleSelection.map((function(t){e.push(t.product_id)})),this.product_ids=e},productCon:function(){var t=this;Object(n["ab"])().then((function(e){t.is_audit=e.data.is_audit,t.open_svip=1==e.data.mer_svip_status&&1==e.data.svip_switch_status,t.deliveryType=e.data.delivery_way.map(String),2==t.deliveryType.length?t.deliveryList=[{value:"1",name:"到店自提"},{value:"2",name:"快递配送"}]:1==t.deliveryType.length&&"1"==t.deliveryType[0]?t.deliveryList=[{value:"1",name:"到店自提"}]:t.deliveryList=[{value:"2",name:"快递配送"}]})).catch((function(e){t.$message.error(e.message)}))},getSuccess:function(){this.getLstFilterApi(),this.getList(1)},handleClose:function(){this.dialogLabel=!1},handleFreightClose:function(){this.dialogFreight=!1},onClose:function(){this.modals=!1},onCopy:function(){this.$router.push({path:this.roterPre+"/product/list/addProduct",query:{type:1}})},getLabelLst:function(){var t=this;Object(n["x"])().then((function(e){t.labelList=e.data})).catch((function(e){t.$message.error(e.message)}))},getTempLst:function(){var t=this;Object(n["Ab"])().then((function(e){t.tempList=e.data})).catch((function(e){t.$message.error(e.message)}))},onAuditFree:function(t){this.$refs.editAttr.getAttrDetail(t.product_id)},batchCommision:function(){if(0===this.multipleSelection.length)return this.$message.warning("请先选择商品");this.dialogCommision=!0},batchSvip:function(){if(0===this.multipleSelection.length)return this.$message.warning("请先选择商品");this.dialogSvip=!0},submitCommisionForm:function(t){var e=this;this.$refs[t].validate((function(t){t&&(e.commisionForm.ids=e.product_ids,Object(n["Y"])(e.commisionForm).then((function(t){var a=t.message;e.$message.success(a),e.getList(""),e.dialogCommision=!1})))}))},submitSvipForm:function(t){var e=this;this.svipForm.ids=this.product_ids,Object(n["Z"])(this.svipForm).then((function(t){var a=t.message;e.$message.success(a),e.getList(""),e.dialogSvip=!1}))},batchShelf:function(){var t=this;if(0===this.multipleSelection.length)return this.$message.warning("请先选择商品");var e={status:1,ids:this.product_ids};Object(n["o"])(e).then((function(e){t.$message.success(e.message),t.getLstFilterApi(),t.getList("")})).catch((function(e){t.$message.error(e.message)}))},batchOff:function(){var t=this;if(0===this.multipleSelection.length)return this.$message.warning("请先选择商品");var e={status:0,ids:this.product_ids};Object(n["o"])(e).then((function(e){t.$message.success(e.message),t.getLstFilterApi(),t.getList("")})).catch((function(e){t.$message.error(e.message)}))},batchLabel:function(){this.labelForm={mer_labels:[],ids:this.product_ids},this.isBatch=!0,this.dialogLabel=!0},batchFreight:function(){this.dialogFreight=!0},submitTempForm:function(t){var e=this;this.$refs[t].validate((function(t){t&&(e.tempForm.ids=e.product_ids,Object(n["p"])(e.tempForm).then((function(t){var a=t.message;e.$message.success(a),e.getList(""),e.dialogFreight=!1})))}))},handleRestore:function(t){var e=this;this.$modalSure("恢复商品").then((function(){Object(n["qb"])(t).then((function(t){e.$message.success(t.message),e.getLstFilterApi(),e.getList("")})).catch((function(t){e.$message.error(t.message)}))}))},handlePreview:function(t){this.previewVisible=!0,this.goodsId=t,this.previewKey=""},getCategorySelect:function(){var t=this;Object(n["s"])().then((function(e){t.merCateList=e.data})).catch((function(e){t.$message.error(e.message)}))},getCategoryList:function(){var t=this;Object(n["r"])().then((function(e){t.categoryList=e.data})).catch((function(e){t.$message.error(e.message)}))},getLstFilterApi:function(){var t=this;Object(n["Q"])().then((function(e){t.headeNum=e.data})).catch((function(e){t.$message.error(e.message)}))},getList:function(t){var e=this;this.listLoading=!0,this.tableFrom.page=t||this.tableFrom.page,Object(n["ib"])(this.tableFrom).then((function(t){e.tableData.data=t.data.list,e.tableData.total=t.data.count,e.listLoading=!1})).catch((function(t){e.listLoading=!1,e.$message.error(t.message)})),this.getLstFilterApi()},pageChange:function(t){this.tableFrom.page=t,this.getList("")},handleSizeChange:function(t){this.tableFrom.limit=t,this.getList("")},handleDelete:function(t,e){var a=this;this.$modalSure("5"!==this.tableFrom.type?"加入回收站":"删除该商品").then((function(){"5"===a.tableFrom.type?Object(n["v"])(t).then((function(t){var e=t.message;a.$message.success(e),a.getList(""),a.getLstFilterApi()})).catch((function(t){var e=t.message;a.$message.error(e)})):Object(n["fb"])(t).then((function(t){var e=t.message;a.$message.success(e),a.getList(""),a.getLstFilterApi()})).catch((function(t){var e=t.message;a.$message.error(e)}))}))},onEditLabel:function(t){if(this.dialogLabel=!0,this.product_id=t.product_id,t.mer_labels&&t.mer_labels.length){var e=t.mer_labels.map((function(t){return t.product_label_id}));this.labelForm={mer_labels:e}}else this.labelForm={mer_labels:[]}},submitForm:function(t){var e=this;this.$refs[t].validate((function(t){t&&(e.isBatch?Object(n["n"])(e.labelForm).then((function(t){var a=t.message;e.$message.success(a),e.getList(""),e.dialogLabel=!1,e.isBatch=!1})):Object(n["Vb"])(e.product_id,e.labelForm).then((function(t){var a=t.message;e.$message.success(a),e.getList(""),e.dialogLabel=!1})))}))},onchangeIsShow:function(t){var e=this;Object(n["Kb"])(t.product_id,t.is_show).then((function(t){var a=t.message;e.$message.success(a),e.getList(""),e.getLstFilterApi()})).catch((function(t){var a=t.message;e.$message.error(a)}))},importShort:function(){this.dialogImport=!0},importClose:function(){this.dialogImport=!1},importShortImg:function(){this.dialogImportImg=!0},importCloseImg:function(){this.dialogImportImg=!1},importXlsUpload:function(){var t=Object(r["a"])(Object(l["a"])().mark((function t(e){var a,i;return Object(l["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:console.log("上传",e),a=e.file,i=new FormData,i.append("file",a),Object(n["K"])(i).then((function(t){z["Message"].success(t.message)})).catch((function(t){z["Message"].error(t)}));case 5:case"end":return t.stop()}}),t)})));function e(e){return t.apply(this,arguments)}return e}(),importZipUpload:function(){var t=Object(r["a"])(Object(l["a"])().mark((function t(e){var a,i;return Object(l["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:console.log("上传",e),a=e.file,i=new FormData,i.append("file",a),Object(n["J"])(i).then((function(t){z["Message"].success(t.message)})).catch((function(t){z["Message"].error(t)}));case 5:case"end":return t.stop()}}),t)})));function e(e){return t.apply(this,arguments)}return e}()}},R=M,W=(a("5407"),Object(v["a"])(R,i,o,!1,null,"6c0d84ec",null));e["default"]=W.exports},e96b:function(t,e,a){"use strict";a("2e72")},f9b4:function(t,e,a){}}]); \ No newline at end of file diff --git a/public/mer/js/chunk-6f9bbde8.2ac80547.js b/public/mer/js/chunk-6f9bbde8.2ac80547.js deleted file mode 100644 index 92eb879a..00000000 --- a/public/mer/js/chunk-6f9bbde8.2ac80547.js +++ /dev/null @@ -1 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6f9bbde8"],{2865:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"divBox"},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix"},[t.headTab.length>0?a("el-tabs",{model:{value:t.currentTab,callback:function(e){t.currentTab=e},expression:"currentTab"}},t._l(t.headTab,(function(t,e){return a("el-tab-pane",{key:e,attrs:{name:t.name,label:t.title}})})),1):t._e()],1),t._v(" "),a("el-form",{directives:[{name:"loading",rawName:"v-loading",value:t.fullscreenLoading,expression:"fullscreenLoading"}],key:t.currentTab,ref:"formValidate",staticClass:"formValidate mt20",attrs:{rules:t.ruleValidate,model:t.formValidate,"label-width":"130px"},nativeOn:{submit:function(t){t.preventDefault()}}},["1"==t.currentTab?a("el-row",{attrs:{gutter:24}},[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"商品类型:",required:""}},t._l(t.virtual,(function(e,i){return a("div",{key:i,staticClass:"virtual",class:t.formValidate.type==e.id?"virtual_boder":"virtual_boder2",on:{click:function(a){return t.virtualbtn(e.id,2)}}},[a("div",{staticClass:"virtual_top"},[t._v(t._s(e.tit))]),t._v(" "),a("div",{staticClass:"virtual_bottom"},[t._v("("+t._s(e.tit2)+")")]),t._v(" "),t.formValidate.type==e.id?a("div",{staticClass:"virtual_san"}):t._e(),t._v(" "),t.formValidate.type==e.id?a("div",{staticClass:"virtual_dui"},[t._v("\n ✓\n ")]):t._e()])})),0)],1),t._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"商品名称:",prop:"store_name"}},[a("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入商品名称"},model:{value:t.formValidate.store_name,callback:function(e){t.$set(t.formValidate,"store_name",e)},expression:"formValidate.store_name"}})],1)],1),t._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"平台商品分类:",prop:"cate_id"}},[a("el-cascader",{staticClass:"selWidth",attrs:{options:t.categoryList,props:t.props,filterable:"",clearable:""},on:{change:t.getSpecsLst},model:{value:t.formValidate.cate_id,callback:function(e){t.$set(t.formValidate,"cate_id",e)},expression:"formValidate.cate_id"}})],1)],1),t._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"商户商品分类:",prop:"mer_cate_id"}},[a("el-cascader",{staticClass:"selWidth",attrs:{options:t.merCateList,props:t.propsMer,filterable:"",clearable:""},model:{value:t.formValidate.mer_cate_id,callback:function(e){t.$set(t.formValidate,"mer_cate_id",e)},expression:"formValidate.mer_cate_id"}})],1)],1),t._v(" "),t.labelList.length?a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"商品标签:"}},[a("el-select",{staticClass:"selWidth",attrs:{multiple:"",placeholder:"请选择"},model:{value:t.formValidate.mer_labels,callback:function(e){t.$set(t.formValidate,"mer_labels",e)},expression:"formValidate.mer_labels"}},t._l(t.labelList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1)],1)],1):t._e(),t._v(" "),a("el-col",t._b({},"el-col",t.grid2,!1),[a("el-form-item",{attrs:{label:"品牌选择:"}},[a("el-select",{staticClass:"selWidth",attrs:{filterable:"",placeholder:"请选择"},model:{value:t.formValidate.brand_id,callback:function(e){t.$set(t.formValidate,"brand_id",e)},expression:"formValidate.brand_id"}},t._l(t.BrandList,(function(t){return a("el-option",{key:t.brand_id,attrs:{label:t.brand_name,value:t.brand_id}})})),1)],1)],1),t._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"商品封面图:",prop:"image"}},[a("div",{staticClass:"upLoadPicBox",attrs:{title:"750*750px"},on:{click:function(e){return t.modalPicTap("1")}}},[t.formValidate.image?a("div",{staticClass:"pictrue"},[a("img",{attrs:{src:t.formValidate.image}})]):a("div",{staticClass:"upLoad"},[a("i",{staticClass:"el-icon-camera cameraIconfont"})])])])],1),t._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"商品轮播图:",prop:"slider_image"}},[a("div",{staticClass:"acea-row"},[t._l(t.formValidate.slider_image,(function(e,i){return a("div",{key:i,staticClass:"pictrue",attrs:{draggable:"false"},on:{dragstart:function(a){return t.handleDragStart(a,e)},dragover:function(a){return a.preventDefault(),t.handleDragOver(a,e)},dragenter:function(a){return t.handleDragEnter(a,e)},dragend:function(a){return t.handleDragEnd(a,e)}}},[a("img",{attrs:{src:e}}),t._v(" "),a("i",{staticClass:"el-icon-error btndel",on:{click:function(e){return t.handleRemove(i)}}})])})),t._v(" "),t.formValidate.slider_image.length<10?a("div",{staticClass:"uploadCont",attrs:{title:"750*750px"}},[a("div",{staticClass:"upLoadPicBox",on:{click:function(e){return t.modalPicTap("2")}}},[a("div",{staticClass:"upLoad"},[a("i",{staticClass:"el-icon-camera cameraIconfont"})])])]):t._e()],2)])],1),t._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"主图视频:",prop:"video_link"}},[a("el-input",{staticClass:"perW50",attrs:{placeholder:"请输入视频链接"},model:{value:t.videoLink,callback:function(e){t.videoLink=e},expression:"videoLink"}}),t._v(" "),a("input",{ref:"refid",staticStyle:{display:"none"},attrs:{type:"file"},on:{change:t.zh_uploadFile_change}}),t._v(" "),a("el-button",{staticClass:"uploadVideo",attrs:{type:"primary",icon:"ios-cloud-upload-outline"},on:{click:t.zh_uploadFile}},[t._v("\n "+t._s(t.videoLink?"确认添加":"上传视频")+"\n ")]),t._v(" "),a("el-col",{attrs:{span:12}},[t.upload.videoIng?a("el-progress",{staticStyle:{"margin-top":"10px"},attrs:{percentage:t.progress,"text-inside":!0,"stroke-width":20}}):t._e()],1),t._v(" "),a("el-col",{attrs:{span:24}},[t.formValidate.video_link?a("div",{staticClass:"iview-video-style"},[a("video",{staticStyle:{width:"100%",height:"100% !important","border-radius":"10px"},attrs:{src:t.formValidate.video_link,controls:"controls"}},[t._v("\n 您的浏览器不支持 video 标签。\n ")]),t._v(" "),a("div",{staticClass:"mark"}),t._v(" "),a("i",{staticClass:"el-icon-delete iconv",on:{click:t.delVideo}})]):t._e()])],1)],1),t._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"单位:",prop:"unit_name"}},[a("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入单位"},model:{value:t.formValidate.unit_name,callback:function(e){t.$set(t.formValidate,"unit_name",e)},expression:"formValidate.unit_name"}})],1)],1),t._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"商品关键字:"}},[a("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入商品关键字"},model:{value:t.formValidate.keyword,callback:function(e){t.$set(t.formValidate,"keyword",e)},expression:"formValidate.keyword"}})],1)],1),t._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"商品简介:",prop:"store_info"}},[a("el-input",{staticClass:"selWidth",attrs:{type:"textarea",rows:3,placeholder:"请输入商品简介"},model:{value:t.formValidate.store_info,callback:function(e){t.$set(t.formValidate,"store_info",e)},expression:"formValidate.store_info"}})],1)],1)],1):t._e(),t._v(" "),"2"==t.currentTab?a("el-row",[t._e(),t._v(" "),t._e(),t._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"商品规格:",props:"spec_type"}},[a("el-radio-group",{on:{change:function(e){return t.onChangeSpec(t.formValidate.spec_type)}},model:{value:t.formValidate.spec_type,callback:function(e){t.$set(t.formValidate,"spec_type",e)},expression:"formValidate.spec_type"}},[a("el-radio",{staticClass:"radio",attrs:{label:0}},[t._v("单规格")]),t._v(" "),a("el-radio",{attrs:{label:1}},[t._v("多规格")])],1)],1)],1),t._v(" "),1===t.formValidate.spec_type?a("el-col",{staticClass:"noForm",attrs:{span:24}},[a("el-form-item",{attrs:{label:"选择规格:"}},[a("div",{staticClass:"acea-row"},[a("el-select",{model:{value:t.selectRule,callback:function(e){t.selectRule=e},expression:"selectRule"}},t._l(t.ruleList,(function(t){return a("el-option",{key:t.attr_template_id,attrs:{label:t.template_name,value:t.attr_template_id}})})),1),t._v(" "),a("el-button",{staticClass:"ml15",attrs:{type:"primary",size:"small"},on:{click:t.confirm}},[t._v("确认")]),t._v(" "),a("el-button",{staticClass:"ml15",attrs:{size:"small"},on:{click:t.addRule}},[t._v("添加规格模板")])],1)]),t._v(" "),t.formValidate.attr.length>0?a("el-form-item",t._l(t.formValidate.attr,(function(e,i){return a("div",{key:i},[a("div",{staticClass:"acea-row row-middle"},[a("span",{staticClass:"mr5"},[t._v(t._s(e.value))]),t._v(" "),a("i",{staticClass:"el-icon-circle-close",on:{click:function(e){return t.handleRemoveAttr(i)}}})]),t._v(" "),a("div",{staticClass:"rulesBox"},[t._l(e.detail,(function(i,r){return a("el-tag",{key:r,staticClass:"mb5 mr10",attrs:{closable:"",size:"medium","disable-transitions":!1},on:{close:function(a){return t.handleClose(e.detail,r)}}},[t._v(t._s(i)+"\n ")])})),t._v(" "),e.inputVisible?a("el-input",{ref:"saveTagInput",refInFor:!0,staticClass:"input-new-tag",attrs:{size:"small"},on:{blur:function(a){return t.createAttr(e.detail.attrsVal,i)}},nativeOn:{keyup:function(a){return!a.type.indexOf("key")&&t._k(a.keyCode,"enter",13,a.key,"Enter")?null:t.createAttr(e.detail.attrsVal,i)}},model:{value:e.detail.attrsVal,callback:function(a){t.$set(e.detail,"attrsVal",a)},expression:"item.detail.attrsVal"}}):a("el-button",{staticClass:"button-new-tag",attrs:{size:"small"},on:{click:function(a){return t.showInput(e)}}},[t._v("+ 添加")])],2)])})),0):t._e(),t._v(" "),t.isBtn?a("el-col",[a("el-col",{attrs:{xl:6,lg:9,md:9,sm:24,xs:24}},[a("el-form-item",{attrs:{label:"规格:"}},[a("el-input",{attrs:{placeholder:"请输入规格"},model:{value:t.formDynamic.attrsName,callback:function(e){t.$set(t.formDynamic,"attrsName",e)},expression:"formDynamic.attrsName"}})],1)],1),t._v(" "),a("el-col",{attrs:{xl:6,lg:9,md:9,sm:24,xs:24}},[a("el-form-item",{attrs:{label:"规格值:"}},[a("el-input",{attrs:{placeholder:"请输入规格值"},model:{value:t.formDynamic.attrsVal,callback:function(e){t.$set(t.formDynamic,"attrsVal",e)},expression:"formDynamic.attrsVal"}})],1)],1),t._v(" "),a("el-col",{attrs:{xl:12,lg:6,md:6,sm:24,xs:24}},[a("el-form-item",{staticClass:"noLeft"},[a("el-button",{staticClass:"mr15",attrs:{type:"primary"},on:{click:t.createAttrName}},[t._v("确定")]),t._v(" "),a("el-button",{on:{click:t.offAttrName}},[t._v("取消")])],1)],1)],1):t._e(),t._v(" "),t.isBtn?t._e():a("el-form-item",[a("el-button",{staticClass:"mr15",attrs:{type:"primary",icon:"md-add"},on:{click:t.addBtn}},[t._v("添加新规格")])],1)],1):t._e(),t._v(" "),a("el-col",{attrs:{xl:24,lg:24,md:24,sm:24,xs:24}},[0===t.formValidate.spec_type?a("el-form-item",[a("el-table",{staticClass:"tabNumWidth",attrs:{data:t.OneattrValue,border:"",size:"mini"}},[a("el-table-column",{attrs:{align:"center",label:"图片","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"upLoadPicBox",on:{click:function(e){return t.modalPicTap("1","dan","pi")}}},[t.formValidate.image?a("div",{staticClass:"pictrue tabPic"},[a("img",{attrs:{src:e.row.image}})]):a("div",{staticClass:"upLoad tabPic"},[a("i",{staticClass:"el-icon-camera cameraIconfont"})])])]}}],null,!1,1357914119)}),t._v(" "),t._l(t.attrValue,(function(e,i){return a("el-table-column",{key:i,attrs:{label:t.formThead[i].title,align:"center","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[0!=t.formValidate.svip_price_type?a("div",["付费会员价"===t.formThead[i].title?a("el-input-number",{staticClass:"priceBox",attrs:{min:0,disabled:1==t.formValidate.svip_price_type,"controls-position":"right"},model:{value:e.row[i],callback:function(a){t.$set(e.row,i,a)},expression:"scope.row[iii]"}}):t._e(),t._v(" "),"商品条码"===t.formThead[i].title?a("el-input",{staticClass:"priceBox",attrs:{type:"text"},model:{value:e.row[i],callback:function(a){t.$set(e.row,i,a)},expression:"scope.row[iii]"}}):t._e(),t._v(" "),"付费会员价"!==t.formThead[i].title&&"商品条码"!==t.formThead[i].title?a("el-input-number",{staticClass:"priceBox",attrs:{min:0,"controls-position":"right"},model:{value:e.row[i],callback:function(a){t.$set(e.row,i,a)},expression:"scope.row[iii]"}}):t._e()],1):a("div",["商品条码"===t.formThead[i].title?a("el-input",{staticClass:"priceBox",attrs:{type:"text"},model:{value:e.row[i],callback:function(a){t.$set(e.row,i,a)},expression:"scope.row[iii]"}}):a("el-input-number",{staticClass:"priceBox",attrs:{min:0,"controls-position":"right"},model:{value:e.row[i],callback:function(a){t.$set(e.row,i,a)},expression:"scope.row[iii]"}})],1)]}}],null,!0)})})),t._v(" "),1===t.formValidate.extension_type?[a("el-table-column",{attrs:{align:"center",label:"一级返佣(元)","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-input-number",{staticClass:"priceBox",attrs:{min:0,"controls-position":"right"},model:{value:e.row.extension_one,callback:function(a){t.$set(e.row,"extension_one",a)},expression:"scope.row.extension_one"}})]}}],null,!1,1308693019)}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"二级返佣(元)","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-input-number",{staticClass:"priceBox",attrs:{min:0,"controls-position":"right"},model:{value:e.row.extension_two,callback:function(a){t.$set(e.row,"extension_two",a)},expression:"scope.row.extension_two"}})]}}],null,!1,899977843)})]:t._e()],2)],1):t._e(),t._v(" "),1===t.formValidate.spec_type&&t.formValidate.attr.length>0?a("el-form-item",{staticClass:"labeltop",attrs:{label:"规格列表:"}},[a("el-table",{staticClass:"tabNumWidth",attrs:{data:t.ManyAttrValue,border:"",size:"mini"}},[t.manyTabDate?t._l(t.manyTabDate,(function(e,i){return a("el-table-column",{key:i,attrs:{align:"center",label:t.manyTabTit[i].title,"min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{staticClass:"priceBox",domProps:{textContent:t._s(e.row[i])}})]}}],null,!0)})})):t._e(),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"图片","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"upLoadPicBox",attrs:{title:"750*750px"},on:{click:function(a){return t.modalPicTap("1","duo",e.$index)}}},[e.row.image?a("div",{staticClass:"pictrue tabPic"},[a("img",{attrs:{src:e.row.image}})]):a("div",{staticClass:"upLoad tabPic"},[a("i",{staticClass:"el-icon-camera cameraIconfont"})])])]}}],null,!1,1344940579)}),t._v(" "),t._l(t.attrValue,(function(e,i){return a("el-table-column",{key:i,attrs:{label:t.formThead[i].title,align:"center","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[0!=t.formValidate.svip_price_type?a("div",["付费会员价"===t.formThead[i].title?a("el-input-number",{staticClass:"priceBox",attrs:{min:0,disabled:1==t.formValidate.svip_price_type,"controls-position":"right"},model:{value:e.row[i],callback:function(a){t.$set(e.row,i,a)},expression:"scope.row[iii]"}}):t._e(),t._v(" "),"商品条码"===t.formThead[i].title?a("el-input",{staticClass:"priceBox",attrs:{type:"text"},model:{value:e.row[i],callback:function(a){t.$set(e.row,i,a)},expression:"scope.row[iii]"}}):t._e(),t._v(" "),"付费会员价"!==t.formThead[i].title&&"商品条码"!==t.formThead[i].title?a("el-input-number",{staticClass:"priceBox",attrs:{min:0,"controls-position":"right"},model:{value:e.row[i],callback:function(a){t.$set(e.row,i,a)},expression:"scope.row[iii]"}}):t._e()],1):a("div",["商品条码"===t.formThead[i].title?a("el-input",{staticClass:"priceBox",attrs:{type:"text"},model:{value:e.row[i],callback:function(a){t.$set(e.row,i,a)},expression:"scope.row[iii]"}}):a("el-input-number",{staticClass:"priceBox",attrs:{min:0,"controls-position":"right"},model:{value:e.row[i],callback:function(a){t.$set(e.row,i,a)},expression:"scope.row[iii]"}})],1)]}}],null,!0)})})),t._v(" "),1===t.formValidate.extension_type?[a("el-table-column",{key:"1",attrs:{align:"center",label:"一级返佣(元)","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-input-number",{staticClass:"priceBox",attrs:{min:0,"controls-position":"right"},model:{value:e.row.extension_one,callback:function(a){t.$set(e.row,"extension_one",a)},expression:"scope.row.extension_one"}})]}}],null,!1,1308693019)}),t._v(" "),a("el-table-column",{key:"2",attrs:{align:"center",label:"二级返佣(元)","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-input-number",{staticClass:"priceBox",attrs:{min:0,"controls-position":"right"},model:{value:e.row.extension_two,callback:function(a){t.$set(e.row,"extension_two",a)},expression:"scope.row.extension_two"}})]}}],null,!1,899977843)})]:t._e(),t._v(" "),a("el-table-column",{key:"3",attrs:{align:"center",label:"操作","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{staticClass:"submission",attrs:{type:"text"},on:{click:function(a){return t.delAttrTable(e.$index)}}},[t._v("删除")])]}}],null,!1,2803824461)})],2)],1):t._e()],1)],1):t._e(),t._v(" "),"3"==t.currentTab?a("el-row",[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"商品图片:"}},[a("div",{staticClass:"upLoadPicBox",attrs:{title:"750*750px"},on:{click:function(e){return t.modalPicTap("3")}}},[t._l(t.formValidate.content.image,(function(e,i){return a("div",{key:i+e,staticClass:"pictrue details_pictrue",on:{click:function(e){return e.stopPropagation(),t.deleteContentImg(i)}}},[a("img",{key:i,attrs:{src:e}})])})),t._v(" "),a("div",{staticClass:"upLoad details_pictrue"},[a("i",{staticClass:"el-icon-camera cameraIconfont"})])],2)])],1)],1):t._e(),t._v(" "),"4"==t.currentTab?a("el-row",[t.deliveryList.length>0?a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"送货方式:",prop:"delivery_way"}},[a("div",{staticClass:"acea-row"},[a("el-checkbox-group",{staticStyle:{"pointer-events":"none"},model:{value:t.formValidate.delivery_way,callback:function(e){t.$set(t.formValidate,"delivery_way",e)},expression:"formValidate.delivery_way"}},t._l(t.deliveryList,(function(e){return a("el-checkbox",{key:e.value,attrs:{label:e.value}},[t._v("\n "+t._s(e.name)+"\n ")])})),1)],1)])],1):t._e(),t._v(" "),(2==t.formValidate.delivery_way.length||1==t.formValidate.delivery_way.length&&2==t.formValidate.delivery_way[0])&&0==t.formValidate.type?a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"是否包邮:"}},[a("el-radio-group",{model:{value:t.formValidate.delivery_free,callback:function(e){t.$set(t.formValidate,"delivery_free",e)},expression:"formValidate.delivery_free"}},[a("el-radio",{staticClass:"radio",attrs:{label:0}},[t._v("否")]),t._v(" "),a("el-radio",{attrs:{label:1}},[t._v("是")])],1)],1)],1):t._e(),t._v(" "),0==t.formValidate.delivery_free&&(2==t.formValidate.delivery_way.length||1==t.formValidate.delivery_way.length&&2==t.formValidate.delivery_way[0])&&0==t.formValidate.type?a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"运费模板:",prop:"temp_id"}},[a("div",{staticClass:"acea-row"},[a("el-select",{staticClass:"selWidth",attrs:{placeholder:"请选择"},model:{value:t.formValidate.temp_id,callback:function(e){t.$set(t.formValidate,"temp_id",e)},expression:"formValidate.temp_id"}},t._l(t.shippingList,(function(t){return a("el-option",{key:t.shipping_template_id,attrs:{label:t.name,value:t.shipping_template_id}})})),1),t._v(" "),a("el-button",{staticClass:"ml15",attrs:{size:"small"},on:{click:t.addTem}},[t._v("添加运费模板")])],1)])],1):t._e()],1):t._e(),t._v(" "),a("el-form-item",{staticStyle:{"margin-top":"30px"}},[a("el-button",{directives:[{name:"show",rawName:"v-show",value:t.currentTab>1,expression:"currentTab > 1"}],staticClass:"submission",attrs:{type:"primary",size:"small"},on:{click:t.handleSubmitUp}},[t._v("上一步\n ")]),t._v(" "),a("el-button",{directives:[{name:"show",rawName:"v-show",value:t.currentTab<4,expression:"currentTab < 4"}],staticClass:"submission",attrs:{type:"primary",size:"small"},on:{click:function(e){return t.handleSubmitNest("formValidate")}}},[t._v("下一步\n ")]),t._v(" "),a("el-button",{directives:[{name:"show",rawName:"v-show",value:"4"==t.currentTab||t.$route.params.id,expression:"currentTab == '4' || $route.params.id"}],staticClass:"submission",attrs:{loading:t.loading,type:"primary",size:"small"},on:{click:function(e){return t.handleSubmit("formValidate")}}},[t._v("提交\n ")]),t._v(" "),a("el-button",{staticClass:"submission",attrs:{loading:t.loading,type:"primary",size:"small"},on:{click:function(e){return t.handlePreview("formValidate")}}},[t._v("预览\n ")])],1)],1)],1),t._v(" "),a("guarantee-service",{ref:"serviceGuarantee",on:{"get-list":t.getGuaranteeList}}),t._v(" "),t.previewVisible?a("div",[a("div",{staticClass:"bg",on:{click:function(e){e.stopPropagation(),t.previewVisible=!1}}}),t._v(" "),t.previewVisible?a("preview-box",{ref:"previewBox",attrs:{"preview-key":t.previewKey}}):t._e()],1):t._e(),t._v(" "),a("tao-bao",{ref:"taoBao",on:{"info-data":t.infoData}})],1)},r=[],n=(a("456d"),a("c7eb")),o=(a("96cf"),a("1da1")),s=(a("a481"),a("c5f6"),a("b85c")),l=(a("7f7f"),a("ade3")),c=(a("28a5"),a("8615"),a("55dd"),a("ac6a"),a("6762"),a("2fdb"),a("6b54"),a("2909")),d=a("ef0d"),u=a("6625"),m=a.n(u),p=(a("aa47"),a("5c96")),f=a("c4c8"),h=a("83d6"),g=a("ae43"),_=a("8c98"),v=a("bbcc"),b=a("5f87"),y=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"Box"},[t.modals?a("el-dialog",{attrs:{visible:t.modals,width:"70%",title:"商品采集","custom-class":"dialog-scustom"},on:{"update:visible":function(e){t.modals=e}}},[a("el-card",[a("div",[t._v("复制淘宝、天猫、京东、苏宁、1688;")]),t._v("\n 生成的商品默认是没有上架的,请手动上架商品!\n "),a("span",{staticStyle:{color:"rgb(237, 64, 20)"}},[t._v("商品复制次数剩余:"+t._s(t.count)+"次")]),t._v(" "),a("router-link",{attrs:{to:{path:t.roterPre+"/setting/sms/sms_pay/index?type=copy"}}},[a("el-button",{attrs:{size:"small",type:"text"}},[t._v("增加采集次数")])],1),t._v(" "),a("el-button",{staticStyle:{"margin-left":"15px"},attrs:{size:"small",type:"primary"},on:{click:t.openRecords}},[t._v("查看商品复制记录")])],1),t._v(" "),a("el-form",{ref:"formValidate",staticClass:"formValidate mt20",attrs:{model:t.formValidate,rules:t.ruleInline,"label-width":"130px","label-position":"right"},nativeOn:{submit:function(t){t.preventDefault()}}},[a("el-form-item",{attrs:{label:"链接地址:"}},[a("el-input",{staticClass:"numPut",attrs:{search:"",placeholder:"请输入链接地址"},model:{value:t.soure_link,callback:function(e){t.soure_link=e},expression:"soure_link"}}),t._v(" "),a("el-button",{attrs:{loading:t.loading,size:"small",type:"primary"},on:{click:t.add}},[t._v("确定")])],1)],1)],1):t._e(),t._v(" "),a("copy-record",{ref:"copyRecord"})],1)},V=[],w=function(){var t=this,e=t.$createElement,a=t._self._c||e;return t.showRecord?a("el-dialog",{attrs:{title:"复制记录",visible:t.showRecord,width:"900px"},on:{"update:visible":function(e){t.showRecord=e}}},[a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}]},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"table",staticStyle:{width:"100%"},attrs:{data:t.tableData.data,size:"mini","highlight-current-row":""}},[a("el-table-column",{attrs:{label:"ID",prop:"mer_id","min-width":"50"}}),t._v(" "),a("el-table-column",{attrs:{label:"使用次数",prop:"num","min-width":"80"}}),t._v(" "),a("el-table-column",{attrs:{label:"复制商品平台名称",prop:"type","min-width":"120"}}),t._v(" "),a("el-table-column",{attrs:{label:"剩余次数",prop:"number","min-width":"80"}}),t._v(" "),a("el-table-column",{attrs:{label:"商品复制链接",prop:"info","min-width":"180"}}),t._v(" "),a("el-table-column",{attrs:{label:"操作时间",prop:"create_time","min-width":"120"}})],1),t._v(" "),a("div",{staticClass:"block"},[a("el-pagination",{attrs:{"page-sizes":[10,20],"page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"total, sizes, prev, pager, next, jumper",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1)]):t._e()},x=[],k={name:"CopyRecord",data:function(){return{showRecord:!1,loading:!1,tableData:{data:[],total:0},tableFrom:{page:1,limit:10}}},methods:{getRecord:function(){var t=this;this.showRecord=!0,this.loading=!0,Object(f["bb"])(this.tableFrom).then((function(e){t.tableData.data=e.data.list,t.tableData.total=e.data.count,t.loading=!1})).catch((function(e){t.$message.error(e.message),t.listLoading=!1}))},pageChange:function(t){this.tableFrom.page=t,this.getRecord()},pageChangeLog:function(t){this.tableFromLog.page=t,this.getRecord()},handleSizeChange:function(t){this.tableFrom.limit=t,this.getRecord()}}},C=k,$=(a("f099"),a("2877")),O=Object($["a"])(C,w,x,!1,null,"6d70337e",null),L=O.exports,B={store_name:"",cate_id:"",temp_id:"",type:0,guarantee_template_id:"",keyword:"",unit_name:"",store_info:"",image:"",slider_image:[],content:"",ficti:0,once_count:0,give_integral:0,is_show:0,price:0,cost:0,ot_price:0,stock:0,soure_link:"",attrs:[],items:[],delivery_way:[],mer_labels:[],delivery_free:0,spec_type:0,is_copoy:1,attrValue:[{image:"",price:0,cost:0,ot_price:0,stock:0,bar_code:"",weight:0,volume:0}]},T={price:{title:"售价"},cost:{title:"成本价"},ot_price:{title:"市场价"},stock:{title:"库存"},bar_code:{title:"商品编号"},weight:{title:"重量(KG)"},volume:{title:"体积(m³)"}},j={name:"CopyTaoBao",components:{ueditorFrom:d["a"],copyRecord:L},data:function(){var t=v["a"].https+"/upload/image/0/file?ueditor=1&token="+Object(b["a"])();return{roterPre:h["roterPre"],modals:!1,loading:!1,loading1:!1,BaseURL:v["a"].https||"http://localhost:8080",OneattrValue:[Object.assign({},B.attrValue[0])],ManyAttrValue:[Object.assign({},B.attrValue[0])],columnsBatch:[{title:"图片",slot:"image",align:"center",minWidth:80},{title:"售价",slot:"price",align:"center",minWidth:95},{title:"成本价",slot:"cost",align:"center",minWidth:95},{title:"市场价",slot:"ot_price",align:"center",minWidth:95},{title:"库存",slot:"stock",align:"center",minWidth:95},{title:"商品编号",slot:"bar_code",align:"center",minWidth:120},{title:"重量(KG)",slot:"weight",align:"center",minWidth:95},{title:"体积(m³)",slot:"volume",align:"center",minWidth:95}],manyTabDate:{},count:0,modal_loading:!1,images:"",soure_link:"",modalPic:!1,isChoice:"",gridPic:{xl:6,lg:8,md:12,sm:12,xs:12},gridBtn:{xl:4,lg:8,md:8,sm:8,xs:8},columns:[],virtual:[{tit:"普通商品",id:0,tit2:"物流发货"},{tit:"虚拟商品",id:1,tit2:"虚拟发货"}],categoryList:[],merCateList:[],BrandList:[],propsMer:{emitPath:!1,multiple:!0},tableFrom:{mer_cate_id:"",cate_id:"",keyword:"",type:"1",is_gift_bag:""},ruleInline:{cate_id:[{required:!0,message:"请选择商品分类",trigger:"change"}],mer_cate_id:[{required:!0,message:"请选择商户分类",trigger:"change",type:"array",min:"1"}],temp_id:[{required:!0,message:"请选择运费模板",trigger:"change",type:"number"}],brand_id:[{required:!0,message:"请选择品牌",trigger:"change"}],store_info:[{required:!0,message:"请输入商品简介",trigger:"blur"}],delivery_way:[{required:!0,message:"请选择送货方式",trigger:"change"}]},grid:{xl:8,lg:8,md:12,sm:24,xs:24},grid2:{xl:12,lg:12,md:12,sm:24,xs:24},myConfig:{autoHeightEnabled:!1,initialFrameHeight:500,initialFrameWidth:"100%",UEDITOR_HOME_URL:"/UEditor/",serverUrl:t,imageUrl:t,imageFieldName:"file",imageUrlPrefix:"",imageActionName:"upfile",imageMaxSize:2048e3,imageAllowFiles:[".png",".jpg",".jpeg",".gif",".bmp"]},formThead:Object.assign({},T),formValidate:Object.assign({},B),items:[{image:"",price:0,cost:0,ot_price:0,stock:0,bar_code:"",weight:0,volume:0}],shippingList:[],guaranteeList:[],isData:!1,artFrom:{type:"taobao",url:""},tableIndex:0,labelPosition:"right",labelWidth:"120",isMore:"",taoBaoStatus:{},attrInfo:{},labelList:[],oneFormBatch:[{image:"",price:0,cost:0,ot_price:0,stock:0,bar_code:"",weight:0,volume:0}]}},computed:{attrValue:function(){var t=Object.assign({},B.attrValue[0]);return delete t.image,t}},watch:{},created:function(){},mounted:function(){this.getCopyCount()},methods:{getLabelLst:function(){var t=this;Object(f["v"])().then((function(e){t.labelList=e.data})).catch((function(e){t.$message.error(e.message)}))},getCopyCount:function(){var t=this;Object(f["ab"])().then((function(e){t.count=e.data.count}))},openRecords:function(){this.$refs.copyRecord.getRecord()},batchDel:function(){this.oneFormBatch=[{image:"",price:0,cost:0,ot_price:0,stock:0,bar_code:"",weight:0,volume:0}]},batchAdd:function(){var t,e=Object(s["a"])(this.ManyAttrValue);try{for(e.s();!(t=e.n()).done;){var a=t.value;this.$set(a,"image",this.oneFormBatch[0].image),this.$set(a,"price",this.oneFormBatch[0].price),this.$set(a,"cost",this.oneFormBatch[0].cost),this.$set(a,"ot_price",this.oneFormBatch[0].ot_price),this.$set(a,"stock",this.oneFormBatch[0].stock),this.$set(a,"bar_code",this.oneFormBatch[0].bar_code),this.$set(a,"weight",this.oneFormBatch[0].weight),this.$set(a,"volume",this.oneFormBatch[0].volume),this.$set(a,"extension_one",this.oneFormBatch[0].extension_one),this.$set(a,"extension_two",this.oneFormBatch[0].extension_two)}}catch(i){e.e(i)}finally{e.f()}},delAttrTable:function(t){this.ManyAttrValue.splice(t,1)},productGetTemplate:function(){var t=this;Object(f["yb"])().then((function(e){t.shippingList=e.data}))},getGuaranteeList:function(){var t=this;Object(f["B"])().then((function(e){t.guaranteeList=e.data}))},handleRemove:function(t){this.formValidate.slider_image.splice(t,1)},checked:function(t,e){this.formValidate.image=t},goodsCategory:function(){var t=this;Object(f["q"])().then((function(e){t.categoryList=e.data})).catch((function(e){t.$message.error(e.message)}))},getCategorySelect:function(){var t=this;Object(f["r"])().then((function(e){t.merCateList=e.data})).catch((function(e){t.$message.error(e.message)}))},getBrandListApi:function(){var t=this;Object(f["p"])().then((function(e){t.BrandList=e.data})).catch((function(e){t.$message.error(e.message)}))},virtualbtn:function(t,e){this.formValidate.type=t,this.productCon()},watCh:function(t){var e=this,a={},i={};this.formValidate.attr.forEach((function(t,e){a["value"+e]={title:t.value},i["value"+e]=""})),this.ManyAttrValue=this.attrFormat(t),console.log(this.ManyAttrValue),this.ManyAttrValue.forEach((function(t,a){var i=Object.values(t.detail).sort().join("/");e.attrInfo[i]&&(e.ManyAttrValue[a]=e.attrInfo[i]),t.image=e.formValidate.image})),this.attrInfo={},this.ManyAttrValue.forEach((function(t){"undefined"!==t.detail&&null!==t.detail&&(e.attrInfo[Object.values(t.detail).sort().join("/")]=t)})),this.manyTabTit=a,this.manyTabDate=i,this.formThead=Object.assign({},this.formThead,a)},attrFormat:function(t){var e=[],a=[];return i(t);function i(t){if(t.length>1)t.forEach((function(i,r){0===r&&(e=t[r]["detail"]);var n=[];e.forEach((function(e){t[r+1]&&t[r+1]["detail"]&&t[r+1]["detail"].forEach((function(i){var o=(0!==r?"":t[r]["value"]+"_$_")+e+"-$-"+t[r+1]["value"]+"_$_"+i;if(n.push(o),r===t.length-2){var s={image:"",price:0,cost:0,ot_price:0,stock:0,bar_code:"",weight:0,volume:0,brokerage:0,brokerage_two:0};o.split("-$-").forEach((function(t,e){var a=t.split("_$_");s["detail"]||(s["detail"]={}),s["detail"][a[0]]=a.length>1?a[1]:""})),Object.values(s.detail).forEach((function(t,e){s["value"+e]=t})),a.push(s)}}))})),e=n.length?n:[]}));else{var i=[];t.forEach((function(t,e){t["detail"].forEach((function(e,r){i[r]=t["value"]+"_"+e,a[r]={image:"",price:0,cost:0,ot_price:0,stock:0,bar_code:"",weight:0,volume:0,brokerage:0,brokerage_two:0,detail:Object(l["a"])({},t["value"],e)},Object.values(a[r].detail).forEach((function(t,e){a[r]["value"+e]=t}))}))})),e.push(i.join("$&"))}return console.log(a),a}},add:function(){var t=this;if(this.soure_link){var e=/(http|ftp|https):\/\/[\w\-_]+(\.[\w\-_]+)+([\w\-\.,@?^=%&:/~\+#]*[\w\-\@?^=%&/~\+#])?/;if(!e.test(this.soure_link))return this.$message.warning("请输入以http开头的地址!");this.artFrom.url=this.soure_link,this.loading=!0,Object(f["s"])(this.artFrom).then((function(e){var a=e.data;t.modals=!1,t.$emit("info-data",a)})).catch((function(e){t.$message.error(e.message),t.loading=!1}))}else this.$message.warning("请输入链接地址!")},handleSubmit:function(t){var e=this;this.$refs[t].validate((function(t){t?(e.modal_loading=!0,e.formValidate.cate_id=e.formValidate.cate_id instanceof Array?e.formValidate.cate_id.pop():e.formValidate.cate_id,e.formValidate.once_count=e.formValidate.once_count||0,1==e.formValidate.spec_type?e.formValidate.attrValue=e.ManyAttrValue:(e.formValidate.attrValue=e.OneattrValue,e.formValidate.attr=[]),e.formValidate.is_copoy=1,e.loading1=!0,Object(f["Z"])(e.formValidate).then((function(t){e.$message.success("商品默认为不上架状态请手动上架商品!"),e.loading1=!1,setTimeout((function(){e.modal_loading=!1}),500),setTimeout((function(){e.modals=!1}),600),e.$emit("getSuccess")})).catch((function(t){e.modal_loading=!1,e.$message.error(t.message),e.loading1=!1}))):e.formValidate.cate_id||e.$message.warning("请填写商品分类!")}))},modalPicTap:function(t,e,a){this.tableIndex=a;var i=this;this.$modalUpload((function(e){console.log(i.formValidate.attr[i.tableIndex]),"1"===t&&("pi"===a?i.oneFormBatch[0].image=e[0]:i.OneattrValue[0].image=e[0]),"2"===t&&(i.ManyAttrValue[i.tableIndex].image=e[0]),i.modalPic=!1}),t)},getPic:function(t){this.callback(t),this.formValidate.attr[this.tableIndex].pic=t.att_dir,this.modalPic=!1},handleDragStart:function(t,e){this.dragging=e},handleDragEnd:function(t,e){this.dragging=null},handleDragOver:function(t){t.dataTransfer.dropEffect="move"},handleDragEnter:function(t,e){if(t.dataTransfer.effectAllowed="move",e!==this.dragging){var a=Object(c["a"])(this.formValidate.slider_image),i=a.indexOf(this.dragging),r=a.indexOf(e);a.splice.apply(a,[r,0].concat(Object(c["a"])(a.splice(i,1)))),this.formValidate.slider_image=a}},addCustomDialog:function(t){window.UE.registerUI("test-dialog",(function(t,e){var a=new window.UE.ui.Dialog({iframeUrl:"/admin/widget.images/index.html?fodder=dialog",editor:t,name:e,title:"上传图片",cssRules:"width:1200px;height:500px;padding:20px;"});this.dialog=a;var i=new window.UE.ui.Button({name:"dialog-button",title:"上传图片",cssRules:"background-image: url(../../../assets/images/icons.png);background-position: -726px -77px;",onclick:function(){a.render(),a.open()}});return i}))}}},S=j,F=(a("c722"),Object($["a"])(S,y,V,!1,null,"5245ffd2",null)),D=F.exports,E={image:"",slider_image:[],store_name:"",store_info:"",keyword:"",brand_id:"",cate_id:"",mer_cate_id:[],param_temp_id:[],unit_name:"",sort:0,once_max_count:0,is_good:0,temp_id:"",video_link:"",guarantee_template_id:"",delivery_way:[],mer_labels:[],delivery_free:0,pay_limit:0,once_min_count:0,svip_price_type:0,params:[],attrValue:[{image:"",price:null,cost:null,ot_price:null,procure_price:null,svip_price:null,stock:null,bar_code:"",weight:null,volume:null}],attr:[],extension_type:0,integral_rate:-1,content:{title:"",image:[]},spec_type:0,give_coupon_ids:[],is_gift_bag:0,couponData:[],extend:[],type:0},A={price:{title:"零售价"},cost:{title:"成本价"},ot_price:{title:"市场价"},procure_price:{title:"批发价"},svip_price:{title:"付费会员价"},stock:{title:"库存"},bar_code:{title:"商品条码"},weight:{title:"重量(KG)"},volume:{title:"体积(m³)"}},P=[{name:"店铺推荐",value:"is_good"}],R={name:"ProductProductAdd",components:{ueditorFrom:d["a"],VueUeditorWrap:m.a,guaranteeService:g["a"],previewBox:_["a"],taoBao:D,copyRecord:L},data:function(){var t=v["a"].https+"/upload/image/0/file?ueditor=1&token="+Object(b["a"])();return{myConfig:{autoHeightEnabled:!1,initialFrameHeight:500,initialFrameWidth:"100%",enableAutoSave:!1,UEDITOR_HOME_URL:"/UEditor/",serverUrl:t,imageUrl:t,imageFieldName:"file",imageUrlPrefix:"",imageActionName:"upfile",imageMaxSize:2048e3,imageAllowFiles:[".png",".jpg",".jpeg",".gif",".bmp"]},optionsCate:{value:"store_category_id",label:"cate_name",children:"children",emitPath:!1},roterPre:h["roterPre"],selectRule:"",checkboxGroup:[],recommend:P,tabs:[],fullscreenLoading:!1,props:{emitPath:!1},propsMer:{emitPath:!0},active:0,deduction_set:-1,OneattrValue:[Object.assign({},E.attrValue[0])],ManyAttrValue:[Object.assign({},E.attrValue[0])],ruleList:[],merCateList:[],categoryList:[],shippingList:[],guaranteeList:[],BrandList:[],deliveryList:[],labelList:[],formThead:Object.assign({},A),formValidate:Object.assign({},E),picValidate:!0,formDynamics:{template_name:"",template_value:[]},manyTabTit:{},manyTabDate:{},grid2:{xl:10,lg:12,md:12,sm:24,xs:24},formDynamic:{attrsName:"",attrsVal:""},isBtn:!1,manyFormValidate:[],images:[],currentTab:"1",isChoice:"",upload:{videoIng:!1},progress:10,videoLink:"",grid:{xl:8,lg:8,md:12,sm:24,xs:24},loading:!1,ruleValidate:{give_coupon_ids:[{required:!0,message:"请选择优惠券",trigger:"change",type:"array"}],store_name:[{required:!0,message:"请输入商品名称",trigger:"blur"}],mer_cate_id:[{required:!1,message:"请选择商户商品分类",trigger:"change"}],cate_id:[{required:!0,message:"请选择平台分类",trigger:"change"}],keyword:[{required:!0,message:"请输入商品关键字",trigger:"blur"}],unit_name:[{required:!0,message:"请输入单位",trigger:"blur"}],store_info:[{required:!1,message:"请输入商品简介",trigger:"blur"}],temp_id:[{required:!0,message:"请选择运费模板",trigger:"change"}],once_max_count:[{required:!0,message:"请输入限购数量",trigger:"change"}],image:[{required:!0,message:"请上传商品图",trigger:"change"}],slider_image:[{required:!0,message:"请上传商品轮播图",type:"array",trigger:"change"}],spec_type:[{required:!0,message:"请选择商品规格",trigger:"change"}],delivery_way:[{required:!0,message:"请选择送货方式",trigger:"change"}]},attrInfo:{},keyNum:0,extensionStatus:0,deductionStatus:0,previewVisible:!1,previewKey:"",deliveryType:[],virtual:[{tit:"普通商品",id:0,tit2:"物流发货"}],customBtn:0,CustomList:[{value:"text",label:"文本框"},{value:"number",label:"数字"},{value:"email",label:"邮件"},{value:"date",label:"日期"},{value:"time",label:"时间"},{value:"idCard",label:"身份证"},{value:"mobile",label:"手机号"},{value:"image",label:"图片"}],customess:{content:[]},headTab:[{title:"商品信息",name:"1"},{title:"规格设置",name:"2"},{title:"商品详情",name:"3"},{title:"其他设置",name:"4"}],type:0,modals:!1,attrVal:{price:null,cost:null,ot_price:null,procure_price:null,stock:null,bar_code:"",weight:null,volume:null},open_svip:!1,svip_rate:0,customSpecs:[],merSpecsSelect:[],sysSpecsSelect:[]}},computed:{attrValue:function(){var t=Object.assign({},this.attrVal);return t},oneFormBatch:function(){var t=[Object.assign({},E.attrValue[0])];return this.OneattrValue[0]&&this.OneattrValue[0]["image"]&&(t[0]["image"]=this.OneattrValue[0]["image"]),delete t[0].bar_code,t}},watch:{"formValidate.attr":{handler:function(t){1===this.formValidate.spec_type&&this.watCh(t)},immediate:!1,deep:!0},currentTab:function(t){var e=this;4==t&&this.$nextTick((function(t){e.setSort()}))}},created:function(){this.tempRoute=Object.assign({},this.$route),this.$route.params.id&&1===this.formValidate.spec_type&&this.$watch("formValidate.attr",this.watCh)},mounted:function(){var t=this;"TypeSupplyChain"!=this.$store.state.user.merchantType.type_code&&delete this.attrVal.procure_price,this.formValidate.slider_image=[],this.$route.params.id?(this.setTagsViewTitle(),this.getInfo()):(this.getSpecsLst(this.formValidate.cate_id),-1==this.deduction_set&&(this.formValidate.integral_rate=-1)),this.formValidate.attr.map((function(e){t.$set(e,"inputVisible",!1)})),1==this.$route.query.type?(this.type=this.$route.query.type,this.$refs.taoBao.modals=!0):this.type=0,this.getCategorySelect(),this.getCategoryList(),this.getBrandListApi(),this.getShippingList(),this.getGuaranteeList(),this.productCon(),this.productGetRule(),this.getLabelLst(),this.$store.dispatch("settings/setEdit",!0)},destroyed:function(){window.removeEventListener("popstate",this.goBack,!1)},methods:{setSort:function(){},elChangeExForArray:function(t,e,a){var i=a[t];return a[t]=a[e],a[e]=i,a},goBack:function(){sessionStorage.clear(),window.history.back()},handleCloseCoupon:function(t){var e=this;this.formValidate.couponData.splice(this.formValidate.couponData.indexOf(t),1),this.formValidate.give_coupon_ids=[],this.formValidate.couponData.map((function(t){e.formValidate.give_coupon_ids.push(t.coupon_id)}))},getSpecsLst:function(t){var e=this,a=t||this.formValidate.cate_id;Object(f["Bb"])({cate_id:a}).then((function(t){e.merSpecsSelect=t.data.mer,e.sysSpecsSelect=t.data.sys})).catch((function(t){e.$message.error(t.message)}))},productCon:function(){var t=this;Object(f["Y"])().then((function(e){t.extensionStatus=e.data.extension_status,t.deductionStatus=e.data.integral_status,t.deliveryType=e.data.delivery_way.map(String),t.open_svip=1==e.data.mer_svip_status&&1==e.data.svip_switch_status,t.svip_rate=e.data.svip_store_rate;var a=0==t.formValidate.type?"快递配送":"虚拟发货";t.$route.params.id||(t.formValidate.delivery_way=t.deliveryType),2==t.deliveryType.length?t.deliveryList=[{value:"1",name:"到店自提"},{value:"2",name:a}]:1==t.deliveryType.length&&"1"==t.deliveryType[0]?t.deliveryList=[{value:"1",name:"到店自提"}]:t.deliveryList=[{value:"2",name:a}]})).catch((function(e){t.$message.error(e.message)}))},getLabelLst:function(){var t=this;Object(f["v"])().then((function(e){t.labelList=e.data})).catch((function(e){t.$message.error(e.message)}))},addCoupon:function(){var t=this;this.$modalCoupon(this.formValidate.couponData,"wu",t.formValidate.give_coupon_ids,this.keyNum+=1,(function(e){t.formValidate.give_coupon_ids=[],t.formValidate.couponData=e,e.map((function(e){t.formValidate.give_coupon_ids.push(e.coupon_id)}))}))},delSpecs:function(t){this.formValidate.params.splice(t,1)},addSpecs:function(){this.formValidate.params.push({name:"",value:"",sort:0})},getSpecsList:function(){var t=this,e=Object(c["a"])(this.customSpecs),a=[this.formValidate.param_temp_id].concat(),i=[].concat(Object(c["a"])(e),Object(c["a"])(a));console.log(i),console.log(this.customSpecs),i.length<=0?(this.formValidate.merParams=[],this.formValidate.sysParams=[]):Object(f["kb"])({template_ids:i.toString()}).then((function(e){t.formValidate.params=e.data})).catch((function(e){t.$message.error(e.message)}))},setTagsViewTitle:function(){var t="编辑商品",e=Object.assign({},this.tempRoute,{title:"".concat(t,"-").concat(this.$route.params.id)});this.$store.dispatch("tagsView/updateVisitedView",e)},onChangeGroup:function(){this.checkboxGroup.includes("is_good")?this.formValidate.is_good=1:this.formValidate.is_good=0},watCh:function(t){var e=this,a={},i={};this.formValidate.attr.forEach((function(t,e){a["value"+e]={title:t.value},i["value"+e]=""})),this.ManyAttrValue=this.attrFormat(t),this.ManyAttrValue.forEach((function(t,a){var i=Object.values(t.detail).sort().join("/");e.attrInfo[i]&&(e.ManyAttrValue[a]=e.attrInfo[i])})),this.attrInfo={},this.ManyAttrValue.forEach((function(t){"undefined"!==t.detail&&null!==t.detail&&(e.attrInfo[Object.values(t.detail).sort().join("/")]=t)})),this.manyTabTit=a,this.manyTabDate=i,this.formThead=Object.assign({},this.formThead,a)},attrFormat:function(t){var e=[],a=[];return i(t);function i(t){if(t.length>1)t.forEach((function(i,r){0===r&&(e=t[r]["detail"]);var n=[];e.forEach((function(e){t[r+1]&&t[r+1]["detail"]&&t[r+1]["detail"].forEach((function(i){var o=(0!==r?"":t[r]["value"]+"_$_")+e+"-$-"+t[r+1]["value"]+"_$_"+i;if(n.push(o),r===t.length-2){var s={image:"",price:0,cost:0,ot_price:0,stock:0,bar_code:"",weight:0,volume:0,brokerage:0,brokerage_two:0};o.split("-$-").forEach((function(t,e){var a=t.split("_$_");s["detail"]||(s["detail"]={}),s["detail"][a[0]]=a.length>1?a[1]:""})),Object.values(s.detail).forEach((function(t,e){s["value"+e]=t})),a.push(s)}}))})),e=n.length?n:[]}));else{var i=[];t.forEach((function(t,e){t["detail"].forEach((function(e,r){i[r]=t["value"]+"_"+e,a[r]={image:"",price:0,cost:0,ot_price:0,stock:0,bar_code:"",weight:0,volume:0,brokerage:0,brokerage_two:0,detail:Object(l["a"])({},t["value"],e)},Object.values(a[r].detail).forEach((function(t,e){a[r]["value"+e]=t}))}))})),e.push(i.join("$&"))}return a}},addTem:function(){var t=this;this.$modalTemplates(0,(function(){t.getShippingList()}))},addServiceTem:function(){this.$refs.serviceGuarantee.add()},delVideo:function(){var t=this;t.$set(t.formValidate,"video_link","")},zh_uploadFile:function(){this.videoLink?this.formValidate.video_link=this.videoLink:this.$refs.refid.click()},zh_uploadFile_change:function(t){var e=this;e.progress=10;var a=t.target.files[0].name.substr(t.target.files[0].name.indexOf("."));if(".mp4"!==a)return e.$message.error("只能上传MP4文件");Object(f["fb"])().then((function(a){e.$videoCloud.videoUpload({type:a.data.type,evfile:t,res:a,uploading:function(t,a){e.upload.videoIng=t}}).then((function(t){e.formValidate.video_link=t.url||t.data.src,e.$message.success("视频上传成功"),e.progress=100})).catch((function(t){e.upload.videoIng=!1,e.$message.error(t.message)}))}))},addRule:function(){var t=this;this.$modalAttr(this.formDynamics,(function(){t.productGetRule()}))},onChangeSpec:function(t){1===t&&this.productGetRule()},changeIntergral:function(t){this.formValidate.integral_rate=-1==t?-1:this.formValidate.integral_rate},confirm:function(){var t=this;if(!this.selectRule)return this.$message.warning("请选择属性");this.ruleList.forEach((function(e){e.attr_template_id===t.selectRule&&(t.formValidate.attr=e.template_value)}))},getCategorySelect:function(){var t=this;Object(f["r"])().then((function(e){t.merCateList=e.data})).catch((function(e){t.$message.error(e.message)}))},getCategoryList:function(){var t=this;Object(f["q"])().then((function(e){e.data.forEach((function(t){t.children.forEach((function(t){t.children=null}))})),t.categoryList=e.data})).catch((function(e){t.$message.error(e.message)}))},getBrandListApi:function(){var t=this;Object(f["p"])().then((function(e){t.BrandList=e.data})).catch((function(e){t.$message.error(e.message)}))},productGetRule:function(){var t=this;Object(f["Pb"])().then((function(e){t.ruleList=e.data}))},getShippingList:function(){var t=this;Object(f["yb"])().then((function(e){t.shippingList=e.data}))},getGuaranteeList:function(){var t=this;Object(f["B"])().then((function(e){t.guaranteeList=e.data}))},showInput:function(t){this.$set(t,"inputVisible",!0)},virtualbtn:function(t,e){if(this.$route.params.id)return this.$message.warning("商品类型不能切换!");this.formValidate.type=t,this.productCon()},customMessBtn:function(t){t||(this.formValidate.extend=[])},addcustom:function(){this.formValidate.extend.length>9?this.$message.warning("最多添加10条"):this.formValidate.extend.push({title:"",key:"text",value:"",require:!1})},delcustom:function(t){this.formValidate.extend.splice(t,1)},onChangetype:function(t){var e=this;1===t?(this.OneattrValue.map((function(t){e.$set(t,"extension_one",null),e.$set(t,"extension_two",null)})),this.ManyAttrValue.map((function(t){e.$set(t,"extension_one",null),e.$set(t,"extension_two",null)}))):(this.OneattrValue.map((function(t){delete t.extension_one,delete t.extension_two,e.$set(t,"extension_one",null),e.$set(t,"extension_two",null)})),this.ManyAttrValue.map((function(t){delete t.extension_one,delete t.extension_two})))},onChangeSpecs:function(t){if(1==t||2==t){this.attrVal={price:null,cost:null,ot_price:null,svip_price:null,stock:null,bar_code:"",weight:null,volume:null},this.OneattrValue[0]["svip_price"]=this.OneattrValue[0]["price"]?this.accMul(this.OneattrValue[0]["price"],this.svip_rate):0;var e,a=0,i=Object(s["a"])(this.ManyAttrValue);try{for(i.s();!(e=i.n()).done;){var r=e.value;a=r.price?this.accMul(r.price,this.svip_rate):0,this.$set(r,"svip_price",a)}}catch(n){i.e(n)}finally{i.f()}}else this.attrVal={price:null,cost:null,ot_price:null,stock:null,bar_code:"",weight:null,volume:null}},memberPrice:function(t,e){"售价"==t.title&&(e.svip_price=this.accMul(e.price,this.svip_rate))},accMul:function(t,e){var a=0,i=t.toString(),r=e.toString();try{a+=i.split(".")[1].length}catch(n){}try{a+=r.split(".")[1].length}catch(n){}return Number(i.replace(".",""))*Number(r.replace(".",""))/Math.pow(10,a)},delAttrTable:function(t){this.ManyAttrValue.splice(t,1)},batchAdd:function(){var t,e=Object(s["a"])(this.ManyAttrValue);try{for(e.s();!(t=e.n()).done;){var a=t.value;console.log(this.oneFormBatch[0]),""!=this.oneFormBatch[0].image&&this.$set(a,"image",this.oneFormBatch[0].image),null!=this.oneFormBatch[0].price&&this.$set(a,"price",this.oneFormBatch[0].price),null!=this.oneFormBatch[0].cost&&this.$set(a,"cost",this.oneFormBatch[0].cost),null!=this.oneFormBatch[0].ot_price&&this.$set(a,"ot_price",this.oneFormBatch[0].ot_price),null!=this.oneFormBatch[0].svip_price&&this.$set(a,"svip_price",this.oneFormBatch[0].svip_price),null!=this.oneFormBatch[0].stock&&this.$set(a,"stock",this.oneFormBatch[0].stock),null!=this.oneFormBatch[0].bar_code&&this.$set(a,"bar_code",this.oneFormBatch[0].bar_code),null!=this.oneFormBatch[0].weight&&this.$set(a,"weight",this.oneFormBatch[0].weight),null!=this.oneFormBatch[0].volume&&this.$set(a,"volume",this.oneFormBatch[0].volume),null!=this.oneFormBatch[0].extension_one&&this.$set(a,"extension_one",this.oneFormBatch[0].extension_one),null!=this.oneFormBatch[0].extension_two&&this.$set(a,"extension_two",this.oneFormBatch[0].extension_two)}}catch(i){e.e(i)}finally{e.f()}},addBtn:function(){this.clearAttr(),this.isBtn=!0},offAttrName:function(){this.isBtn=!1},clearAttr:function(){this.formDynamic.attrsName="",this.formDynamic.attrsVal=""},handleRemoveAttr:function(t){this.formValidate.attr.splice(t,1),this.manyFormValidate.splice(t,1)},handleClose:function(t,e){t.splice(e,1)},createAttrName:function(){if(this.formDynamic.attrsName&&this.formDynamic.attrsVal){var t={value:this.formDynamic.attrsName,detail:[this.formDynamic.attrsVal]};this.formValidate.attr.push(t);var e={};this.formValidate.attr=this.formValidate.attr.reduce((function(t,a){return!e[a.value]&&(e[a.value]=t.push(a)),t}),[]),this.clearAttr(),this.isBtn=!1}else this.$message.warning("请添加完整的规格!")},createAttr:function(t,e){if(t){this.formValidate.attr[e].detail.push(t);var a={};this.formValidate.attr[e].detail=this.formValidate.attr[e].detail.reduce((function(t,e){return!a[e]&&(a[e]=t.push(e)),t}),[]),this.formValidate.attr[e].inputVisible=!1}else this.$message.warning("请添加属性")},getInfo:function(){var t=this;this.fullscreenLoading=!0,Object(f["eb"])(this.$route.params.id).then(function(){var e=Object(o["a"])(Object(n["a"])().mark((function e(a){var i;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:a.data.content_arr&&a.data.content_arr.length>0&&(a.data.content=a.data.content_arr),i=a.data,t.infoData(i),t.getSpecsLst(i.cate_id);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.fullscreenLoading=!1,t.$message.error(e.message)}))},infoData:function(t){var e=this;this.deduction_set=-1==t.integral_rate?-1:1,this.formValidate={image:t.image,attrValue:t.attrValue,slider_image:t.slider_image,store_name:t.store_name,store_info:t.store_info,keyword:t.keyword,params:t.params,param_temp_id:t.param_temp_id,brand_id:t.brand_id,cate_id:t.cate_id,mer_cate_id:t.mer_cate_id,unit_name:t.unit_name,sort:t.sort,once_max_count:t.once_max_count||1,once_min_count:t.once_min_count||0,is_good:t.is_good,temp_id:t.temp_id,guarantee_template_id:t.guarantee_template_id?t.guarantee_template_id:"",attr:t.attr,pay_limit:t.pay_limit||0,extension_type:t.extension_type,content:t.content,spec_type:Number(t.spec_type),give_coupon_ids:t.give_coupon_ids,is_gift_bag:t.is_gift_bag,couponData:t.coupon,video_link:t.video_link?t.video_link:"",integral_rate:t.integral_rate,delivery_way:t.delivery_way&&t.delivery_way.length?t.delivery_way.map(String):this.deliveryType,delivery_free:t.delivery_free?t.delivery_free:0,mer_labels:t.mer_labels&&t.mer_labels.length?t.mer_labels.map(Number):[],type:t.type||0,extend:t.extend||[],svip_price_type:t.svip_price_type||0},0!=t.svip_price_type&&(this.attrVal={price:null,cost:null,ot_price:null,svip_price:null,stock:null,bar_code:"",weight:null,volume:null}),0!=this.formValidate.extend.length&&(this.customBtn=1),0===this.formValidate.spec_type?this.OneattrValue=t.attrValue:(this.ManyAttrValue=t.attrValue,this.ManyAttrValue.forEach((function(t){"undefined"!==t.detail&&null!==t.detail&&(e.attrInfo[Object.values(t.detail).sort().join("/")]=t)}))),1===this.formValidate.is_good&&this.checkboxGroup.push("is_good"),this.fullscreenLoading=!1},onClose:function(t){this.modals=!1,this.infoData(t)},handleRemove:function(t){this.formValidate.slider_image.splice(t,1)},modalPicTap:function(t,e,a){var i=this,r=[];this.$modalUpload((function(n){if("1"!==t||e||(i.formValidate.image=n[0],i.OneattrValue[0].image=n[0]),"2"!==t||e||n.map((function(t){r.push(t.attachment_src),i.formValidate.slider_image.push(t),i.formValidate.slider_image.length>10&&(i.formValidate.slider_image.length=10)})),"1"===t&&"dan"===e&&(i.OneattrValue[0].image=n[0]),"1"===t&&"duo"===e&&(i.ManyAttrValue[a].image=n[0]),"1"===t&&"pi"===e&&(i.oneFormBatch[0].image=n[0]),"3"===t){var o=i.formValidate.content.image?i.formValidate.content.image:[];i.formValidate.content={image:[].concat(Object(c["a"])(o),Object(c["a"])(n)),title:i.formValidate.content.title},console.log("选择好的",i.formValidate.content)}}),t)},deleteContentImg:function(t){this.formValidate.content.image.splice(t,1)},handleSubmitUp:function(){this.currentTab=(Number(this.currentTab)-1).toString()},handleSubmitNest:function(t){var e=this;this.$refs[t].validate((function(t){t&&(e.currentTab=(Number(e.currentTab)+1).toString())}))},validateAttr:function(){var t=this;Object.keys(this.formValidate.attrValue[0]).forEach((function(e){void 0==t.formValidate.attrValue[0][e]&&"bar_code"!=e&&(t.formValidate.attrValue[0][e]=0)}))},handleSubmit:function(t){var e=this;this.$store.dispatch("settings/setEdit",!1),this.onChangeGroup(),1===this.formValidate.spec_type?this.formValidate.attrValue=this.ManyAttrValue:(this.formValidate.attrValue=this.OneattrValue,this.formValidate.attr=[]);var a={price:!1,procure_price:!1};return this.formValidate.attrValue.forEach((function(t){t.price&&0!=t.price||(a.price=!0),t.procure_price&&0!=t.procure_price||(a.procure_price=!0)})),a.price?p["Message"].error("零售价不能为小于等于0"):a.procure_price&&"TypeSupplyChain"==this.$store.state.user.merchantType.type_code?p["Message"].error("批发价不能为小于等于0"):void this.$refs[t].validate((function(a){if(a){e.validateAttr(),e.fullscreenLoading=!0,e.loading=!0;var i=e.$route.params.id&&!e.$route.query.type;i?Object(f["nb"])(e.$route.params.id,e.formValidate).then(function(){var a=Object(o["a"])(Object(n["a"])().mark((function a(i){return Object(n["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:e.fullscreenLoading=!1,e.$message.success(i.message),e.$router.push({path:e.roterPre+"/product/list"}),e.$refs[t].resetFields(),e.formValidate.slider_image=[],e.loading=!1;case 6:case"end":return a.stop()}}),a)})));return function(t){return a.apply(this,arguments)}}()).catch((function(t){e.fullscreenLoading=!1,e.loading=!1,e.$message.error(t.message)})):Object(f["cb"])(e.formValidate).then(function(){var t=Object(o["a"])(Object(n["a"])().mark((function t(a){return Object(n["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.fullscreenLoading=!1,e.$message.success(a.message),e.$router.push({path:e.roterPre+"/product/list"}),e.loading=!1;case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.fullscreenLoading=!1,e.loading=!1,e.$message.error(t.message)}))}else{if(!e.formValidate.store_name.trim())return e.$message.warning("基本信息-商品名称不能为空");if(!e.formValidate.unit_name)return e.$message.warning("基本信息-单位不能为空");if(!e.formValidate.cate_id)return e.$message.warning("基本信息-平台商品分类不能为空");if(!e.formValidate.image)return e.$message.warning("基本信息-商品封面图不能为空");if(e.formValidate.slider_image.length<0)return e.$message.warning("基本信息-商品轮播图不能为空")}}))},handlePreview:function(t){var e=this;this.onChangeGroup(),1===this.formValidate.spec_type?this.formValidate.attrValue=this.ManyAttrValue:(this.formValidate.attrValue=this.OneattrValue,this.formValidate.attr=[]),Object(f["hb"])(this.formValidate).then(function(){var t=Object(o["a"])(Object(n["a"])().mark((function t(a){return Object(n["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.previewVisible=!0,e.previewKey=a.data.preview_key;case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.$message.error(t.message)}))},validate:function(t,e,a){!1===e&&this.$message.warning(a)},specPicValidate:function(t){for(var e=0;ed)a=l[d++],i&&!o.call(s,a)||u.push(t?[a,s[a]]:s[a]);return u}}},8615:function(t,e,a){var i=a("5ca1"),r=a("504c")(!1);i(i.S,"Object",{values:function(t){return r(t)}})},ae8a:function(t,e,a){"use strict";a("b485")},b485:function(t,e,a){},b78c:function(t,e,a){},c33c:function(t,e,a){},c722:function(t,e,a){"use strict";a("b78c")},f099:function(t,e,a){"use strict";a("c33c")}}]); \ No newline at end of file diff --git a/public/mer/js/chunk-738c6ac1.622727df.js b/public/mer/js/chunk-738c6ac1.182dff86.js similarity index 98% rename from public/mer/js/chunk-738c6ac1.622727df.js rename to public/mer/js/chunk-738c6ac1.182dff86.js index c390af6b..7ba5b0c0 100644 --- a/public/mer/js/chunk-738c6ac1.622727df.js +++ b/public/mer/js/chunk-738c6ac1.182dff86.js @@ -1 +1 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-738c6ac1"],{"5f72":function(e,t,i){"use strict";i("d7a0")},cb21:function(e,t,i){"use strict";i.r(t);var l=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"divBox"},[i("div",{staticClass:"header clearfix"},[i("div",{staticClass:"filter-container"},[i("div",{staticClass:"container"},[i("el-form",{attrs:{size:"small",inline:"","label-width":"100px"}},[i("el-form-item",{staticClass:"width100",attrs:{label:"商品分类:"}},[i("el-select",{staticClass:"filter-item selWidth mr20",attrs:{placeholder:"请选择",clearable:""},on:{change:e.getList},model:{value:e.tableFrom.mer_cate_id,callback:function(t){e.$set(e.tableFrom,"mer_cate_id",t)},expression:"tableFrom.mer_cate_id"}},e._l(e.merCateList,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),i("el-form-item",{staticClass:"width100",attrs:{label:"商品搜索:"}},[i("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入商品名称,关键字,产品编号",clearable:"",size:"small"},on:{change:e.getList},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.getList(1)}},model:{value:e.tableFrom.keyword,callback:function(t){e.$set(e.tableFrom,"keyword",t)},expression:"tableFrom.keyword"}},[i("el-button",{staticClass:"el-button-solt",attrs:{slot:"append",icon:"el-icon-search"},on:{click:function(t){return e.getList(1)}},slot:"append"})],1)],1)],1)],1)])]),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],ref:"table",staticStyle:{width:"100%"},attrs:{data:e.tableData.data,size:"samll","highlight-current-row":""},on:{"selection-change":e.handleSelectionChange}},["1"==e.singleChoice?i("el-table-column",{attrs:{width:"50"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-radio",{attrs:{label:t.row.product_id},nativeOn:{change:function(i){return e.getTemplateRow(t.row)}},model:{value:e.templateRadio,callback:function(t){e.templateRadio=t},expression:"templateRadio"}},[e._v(" ")])]}}],null,!1,3465899556)}):i("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),i("el-table-column",{attrs:{prop:"product_id",label:"ID","min-width":"50"}}),e._v(" "),i("el-table-column",{attrs:{label:"商品图","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(e){return[i("div",{staticClass:"demo-image__preview"},[i("el-image",{staticStyle:{width:"36px",height:"36px"},attrs:{src:e.row.image,"preview-src-list":[e.row.image]}})],1)]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"store_name",label:"商品名称","min-width":"200"}})],1),e._v(" "),i("div",{staticClass:"block mb20"},[i("el-pagination",{attrs:{"page-sizes":[5,10,20],"page-size":e.tableFrom.limit,"current-page":e.tableFrom.page,layout:"total, sizes, prev, pager, next, jumper",total:e.tableData.total},on:{"size-change":e.handleSizeChange,"current-change":e.pageChange}})],1)],1)},a=[],n=(i("ac6a"),i("c4c8")),o=i("83d6"),s={name:"GoodList",data:function(){return{templateRadio:0,idKey:"product_id",merCateList:[],roterPre:o["roterPre"],listLoading:!0,tableData:{data:[],total:0},tableFrom:{page:1,limit:5,mer_cate_id:"",type:"1",is_gift_bag:"",cate_id:"",store_name:"",keyword:""},checked:[],multipleSelection:[],multipleSelectionAll:window.form_create_helper.get(this.$route.query.field)||[],nextPageFlag:!1,singleChoice:0,singleSelection:{}}},mounted:function(){var e=this;if(this.singleChoice=sessionStorage.getItem("singleChoice"),console.log(this.singleChoice),this.getList(""),this.getCategorySelect(),1!=this.singleChoice){var t=window.form_create_helper.get(this.$route.query.field).map((function(e){return{product_id:e.id,image:e.src}}))||[];this.multipleSelectionAll=t}form_create_helper.onOk((function(){e.unloadHandler()}))},destroyed:function(){sessionStorage.setItem("singleChoice",0)},methods:{getTemplateRow:function(e){this.singleSelection={src:e.image,id:e.product_id}},unloadHandler:function(){1!=this.singleChoice?this.multipleSelectionAll.length>0?this.$route.query.field&&form_create_helper.set(this.$route.query.field,this.multipleSelectionAll.map((function(e){return{id:e.product_id,src:e.image}}))):this.$message.warning("请先选择商品"):this.singleSelection&&this.singleSelection.src&&this.singleSelection.id?this.$route.query.field&&form_create_helper.set(this.$route.query.field,this.singleSelection):this.$message.warning("请先选择商品")},handleSelectionChange:function(e){var t=this;this.multipleSelection=e,setTimeout((function(){t.changePageCoreRecordData()}),50)},setSelectRow:function(){if(this.multipleSelectionAll&&!(this.multipleSelectionAll.length<=0)){var e=this.idKey,t=[];this.multipleSelectionAll.forEach((function(i){t.push(i[e])})),this.$refs.table.clearSelection();for(var i=0;i=0&&this.$refs.table.toggleRowSelection(this.tableData.data[i],!0)}},changePageCoreRecordData:function(){var e=this.idKey,t=this;if(this.multipleSelectionAll.length<=0)this.multipleSelectionAll=this.multipleSelection;else{var i=[];this.multipleSelectionAll.forEach((function(t){i.push(t[e])}));var l=[];this.multipleSelection.forEach((function(a){l.push(a[e]),i.indexOf(a[e])<0&&t.multipleSelectionAll.push(a)}));var a=[];this.tableData.data.forEach((function(t){l.indexOf(t[e])<0&&a.push(t[e])})),a.forEach((function(l){if(i.indexOf(l)>=0)for(var a=0;a0?this.$route.query.field&&form_create_helper.set(this.$route.query.field,this.multipleSelectionAll.map((function(e){return{id:e.product_id,src:e.image}}))):this.$message.warning("请先选择商品"):this.singleSelection&&this.singleSelection.src&&this.singleSelection.id?this.$route.query.field&&form_create_helper.set(this.$route.query.field,this.singleSelection):this.$message.warning("请先选择商品")},handleSelectionChange:function(e){var t=this;this.multipleSelection=e,setTimeout((function(){t.changePageCoreRecordData()}),50)},setSelectRow:function(){if(this.multipleSelectionAll&&!(this.multipleSelectionAll.length<=0)){var e=this.idKey,t=[];this.multipleSelectionAll.forEach((function(i){t.push(i[e])})),this.$refs.table.clearSelection();for(var i=0;i=0&&this.$refs.table.toggleRowSelection(this.tableData.data[i],!0)}},changePageCoreRecordData:function(){var e=this.idKey,t=this;if(this.multipleSelectionAll.length<=0)this.multipleSelectionAll=this.multipleSelection;else{var i=[];this.multipleSelectionAll.forEach((function(t){i.push(t[e])}));var l=[];this.multipleSelection.forEach((function(a){l.push(a[e]),i.indexOf(a[e])<0&&t.multipleSelectionAll.push(a)}));var a=[];this.tableData.data.forEach((function(t){l.indexOf(t[e])<0&&a.push(t[e])})),a.forEach((function(l){if(i.indexOf(l)>=0)for(var a=0;a0&&(t.active_price=t.price)},changeRatePrice:function(){var t,e=Object(n["a"])(this.manyFormValidate);try{for(e.s();!(t=e.n()).done;){var a=t.value;this.$set(a,"active_price",this.rate_price);for(var i=this.multipleSelection,s=0;s1||this.specsMainData.length>0))this.$message.warning("最多添加一个商品");else{for(var a=JSON.parse(JSON.stringify(t)),i=0;i=0&&this.$refs.table.toggleRowSelection(this.tableData.data[a],!0)}},ok:function(){if(this.images.length>0)if("image"===this.$route.query.fodder){var t=form_create_helper.get("image");form_create_helper.set("image",t.concat(this.images)),form_create_helper.close("image")}else this.isdiy?this.$emit("getProductId",this.diyVal):this.$emit("getProductId",this.images);else this.$message.warning("请先选择商品")},treeSearchs:function(t){this.cateIds=t,this.tableFrom.page=1,this.getList("")},userSearchs:function(){this.tableFrom.page=1,this.getList("")},clear:function(){this.productRow.id="",this.currentid=""}}},c=o,u=(a("ea29"),a("2877")),d=Object(u["a"])(c,i,s,!1,null,"4442b510",null);e["a"]=d.exports},d292:function(t,e,a){},ea29:function(t,e,a){"use strict";a("d292")}}]); \ No newline at end of file +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7c43671d"],{"0424":function(t,e,a){"use strict";a("9ee8")},"5b55":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"divBox"},[a("el-card",{staticClass:"box-card"},[a("el-row",{staticClass:"mt30 acea-row row-middle row-center"},[a("el-col",{attrs:{span:24}},[a("el-form",{ref:"formValidate",staticClass:"form mt30",attrs:{rules:t.ruleValidate,model:t.formValidate,"label-width":"150px"},nativeOn:{submit:function(t){t.preventDefault()}}},[a("el-row",{directives:[{name:"show",rawName:"v-show",value:0===t.current,expression:"current === 0"}]},[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"套餐名称:",prop:"title"}},[a("el-input",{attrs:{placeholder:"请输入套餐名称"},model:{value:t.formValidate.title,callback:function(e){t.$set(t.formValidate,"title",e)},expression:"formValidate.title"}})],1)],1),t._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"套餐时间:",prop:1==t.formValidate.is_time?"time":""}},[a("el-radio-group",{attrs:{"element-id":"is_time"},model:{value:t.formValidate.is_time,callback:function(e){t.$set(t.formValidate,"is_time",e)},expression:"formValidate.is_time"}},[a("el-radio",{attrs:{label:0}},[t._v("不限时")]),t._v(" "),a("el-radio",{staticClass:"radio",attrs:{label:1}},[t._v("限时")])],1),t._v(" "),1==t.formValidate.is_time?a("div",{staticClass:"acea-row row-middle",staticStyle:{display:"inline-block","margin-left":"15px"}},[a("el-date-picker",{attrs:{type:"datetimerange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期",align:"right"},on:{change:t.onchangeTime},model:{value:t.timeVal,callback:function(e){t.timeVal=e},expression:"timeVal"}})],1):t._e()],1)],1),t._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"套餐类型:",prop:"type","label-for":"type"}},[a("el-radio-group",{attrs:{"element-id":"type"},model:{value:t.formValidate.type,callback:function(e){t.$set(t.formValidate,"type",e)},expression:"formValidate.type"}},[a("el-radio",{staticClass:"radio",attrs:{label:0}},[t._v("固定套餐")]),t._v(" "),a("el-radio",{attrs:{label:1}},[t._v("搭配套餐")])],1),t._v(" "),a("div",{staticClass:"ml100 grey"},[t._v("\n "+t._s(0==t.formValidate.type?"套餐内所有商品打包销售,消费者需成套购买整个套餐":"套餐内主商品必选,搭配商品任意选择1件及以上即可购买套餐")+"\n ")])],1)],1),t._v(" "),1==t.formValidate.type?a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"套餐主商品:",prop:"products","label-for":"products"}},[a("el-table",{attrs:{data:t.specsMainData}},[a("el-table-column",{attrs:{prop:"store_name",label:"商品名称","min-width":"200"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"product-data"},[a("img",{staticClass:"image",attrs:{src:e.row.image}}),t._v(" "),a("div",[t._v(t._s(e.row.store_name))])])]}}],null,!1,338878098)}),t._v(" "),a("el-table-column",{attrs:{label:"参与规格","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return t._l(e.row.attr,(function(e,i){return a("div",{key:i},[t._v("\n "+t._s(e.sku||"默认")+" | "+t._s(e.active_price||e.price)+"\n ")])}))}}],null,!1,1237844034)}),t._v(" "),a("el-table-column",{attrs:{label:"操作","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.editGoods(e.row,e.$index,"Main")}}},[t._v("设置规格")]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.deleteGoods(e.$index,"Main")}}},[t._v("删除")])]}}],null,!1,1942046363)})],1),t._v(" "),t.specsMainData.length<1?a("el-button",{staticClass:"submission mr15 mt20",attrs:{type:"primary"},on:{click:function(e){return t.addGoods("Main")}}},[t._v("添加商品")]):t._e()],1)],1):t._e(),t._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:1==t.formValidate.type?"套餐搭配商品:":"套餐商品:",prop:"products","label-for":"products"}},[a("el-table",{attrs:{data:t.specsData}},[a("el-table-column",{attrs:{prop:"store_name",label:"商品名称","min-width":"200"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"product-data"},[a("img",{staticClass:"image",attrs:{src:e.row.image}}),t._v(" "),a("div",[t._v(t._s(e.row.store_name))])])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"参与规格","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return t._l(e.row.attr,(function(e,i){return a("div",{key:i},[t._v("\n "+t._s(e.sku||"默认")+" | "+t._s(e.active_price||e.price)+"\n ")])}))}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.editGoods(e.row,e.$index,"Other")}}},[t._v("设置规格")]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.deleteGoods(e.$index,"Other")}}},[t._v("删除")])]}}])})],1),t._v(" "),t.specsData.length<50?a("el-button",{staticClass:"submission mr15 mt20",attrs:{type:"primary"},on:{click:function(e){return t.addGoods("Other")}}},[t._v("添加商品")]):t._e()],1)],1),t._v(" "),a("el-col",[a("el-form-item",{attrs:{label:"套餐数量:",prop:1==t.formValidate.is_limit?"limit_num":"","label-for":"limit_num"}},[a("el-radio-group",{attrs:{"element-id":"is_limit"},model:{value:t.formValidate.is_limit,callback:function(e){t.$set(t.formValidate,"is_limit",e)},expression:"formValidate.is_limit"}},[a("el-radio",{attrs:{label:0}},[t._v("不限量")]),t._v(" "),a("el-radio",{staticClass:"radio",attrs:{label:1}},[t._v("限量")])],1),t._v(" "),1==t.formValidate.is_limit?a("el-input-number",{staticStyle:{"margin-left":"15px"},attrs:{placeholder:"请输入限量数量",min:0,max:99999,precision:0},model:{value:t.formValidate.limit_num,callback:function(e){t.$set(t.formValidate,"limit_num",e)},expression:"formValidate.limit_num"}}):t._e()],1)],1),t._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"排序:","label-for":"sort"}},[a("el-input-number",{attrs:{placeholder:"请输入排序序号",min:0,max:999999,precision:0},model:{value:t.formValidate.sort,callback:function(e){t.$set(t.formValidate,"sort",e)},expression:"formValidate.sort"}})],1)],1),t._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"套餐包邮:",prop:"free_shipping","label-for":"status"}},[a("el-switch",{attrs:{"active-value":1,"inactive-value":0,"active-text":"是","inactive-text":"否"},model:{value:t.formValidate.free_shipping,callback:function(e){t.$set(t.formValidate,"free_shipping",e)},expression:"formValidate.free_shipping"}}),t._v(" "),a("div",{staticClass:"ml100 grey"},[t._v("\n 不包邮时,将按照商品的运费模板进行计算\n ")])],1)],1),t._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"上架状态:",prop:"status","label-for":"status"}},[a("el-switch",{attrs:{"active-value":1,"inactive-value":0,"active-text":"上架","inactive-text":"下架"},model:{value:t.formValidate.status,callback:function(e){t.$set(t.formValidate,"status",e)},expression:"formValidate.status"}})],1)],1)],1),t._v(" "),a("el-form-item",[a("el-button",{staticClass:"submission",attrs:{type:"primary",loading:t.submitOpen},on:{click:function(e){return t.next("formValidate")}}},[t.submitOpen?a("div",[t._v("提交中")]):a("div",[t._v("提交")])])],1)],1)],1)],1)],1),t._v(" "),a("el-dialog",{staticClass:"paymentFooter",attrs:{visible:t.modals,title:"商品列表",width:"900px"},on:{"update:visible":function(e){t.modals=e}}},[t.modals?a("goods-list",{ref:"goodslist",attrs:{ischeckbox:!0},on:{getProductId:t.getProductId}}):t._e()],1),t._v(" "),a("el-dialog",{staticClass:"paymentFooter",attrs:{visible:t.ggModel,title:"规格设置",width:"900px"},on:{"update:visible":function(e){t.ggModel=e}}},[a("div",{staticClass:"df"},[a("span",{staticStyle:{width:"75px"}},[t._v(" 优惠价:")]),t._v(" "),a("el-input-number",{staticClass:"m10",staticStyle:{width:"300px","text-align":"left"},attrs:{min:0},model:{value:t.rate_price,callback:function(e){t.rate_price=e},expression:"rate_price"}}),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.changeRatePrice()}}},[a("div",[t._v("批量添加")])])],1),t._v(" "),a("el-table",{ref:"multipleSelection",attrs:{data:t.manyFormValidate,"row-key":function(t){return t.unique},height:"500"},on:{"selection-change":t.selectOne}},[a("el-table-column",{attrs:{type:"selection","reserve-selection":!0,width:"55"}}),t._v(" "),a("el-table-column",{attrs:{label:"图片","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(t){return[a("div",{staticClass:"demo-image__preview"},[a("el-image",{attrs:{src:t.row.image,"preview-src-list":[t.row.image]}})],1)]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"规格",prop:"sku","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.sku||"默认"))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"售价",prop:"price","min-width":"80"}}),t._v(" "),a("el-table-column",{attrs:{label:"会员价",prop:"is_svip_price","min-width":"80"}}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"优惠价","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-input",{staticClass:"priceBox",attrs:{type:"number",min:0,max:e.row["price"]},on:{blur:function(a){return t.limitPrice(e.row)}},model:{value:e.row["active_price"],callback:function(a){t.$set(e.row,"active_price",t._n(a))},expression:"scope.row['active_price']"}})]}}])})],1),t._v(" "),a("el-button",{staticClass:"mt10",staticStyle:{width:"100%"},attrs:{type:"primary"},on:{click:t.getAttr}},[a("div",[t._v("提交")])])],1)],1)},s=[],r=a("c7eb"),l=(a("96cf"),a("1da1")),n=(a("7f7f"),a("b85c")),o=(a("ac6a"),a("2f62"),a("c4ad")),c=a("83d6"),u=a("b7be"),d={title:[{required:!0,message:"请输入套餐名称",trigger:"blur"}],type:[{required:!0,type:"number",message:"请选择套餐类型",trigger:"change"}],time:[{required:!0,validator:m,trigger:"change"}],limit_num:[{required:!0,type:"number",message:"请输入套餐数量",trigger:"blur"}],image:[{required:!0,message:"请上传套餐主图",trigger:"change"}]};function m(t,e,a){if(console.log(e),Array.isArray(e))e.map((function(t){if(""===t)return a("日期不能为空")}));else if(""===e)return a("日期不能为空");return a()}var p=a("61f7"),f={name:"lotteryCreate",components:{goodsList:o["a"]},data:function(){return{roterPre:c["roterPre"],ggModel:!1,modals:!1,loading:!1,timeVal:"",manyFormValidate:[],multipleSelection:[],submitOpen:!1,spinShow:!1,addGoodsModel:!1,isChoice:"单选",current:0,modalPic:!1,modal_loading:!1,images:[],goodsAddType:"",specsMainData:[],specsData:[],formValidate:{title:"",type:0,is_time:0,is_limit:0,limit_num:0,link_ids:[],time:[],sort:0,free_shipping:1,status:1,products:[]},ruleValidate:d,currentid:"",picTit:"",tableIndex:0,copy:0,editIndex:null,id:"",rate_price:0}},computed:{},mounted:function(){console.log(this.$route.params),this.$route.params.id&&(this.setTagsViewTitle(),this.id=parseInt(this.$route.params.id),this.current=0,this.copy=this.$route.params.copy||0,this.getInfo())},methods:{setTagsViewTitle:function(){var t="编辑套餐",e=Object.assign({},this.tempRoute,{title:"".concat(t,"-").concat(this.$route.params.id)});this.$store.dispatch("tagsView/updateVisitedView",e)},selectOne:function(t){var e=this;this.multipleSelection=[],t.forEach((function(t,a){t.product_id==e.product_id&&e.multipleSelection.push(t)}))},getAttr:function(){if(!this.multipleSelection.length)return this.$message.warning("请先选择规格");var t;t="Main"===this.goodsAddType?this.specsMainData:this.specsData,this.$set(t[this.tabIndex],"attr",this.multipleSelection);for(var e=[],a=0;a0&&(t.active_price=t.price)},changeRatePrice:function(){var t,e=Object(n["a"])(this.manyFormValidate);try{for(e.s();!(t=e.n()).done;){var a=t.value;this.$set(a,"active_price",this.rate_price);for(var i=this.multipleSelection,s=0;s1||this.specsMainData.length>0))this.$message.warning("最多添加一个商品");else{for(var a=JSON.parse(JSON.stringify(t)),i=0;i=0&&this.$refs.table.toggleRowSelection(this.tableData.data[a],!0)}},ok:function(){if(this.images.length>0)if("image"===this.$route.query.fodder){var t=form_create_helper.get("image");form_create_helper.set("image",t.concat(this.images)),form_create_helper.close("image")}else this.isdiy?this.$emit("getProductId",this.diyVal):this.$emit("getProductId",this.images);else this.$message.warning("请先选择商品")},treeSearchs:function(t){this.cateIds=t,this.tableFrom.page=1,this.getList("")},userSearchs:function(){this.tableFrom.page=1,this.getList("")},clear:function(){this.productRow.id="",this.currentid=""}}},c=o,u=(a("ea29"),a("2877")),d=Object(u["a"])(c,i,s,!1,null,"4442b510",null);e["a"]=d.exports},d292:function(t,e,a){},ea29:function(t,e,a){"use strict";a("d292")}}]); \ No newline at end of file diff --git a/public/mer/js/chunk-82bee4a8.86f737e1.js b/public/mer/js/chunk-82bee4a8.5a3150fe.js similarity index 99% rename from public/mer/js/chunk-82bee4a8.86f737e1.js rename to public/mer/js/chunk-82bee4a8.5a3150fe.js index c8dd3b77..a834c305 100644 --- a/public/mer/js/chunk-82bee4a8.86f737e1.js +++ b/public/mer/js/chunk-82bee4a8.5a3150fe.js @@ -1 +1 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-82bee4a8","chunk-0d2c1415","chunk-2d0da983"],{"00da":function(t,i,e){"use strict";e.r(i);var n=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"mobile-config pro"},[t._l(t.rCom,(function(i,n){return e("div",{key:n},[e(i.components.name,{key:n,ref:"childData",refInFor:!0,tag:"component",attrs:{configObj:t.configObj,configNme:i.configNme,index:t.activeIndex,num:i.num},on:{getConfig:t.getConfig}})],1)})),t._v(" "),e("rightBtn",{attrs:{activeIndex:t.activeIndex,configObj:t.configObj}})],2)},a=[],o=e("5530"),s=e("fd0b"),c=(e("2f62"),e("befa")),l={name:"c_home_topic",cname:"专场",componentsName:"home_topic",props:{activeIndex:{type:null},num:{type:null},index:{type:null}},components:Object(o["a"])(Object(o["a"])({},s["a"]),{},{rightBtn:c["a"]}),data:function(){return{configObj:{},rCom:[{components:s["a"].c_set_up,configNme:"setUp"}],space:[{components:s["a"].c_menu_list,configNme:"menuConfig"}],space2:[],oneStyle:[{components:s["a"].c_txt_tab,configNme:"bgStyle"},{components:s["a"].c_txt_tab,configNme:"conStyle"},{components:s["a"].c_is_show,configNme:"colorShow"},{components:s["a"].c_bg_color,configNme:"bgColor"},{components:s["a"].c_slider,configNme:"prConfig"},{components:s["a"].c_slider,configNme:"mbConfig"}],twoStyle:[{components:s["a"].c_txt_tab,configNme:"bgStyle"},{components:s["a"].c_txt_tab,configNme:"conStyle"},{components:s["a"].c_is_show,configNme:"colorShow"},{components:s["a"].c_txt_tab,configNme:"pointerStyle"},{components:s["a"].c_txt_tab,configNme:"txtStyle"},{components:s["a"].c_bg_color,configNme:"bgColor"},{components:s["a"].c_bg_color,configNme:"pointerColor"},{components:s["a"].c_slider,configNme:"prConfig"},{components:s["a"].c_slider,configNme:"mbConfig"}],type:0,setUp:0,count:1}},watch:{num:function(t){var i=JSON.parse(JSON.stringify(this.$store.state.mobildConfig.defaultArray[t]));this.configObj=i},configObj:{handler:function(t,i){this.$store.commit("mobildConfig/UPDATEARR",{num:this.num,val:t})},deep:!0},"configObj.menuConfig.list":{handler:function(t,i){this.count=t.length},deep:!0},"configObj.setUp.tabVal":{handler:function(t,i){this.setUp=t;var e=[this.rCom[0]];if(0==t){var n=[{components:s["a"].c_menu_list,configNme:"menuConfig"}];this.rCom=e.concat(n)}else this.count>1?this.rCom=e.concat(this.twoStyle):this.rCom=e.concat(this.oneStyle)},deep:!0}},mounted:function(){var t=this;this.$nextTick((function(){var i=JSON.parse(JSON.stringify(t.$store.state.mobildConfig.defaultArray[t.num]));t.configObj=i}))},methods:{getConfig:function(t){}}},r=l,f=e("2877"),d=Object(f["a"])(r,n,a,!1,null,"1984c226",null);i["default"]=d.exports},"033f":function(t,i,e){},"04bc":function(t,i,e){"use strict";e("0eb7")},"051f":function(t,i,e){"use strict";e.r(i);var n=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"box"},[2!==this.$route.query.type?e("div",{staticClass:"c_row-item"},[e("el-col",{staticClass:"label",attrs:{span:4}},[t._v("\n 模板名称\n ")]),t._v(" "),e("el-col",{staticClass:"slider-box",attrs:{span:19}},[e("el-input",{attrs:{placeholder:"选填不超过15个字",maxlength:"15"},on:{change:t.changName},model:{value:t.name,callback:function(i){t.name=i},expression:"name"}})],1)],1):t._e(),t._v(" "),e("div",{staticClass:"c_row-item"},[e("el-col",{staticClass:"label",attrs:{span:4}},[t._v("\n 页面标题\n ")]),t._v(" "),e("el-col",{staticClass:"slider-box",attrs:{span:19}},[e("el-input",{attrs:{placeholder:"选填不超过30个字",maxlength:"30"},on:{change:t.changVal},model:{value:t.value,callback:function(i){t.value=i},expression:"value"}})],1)],1),t._v(" "),e("div",[e("el-dialog",{attrs:{visible:t.modalPic,width:"950px",title:"上传背景图"},on:{"update:visible":function(i){t.modalPic=i}}},[t.modalPic?e("uploadPictures",{attrs:{isChoice:t.isChoice,gridBtn:t.gridBtn,gridPic:t.gridPic},on:{getPic:t.getPic}}):t._e()],1)],1)])},a=[],o=(e("2f62"),e("b5b8")),s={name:"pageTitle",components:{uploadPictures:o["default"]},data:function(){return{value:"",name:"",isShow:!0,picList:["icondantu","iconpingpu","iconlashen"],bgColor:!1,bgPic:!1,tabVal:"0",colorPicker:"#f5f5f5",modalPic:!1,isChoice:"单选",gridBtn:{xl:4,lg:8,md:8,sm:8,xs:8},gridPic:{xl:6,lg:8,md:12,sm:12,xs:12},bgPicUrl:""}},created:function(){var t=this.$store.state.mobildConfig;this.value=t.pageTitle,this.name=t.pageName,this.isShow=!!t.pageShow,this.bgColor=!!t.pageColor,this.bgPic=!!t.pagePic,this.colorPicker=t.pageColorPicker,this.tabVal=t.pageTabVal,this.bgPicUrl=t.pagePicUrl},methods:{modalPicTap:function(){var t=this;this.$modalUpload((function(i){t.bgPicUrl=i[0],t.$store.commit("mobildConfig/UPPICURL",t.bgPicUrl)}))},bindDelete:function(){this.bgPicUrl=""},getPic:function(t){var i=this;this.$nextTick((function(){i.bgPicUrl=t.att_dir,i.modalPic=!1,i.$store.commit("mobildConfig/UPPICURL",t.att_dir)}))},colorPickerTap:function(t){this.$store.commit("mobildConfig/UPPICKER",t)},radioTap:function(t){this.$store.commit("mobildConfig/UPRADIO",t)},changVal:function(t){this.$store.commit("mobildConfig/UPTITLE",t)},changName:function(t){this.$store.commit("mobildConfig/UPNAME",t)},changeState:function(t){this.$store.commit("mobildConfig/UPSHOW",t)},bgColorTap:function(t){this.$store.commit("mobildConfig/UPCOLOR",t)},bgPicTap:function(t){this.$store.commit("mobildConfig/UPPIC",t)}}},c=s,l=(e("5025"),e("2877")),r=Object(l["a"])(c,n,a,!1,null,"6a6281b6",null);i["default"]=r.exports},"0a0b":function(t,i,e){},"0a90":function(t,i,e){"use strict";e("2c2b")},"0d02":function(t,i,e){},"0d27":function(t,i,e){},"0eb7":function(t,i,e){},1224:function(t,i,e){"use strict";e("df2b")},"144d":function(t,i,e){"use strict";e.r(i);var n=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"hot_imgs"},[t.configData.title?e("div",{staticClass:"title"},[t._v("\n "+t._s(t.configData.title)+"\n ")]):t._e(),t._v(" "),e("div",{staticClass:"list-box"},[e("draggable",{staticClass:"dragArea list-group",attrs:{list:t.configData.list,group:"peoples",handle:".move-icon"}},t._l(t.configData.list,(function(i,n){return e("div",{key:n,staticClass:"item"},[e("div",{staticClass:"info"},t._l(i.info,(function(a,o){return e("div",{key:o,staticClass:"info-item"},[e("span",[t._v(t._s(a.title))]),t._v(" "),e("div",{staticClass:"input-box",on:{click:function(e){return t.getLink(n,o,i.info)}}},[t.configData.isCube?e("el-input",{attrs:{readonly:o==i.info.length-1,placeholder:a.tips,maxlength:a.max},on:{blur:t.onBlur},model:{value:a.value,callback:function(i){t.$set(a,"value",i)},expression:"infos.value"}},[o==i.info.length-1?e("el-button",{attrs:{slot:"append",icon:"el-icon-arrow-right"},slot:"append"}):t._e()],1):e("el-input",{attrs:{readonly:o==i.info.length-1,placeholder:a.tips,maxlength:a.max},model:{value:a.value,callback:function(i){t.$set(a,"value",i)},expression:"infos.value"}},[o==i.info.length-1?e("el-button",{attrs:{slot:"append",icon:"el-icon-arrow-right"},slot:"append"}):t._e()],1)],1)])})),0)])})),0),t._v(" "),e("div",[e("el-dialog",{attrs:{visible:t.modalPic,width:"950px",title:"上传图片"},on:{"update:visible":function(i){t.modalPic=i}}},[t.modalPic?e("uploadPictures",{attrs:{isChoice:t.isChoice,gridBtn:t.gridBtn,gridPic:t.gridPic},on:{getPic:t.getPic}}):t._e()],1)],1)],1),t._v(" "),t.configData.list?[t.configData.list.length0?e("div",{staticClass:"list-wrapper itemA"},t._l(t.list,(function(i,n){return e("div",{staticClass:"item",class:t.conStyle?"":"itemOn",attrs:{index:n}},[e("div",{staticClass:"img-box"},[i.image?e("img",{attrs:{src:i.image,alt:""}}):e("div",{staticClass:"empty-box"},[e("span",{staticClass:"iconfont-diy icontupian"})])]),t._v(" "),e("div",{staticClass:"info"},[e("div",{staticClass:"hd"},[t.titleShow?e("div",{staticClass:"title line2"},[t._v(t._s(i.store_name))]):t._e(),t._v(" "),e("div",{staticClass:"text"},[e("div",{staticClass:"label",style:{background:t.labelColor}},[t._v("官方旗舰店")]),t._v(" "),i.couponId&&i.couponId.length&&t.couponShow?e("div",{staticClass:"coupon",style:"border:1px solid "+t.labelColor+";color:"+t.labelColor},[t._v("领券")]):t._e(),t._v(" "),e("div",{staticClass:"ship"},[t._v("包邮")])])]),t._v(" "),e("div",{staticClass:"price",style:{color:t.fontColor}},[t.priceShow?e("div",{staticClass:"num"},[t._v("\n ¥"),e("span",[t._v(t._s(i.price))])]):t._e(),t._v(" "),t.opriceShow?e("div",{staticClass:"old-price"},[t._v("¥"+t._s(i.ot_price))]):t._e()])])])})),0):e("div",{staticClass:"list-wrapper itemA"},[e("div",{staticClass:"item",class:t.conStyle?"":"itemOn"},[t._m(0),t._v(" "),e("div",{staticClass:"info"},[e("div",{staticClass:"hd"},[t.titleShow?e("div",{staticClass:"title line2"},[t._v("商品名称")]):t._e()]),t._v(" "),e("div",{staticClass:"text"},[e("div",{staticClass:"label",style:{background:t.labelColor}},[t._v("官方旗舰店")]),t._v(" "),t.couponShow?e("div",{staticClass:"coupon",style:"border:1px solid "+t.labelColor+";color:"+t.labelColor},[t._v("领券")]):t._e(),t._v(" "),e("div",{staticClass:"ship"},[t._v("包邮")])]),t._v(" "),e("div",{staticClass:"price",style:{color:t.fontColor}},[t.priceShow?e("div",{staticClass:"num"},[t._v("\n ¥"),e("span",[t._v("199")])]):t._e(),t._v(" "),t.opriceShow?e("div",{staticClass:"old-price"},[t._v("¥399")]):t._e()])])]),t._v(" "),e("div",{staticClass:"item",class:t.conStyle?"":"itemOn"},[t._m(1),t._v(" "),e("div",{staticClass:"info"},[e("div",{staticClass:"hd"},[t.titleShow?e("div",{staticClass:"title line2"},[t._v("商品名称")]):t._e()]),t._v(" "),e("div",{staticClass:"text"},[e("div",{staticClass:"label",style:{background:t.labelColor}},[t._v("官方旗舰店")]),t._v(" "),t.couponShow?e("div",{staticClass:"coupon",style:"border:1px solid "+t.labelColor+";color:"+t.labelColor},[t._v("领券")]):t._e(),t._v(" "),e("div",{staticClass:"ship"},[t._v("包邮")])]),t._v(" "),e("div",{staticClass:"price",style:{color:t.fontColor}},[t.priceShow?e("div",{staticClass:"num"},[t._v("\n ¥"),e("span",[t._v("199")])]):t._e(),t._v(" "),t.opriceShow?e("div",{staticClass:"old-price"},[t._v("¥399")]):t._e()])])])])]:t._e(),t._v(" "),1==t.itemStyle?[t.list.length>0?e("div",{staticClass:"list-wrapper itemC"},t._l(t.list,(function(i,n){return e("div",{staticClass:"item",class:t.conStyle?"":"itemOn",attrs:{index:n}},[e("div",{staticClass:"img-box"},[i.image?e("img",{attrs:{src:i.image,alt:""}}):e("div",{staticClass:"empty-box"},[e("span",{staticClass:"iconfont-diy icontupian"})])]),t._v(" "),e("div",{staticClass:"info"},[e("div",{staticClass:"hd"},[t.titleShow?e("div",{staticClass:"title line2"},[t._v(t._s(i.store_name))]):t._e()]),t._v(" "),e("div",{staticClass:"price",style:{color:t.fontColor}},[t.priceShow?e("div",{staticClass:"num"},[t._v("\n ¥"),e("span",[t._v(t._s(i.price))])]):t._e()]),t._v(" "),e("div",{staticClass:"text"},[0==n?e("div",{staticClass:"label",style:{background:t.labelColor}},[t._v("官方旗舰店")]):t._e(),t._v(" "),i.couponId&&i.couponId.length&&t.couponShow?e("div",{staticClass:"coupon",class:t.priceShow?"":"on",style:"border:1px solid "+t.labelColor+";color:"+t.labelColor},[t._v("领券")]):t._e()])])])})),0):e("div",{staticClass:"list-wrapper"},[e("div",{staticClass:"item",class:t.conStyle?"":"itemOn"},[t._m(2),t._v(" "),e("div",{staticClass:"info"},[e("div",{staticClass:"hd"},[t.titleShow?e("div",{staticClass:"title line2"},[t._v("商品名称")]):t._e()]),t._v(" "),e("div",{staticClass:"price",style:{color:t.fontColor}},[t.priceShow?e("div",{staticClass:"num"},[t._v("\n ¥"),e("span",[t._v("66.66")])]):t._e()]),t._v(" "),e("div",{staticClass:"text"},[0==t.index?e("div",{staticClass:"label",style:{background:t.labelColor}},[t._v("官方旗舰店")]):t._e(),t._v(" "),t.couponShow?e("div",{staticClass:"coupon",style:"border:1px solid "+t.labelColor+";color:"+t.labelColor},[t._v("领券")]):t._e()])])]),t._v(" "),e("div",{staticClass:"item",class:t.conStyle?"":"itemOn"},[t._m(3),t._v(" "),e("div",{staticClass:"info"},[e("div",{staticClass:"hd"},[t.titleShow?e("div",{staticClass:"title line2"},[t._v("商品名称")]):t._e()]),t._v(" "),e("div",{staticClass:"price",style:{color:t.fontColor}},[t.priceShow?e("div",{staticClass:"num"},[t._v("\n ¥"),e("span",[t._v("66.66")])]):t._e()]),t._v(" "),e("div",{staticClass:"text"},[0==t.index?e("div",{staticClass:"label",style:{background:t.labelColor}},[t._v("官方旗舰店")]):t._e(),t._v(" "),t.couponShow?e("div",{staticClass:"coupon",style:"border:1px solid "+t.labelColor+";color:"+t.labelColor},[t._v("领券")]):t._e()])])])])]:t._e(),t._v(" "),2==t.itemStyle?[t.list.length>0?e("div",{staticClass:"list-wrapper itemB"},t._l(t.list,(function(i,n){return e("div",{staticClass:"item",class:t.conStyle?"":"itemOn",attrs:{index:n}},[e("div",{staticClass:"img-box"},[i.image?e("img",{attrs:{src:i.image,alt:""}}):e("div",{staticClass:"empty-box"},[e("span",{staticClass:"iconfont-diy icontupian"})])]),t._v(" "),e("div",{staticClass:"info"},[e("div",{staticClass:"hd"},[t.titleShow?e("div",{staticClass:"title line2"},[t._v(t._s(i.store_name))]):t._e()]),t._v(" "),e("div",{staticClass:"price",style:{color:t.fontColor}},[t.priceShow?e("div",{staticClass:"num"},[t._v("\n ¥"),e("span",[t._v(t._s(i.price))])]):t._e(),t._v(" "),t.opriceShow?e("div",{staticClass:"old-price"},[t._v("¥"+t._s(i.ot_price))]):t._e()])])])})),0):e("div",{staticClass:"list-wrapper itemB"},[e("div",{staticClass:"item",class:t.conStyle?"":"itemOn"},[t._m(4),t._v(" "),e("div",{staticClass:"info"},[e("div",{staticClass:"hd"},[t.titleShow?e("div",{staticClass:"title line2"},[t._v("商品名称")]):t._e()]),t._v(" "),e("div",{staticClass:"price",style:{color:t.fontColor}},[t.priceShow?e("div",{staticClass:"num"},[t._v("\n ¥"),e("span",[t._v("66.66")])]):t._e(),t._v(" "),t.opriceShow?e("div",{staticClass:"old-price"},[t._v("¥99.99")]):t._e()])])]),t._v(" "),e("div",{staticClass:"item",class:t.conStyle?"":"itemOn"},[t._m(5),t._v(" "),e("div",{staticClass:"info"},[e("div",{staticClass:"hd"},[t.titleShow?e("div",{staticClass:"title line2"},[t._v("商品名称")]):t._e()]),t._v(" "),e("div",{staticClass:"price",style:{color:t.fontColor}},[t.priceShow?e("div",{staticClass:"num"},[t._v("\n ¥"),e("span",[t._v("66.66")])]):t._e(),t._v(" "),t.opriceShow?e("div",{staticClass:"old-price"},[t._v("¥99.99")]):t._e()])])])])]:t._e(),t._v(" "),3==t.itemStyle?[t.list.length>0?e("div",{staticClass:"listBig"},t._l(t.list,(function(i,n){return e("div",{key:n,staticClass:"itemBig",class:t.conStyle?"":"itemOn"},[e("div",{staticClass:"img-box"},[i.image?e("img",{attrs:{src:i.image,alt:""}}):e("div",{staticClass:"empty-box"},[e("span",{staticClass:"iconfont-diy icontupian"})])]),t._v(" "),e("div",{staticClass:"name line2"},[t.titleShow?e("span",[t._v(t._s(i.store_name))]):t._e()]),t._v(" "),e("div",{staticClass:"price",style:{color:t.fontColor}},[t.priceShow?e("span",[t._v("¥"),e("span",{staticClass:"num"},[t._v(t._s(i.price))])]):t._e(),t.opriceShow?e("span",{staticClass:"old-price"},[t._v("¥"+t._s(i.ot_price))]):t._e()])])})),0):e("div",{staticClass:"listBig"},[e("div",{staticClass:"itemBig",class:t.conStyle?"":"itemOn"},[t._m(6),t._v(" "),e("div",{staticClass:"name line2"},[t.titleShow?e("span",[t._v("商品名称")]):t._e()]),t._v(" "),e("div",{staticClass:"price",style:{color:t.fontColor}},[t.priceShow?e("span",[t._v("¥"),e("span",{staticClass:"num"},[t._v("66.66")])]):t._e(),t.opriceShow?e("span",{staticClass:"old-price"},[t._v("¥99.99")]):t._e()])]),t._v(" "),e("div",{staticClass:"itemBig",class:t.conStyle?"":"itemOn"},[t._m(7),t._v(" "),e("div",{staticClass:"name line2"},[t.titleShow?e("span",[t._v("商品名称")]):t._e()]),t._v(" "),e("div",{staticClass:"price",style:{color:t.fontColor}},[t.priceShow?e("span",[t._v("¥"),e("span",{staticClass:"num"},[t._v("66.66")])]):t._e(),t.opriceShow?e("span",{staticClass:"old-price"},[t._v("¥99.99")]):t._e()])]),t._v(" "),e("div",{staticClass:"itemBig",class:t.conStyle?"":"itemOn"},[t._m(8),t._v(" "),e("div",{staticClass:"name line2"},[t.titleShow?e("span",[t._v("商品名称")]):t._e()]),t._v(" "),e("div",{staticClass:"price",style:{color:t.fontColor}},[t.priceShow?e("span",[t._v("¥"),e("span",{staticClass:"num"},[t._v("66.66")])]):t._e(),t.opriceShow?e("span",{staticClass:"old-price"},[t._v("¥99.99")]):t._e()])])])]:t._e()],2)])])},a=[function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"img-box"},[e("div",{staticClass:"empty-box"},[e("span",{staticClass:"iconfont-diy icontupian"})])])},function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"img-box"},[e("div",{staticClass:"empty-box"},[e("span",{staticClass:"iconfont-diy icontupian"})])])},function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"img-box"},[e("div",{staticClass:"empty-box"},[e("span",{staticClass:"iconfont-diy icontupian"})])])},function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"img-box"},[e("div",{staticClass:"empty-box"},[e("span",{staticClass:"iconfont-diy icontupian"})])])},function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"img-box"},[e("div",{staticClass:"empty-box"},[e("span",{staticClass:"iconfont-diy icontupian"})])])},function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"img-box"},[e("div",{staticClass:"empty-box"},[e("span",{staticClass:"iconfont-diy icontupian"})])])},function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"img-box"},[e("div",{staticClass:"empty-box"},[e("span",{staticClass:"iconfont-diy icontupian"})])])},function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"img-box"},[e("div",{staticClass:"empty-box"},[e("span",{staticClass:"iconfont-diy icontupian"})])])},function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"img-box"},[e("div",{staticClass:"empty-box"},[e("span",{staticClass:"iconfont-diy icontupian"})])])}],o=e("5530"),s=e("2f62"),c={name:"home_goods_list",cname:"商品列表",configName:"c_home_goods_list",icon:"iconshangpinliebiao2",type:0,defaultName:"goodList",props:{index:{type:null},num:{type:null}},computed:Object(o["a"])({},Object(s["d"])("mobildConfig",["defaultArray"])),watch:{pageData:{handler:function(t,i){this.setConfig(t)},deep:!0},num:{handler:function(t,i){var e=this.$store.state.mobildConfig.defaultArray[t];this.setConfig(e)},deep:!0},defaultArray:{handler:function(t,i){var e=this.$store.state.mobildConfig.defaultArray[this.num];this.setConfig(e)},deep:!0}},data:function(){return{defaultConfig:{name:"goodList",timestamp:this.num,setUp:{tabVal:"0"},tabConfig:{title:"选择模板",tabVal:0,type:1,tabList:[{name:"自动选择",icon:"iconzidongxuanze"},{name:"手动选择",icon:"iconshoudongxuanze"}]},titleShow:{title:"是否显示名称",val:!0},opriceShow:{title:"是否显示原价",val:!0},priceShow:{title:"是否显示价格",val:!0},couponShow:{title:"是否显示优惠券",val:!0},selectConfig:{title:"商品分类",activeValue:[],list:[{value:"",label:""},{value:"",label:""}]},goodsSort:{title:"商品排序",name:"goodsSort",type:0,list:[{val:"综合",icon:"iconComm_whole"},{val:"销量",icon:"iconComm_number"},{val:"价格",icon:"iconComm_Price"}]},numConfig:{val:6},themeColor:{title:"背景颜色",name:"themeColor",default:[{item:"#fff"}],color:[{item:"#fff"}]},fontColor:{title:"价格颜色",name:"fontColor",default:[{item:"#e93323"}],color:[{item:"#e93323"}]},labelColor:{title:"活动标签",name:"labelColor",default:[{item:"#e93323"}],color:[{item:"#e93323"}]},itemStyle:{title:"显示类型",name:"itemSstyle",type:0,list:[{val:"单列",icon:"iconzuoyoutuwen"},{val:"两列",icon:"iconlianglie"},{val:"三列",icon:"iconsanlie"},{val:"大图",icon:"icondanlie"}]},bgStyle:{title:"背景样式",name:"bgStyle",type:0,list:[{val:"直角",icon:"iconPic_square"},{val:"圆角",icon:"iconPic_fillet"}]},conStyle:{title:"内容样式",name:"conStyle",type:1,list:[{val:"直角",icon:"iconPic_square"},{val:"圆角",icon:"iconPic_fillet"}]},mbConfig:{title:"页面间距",val:0,min:0},productList:{title:"商品列表",list:[]},goodsList:{max:20,list:[]}},navlist:[],imgStyle:"",txtColor:"",slider:"",tabCur:0,list:[],activeColor:"",fontColor:"",labelColor:"",pageData:{},itemStyle:0,titleShow:!0,opriceShow:!0,priceShow:!0,couponShow:!0,bgStyle:0,conStyle:1}},mounted:function(){var t=this;this.$nextTick((function(){t.pageData=t.$store.state.mobildConfig.defaultArray[t.num],t.setConfig(t.pageData)}))},methods:{setConfig:function(t){t&&t.mbConfig&&(this.itemStyle=t.itemStyle.type||0,this.activeColor=t.themeColor.color[0].item,this.fontColor=t.fontColor.color[0].item,this.labelColor=t.labelColor.color[0].item,this.slider=t.mbConfig.val,this.titleShow=t.titleShow.val,this.opriceShow=t.opriceShow.val,this.priceShow=t.priceShow.val,this.couponShow=t.couponShow.val,this.bgStyle=t.bgStyle.type,this.conStyle=t.conStyle.type,t.tabConfig.tabVal?this.list=t.goodsList.list||[]:this.list=t.productList.list||[])}}},l=c,r=(e("c2c4"),e("2877")),f=Object(r["a"])(l,n,a,!1,null,"7f3ae610",null);i["default"]=f.exports},"1c62":function(t,i,e){"use strict";e("0d27")},"1c84":function(t,i,e){},"1c8d":function(t,i,e){"use strict";e.r(i);var n=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"mobile-page",style:{marginTop:t.mTOP+"px"}},[t.bgColor.length>0&&t.isShow?e("div",{staticClass:"bg",style:{background:"linear-gradient(180deg,"+t.bgColor[0].item+" 0%,"+t.bgColor[1].item+" 100%)"}}):t._e(),t._v(" "),e("div",{staticClass:"banner",class:t.bgColor.length>0&&t.isShow?"on":"",style:{paddingLeft:t.edge+"px",paddingRight:t.edge+"px"}},[t.imgSrc?e("img",{class:{doc:t.imgStyle},attrs:{src:t.imgSrc,alt:""}}):e("div",{staticClass:"empty-box",class:{on:t.imgStyle}},[e("span",{staticClass:"iconfont-diy icontupian"})])]),t._v(" "),e("div",[0==t.docStyle?e("div",{staticClass:"dot",style:{paddingLeft:t.edge+10+"px",paddingRight:t.edge+10+"px",justifyContent:1===t.dotPosition?"center":2===t.dotPosition?"flex-end":"flex-start"}},[e("div",{staticClass:"dot-item",staticStyle:{background:"#fff"}}),t._v(" "),e("div",{staticClass:"dot-item"}),t._v(" "),e("div",{staticClass:"dot-item"})]):t._e(),t._v(" "),1==t.docStyle?e("div",{staticClass:"dot line-dot",style:{paddingLeft:t.edge+10+"px",paddingRight:t.edge+10+"px",justifyContent:1===t.dotPosition?"center":2===t.dotPosition?"flex-end":"flex-start"}},[e("div",{staticClass:"line_dot-item",staticStyle:{background:"#fff"}}),t._v(" "),e("div",{staticClass:"line_dot-item"}),t._v(" "),e("div",{staticClass:"line_dot-item"})]):t._e(),t._v(" "),2==t.docStyle?e("div",{staticClass:"dot number",style:{paddingLeft:t.edge+10+"px",paddingRight:t.edge+10+"px",justifyContent:1===t.dotPosition?"center":2===t.dotPosition?"flex-end":"flex-start"}}):t._e()])])},a=[],o=e("5530"),s=e("2f62"),c={name:"banner",cname:"轮播图",icon:"iconlunbotu",defaultName:"swiperBg",configName:"c_banner",type:0,props:{index:{type:null},num:{type:null}},computed:Object(o["a"])({},Object(s["d"])("mobildConfig",["defaultArray"])),watch:{pageData:{handler:function(t,i){this.setConfig(t)},deep:!0},num:{handler:function(t,i){var e=this.$store.state.mobildConfig.defaultArray[t];this.setConfig(e)},deep:!0},defaultArray:{handler:function(t,i){var e=this.$store.state.mobildConfig.defaultArray[this.num];this.setConfig(e)},deep:!0}},data:function(){return{defaultConfig:{name:"swiperBg",timestamp:this.num,setUp:{tabVal:"0"},swiperConfig:{title:"最多可添加10张图片,建议宽度750px;鼠标拖拽左侧圆点可调整图片 顺序",maxList:10,list:[{img:"",info:[{title:"标题",value:"今日推荐",tips:"选填,不超过4个字",max:4},{title:"链接",value:"",tips:"请输入链接",max:100}]}]},isShow:{title:"是否显示背景色",val:!0},bgColor:{title:"背景颜色(渐变)",default:[{item:"#FFFFFF"},{item:"#FFFFFF"}],color:[{item:"#FFFFFF"},{item:"#FFFFFF"}]},lrConfig:{title:"左右边距",val:10,min:0},mbConfig:{title:"页面间距",val:0,min:0},docConfig:{cname:"swiper",title:"指示器样式",type:0,list:[{val:"圆形",icon:"iconDot"},{val:"直线",icon:"iconSquarepoint"},{val:"无指示器",icon:"iconjinyong"}]},txtStyle:{title:"指示器位置",type:0,list:[{val:"居左",icon:"icondoc_left"},{val:"居中",icon:"icondoc_center"},{val:"居右",icon:"icondoc_right"}]},imgConfig:{cname:"docStyle",title:"轮播图样式",type:0,list:[{val:"圆角",icon:"iconPic_fillet"},{val:"直角",icon:"iconPic_square"}]}},pageData:{},bgColor:[],mTOP:0,edge:0,imgStyle:0,imgSrc:"",docStyle:0,dotPosition:0,isShow:!0}},mounted:function(){var t=this;this.$nextTick((function(){t.pageData=t.$store.state.mobildConfig.defaultArray[t.num],t.setConfig(t.pageData)}))},methods:{setConfig:function(t){t&&t.mbConfig&&(this.isShow=t.isShow.val,this.bgColor=t.bgColor.color,this.mTOP=t.mbConfig.val,this.edge=t.lrConfig.val,this.imgStyle=t.imgConfig.type,this.imgSrc=t.swiperConfig.list.length?t.swiperConfig.list[0].img:"",this.docStyle=t.docConfig.type,this.dotPosition=t.txtStyle.type)}}},l=c,r=(e("26e2"),e("2877")),f=Object(r["a"])(l,n,a,!1,null,"651c0c53",null);i["default"]=f.exports},"1d95":function(t,i,e){"use strict";e("8107")},2174:function(t,i,e){"use strict";e.r(i);var n=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"mobile-page"},[e("div",{staticClass:"home_bargain",class:0===t.bgStyle?"bargainOn":"",style:{marginTop:t.mTop+"px"}},[e("div",{staticClass:"bargin_count",class:0===t.bgStyle?"bargainOn":"",style:{background:""+t.themeColor}},[e("div",{staticClass:"title-bar",class:0===t.bgStyle?"bargainOn":""},[t._m(0),t._v(" "),t._m(1)]),t._v(" "),2!=t.isOne?e("div",{staticClass:"list-wrapper",class:"colum"+t.isOne},t._l(t.list,(function(i,n){return e("div",{key:n,staticClass:"item",class:t.conStyle?"":"bargainOn"},[e("div",{staticClass:"img-box"},[i.img?e("img",{attrs:{src:i.img,alt:""}}):e("div",{staticClass:"empty-box",class:t.conStyle?"":"bargainOn"},[e("span",{staticClass:"iconfont-diy icontupian"})]),t._v(" "),t.joinShow?e("div",{staticClass:"box-num"},[t._v(t._s(i.num)+"人参与")]):t._e()]),t._v(" "),t.titleShow||t.priceShow||t.bntShow||t.barginShow?e("div",{staticClass:"con-box",class:t.conStyle?"":"bargainOn"},[e("div",{staticClass:"con-desc"},[t.titleShow?e("div",{staticClass:"title line1"},[t._v(t._s(i.store_name))]):t._e(),t._v(" "),e("div",{staticClass:"price"},[t.barginShow?e("span",{staticClass:"price-name",style:"color:"+t.priceColor},[t._v("助力价")]):t._e(),t._v(" "),t.priceShow?e("p",{style:"color:"+t.priceColor},[t._v("¥"),e("span",{staticClass:"price-label"},[t._v(t._s(i.price))])]):t._e()])]),t._v(" "),t.bntShow&&t.bgColor.length>0?e("div",{staticClass:"btn",class:t.conStyle?"":"bargainOn",style:{background:"linear-gradient(180deg,"+t.bgColor[0].item+" 0%,"+t.bgColor[1].item+" 100%)"}},[t._v("发起助力")]):t._e()]):t._e()])})),0):e("div",{staticClass:"list-wrapper colum2",class:0===t.bgStyle?"bargainOn":""},t._l(t.list,(function(i,n){return n<3?e("div",{staticClass:"item",class:t.conStyle?"":"bargainOn",attrs:{index:n}},[t.titleShow||t.priceShow||t.bntShow?e("div",{staticClass:"info"},[t.titleShow?e("div",{staticClass:"title line1"},[t._v(t._s(i.store_name))]):t._e(),t._v(" "),t.priceShow?e("div",{staticClass:"price line1",style:"color:"+t.priceColor},[t._v("¥"+t._s(i.price))]):t._e(),t._v(" "),t.bntShow?e("span",{staticClass:"box-btn"},[t._v("去助力"),e("span",{staticClass:"iconfont-diy iconjinru"})]):t._e()]):t._e(),t._v(" "),e("div",{staticClass:"img-box"},[i.img?e("img",{attrs:{src:i.img,alt:""}}):t._e(),t._v(" "),e("div",{staticClass:"empty-box",class:t.conStyle?"":"bargainOn"},[e("span",{staticClass:"iconfont-diy icontupian"})])])]):t._e()})),0)])])])},a=[function(){var t=this,i=t.$createElement,n=t._self._c||i;return n("div",{staticClass:"title-left"},[n("img",{attrs:{src:e("5b5b"),alt:""}}),t._v(" "),n("div",{staticClass:"avatar-wrapper"},[n("img",{attrs:{src:e("4843"),alt:""}}),t._v(" "),n("img",{attrs:{src:e("9456"),alt:""}})]),t._v(" "),n("p",{staticClass:"num"},[t._v("1234人助力成功")])])},function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"right"},[t._v("更多 "),e("span",{staticClass:"iconfont-diy iconjinru"})])}],o=e("5530"),s=e("2f62"),c={name:"home_bargain",cname:"助力",icon:"iconzhuli",configName:"c_home_bargain",type:1,defaultName:"bargain",props:{index:{type:null},num:{type:null}},computed:Object(o["a"])({},Object(s["d"])("mobildConfig",["defaultArray"])),watch:{pageData:{handler:function(t,i){this.setConfig(t)},deep:!0},num:{handler:function(t,i){var e=this.$store.state.mobildConfig.defaultArray[t];this.setConfig(e)},deep:!0},defaultArray:{handler:function(t,i){var e=this.$store.state.mobildConfig.defaultArray[this.num];this.setConfig(e)},deep:!0}},data:function(){return{defaultConfig:{name:"bargain",timestamp:this.num,setUp:{tabVal:"0"},priceShow:{title:"是否显示价格",val:!0},bntShow:{title:"是否显示按钮",val:!0},titleShow:{title:"是否显示名称",val:!0},barginShow:{title:"是否显示助力标签",val:!0},joinShow:{title:"是否显示参与标签",val:!0},tabConfig:{title:"展示样式",tabVal:0,type:1,tabList:[{name:"单行展示",icon:"icondanhang"},{name:"多行展示",icon:"iconduohang"},{name:"板块模式",icon:"iconyangshi9"}]},bgColor:{title:"按钮背景色",name:"bgColor",default:[{item:"#FF0000"},{item:"#FF5400"}],color:[{item:"#FF0000"},{item:"#FF5400"}]},themeColor:{title:"背景颜色",name:"themeColor",default:[{item:"#fff"}],color:[{item:"#fff"}]},priceColor:{title:"主题颜色",name:"themeColor",default:[{item:"#E93323"}],color:[{item:"#E93323"}]},bgStyle:{title:"背景样式",name:"bgStyle",type:1,list:[{val:"直角",icon:"iconPic_square"},{val:"圆角",icon:"iconPic_fillet"}]},conStyle:{title:"内容样式",name:"conStyle",type:1,list:[{val:"直角",icon:"iconPic_square"},{val:"圆角",icon:"iconPic_fillet"}]},mbCongfig:{title:"页面间距",val:0,min:0}},bgColor:[],themeColor:"",priceColor:"",mTop:"",list:[{img:"",store_name:"双耳戴头式无线...",price:"234",num:1245},{img:"",store_name:"双耳戴头式无线...",price:"234",num:1245},{img:"",store_name:"双耳戴头式无线...",price:"234",num:1245},{img:"",store_name:"双耳戴头式无线...",price:"234",num:1245},{img:"",store_name:"双耳戴头式无线...",price:"234",num:1245},{img:"",store_name:"双耳戴头式无线...",price:"234",num:1245}],priceShow:!0,bntShow:!0,titleShow:!0,barginShow:!0,joinShow:!0,pageData:{},bgStyle:1,isOne:0,conStyle:1}},mounted:function(){var t=this;this.$nextTick((function(){t.pageData=t.$store.state.mobildConfig.defaultArray[t.num],t.setConfig(t.pageData)}))},methods:{setConfig:function(t){t&&t.mbCongfig&&(this.isOne=t.tabConfig.tabVal,this.bgColor=t.bgColor.color,this.themeColor=t.themeColor&&t.themeColor.color[0].item,this.priceColor=t.priceColor&&t.priceColor.color[0].item,this.mTop=t.mbCongfig.val,this.priceShow=t.priceShow.val,this.titleShow=t.titleShow.val,this.barginShow=t.barginShow.val,this.joinShow=t.joinShow.val,this.conStyle=t.conStyle.type,this.bgStyle=t.bgStyle.type,this.bntShow=t.bntShow.val)}}},l=c,r=(e("3b8d"),e("2877")),f=Object(r["a"])(l,n,a,!1,null,"97b6085c",null);i["default"]=f.exports},"244d":function(t,i,e){"use strict";e.r(i);var n=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticStyle:{padding:"0 10px 10px"}},[e("div",{staticClass:"mobile-page",class:0===t.bgStyle?"":"pageOn",style:[{background:t.bg},{marginTop:t.cSlider+"px"}]},[t._m(0),t._v(" "),0==t.listStyle?e("div",{staticClass:"live-wrapper-a live-wrapper-c"},t._l(t.live,(function(i,n){return e("div",{key:n,staticClass:"live-item-a"},[e("div",{staticClass:"img-box"},[t._m(1,!0),t._v(" "),1==i.type?e("div",{staticClass:"label bgblue"},[t._m(2,!0),t._v(" "),e("span",{staticClass:"msg"},[t._v("7/29 10:00")])]):t._e(),t._v(" "),0==i.type?e("div",{staticClass:"label bggary"},[e("span",{staticClass:"iconfont-diy iconyijieshu",staticStyle:{"margin-right":"5px"}}),t._v("回放\n ")]):t._e(),t._v(" "),2==i.type?e("div",{staticClass:"label bgred"},[e("span",{staticClass:"iconfont-diy iconzhibozhong",staticStyle:{"margin-right":"5px"}}),t._v("直播中\n ")]):t._e()])])})),0):t._e(),t._v(" "),1==t.listStyle?e("div",{staticClass:"live-wrapper-a"},t._l(t.live,(function(i,n){return e("div",{key:n,staticClass:"live-item-a"},[e("div",{staticClass:"img-box"},[t._m(3,!0),t._v(" "),1==i.type?e("div",{staticClass:"label bgblue"},[t._m(4,!0),t._v(" "),e("span",{staticClass:"msg"},[t._v("7/29 10:00")])]):t._e(),t._v(" "),0==i.type?e("div",{staticClass:"label bggary"},[e("span",{staticClass:"iconfont-diy iconyijieshu",staticStyle:{"margin-right":"5px"}}),t._v("回放\n ")]):t._e(),t._v(" "),2==i.type?e("div",{staticClass:"label bgred"},[e("span",{staticClass:"iconfont-diy iconzhibozhong",staticStyle:{"margin-right":"5px"}}),t._v("直播中\n ")]):t._e()]),t._v(" "),e("div",{staticClass:"info"},[e("div",{staticClass:"title"},[t._v("直播标题直播标题直播标 题直播标题")]),t._v(" "),t._m(5,!0),t._v(" "),e("div",{staticClass:"goods-wrapper"},[i.goods.length>0?t._l(i.goods,(function(i,n){return e("div",{key:n,staticClass:"goods-item"},[e("img",{attrs:{src:i.img,alt:""}}),t._v(" "),e("span",[t._v("¥"+t._s(i.price))])])})):[e("div",{staticClass:"empty-goods"},[t._v("\n 暂无商品\n ")])]],2)])])})),0):t._e(),t._v(" "),2==t.listStyle?e("div",{staticClass:"live-wrapper-b"},t._l(t.live,(function(i,n){return e("div",{key:n,staticClass:"live-item-b"},[e("div",{staticClass:"img-box"},[t._m(6,!0),t._v(" "),1==i.type?e("div",{staticClass:"label bgblue"},[t._m(7,!0),t._v(" "),e("span",{staticClass:"msg"},[t._v("7/29 10:00")])]):t._e(),t._v(" "),0==i.type?e("div",{staticClass:"label bggary"},[e("span",{staticClass:"iconfont-diy iconyijieshu",staticStyle:{"margin-right":"5px"}}),t._v("回放\n ")]):t._e(),t._v(" "),2==i.type?e("div",{staticClass:"label bgred"},[e("span",{staticClass:"iconfont-diy iconzhibozhong",staticStyle:{"margin-right":"5px"}}),t._v("直播中\n ")]):t._e()]),t._v(" "),t._m(8,!0)])})),0):t._e()])])},a=[function(){var t=this,i=t.$createElement,n=t._self._c||i;return n("div",{staticClass:"title-box"},[n("span",[n("img",{staticClass:"icon",attrs:{src:e("c845"),alt:""}})]),t._v(" "),n("span",[t._v("进入频道"),n("span",{staticClass:"iconfont-diy iconjinru"})])])},function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"empty-box on"},[e("span",{staticClass:"iconfont-diy icontupian"})])},function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("span",{staticClass:"txt"},[e("span",{staticClass:"iconfont-diy iconweikaishi",staticStyle:{"margin-right":"5px"}}),t._v("预告")])},function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"empty-box on"},[e("span",{staticClass:"iconfont-diy icontupian"})])},function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("span",{staticClass:"txt"},[e("span",{staticClass:"iconfont-diy iconweikaishi",staticStyle:{"margin-right":"5px"}}),t._v("预告")])},function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"people"},[e("span",[t._v("樱桃小丸子")])])},function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"empty-box on"},[e("span",{staticClass:"iconfont-diy icontupian"})])},function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("span",{staticClass:"txt"},[e("span",{staticClass:"iconfont-diy iconweikaishi",staticStyle:{"margin-right":"5px"}}),t._v("预告")])},function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"info"},[e("div",{staticClass:"title"},[t._v("直播标题直播标题直播标 题直播标题")]),t._v(" "),e("div",{staticClass:"people"},[e("span",[t._v("樱桃小丸子")])])])}],o=e("5530"),s=e("2f62"),c={name:"wechat_live",cname:"小程序直播",configName:"c_wechat_live",type:1,defaultName:"liveBroadcast",icon:"iconxiaochengxuzhibo3",props:{index:{type:null,default:-1},num:{type:null}},computed:Object(o["a"])({},Object(s["d"])("mobildConfig",["defaultArray"])),watch:{pageData:{handler:function(t,i){this.setConfig(t)},deep:!0},num:{handler:function(t,i){var e=this.$store.state.mobildConfig.defaultArray[t];this.setConfig(e)},deep:!0},defaultArray:{handler:function(t,i){var e=this.$store.state.mobildConfig.defaultArray[this.num];this.setConfig(e)},deep:!0}},data:function(){return{defaultConfig:{name:"liveBroadcast",timestamp:this.num,bg:{title:"背景色",name:"bg",default:[{item:"#fff"}],color:[{item:"#fff"}]},listStyle:{title:"列表样式",name:"listStyle",type:0,list:[{val:"单行",icon:"icondanhang"},{val:"多行",icon:"iconduohang"},{val:"双排",icon:"iconlianglie"}]},bgStyle:{title:"背景样式",name:"bgStyle",type:0,list:[{val:"直角",icon:"iconPic_square"},{val:"圆角",icon:"iconPic_fillet"}]},mbConfig:{title:"页面间距",val:0,min:0}},live:[{title:"直播中",name:"playBg",type:2,color:"",icon:"iconzhibozhong",goods:[]},{title:"回放",name:"endBg",type:0,color:"",icon:"iconyijieshu",goods:[{img:"http://admin.crmeb.net/uploads/attach/2020/05/20200515/4f17d0727e277eb86ecc6296e96c2c09.png",price:"199"},{img:"http://admin.crmeb.net/uploads/attach/2020/05/20200515/4f17d0727e277eb86ecc6296e96c2c09.png",price:"199"},{img:"http://admin.crmeb.net/uploads/attach/2020/05/20200515/4f17d0727e277eb86ecc6296e96c2c09.png",price:"199"}]},{title:"预告",name:"notBg",type:1,color:"",icon:"iconweikaishi",goods:[{img:"http://admin.crmeb.net/uploads/attach/2020/05/20200515/4f17d0727e277eb86ecc6296e96c2c09.png",price:"199"},{img:"http://admin.crmeb.net/uploads/attach/2020/05/20200515/4f17d0727e277eb86ecc6296e96c2c09.png",price:"199"}]},{title:"直播中",name:"playBg",type:2,color:"",icon:"iconzhibozhong",goods:[{img:"http://admin.crmeb.net/uploads/attach/2020/05/20200515/4f17d0727e277eb86ecc6296e96c2c09.png",price:"199"},{img:"http://admin.crmeb.net/uploads/attach/2020/05/20200515/4f17d0727e277eb86ecc6296e96c2c09.png",price:"199"}]}],cSlider:"",confObj:{},pageData:{},listStyle:0,bgStyle:0,bg:""}},mounted:function(){var t=this;this.$nextTick((function(){t.pageData=t.$store.state.mobildConfig.defaultArray[t.num],t.setConfig(t.pageData)}))},methods:{setConfig:function(t){t&&t.mbConfig&&(this.cSlider=t.mbConfig.val,this.listStyle=t.listStyle.type,this.bgStyle=t.bgStyle.type,this.bg=t.bg.color[0].item)}}},l=c,r=(e("e70e"),e("2877")),f=Object(r["a"])(l,n,a,!1,null,"7a95016c",null);i["default"]=f.exports},"26e2":function(t,i,e){"use strict";e("992d")},2756:function(t,i,e){"use strict";e.r(i);var n=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticStyle:{"margin-bottom":"20px"}},[t.configData.tabList?e("div",{staticClass:"title-tips"},[e("span",[t._v(t._s(t.configData.title))]),t._v(t._s(t.configData.tabList[t.configData.tabVal].name)+"\n ")]):t._e(),t._v(" "),e("div",{staticClass:"radio-box",class:{on:1==t.configData.type}},[e("el-radio-group",{attrs:{type:"button",size:"large"},on:{change:function(i){return t.radioChange(i)}},model:{value:t.configData.tabVal,callback:function(i){t.$set(t.configData,"tabVal",i)},expression:"configData.tabVal"}},t._l(t.configData.tabList,(function(i,n){return e("el-radio",{key:n,attrs:{label:n}},[i.icon?e("span",{staticClass:"iconfont-diy",class:i.icon}):e("span",[t._v(t._s(i.name))])])})),1)],1)])},a=[],o={name:"c_tab",props:{configObj:{type:Object},configNme:{type:String}},data:function(){return{formData:{type:0},defaults:{},configData:{}}},watch:{configObj:{handler:function(t,i){this.defaults=t,this.configData=t[this.configNme]},deep:!0}},mounted:function(){var t=this;this.$nextTick((function(){t.defaults=t.configObj,t.configData=t.configObj[t.configNme]}))},methods:{radioChange:function(t){this.defaults.picStyle&&(this.defaults.picStyle.tabVal="0"),this.$emit("getConfig",t)}}},s=o,c=(e("1224"),e("2877")),l=Object(c["a"])(s,n,a,!1,null,"4e7cb8ae",null);i["default"]=l.exports},"27c5":function(t,i,e){"use strict";e.r(i);var n=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"mobile-config pro"},[t._l(t.rCom,(function(i,n){return e("div",{key:n},[e(i.components.name,{key:n,ref:"childData",refInFor:!0,tag:"component",attrs:{configObj:t.configObj,configNme:i.configNme,index:t.activeIndex,num:i.num},on:{getConfig:t.getConfig}})],1)})),t._v(" "),e("rightBtn",{attrs:{activeIndex:t.activeIndex,configObj:t.configObj}})],2)},a=[],o=e("5530"),s=e("fd0b"),c=(e("2f62"),e("befa")),l={name:"c_home_menu",cname:"导航组",componentsName:"home_menu",props:{activeIndex:{type:null},num:{type:null},index:{type:null}},components:Object(o["a"])(Object(o["a"])({},s["a"]),{},{rightBtn:c["a"]}),data:function(){return{configObj:{},rCom:[{components:s["a"].c_set_up,configNme:"setUp"}],space:[{components:s["a"].c_menu_list,configNme:"menuConfig"}],space2:[],oneStyle:[{components:s["a"].c_tab,configNme:"tabConfig"},{components:s["a"].c_txt_tab,configNme:"menuStyle"},{components:s["a"].c_bg_color,configNme:"bgColor"},{components:s["a"].c_bg_color,configNme:"titleColor"},{components:s["a"].c_txt_tab,configNme:"bgStyle"},{components:s["a"].c_slider,configNme:"prConfig"},{components:s["a"].c_slider,configNme:"mbConfig"}],twoStyle:[{components:s["a"].c_tab,configNme:"tabConfig"},{components:s["a"].c_txt_tab,configNme:"menuStyle"},{components:s["a"].c_txt_tab,configNme:"rowsNum"},{components:s["a"].c_txt_tab,configNme:"number"},{components:s["a"].c_bg_color,configNme:"bgColor"},{components:s["a"].c_bg_color,configNme:"titleColor"},{components:s["a"].c_txt_tab,configNme:"bgStyle"},{components:s["a"].c_slider,configNme:"prConfig"},{components:s["a"].c_slider,configNme:"mbConfig"}],type:0,setUp:0}},watch:{num:function(t){var i=JSON.parse(JSON.stringify(this.$store.state.mobildConfig.defaultArray[t]));this.configObj=i},configObj:{handler:function(t,i){this.$store.commit("mobildConfig/UPDATEARR",{num:this.num,val:t})},deep:!0},"configObj.setUp.tabVal":{handler:function(t,i){this.setUp=t;var e=[this.rCom[0]];if(0==t){var n=[{components:s["a"].c_menu_list,configNme:"menuConfig"}];this.rCom=e.concat(n)}else this.type?this.rCom=e.concat(this.twoStyle):this.rCom=e.concat(this.oneStyle)},deep:!0},"configObj.tabConfig.tabVal":{handler:function(t,i){this.type=t;var e=[this.rCom[0]];0!=this.setUp&&(this.rCom=0==t?e.concat(this.oneStyle):e.concat(this.twoStyle))},deep:!0}},mounted:function(){var t=this;this.$nextTick((function(){var i=JSON.parse(JSON.stringify(t.$store.state.mobildConfig.defaultArray[t.num]));t.configObj=i}))},methods:{getConfig:function(t){}}},r=l,f=e("2877"),d=Object(f["a"])(r,n,a,!1,null,"a1cd64de",null);i["default"]=d.exports},"27ef":function(t,i,e){"use strict";e.r(i);var n=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"hot_imgs"},[e("div",{staticClass:"title"},[t._v("\n 最多可添加4个板块片建议尺寸140 * 140px;鼠标拖拽左侧圆点可\n 调整板块顺序\n ")]),t._v(" "),e("div",{staticClass:"list-box"},[e("draggable",{staticClass:"dragArea list-group",attrs:{list:t.defaults.menu,group:"people",handle:".move-icon"}},t._l(t.defaults.menu,(function(i,n){return e("div",{key:n,staticClass:"item"},[e("div",{staticClass:"move-icon"},[e("Icon",{attrs:{type:"ios-keypad-outline",size:"22"}})],1),t._v(" "),e("div",{staticClass:"img-box",on:{click:function(i){return t.modalPicTap("单选",n)}}},[i.img?e("img",{attrs:{src:i.img,alt:""}}):e("div",{staticClass:"upload-box"},[e("Icon",{attrs:{type:"ios-camera-outline",size:"36"}})],1),t._v(" "),e("div",[e("el-dialog",{attrs:{visible:t.modalPic,width:"950px",title:"上传图片"},on:{"update:visible":function(i){t.modalPic=i}}},[t.modalPic?e("uploadPictures",{attrs:{isChoice:t.isChoice,gridBtn:t.gridBtn,gridPic:t.gridPic},on:{getPic:t.getPic}}):t._e()],1)],1)]),t._v(" "),e("div",{staticClass:"info"},t._l(i.info,(function(i,n){return e("div",{key:n,staticClass:"info-item"},[e("span",[t._v(t._s(i.title))]),t._v(" "),e("div",{staticClass:"input-box"},[e("el-input",{attrs:{placeholder:i.tips,maxlength:i.max},model:{value:i.value,callback:function(e){t.$set(i,"value",e)},expression:"infos.value"}})],1)])})),0)])})),0)],1),t._v(" "),t.defaults.menu.length<4?e("div",{staticClass:"add-btn"},[e("Button",{staticStyle:{width:"100%",height:"40px"},on:{click:t.addBox}},[t._v("添加板块")])],1):t._e()])},a=[],o=e("1980"),s=e.n(o),c=(e("2f62"),e("6625")),l=e.n(c),r=e("b5b8"),f=(e("0c6d"),{name:"c_hot_imgs",props:{configObj:{type:Object}},components:{draggable:s.a,UeditorWrap:l.a,uploadPictures:r["default"]},data:function(){return{defaults:{},menus:[],list:[{title:"aa",val:""}],modalPic:!1,isChoice:"单选",gridBtn:{xl:4,lg:8,md:8,sm:8,xs:8},gridPic:{xl:6,lg:8,md:12,sm:12,xs:12},activeIndex:0}},created:function(){this.defaults=this.configObj},watch:{configObj:{handler:function(t,i){this.defaults=t},immediate:!0,deep:!0}},methods:{addBox:function(){var t={img:"https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1594458238721&di=d9978a807dcbf5d8a01400875bc51162&imgtype=0&src=http%3A%2F%2Fattachments.gfan.com%2Fforum%2F201604%2F23%2F002205xqdkj84gnw4oi85v.jpg",info:[{title:"标题",value:"",tips:"选填,不超过4个字",max:4},{title:"简介",value:"",tips:"选填,不超过20个字",max:20}],link:{title:"链接",optiops:[{type:0,value:"",label:"一级>二级分类"},{type:1,value:"",label:"自定义链接"}]}};this.defaults.menu.push(t)},modalPicTap:function(t,i){this.activeIndex=i,this.modalPic=!0},addCustomDialog:function(t){window.UE.registerUI("test-dialog",(function(t,i){var e=new window.UE.ui.Dialog({iframeUrl:"/admin/widget.images/index.html?fodder=dialog",editor:t,name:i,title:"上传图片",cssRules:"width:1200px;height:500px;padding:20px;"});this.dialog=e;var n=new window.UE.ui.Button({name:"dialog-button",title:"上传图片",cssRules:"background-image: url(../../../assets/images/icons.png);background-position: -726px -77px;",onclick:function(){e.render(),e.open()}});return n}),37)},getPic:function(t){this.defaults.menu[this.activeIndex].img=t.att_dir,this.modalPic=!1}}}),d=f,u=(e("ff94"),e("2877")),m=Object(u["a"])(d,n,a,!1,null,"67b32add",null);i["default"]=m.exports},2947:function(t,i,e){},"2c2b":function(t,i,e){},"2c34":function(t,i,e){var n={"./c_bg_color.vue":"95a6","./c_cascader.vue":"b500","./c_custom_menu_list.vue":"144d","./c_foot.vue":"312f","./c_goods.vue":"a497","./c_hot_box.vue":"6b1a","./c_hot_imgs.vue":"27ef","./c_hot_word.vue":"f3ffe","./c_input_item.vue":"c31e","./c_input_number.vue":"8055","./c_is_show.vue":"3d85","./c_menu_list.vue":"c774","./c_page_ueditor.vue":"bd5a","./c_pictrue.vue":"60e2","./c_product.vue":"fe40","./c_select.vue":"5413","./c_set_up.vue":"fed0","./c_slider.vue":"80c19","./c_status.vue":"e291","./c_tab.vue":"2756","./c_txt_tab.vue":"58f1","./c_upload_img.vue":"500d"};function a(t){var i=o(t);return e(i)}function o(t){var i=n[t];if(!(i+1)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return i}a.keys=function(){return Object.keys(n)},a.resolve=o,t.exports=a,a.id="2c34"},"2d44":function(t,i){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAXcAAAAUCAYAAAB2132+AAAAAXNSR0IArs4c6QAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAABd6ADAAQAAAABAAAAFAAAAABeOGisAAAGY0lEQVR4Ae2ZCWwVVRSGX6VaRItogShW8xCsilZwQ8QqQRQjilaLEhG1uEWIS9QgrmlFUYILwaIxRuKCCrhgVcANbIjGqMiSWGrSsFTEJSgYLUtww+9v58ab6fS9tjxbXt75k6/33jMz9837e++ZM20sZjIHzAFzwBwwB8wBc8AcMAfMAXPAHDAHzAFzwBwwB8wBc8AcMAfMgVQ4kJWKSWwOc8AcMAfMgUgHehItiDzS9mAtl25KdvleyU5o5fFizt8VoH5z6sWB+2Ax/A7rgnYJbRkcCiZzIAcLepgN5sBuODCBa68OXa9kOwMWwUTw8+DZjGfD63AxOB1C5yYY5AJBeyttbijmhoV0Stwgha3m1NwJ5X+phCe28OAA7zy/74VjMxlUw4MwDPQw6Az/wFlQDt/A02DKTAey+dpPwTZQhbIGToJE0lvoAqj3TtL6vgF2wGgvHtWdS1Br8cLQQRePWs9jgmtUkJj2LAdO5HbK4VGIg9P+dN6BTnAvnAFTQeoPr8AyeBymwQXQBRaC1uLtMAokFaH54K85xZ2U314FrWf1U0H3YM4i2v9Vq5hdG2Jl8CnlwVgx9X3dxWAzaMP+DFUgcy+D00Gb735QXCbKsC2gX4IpsxyYxNfdCefBwfAwbARV8s1pIgf0Fug2mtbNBlgNWo+JkntXjm+HtaCKzZdL7s/6waD/Ca3mLos4ZqGOdUB5ZTrUgP/7KWH8OTgNoaO8pEKgAlyip9twXSWtis4nFUADYVZDLxZ7glbrszkp50laI6ni14YZYzE3dzBs2ugL7Y70pJOiqprGI//93EpX1ZUqdG20obACjoQR0AdkuuKXg879O4DGlEEOnMl3rYL34CfQJlWVNBwOhCWgdeI0mM7N8JALBO0dtC2pcFSJ7QBVZSOhG/jShlKVfoAXLKSvjb7di1l3z3HgNW7lNvgydEt9GasoddID/SBQRRx1rID4pzAMxsMj8BYoXymnaX22p8JrUw+rSLUmuRczg3v6qN9azeQCGZUL6+FreAm0Ie+BKTAHlPD1Gq7Xp6PAlHkO6LW4H+gBL53a2MQOp9XfPlVJnRLE8mi1bq4DvRE6qTBQFa41m0xXcsJ8WARK1peCLyUDrdmrvKA2eiXUezHr7vkOxLlFveE5fU9Ha2Q/iMNv4PQdHcX/gHOhB0yGBaAHh4oO5SkVp/tAR0hFzqCoD06U3JXAy8Al8gHeBH7fCyft/hKc8QHtcSBT9eRUZaRWVf0J8CFIWxob+5lhDrzJ9z0MPgJtJhUG2mDZUANxeAyU/F8EJWa3Zui2SnpgDIF58CdUgpJ9WLMIKKFLKlDGgmKm9HJAD28VBE770tHvXYlcx7qDkxK7Ck1pI2gtLgXlLj0UtA6+glGwHDpDR0hvHk2UKLnr1aMc1KZaquC1KdX2hf5BewztC2AVOyZksPRWVwpd4RyYBFqrP4D0LagQuBZUDLwM2nD5oPPU16Ztia7gpCy4CKaD5iiCOPiazaAPDAVdo8JjMZjSywGtnbh3y+rXwl8QdUzFRFi3EKgAFQEPwDXwBoyE9pb+nPhF1IcmSu5R56cyVspk2jDayKrkq0GvPePAlNkOHM3X10YbCKeB/q6ZDSvAV28GvUDVk9bRZOgS9FUwtETaoGtABcWxwQWq4MYGfddspqOqfgKMh+dBDxhTejnwLrc7GFRYaq3oH5OfgfQ26MGdA/lwPbhjdBukNbkatkIdHA97Qz+og/bWVD5Qa7OJOjK562ZcxaWKXfyooCnjHcjDgY9hBOg1+W6ogrXQE5TIVSVNAR13qKLaFoyV8JPpZE7QursRhnvMo6+kH9ZzBEpAbwZK7qb0c2A9t3wnLAetp8JgTNNQbK6k3QA1sArmgC+tlWeCwHxaFaTVsA6WQZSWRgXbGAvPFZnYk82tL7YL1ErFoLFQX2rJOY1nNv9TDxgZbTIHfAcqGGjhar0pUatCl+KwCUohrHEE6kPBbow1x+hQXMMZoLeCThp4UqLXNfpH7lzQg0bSWq2D98FJ15e5gbVp40Aud3pEM3ertaYiIiytk97hYILxGI4VJTje1kOa85JkF2clO8GOmwMd6IA2Ux4omZvMgXRzIIcbPh8KUnzjtcy3EHameF6bzhwwB8wBc8AcMAfMAXPAHDAHzAFzwBwwB8wBc8AcMAfMAXPAHDAHIhz4FwO/QgbhZ4FRAAAAAElFTkSuQmCC"},"2d75":function(t,i,e){"use strict";e.r(i);var n=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"mobile-config"},[t._l(t.rCom,(function(i,n){return e("div",{key:n},[e(i.components.name,{key:n,ref:"childData",refInFor:!0,tag:"component",attrs:{configObj:t.configObj,configNme:i.configNme,index:t.activeIndex,num:i.num},on:{getConfig:t.getConfig}})],1)})),t._v(" "),e("rightBtn",{attrs:{activeIndex:t.activeIndex,configObj:t.configObj}})],2)},a=[],o=e("5530"),s=e("fd0b"),c=(e("2f62"),e("befa")),l={name:"c_home_seckill",componentsName:"home_seckill",cname:"秒杀",props:{activeIndex:{type:null},num:{type:null},index:{type:null}},components:Object(o["a"])(Object(o["a"])({},s["a"]),{},{rightBtn:c["a"]}),data:function(){return{configObj:{},rCom:[{components:s["a"].c_set_up,configNme:"setUp"}]}},watch:{num:function(t){var i=JSON.parse(JSON.stringify(this.$store.state.mobildConfig.defaultArray[t]));this.configObj=i},configObj:{handler:function(t,i){this.$store.commit("mobildConfig/UPDATEARR",{num:this.num,val:t})},deep:!0},"configObj.setUp.tabVal":{handler:function(t,i){var e=[this.rCom[0]];if(0==t){var n=[{components:s["a"].c_is_show,configNme:"priceShow"},{components:s["a"].c_is_show,configNme:"progressShow"},{components:s["a"].c_is_show,configNme:"titleShow"}];this.rCom=e.concat(n)}else{var a=[{components:s["a"].c_tab,configNme:"tabConfig"},{components:s["a"].c_bg_color,configNme:"countDownColor"},{components:s["a"].c_bg_color,configNme:"themeColor"},{components:s["a"].c_bg_color,configNme:"bgColor"},{components:s["a"].c_txt_tab,configNme:"bgStyle"},{components:s["a"].c_txt_tab,configNme:"conStyle"},{components:s["a"].c_slider,configNme:"prConfig"},{components:s["a"].c_slider,configNme:"mbConfig"}];this.rCom=e.concat(a)}},deep:!0}},mounted:function(){var t=this;this.$nextTick((function(){var i=JSON.parse(JSON.stringify(t.$store.state.mobildConfig.defaultArray[t.num]));t.configObj=i}))},methods:{getConfig:function(t){}}},r=l,f=e("2877"),d=Object(f["a"])(r,n,a,!1,null,"552ffd73",null);i["default"]=d.exports},"2f64":function(t,i,e){},"312f":function(t,i,e){"use strict";e.r(i);var n=function(){var t=this,i=t.$createElement,e=t._self._c||i;return t.footConfig?e("div",[e("p",{staticClass:"tips"},[t._v("图片建议宽度81*81px;鼠标拖拽左侧圆点可调整导航顺序")]),t._v(" "),e("draggable",{staticClass:"dragArea list-group",attrs:{list:t.footConfig,group:"peoples",handle:".iconfont"}},t._l(t.footConfig,(function(i,n){return e("div",{key:n,staticClass:"box-item"},[e("div",{staticClass:"left-tool"},[e("span",{staticClass:"iconfont icondrag2"})]),t._v(" "),e("div",{staticClass:"right-wrapper"},[e("div",{staticClass:"img-wrapper"},t._l(i.imgList,(function(i,a){return e("div",{staticClass:"img-item",on:{click:function(i){return t.modalPicTap(n,a)}}},[i?e("img",{attrs:{src:i,alt:""}}):t._e(),t._v(" "),i?e("p",{staticClass:"txt"},[t._v(t._s(0==a?"选中":"未选中"))]):e("div",{staticClass:"empty-img"},[e("span",{staticClass:"iconfont iconjiahao"}),t._v(" "),e("p",[t._v(t._s(0==a?"选中":"未选中"))])])])})),0),t._v(" "),e("div",{staticClass:"c_row-item"},[e("el-col",{staticClass:"label",attrs:{span:4}},[t._v("\n 名称\n ")]),t._v(" "),e("el-col",{staticClass:"slider-box",attrs:{span:19}},[e("el-input",{attrs:{placeholder:"选填不超过10个字"},model:{value:i.name,callback:function(e){t.$set(i,"name",e)},expression:"item.name"}})],1)],1),t._v(" "),e("div",{staticClass:"c_row-item"},[e("el-col",{staticClass:"label",attrs:{span:4}},[t._v("\n 链接\n ")]),t._v(" "),e("el-col",{staticClass:"slider-box",attrs:{span:19}},[e("div",{on:{click:function(i){return t.getLink(n)}}},[e("el-input",{attrs:{icon:"ios-arrow-forward",readonly:"",placeholder:"选填不超过10个字"},model:{value:i.link,callback:function(e){t.$set(i,"link",e)},expression:"item.link"}})],1)])],1)]),t._v(" "),e("div",{staticClass:"del-box",on:{click:function(i){return t.deleteMenu(n)}}},[e("span",{staticClass:"iconfont iconcha"})])])})),0),t._v(" "),t.footConfig.length<5?e("el-button",{staticClass:"add-btn",attrs:{type:"info",ghost:""},on:{click:t.addMenu}},[t._v("添加图文导航")]):t._e(),t._v(" "),e("div",[e("el-dialog",{attrs:{visible:t.modalPic,width:"950px",title:"上传底部菜单"},on:{"update:visible":function(i){t.modalPic=i}}},[t.modalPic?e("uploadPictures",{attrs:{isChoice:t.isChoice,gridBtn:t.gridBtn,gridPic:t.gridPic},on:{getPic:t.getPic}}):t._e()],1)],1),t._v(" "),e("linkaddress",{ref:"linkaddres",on:{linkUrl:t.linkUrl}})],1):t._e()},a=[],o=e("1980"),s=e.n(o),c=e("b5b8"),l=e("7af3"),r={name:"c_foot",props:{configObj:{type:Object,default:function(){return{}}},configNme:{type:String,default:""}},components:{uploadPictures:c["default"],linkaddress:l["a"],draggable:s.a},data:function(){return{val1:"",val2:"",footConfig:[],modalPic:!1,isChoice:"单选",itemIndex:0,itemChildIndex:0,gridBtn:{xl:4,lg:8,md:8,sm:8,xs:8},gridPic:{xl:6,lg:8,md:12,sm:12,xs:12}}},watch:{configObj:{handler:function(t,i){this.footConfig=t[this.configNme]},deep:!0}},created:function(){this.footConfig=this.configObj[this.configNme]},methods:{linkUrl:function(t){this.footConfig[this.itemIndex].link=t},getLink:function(t){this.itemIndex=t,this.$refs.linkaddres.init()},modalPicTap:function(t,i){var e=this;e.itemIndex=t,e.itemChildIndex=i,e.$modalUpload((function(n){e.footConfig[t].imgList[i]=n[0],e.$forceUpdate(),e.getPic(n[0])}))},getPic:function(t){var i=this;this.$nextTick((function(){i.footConfig[i.itemIndex].imgList[i.itemChildIndex]=t,i.$store.commit("mobildConfig/footUpdata",i.footConfig)}))},addMenu:function(){var t={imgList:["",""],name:"自定义",link:""};this.footConfig.push(t)},deleteMenu:function(t){var i=this;this.$confirm("是否确定删除该菜单?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){i.footConfig.splice(t,1)})).catch((function(){i.$message({type:"info",message:"已取消"})}))}}},f=r,d=(e("d0c9"),e("2877")),u=Object(d["a"])(f,n,a,!1,null,"340eff88",null);i["default"]=u.exports},"344a":function(t,i,e){"use strict";e.r(i);var n=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"mobile-page"},[e("div",{staticClass:"box",style:{borderBottomWidth:t.cSlider+"px",borderBottomColor:t.bgColor,borderBottomStyle:t.style,marginLeft:t.edge+"px",marginRight:t.edge+"px",marginTop:t.udEdge+"px"}})])},a=[],o=e("5530"),s=e("2f62"),c={name:"z_auxiliary_line",cname:"辅助线",configName:"c_auxiliary_line",icon:"iconfuzhuxian2",type:2,defaultName:"guide",props:{index:{type:null,default:-1},num:{type:null}},computed:Object(o["a"])({},Object(s["d"])("mobildConfig",["defaultArray"])),watch:{pageData:{handler:function(t,i){this.setConfig(t)},deep:!0},num:{handler:function(t,i){var e=this.$store.state.mobildConfig.defaultArray[t];this.setConfig(e)},deep:!0},defaultArray:{handler:function(t,i){var e=this.$store.state.mobildConfig.defaultArray[this.num];this.setConfig(e)},deep:!0}},data:function(){return{defaultConfig:{name:"guide",timestamp:this.num,lineColor:{title:"线条颜色",default:[{item:"#f5f5f5"}],color:[{item:"#f5f5f5"}]},lineStyle:{title:"线条样式",type:0,list:[{val:"虚线",style:"dashed",icon:""},{val:"实线",style:"solid"},{val:"点状线",style:"dotted"}]},heightConfig:{title:"组件高度",val:1,min:1},lrEdge:{title:"左右边距",val:0,min:0},mbConfig:{title:"页面间距",val:0,min:0}},cSlider:"",bgColor:"",confObj:{},pageData:{},edge:"",udEdge:"",styleType:"",style:""}},mounted:function(){var t=this;this.$nextTick((function(){t.pageData=t.$store.state.mobildConfig.defaultArray[t.num],t.setConfig(t.pageData)}))},methods:{setConfig:function(t){if(t&&t.mbConfig){var i=t.lineStyle.type;this.cSlider=t.heightConfig.val,this.bgColor=t.lineColor.color[0].item,this.edge=t.lrEdge.val,this.udEdge=t.mbConfig.val,this.style=t.lineStyle.list[i].style}}}},l=c,r=(e("b46e"),e("2877")),f=Object(r["a"])(l,n,a,!1,null,"55f42962",null);i["default"]=f.exports},3651:function(t,i,e){},3725:function(t,i,e){"use strict";e.r(i);var n=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"mobile-config"},[e("Form",{ref:"formInline"},t._l(t.rCom,(function(i,n){return e("div",{key:n},[e(i.components.name,{ref:"childData",refInFor:!0,tag:"component",attrs:{configObj:t.configObj,configNme:i.configNme}})],1)})),0)],1)},a=[],o=e("5530"),s=e("fd0b"),c=e("befa"),l=(e("2f62"),{name:"pageFoot",cname:"底部菜单",components:Object(o["a"])(Object(o["a"])({},s["a"]),{},{rightBtn:c["a"]}),data:function(){return{hotIndex:1,configObj:{},rCom:[{components:s["a"].c_set_up,configNme:"setUp"}]}},watch:{"configObj.setUp.tabVal":{handler:function(t,i){var e=[this.rCom[0]];if(0==t){var n=[{components:s["a"].c_status,configNme:"status"},{components:s["a"].c_foot,configNme:"menuList"}];this.rCom=e.concat(n)}else{var a=[{components:s["a"].c_bg_color,configNme:"txtColor"},{components:s["a"].c_bg_color,configNme:"activeTxtColor"},{components:s["a"].c_bg_color,configNme:"bgColor"}];this.rCom=e.concat(a)}},deep:!0}},mounted:function(){this.configObj=this.$store.state.mobildConfig.pageFooter,console.log("2222",this.configObj)},methods:{}}),r=l,f=(e("b90c"),e("2877")),d=Object(f["a"])(r,n,a,!1,null,"8741f466",null);i["default"]=d.exports},3781:function(t,i,e){},"385a":function(t,i,e){"use strict";e("1a61")},"3b8d":function(t,i,e){"use strict";e("9fbb")},"3d85":function(t,i,e){"use strict";e.r(i);var n=function(){var t=this,i=t.$createElement,e=t._self._c||i;return t.configData?e("div",{staticClass:"c_row-item"},[e("el-col",{staticClass:"c_label"},[t._v(t._s(t.configData.title))]),t._v(" "),e("el-col",[e("el-switch",{model:{value:t.configData.val,callback:function(i){t.$set(t.configData,"val",i)},expression:"configData.val"}})],1)],1):t._e()},a=[],o={name:"c_is_show",props:{configObj:{type:Object},configNme:{type:String}},data:function(){return{defaults:{},configData:{}}},created:function(){this.defaults=this.configObj,this.configData=this.configObj[this.configNme]},watch:{configObj:{handler:function(t,i){this.defaults=t,this.configData=t[this.configNme]},immediate:!0,deep:!0}},methods:{}},s=o,c=(e("9295"),e("2877")),l=Object(c["a"])(s,n,a,!1,null,"e03dde4a",null);i["default"]=l.exports},"3f2d":function(t,i,e){"use strict";e("cc53")},"3f7b":function(t,i,e){},"3fb2":function(t,i,e){"use strict";e("c6b1")},4553:function(t,i,e){"use strict";e.r(i);var n=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",[e("div",{staticClass:"mt20 ml20"},[e("el-input",{staticStyle:{width:"300px"},attrs:{placeholder:"请输入视频链接"},model:{value:t.videoLink,callback:function(i){t.videoLink=i},expression:"videoLink"}}),t._v(" "),e("input",{ref:"refid",staticStyle:{display:"none"},attrs:{type:"file"},on:{change:t.zh_uploadFile_change}}),t._v(" "),e("el-button",{staticClass:"ml10",attrs:{type:"primary",icon:"ios-cloud-upload-outline"},on:{click:t.zh_uploadFile}},[t._v(t._s(t.videoLink?"确认添加":"上传视频"))]),t._v(" "),t.upload.videoIng?e("el-progress",{staticStyle:{"margin-top":"20px"},attrs:{"stroke-width":20,percentage:t.progress,"text-inside":!0}}):t._e(),t._v(" "),t.formValidate.video_link?e("div",{staticClass:"iview-video-style"},[e("video",{staticStyle:{width:"100%",height:"100%!important","border-radius":"10px"},attrs:{src:t.formValidate.video_link,controls:"controls"}},[t._v("\n 您的浏览器不支持 video 标签。\n ")]),t._v(" "),e("div",{staticClass:"mark"}),t._v(" "),e("i",{staticClass:"iconv el-icon-delete",on:{click:t.delVideo}})]):t._e()],1),t._v(" "),e("div",{staticClass:"mt50 ml20"},[e("el-button",{attrs:{type:"primary"},on:{click:t.uploads}},[t._v("确认")])],1)])},a=[],o=(e("7f7f"),e("c4c8")),s=(e("6bef"),{name:"Vide11o",props:{isDiy:{type:Boolean,default:!1}},data:function(){return{upload:{videoIng:!1},progress:20,videoLink:"",formValidate:{video_link:""}}},methods:{delVideo:function(){var t=this;t.$set(t.formValidate,"video_link","")},zh_uploadFile:function(){this.videoLink?this.formValidate.video_link=this.videoLink:this.$refs.refid.click()},zh_uploadFile_change:function(t){var i=this,e=t.target.files[0].name.substr(t.target.files[0].name.indexOf("."));if(".mp4"!==e)return i.$message.error("只能上传MP4文件");Object(o["fb"])().then((function(e){i.$videoCloud.videoUpload({type:e.data.type,evfile:t,res:e,uploading:function(t,e){i.upload.videoIng=t,console.log(t,e)}}).then((function(t){i.formValidate.video_link=t.url||t.data.src,i.$message.success("视频上传成功"),i.progress=100,i.upload.videoIng=!1})).catch((function(t){i.$message.error(t)}))}))},uploads:function(){this.formValidate.video_link||this.videoLink?!this.videoLink||this.formValidate.video_link?this.isDiy?this.$emit("getVideo",this.formValidate.video_link):nowEditor&&(nowEditor.dialog.close(!0),nowEditor.editor.setContent("",!0)):this.$message.error("请点击确认添加按钮!"):this.$message.error("您还没有上传视频!")}}}),c=s,l=(e("8307"),e("2877")),r=Object(l["a"])(c,n,a,!1,null,"732b6bbd",null);i["default"]=r.exports},4777:function(t,i,e){"use strict";e.r(i);var n=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"mobile-config"},[t._l(t.rCom,(function(i,n){return e("div",{key:n},[e(i.components.name,{key:n,ref:"childData",refInFor:!0,tag:"component",attrs:{configObj:t.configObj,configNme:i.configNme,index:t.activeIndex,num:i.num},on:{getConfig:t.getConfig}})],1)})),t._v(" "),e("rightBtn",{attrs:{activeIndex:t.activeIndex,configObj:t.configObj}})],2)},a=[],o=e("5530"),s=e("fd0b"),c=e("befa"),l=(e("2f62"),{name:"c_ueditor_box",componentsName:"z_ueditor",components:Object(o["a"])(Object(o["a"])({},s["a"]),{},{rightBtn:c["a"]}),props:{activeIndex:{type:null},num:{type:null},index:{type:null}},data:function(){return{configObj:{},rCom:[{components:s["a"].c_set_up,configNme:"setUp"}]}},watch:{num:function(t){var i=JSON.parse(JSON.stringify(this.$store.state.mobildConfig.defaultArray[t]));this.configObj=i},configObj:{handler:function(t,i){this.$store.commit("mobildConfig/UPDATEARR",{num:this.num,val:t})},deep:!0},"configObj.setUp.tabVal":{handler:function(t,i){var e=[this.rCom[0]];if(0==t){var n=[{components:s["a"].c_page_ueditor,configNme:"richText"}];this.rCom=e.concat(n)}else{var a=[{components:s["a"].c_bg_color,configNme:"bgColor"},{components:s["a"].c_slider,configNme:"lrConfig"},{components:s["a"].c_slider,configNme:"udConfig"}];this.rCom=e.concat(a)}},deep:!0}},mounted:function(){var t=this;this.$nextTick((function(){var i=JSON.parse(JSON.stringify(t.$store.state.mobildConfig.defaultArray[t.num]));t.configObj=i}))},methods:{getConfig:function(t){}}}),r=l,f=e("2877"),d=Object(f["a"])(r,n,a,!1,null,"706289e1",null);i["default"]=d.exports},"47b0":function(t,i,e){},4843:function(t,i){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAA0NJREFUOE9lk1lMXFUYx3/n3tmYGRkGhlTiQkuNZtToxBpDsNpWH9QmCkTTWC3WNnQJTzM+1IfGCipNbJqCGH0wtZtQsEUzbYxBY3SoGhujFmwpraGxEdMCs9zZ1zv3mgsBiZ7kPJwv+f++5fw/wX/O3Jzik4XWLGR5vSQJnxCCUqk4ZjZbQ7IszjidzrHlErH8EQ5H/ZIQPZIsIUkS6XSanoMHmJq6xtq1j9H6/Avx6pqaTrfb9d6ibgkQDkeCAtEsyTKyLJFKJuna9wbnQiFkWUbVdR5tauJgbx+6rgc9nupWAzIPMDIDPZIQGNkNwamTJ+k/cQzvikpSmRw/Tv6Jw+Hg6PETrGxYbcgCtbU1vcLoWQjtgkES0oJYK6vseS1Aau4GW1ue4tLkVT76fAQhm2hv38Gr7TsMQFwI0wYRDkc7gTeXA1LJOLu2bmFPxzYq7RVcu3qFQ0eGUPIqa9Y8xKG+DxZH0CXC4UgIxDqjfKMCY3g///QDXwWH6djeRvzmNMVclonLVzgwcJaV9fUc/aQfs8WKpumjIhKOxoUkuYzvWrgQPP0ppwcH6PbvQvl7mngmxXe/XOSbC5NUuVz0Dw7irKxaaCMajcWF+Beg6zqfDQ3w9jvdvN7+Mg1uB19+f56RXy9jslihrBLYvpmNbTsx2xwJEYspISGkdUZ2Q1zI5wgOn6J7/362PfM4d9fX8dbhYUpImEwyVqGz6YlGnny2hTvve3hUKEpifojoGoV8gsH+IQ5/fISqqmr2drxCITzNu8eDpAoq2UyW3bt3UldpwyHD/Q8+0CUUJe1DV0P5fNYVi8exyhq/j48jm+3cu3oVJoeTr0e+4P2+D4nGFLa8uImX2jYjaeWEpsR880ZSFMUvCXquT12k9g4vFHOUMaFrZSxWK5fGf8PvDzAzM8Ntt66ga99eXO6awIanN/YuWfmvG7NBVVWb7WYdrawjJEGpkCdbLOCsuIXR0W/J5/J477mLSCxz5rnW5pYlKy+64vy5s/66hkc6XQ6b62Ykgt1qplQsYLbasZktpJORxGws2dnU2Nj7v2VaDPwxMeFzezwtmWxqfUKZ9VV7bkctl8dslopQPhk/tsrrvb58g/8BcT9SrA/+Gd4AAAAASUVORK5CYII="},"4c7b":function(t,i,e){},"4cee":function(t,i,e){"use strict";e.r(i);var n=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{class:t.bgStyle?"pageOn":"",style:{marginLeft:t.prConfig+"px",marginRight:t.prConfig+"px",marginTop:t.slider+"px",background:t.bgColor}},[t.isOne?e("div",{staticClass:"mobile-page"},[e("div",{staticClass:"list_menu"},t._l(t.vuexMenu,(function(i,n){return e("div",{key:n,staticClass:"item",class:1===t.number?"four":2===t.number?"five":""},[e("div",{staticClass:"img-box",class:t.menuStyle?"on":""},[i.img?e("img",{attrs:{src:i.img,alt:""}}):e("div",{staticClass:"empty-box on"},[e("span",{staticClass:"iconfont-diy icontupian"})])]),t._v(" "),e("p",{style:{color:t.txtColor}},[t._v(t._s(i.info[0].value))])])})),0)]):e("div",{staticClass:"mobile-page"},[e("div",{staticClass:"home_menu"},t._l(t.vuexMenu,(function(i,n){return e("div",{key:n,staticClass:"menu-item"},[e("div",{staticClass:"img-box",class:t.menuStyle?"on":""},[i.img?e("img",{attrs:{src:i.img,alt:""}}):e("div",{staticClass:"empty-box on"},[e("span",{staticClass:"iconfont-diy icontupian"})])]),t._v(" "),e("p",{style:{color:t.txtColor}},[t._v(t._s(i.info[0].value))])])})),0)])])},a=[],o=(e("ac6a"),e("456d"),e("5530")),s=e("2f62"),c={name:"home_menu",cname:"导航组",icon:"icondaohangzu2",configName:"c_home_menu",type:0,defaultName:"menus",props:{index:{type:null},num:{type:null}},computed:Object(o["a"])({},Object(s["d"])("mobildConfig",["defaultArray"])),watch:{pageData:{handler:function(t,i){this.setConfig(t)},deep:!0},num:{handler:function(t,i){var e=this.$store.state.mobildConfig.defaultArray[t];this.setConfig(e)},deep:!0},defaultArray:{handler:function(t,i){var e=this.$store.state.mobildConfig.defaultArray[this.num];this.setConfig(e)},deep:!0}},data:function(){return{defaultConfig:{name:"menus",timestamp:this.num,setUp:{tabVal:"0"},tabConfig:{title:"展示样式",tabVal:0,type:1,tabList:[{name:"单行展示",icon:"icondanhang"},{name:"多行展示",icon:"iconduohang"}]},rowsNum:{title:"显示行数",name:"rowsNum",type:0,list:[{val:"2行",icon:"icon2hang"},{val:"3行",icon:"icon3hang"},{val:"4行",icon:"icon4hang"}]},menuStyle:{title:"图标样式",name:"menuStyle",type:0,list:[{val:"方形",icon:"iconPic_square"},{val:"圆形",icon:"icondayuanjiao"}]},number:{title:"显示个数",name:"number",type:0,list:[{val:"3个",icon:"icon3ge"},{val:"4个",icon:"icon4ge1"},{val:"5个",icon:"icon5ge1"}]},bgStyle:{title:"背景样式",name:"bgStyle",type:0,list:[{val:"直角",icon:"iconPic_square"},{val:"圆角",icon:"iconPic_fillet"}]},prConfig:{title:"背景边距",val:0,min:0},menuConfig:{title:"最多可添加1张图片,建议宽度90 * 90px",maxList:100,list:[{img:"",info:[{title:"标题",value:"今日推荐",tips:"选填,不超过4个字",max:4},{title:"链接",value:"",tips:"请输入链接",max:100}]},{img:"",info:[{title:"标题",value:"热门榜单",tips:"选填,不超过4个字",max:4},{title:"链接",value:"",tips:"请输入链接",max:100}]},{img:"",info:[{title:"标题",value:"首发新品",tips:"选填,不超过4个字",max:4},{title:"链接",value:"",tips:"请输入链接",max:100}]},{img:"",info:[{title:"标题",value:"促销单品",tips:"选填,不超过4个字",max:4},{title:"链接",value:"",tips:"请输入链接",max:100}]}]},bgColor:{title:"背景颜色",name:"bgColor",default:[{item:"#fff"}],color:[{item:"#fff"}]},titleColor:{title:"文字颜色",name:"themeColor",default:[{item:"#333333"}],color:[{item:"#333333"}]},mbConfig:{title:"页面间距",val:0,min:0}},vuexMenu:"",txtColor:"",boxStyle:"",slider:"",bgColor:"",menuStyle:0,isOne:0,number:0,rowsNum:0,pageData:{},bgStyle:0,prConfig:0}},mounted:function(){var t=this;this.$nextTick((function(){t.pageData=t.$store.state.mobildConfig.defaultArray[t.num],t.setConfig(t.pageData)}))},methods:{objToArr:function(t){var i=Object.keys(t),e=i.map((function(i){return t[i]}));return e},setConfig:function(t){if(t&&t.mbConfig){this.txtColor=t.titleColor.color[0].item,this.menuStyle=t.menuStyle.type,this.slider=t.mbConfig.val,this.bgStyle=t.bgStyle.type,this.prConfig=t.prConfig.val,this.bgColor=t.bgColor.color[0].item,this.isOne=t.tabConfig.tabVal;var i=t.rowsNum.type,e=t.number.type,n=this.objToArr(t.menuConfig.list);this.number=e,this.rowsNum=i;var a=[];a=0===i?0===e?n.splice(0,6):1===e?n.splice(0,8):n.splice(0,10):1===i?0===e?n.splice(0,9):1===e?n.splice(0,12):n.splice(0,15):0===e?n.splice(0,12):1===e?n.splice(0,16):n.splice(0,20),this.vuexMenu=a}}}},l=c,r=(e("1aff"),e("2877")),f=Object(r["a"])(l,n,a,!1,null,"ab92431c",null);i["default"]=f.exports},"4d0a":function(t,i,e){"use strict";e.r(i);var n=function(){var t=this,i=t.$createElement,n=t._self._c||i;return n("div",{staticClass:"page-count",class:t.bgStyle?"":"pageOn",style:{marginLeft:t.prConfig+"px",marginRight:t.prConfig+"px",marginTop:t.slider+"px",background:t.colorShow?t.bgColor:"transparent"}},[n("div",{staticClass:"home_topic"},[n("div",{staticClass:"title-wrapper",class:t.bgStyle?"":"presellOn"},[n("img",{attrs:{src:e("6472"),alt:""}}),t._v(" "),t._m(0)]),t._v(" "),1==t.isOne?n("div",{staticClass:"mobile-page"},[n("div",{staticClass:"home_menu"},t._l(t.vuexMenu,(function(i,e){return n("div",{key:e,staticClass:"menu-item"},[n("div",{staticClass:"img-box"},[i.img?n("img",{attrs:{src:i.img,alt:""}}):n("div",{staticClass:"empty-box",class:t.conStyle?"":"pageOn"},[n("span",{staticClass:"iconfont-diy icontupian"})])])])})),0)]):n("div",{staticClass:"mobile-page"},[n("div",{staticClass:"list_menu"},t._l(t.vuexMenu,(function(i,e){return e<1?n("div",{key:e,staticClass:"item"},[n("div",{staticClass:"img-box"},[i.img?n("img",{attrs:{src:i.img,alt:""}}):n("div",{staticClass:"empty-box",class:t.conStyle?"":"pageOn"},[n("span",{staticClass:"iconfont-diy icontupian"})])])]):t._e()})),0)]),t._v(" "),t.isOne>1&&t.pointerStyle<2?n("div",{staticClass:"dot",class:{"line-dot":0===t.pointerStyle,"":1===t.pointerStyle},style:{justifyContent:1===t.dotPosition?"center":2===t.dotPosition?"flex-end":"flex-start"}},[n("div",{staticClass:"dot-item",style:{background:""+t.pointerColor}}),t._v(" "),n("div",{staticClass:"dot-item"}),t._v(" "),n("div",{staticClass:"dot-item"})]):t._e()])])},a=[function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"right"},[t._v("进入专场 "),e("span",{staticClass:"iconfont-diy iconjinru"})])}],o=(e("ac6a"),e("456d"),e("5530")),s=e("2f62"),c={name:"home_topic",cname:"专场",icon:"iconzhuanti",configName:"c_home_topic",type:1,defaultName:"topic",props:{index:{type:null},num:{type:null}},computed:Object(o["a"])({},Object(s["d"])("mobildConfig",["defaultArray"])),watch:{pageData:{handler:function(t,i){this.setConfig(t)},deep:!0},num:{handler:function(t,i){var e=this.$store.state.mobildConfig.defaultArray[t];this.setConfig(e)},deep:!0},defaultArray:{handler:function(t,i){var e=this.$store.state.mobildConfig.defaultArray[this.num];this.setConfig(e)},deep:!0}},data:function(){return{defaultConfig:{name:"topic",timestamp:this.num,setUp:{tabVal:"0"},bgStyle:{title:"背景样式",name:"bgStyle",type:0,list:[{val:"直角",icon:"iconPic_square"},{val:"圆角",icon:"iconPic_fillet"}]},conStyle:{title:"内容样式",name:"conStyle",type:1,list:[{val:"直角",icon:"iconPic_square"},{val:"圆角",icon:"iconPic_fillet"}]},colorShow:{title:"是否显示背景色",val:!0},bgColor:{title:"背景颜色",name:"bgColor",default:[{item:"#fff"}],color:[{item:"#fff"}]},pointerStyle:{title:"指示器样式",name:"pointerStyle",type:0,list:[{val:"长条",icon:"iconSquarepoint"},{val:"圆形",icon:"iconDot"},{val:"无指示器",icon:"iconjinyong"}]},txtStyle:{title:"指示器位置",type:0,list:[{val:"居左",icon:"icondoc_left"},{val:"居中",icon:"icondoc_center"},{val:"居右",icon:"icondoc_right"}]},prConfig:{title:"背景边距",val:0,min:0},menuConfig:{title:"最多可添加10张照片,建议宽度750px;鼠标拖拽左侧圆点可调整图片顺序",maxList:10,list:[{img:"",info:[{title:"标题",value:"",tips:"选填,不超过6个字",max:4},{title:"链接",value:"",tips:"请输入链接",max:100}]}]},pointerColor:{title:"指示器颜色",name:"pointerColor",default:[{item:"#f44"}],color:[{item:"#f44"}]},mbConfig:{title:"页面间距",val:0,min:0}},vuexMenu:"",txtColor:"",boxStyle:"",slider:"",bgColor:"",isOne:0,pointerStyle:0,pointerColor:"",pageData:{},bgStyle:1,conStyle:1,colorShow:1,prConfig:0,dotPosition:0}},mounted:function(){var t=this;this.$nextTick((function(){t.pageData=t.$store.state.mobildConfig.defaultArray[t.num],t.setConfig(t.pageData)}))},methods:{objToArr:function(t){var i=Object.keys(t),e=i.map((function(i){return t[i]}));return e},setConfig:function(t){if(t&&t.mbConfig){this.pointerStyle=t.pointerStyle.type,this.pointerColor=t.pointerColor.color[0].item,this.dotPosition=t.txtStyle.type,this.colorShow=t.colorShow.val,this.slider=t.mbConfig.val,this.bgStyle=t.bgStyle.type,this.conStyle=t.conStyle.type,this.prConfig=t.prConfig.val,this.bgColor=t.bgColor.color[0].item;var i=this.objToArr(t.menuConfig.list);this.isOne=i.length,this.vuexMenu=i.splice(0,6)}}}},l=c,r=(e("a2ba"),e("2877")),f=Object(r["a"])(l,n,a,!1,null,"558bc715",null);i["default"]=f.exports},"4d57":function(t,i,e){"use strict";e("5656")},"4e36":function(t,i,e){"use strict";e("9d88")},"500d":function(t,i,e){"use strict";e.r(i);var n=function(){var t=this,i=t.$createElement,e=t._self._c||i;return t.configData?e("div",{staticClass:"upload_img"},[e("div",{staticClass:"header"},[t._v(t._s(t.configData.header))]),t._v(" "),e("div",{staticClass:"title"},[t._v(t._s(t.configData.title))]),t._v(" "),e("div",{staticClass:"box",on:{click:t.modalPicTap}},[t.configData.url?e("img",{attrs:{src:t.configData.url,alt:""}}):e("div",{staticClass:"upload-box"},[e("i",{staticClass:"iconfont iconjiahao",staticStyle:{"font-size":"30px"}}),t._v("添加图片")]),t._v(" "),t.configData.url&&t.configData.type?e("span",{staticClass:"iconfont-diy icondel_1",on:{click:function(i){return i.stopPropagation(),t.bindDelete(i)}}}):t._e()]),t._v(" "),e("div",[e("el-dialog",{attrs:{visible:t.modalPic,width:"950px",title:t.configData.header?t.configData.header:"上传图片"},on:{"update:visible":function(i){t.modalPic=i}}},[t.modalPic?e("uploadPictures",{attrs:{isChoice:t.isChoice,gridBtn:t.gridBtn,gridPic:t.gridPic},on:{getPic:t.getPic}}):t._e()],1)],1)]):t._e()},a=[],o=e("5530"),s=e("2f62"),c=e("b5b8"),l={name:"c_upload_img",components:{uploadPictures:c["default"]},computed:Object(o["a"])({},Object(s["d"])({tabVal:function(t){return t.admin.mobildConfig.searchConfig.data.tabVal}})),props:{configObj:{type:Object},configNme:{type:String}},data:function(){return{defaultList:[{name:"a42bdcc1178e62b4694c830f028db5c0",url:"https://o5wwk8baw.qnssl.com/a42bdcc1178e62b4694c830f028db5c0/avatar"},{name:"bc7521e033abdd1e92222d733590f104",url:"https://o5wwk8baw.qnssl.com/bc7521e033abdd1e92222d733590f104/avatar"}],defaults:{},configData:{},modalPic:!1,isChoice:"单选",gridBtn:{xl:4,lg:8,md:8,sm:8,xs:8},gridPic:{xl:6,lg:8,md:12,sm:12,xs:12},activeIndex:0}},watch:{configObj:{handler:function(t,i){this.defaults=t,this.configData=t[this.configNme]},immediate:!0,deep:!0}},created:function(){this.defaults=this.configObj,this.configData=this.configObj[this.configNme]},methods:{bindDelete:function(){this.configData.url=""},modalPicTap:function(){var t=this;this.$modalUpload((function(i){t.configData.url=i[0]}))},addCustomDialog:function(t){window.UE.registerUI("test-dialog",(function(t,i){var e=new window.UE.ui.Dialog({iframeUrl:"/admin/widget.images/index.html?fodder=dialog",editor:t,name:i,title:"上传图片",cssRules:"width:1200px;height:500px;padding:20px;"});this.dialog=e;var n=new window.UE.ui.Button({name:"dialog-button",title:"上传图片",cssRules:"background-image: url(../../../assets/images/icons.png);background-position: -726px -77px;",onclick:function(){e.render(),e.open()}});return n}),37)},getPic:function(t){var i=this;this.$nextTick((function(){i.configData.url=t.att_dir,i.modalPic=!1}))}}},r=l,f=(e("c5f3"),e("2877")),d=Object(f["a"])(r,n,a,!1,null,"279b1e0a",null);i["default"]=d.exports},5025:function(t,i,e){"use strict";e("d19c")},"504e":function(t,i,e){},5212:function(t,i,e){"use strict";e("033f")},5413:function(t,i,e){"use strict";e.r(i);var n=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"slider-box"},[e("div",{staticClass:"c_row-item"},[t.configData.title?e("el-col",{staticClass:"label",attrs:{span:4}},[t._v("\n "+t._s(t.configData.title)+"\n ")]):t._e(),t._v(" "),e("el-col",{staticClass:"slider-box",attrs:{span:19}},[e("Select",{on:{change:t.sliderChange},model:{value:t.configData.activeValue,callback:function(i){t.$set(t.configData,"activeValue",i)},expression:"configData.activeValue"}},t._l(t.configData.list,(function(i,n){return e("Option",{key:n,attrs:{value:i.activeValue}},[t._v(t._s(i.title))])})),1)],1)],1)])},a=[],o={name:"c_select",props:{configObj:{type:Object},configNme:{type:String},number:{type:null}},data:function(){return{defaults:{},configData:{},timeStamp:""}},mounted:function(){var t=this;this.$nextTick((function(){t.defaults=t.configObj,t.configData=t.configObj[t.configNme]}))},watch:{configObj:{handler:function(t,i){this.defaults=t,this.configData=t[this.configNme]},deep:!0},number:function(t){this.timeStamp=t}},methods:{sliderChange:function(t){var i=window.localStorage;this.configData.activeValue=t||i.getItem(this.timeStamp),this.$emit("getConfig",{name:"select",values:t})}}},s=o,c=(e("957c3"),e("2877")),l=Object(c["a"])(s,n,a,!1,null,"a9cfff72",null);i["default"]=l.exports},5564:function(t,i,e){"use strict";e.r(i);var n=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"mobile-config"},[t._l(t.rCom,(function(i,n){return e("div",{key:n},[e(i.components.name,{key:n,ref:"childData",refInFor:!0,tag:"component",attrs:{configObj:t.configObj,configNme:i.configNme,index:t.activeIndex,num:i.num},on:{getConfig:t.getConfig}})],1)})),t._v(" "),e("rightBtn",{attrs:{activeIndex:t.activeIndex,configObj:t.configObj}})],2)},a=[],o=e("5530"),s=e("fd0b"),c=e("befa"),l=(e("2f62"),{name:"c_auxiliary_box",componentsName:"auxiliary_box",components:Object(o["a"])(Object(o["a"])({},s["a"]),{},{rightBtn:c["a"]}),props:{activeIndex:{type:null},num:{type:null},index:{type:null}},data:function(){return{configObj:{},rCom:[{components:s["a"].c_bg_color,configNme:"bgColor"},{components:s["a"].c_slider,configNme:"heightConfig"}]}},watch:{num:function(t){var i=JSON.parse(JSON.stringify(this.$store.state.mobildConfig.defaultArray[t]));this.configObj=i},configObj:{handler:function(t,i){this.$store.commit("mobildConfig/UPDATEARR",{num:this.num,val:t})},deep:!0}},mounted:function(){var t=this;this.$nextTick((function(){var i=JSON.parse(JSON.stringify(t.$store.state.mobildConfig.defaultArray[t.num]));t.configObj=i}))},methods:{getConfig:function(t){}}}),r=l,f=e("2877"),d=Object(f["a"])(r,n,a,!1,null,"d0bf3db4",null);i["default"]=d.exports},"556c":function(t,i,e){"use strict";e("0a0b")},"563a":function(t,i,e){"use strict";e("d806")},5656:function(t,i,e){},"58f1":function(t,i,e){"use strict";e.r(i);var n=function(){var t=this,i=t.$createElement,e=t._self._c||i;return t.configData?e("div",{staticClass:"txt_tab"},[e("div",{staticClass:"c_row-item"},[e("el-row",{staticClass:"c_label"},[t._v("\n "+t._s(t.configData.title)+"\n "),e("span",[t._v(t._s(t.configData.list[t.configData.type].val))])]),t._v(" "),e("el-row",{staticClass:"color-box"},[e("el-radio-group",{attrs:{type:"button"},on:{change:function(i){return t.radioChange(i)}},model:{value:t.configData.type,callback:function(i){t.$set(t.configData,"type",i)},expression:"configData.type"}},t._l(t.configData.list,(function(i,n){return e("el-radio",{key:n,attrs:{label:n}},[i.icon?e("span",{staticClass:"iconfont-diy",class:i.icon}):e("span",[t._v(t._s(i.val))])])})),1)],1)],1)]):t._e()},a=[],o=(e("7f7f"),{name:"c_txt_tab",props:{configObj:{type:Object},configNme:{type:String}},data:function(){return{defaults:{},configData:{}}},created:function(){this.defaults=this.configObj,this.configData=this.configObj[this.configNme]},watch:{configObj:{handler:function(t,i){this.defaults=t,this.configData=t[this.configNme]},immediate:!0,deep:!0}},methods:{radioChange:function(t){"itemSstyle"!==this.configData.name&&"bgStyle"!==this.configData.name&&"conStyle"!==this.configData.name&&this.$emit("getConfig",{name:"radio",values:t})}}}),s=o,c=(e("a938"),e("2877")),l=Object(c["a"])(s,n,a,!1,null,"42995300",null);i["default"]=l.exports},"5b5b":function(t,i){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAARAAAABICAMAAAAJfloJAAAAxlBMVEUAAAAoKCgoKCgoKCgoKCgoKCggICAnJycnJycnJycoKCglJSUoKCgoKCgnJycnJycnJycnJycoKCgmJiYoKCgnJycnJycoKCgnJyd8AP8nJyd7AP8hISEAAAB8AP8nJycnJycnJycmJiZ7AP8jIyN7AP8mJiYhISF7AP98AP98AP97AP96AP98AP97AP8oKCgnJyd8AP97AP97AP98AP8kJCR8AP90AP8nJyd7AP97AP8mJiZ7AP97AP+AAP97AP8oKCh8AP8612LVAAAAQHRSTlMAwIBAfz8QqPGQoDAgYI/vcNDNUOCXkd+wwM+KBwHl6aN0a2kcfEgX7aRXTCLbyMavll9ENSUaC9e8rVorKBKqeaPYbgAABepJREFUeNrtm31f0zAQgC8Ji311nUU3QEVRwTcERfFds+//pfwxtrs2aeklHTj49fnLdrRJnuYul27CwMDAwMCNc3/FAbA5vF+5aqM46N8vs0IAG2l8r0pHS1Lw5fER8BHYrw0XgleMtY+L9Kc8Mc/XKsS0IW9UiI7MkgQuORIdnEyX1xR3UUjlkgwWvDRcaIZkW21kt05Ihlck4UKUaUPdOiGQUBYZhFyQUsuDkAUTs2TqJ2T/57UI2ZZLUMgyRRnsZ0ueglzYTA0yFlcQQ4Wces8Tsv9NPDxQGoAlRJkruWcLEfYJ2XULRfMhAPcxaSutWjzAjx9CjTsrBGY4q9hC+NxGIZWYGYTUYyYehNSXgN1ByIJMrbgGIam4IMJVVeAxW4hWF1DuXxwWrpBcENgMNWyz7V2k9BfiTkKJx3whl1gCFB0zmqXbEPJ2CMEC6j8J+bizZG/5Vzb7eNUDaVOuXwixDiFTgxRMIS/mKz4tXv0YH575CylvVIghFDdknq6EHAcK0aMryeoC1MYLeTVf8d5fCPWsYzzmvwtJuULeo5AXd05IZgj+u4EPKyE7GyGEtv/9haggIRQzfzZBSHgd0jFk9qcUM5+8l11/Ibq/EGALiQ2S8IXQOvPXuzDzFwI3JMSty/hC3qyEvA4SklHQUxog1JqEZAFCxgZRHkKoNvvVp3RP26cn9T4KFkK3YAvRhvDJML9o4e0jhLafZbsQ0V+IYAvJDSK8Ui4K2esjZEaJ8zqElP5CEoNIHyGUVb/3EEIBO7niWcXBQiTegi1kbJDURwiVZk97CMlYCV12CtkdLWkTIrlCUoNs+1UpbzBmeggp6Glc0XYOgaU7RWTJFVIYJPYTsodCzgHgkFmYWalzl55GunVJQ35RwUJov8wVsmsQFSrkMwA8MjySlogp8N+lWyHpUCGUEIApJDXIxLOwp93MWbCQorrGbONfOFVmsBAsQ7hCEoPkwULehQqh+TmjPcTYqZBEsBBauJlCtEEiHSzkbagQipiy0llldz4OFlLgIVNIYd0hKIeEC0nqC1xUH3+O+aVbyEQtqQ8nQeE8IXrqTBC+kI+9Q0aPMVyrq8rU3oanEFiYUUhqnhBpTZDAOuSs2nujmoiahBRWBVTUBQhMiKFCNC0YLCHZmIoy7S3kQ8uy+wQaaBQytfK5qucMTLjBQkrMQjwhiV2DhO1l5udhQnLn+ZlqzKSoK1gIBR1LiDLIDPyFzBEIEzJtzRFZLaCyYCFTCklXCC+j8oX8Rh9Pw4TkbvqKq2uCwGZDhaR4wBJyagWMp5C3KOR7kBA9ddNXSSFPCTEPEpKMSvQbaY4Qae3qfIVQGbIXJETWe6ZHo3zrtPITnBynu6cQOjXFNjuEOAkkRMgOfQ8RIIQGNzYNaPpcsoVko2JLGERgTGYMISn1Y6JDhHydI79DhbRTUlWfsYSMhSNWTPGBdwhxfIQIeYc+Xlvf7sAahMTYroR2IUK034SmXpR1CKn7iFIIEkKF+xuOEOMnROgxZtx2IYZFAR1CmD7cF0iz5rLsLUPIkWncubZDC3BfIcLezbpCcm68YK53Z+/nOfKHIUS6NxG80QQKmSTN72pPXSE6MWwfestUUI2L7g/oFJI9MkhpDY5+/RhLqdTEIBj+iB6zhAipaCrkbePBcNl1tuIuufXfJNxy9pj2/rYQYfPNVMiwI2pB2jiV7NGMLiip61vNQiIhc0U3cnd1xHZD+sg5mbS5fDuz1hj2+5ATuBolF9gtGotD62wkZrJQ2hlCAm1CYuf8JAWuEHf6/nC+x4wNi0NgYScQuy+wYBFmBc6yGtJKCaplNNYrNg8hJRDnc+S9l5DnwMMOUeeFaScSfTQKyfE8Tg8/IZFq3sfsgE/IHAATuyAwNWbQjSQfrpAor5+PCobeKlGc1cr219ZPIVgzZD/5AlzsAskKfwYSfThCRGHNnFhDB7moIpWGlt/KHH+FJV9UByl4gD4cIZM4Aw5ypoGDMkkGmw/6CIY7G4+O4DZwCAMDA+vlH3+tPTTLcnruAAAAAElFTkSuQmCC"},"5ffd":function(t,i,e){},"608a":function(t,i,e){},"60e2":function(t,i,e){"use strict";e.r(i);var n=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"mobile-page"},[t.isUpdate?e("div",[e("el-divider"),t._v(" "),e("div",{staticClass:"title"},[t._v("布局")]),t._v(" "),e("div",{staticClass:"tip"},[t._v("选定布局区域,在下方添加图片,建议添加比例一致的图片")]),t._v(" "),e("div",{staticClass:"advert"},[t._l(t.configData.picList,(function(i,n){return 0===t.style?e("div",{key:n,staticClass:"advertItem01 acea-row"},[i.image?e("img",{attrs:{src:i.image}}):e("div",{staticClass:"empty-box"},[t._v("尺寸不限")])]):t._e()})),t._v(" "),1===t.style?e("div",{staticClass:"advertItem02 acea-row"},t._l(t.configData.picList,(function(i,n){return e("div",{staticClass:"item",class:t.currentIndex===n?"on":"",on:{click:function(i){return t.currentTab(n,t.configData)}}},[i.image?e("img",{attrs:{src:i.image}}):e("div",{staticClass:"empty-box"},[t._m(0,!0)])])})),0):t._e(),t._v(" "),2===t.style?e("div",{staticClass:"advertItem02 advertItem03 acea-row"},t._l(t.configData.picList,(function(i,n){return e("div",{staticClass:"item",class:t.currentIndex===n?"on":"",on:{click:function(i){return t.currentTab(n,t.configData)}}},[i.image?e("img",{attrs:{src:i.image}}):e("div",{staticClass:"empty-box"},[t._m(1,!0)])])})),0):t._e(),t._v(" "),3===t.style?e("div",{staticClass:"advertItem04 acea-row"},[e("div",{staticClass:"item",class:0===t.currentIndex?"on":"",on:{click:function(i){return t.currentTab(0,t.configData)}}},[t.configData.picList[0].image?e("img",{attrs:{src:t.configData.picList[0].image}}):e("div",{staticClass:"empty-box"},[t._v("375*375像素或同比例")])]),t._v(" "),e("div",{staticClass:"item"},[e("div",{staticClass:"pic",class:1===t.currentIndex?"on":"",on:{click:function(i){return t.currentTab(1,t.configData)}}},[t.configData.picList[1].image?e("img",{attrs:{src:t.configData.picList[1].image}}):e("div",{staticClass:"empty-box"},[t._v("375*188像素或同比例")])]),t._v(" "),e("div",{staticClass:"pic",class:2===t.currentIndex?"on":"",on:{click:function(i){return t.currentTab(2,t.configData)}}},[t.configData.picList[2].image?e("img",{attrs:{src:t.configData.picList[2].image}}):e("div",{staticClass:"empty-box"},[t._v("375*188像素或同比例")])])])]):t._e(),t._v(" "),4===t.style?e("div",{staticClass:"advertItem02 advertItem05 acea-row"},t._l(t.configData.picList,(function(i,n){return e("div",{staticClass:"item",class:t.currentIndex===n?"on":"",on:{click:function(i){return t.currentTab(n,t.configData)}}},[i.image?e("img",{attrs:{src:i.image}}):e("div",{staticClass:"empty-box"},[t._v("宽188像素高度不限")])])})),0):t._e(),t._v(" "),5===t.style?e("div",{staticClass:"advertItem06 acea-row"},t._l(t.configData.picList,(function(i,n){return e("div",{staticClass:"item",class:t.currentIndex===n?"on":"",on:{click:function(i){return t.currentTab(n,t.configData)}}},[i.image?e("img",{attrs:{src:i.image}}):e("div",{staticClass:"empty-box"},[t._v("375*188像素或同比例")])])})),0):t._e()],2)],1):t._e()])},a=[function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",[e("div",[t._v("宽375像素")]),t._v(" "),e("div",[t._v("高度不限")])])},function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",[e("div",[t._v("宽250像素")]),t._v(" "),e("div",[t._v("高度不限")])])}],o=(e("b54a"),{name:"c_pictrue",props:{configObj:{type:Object},configNme:{type:String}},data:function(){return{defaults:{},configData:{},style:0,isUpdate:!1,currentIndex:0,arrayObj:{image:"",link:""}}},mounted:function(){var t=this;this.$nextTick((function(){t.defaults=t.configObj,t.configObj.hasOwnProperty("timestamp")?t.isUpdate=!0:t.isUpdate=!1,t.$set(t,"configData",t.configObj[t.configNme])}))},watch:{configObj:{handler:function(t,i){this.defaults=t,this.$set(this,"configData",t[this.configNme]),this.style=t.tabConfig.tabVal,this.isUpdate=!0,this.$set(this,"isUpdate",!0)},deep:!0},"configObj.tabConfig.tabVal":{handler:function(t,i){this.count=this.defaults.tabConfig.tabList[t].count,this.picArrayConcat(this.count),this.configData.picList.splice(t+1),this.currentIndex=0;var e=this.defaults.menuConfig.list[0];this.configData.picList[0]&&(e.img=this.configData.picList[0].image,e.info[0].value=this.configData.picList[0].link)},deep:!0}},methods:{currentTab:function(t,i){if(this.currentIndex=t,this.configData.tabVal=t,this.defaults.menuConfig.isCube){var e=this.defaults.menuConfig.list[0];i.picList[t]&&i.picList[t].image?(e.img=i.picList[t].image,e.info[0].value=i.picList[t].link):(e.img="",e.info[0].value="")}},picArrayConcat:function(t){for(var i=this.configData.picList.length;i\n
\n ');return i.call(this,n,t)}return Object(b["a"])(e,[{key:"clickHandler",value:function(){x.$emit("Video")}},{key:"tryChangeActive",value:function(){this.active()}}]),e}(w)),A=(h.a.$,h.a.BtnMenu),O=(h.a.DropListMenu,h.a.PanelMenu,h.a.DropList,h.a.Panel,h.a.Tooltip,function(t){Object(C["a"])(e,t);var i=Object(_["a"])(e);function e(t){Object(v["a"])(this,e),t;var n=h.a.$('
\n
HTML
\n
');return i.call(this,n,t)}return Object(b["a"])(e,[{key:"clickHandler",value:function(){x.$emit("Html")}},{key:"tryChangeActive",value:function(){this.active()}}]),e}(A)),k=e("b5b8"),j=e("4553"),D={name:"Index",components:{uploadPictures:k["default"],uploadVideo:j["default"],monaco:g},props:{content:{type:String,default:""}},data:function(){return{monacoBox:!1,value:"",modalPic:!1,isChoice:"多选",picTit:"danFrom",img:"",modalVideo:!1,editor:null,uploadSize:2,video:"",newHtml:""}},computed:{initEditor:function(){return this.content&&this.editor}},watch:{initEditor:function(t){t&&this.editor.txt.html(this.content)}},created:function(){},mounted:function(){var t=this;this.createEditor(),x.$on("Video",(function(i){t.getvideoint()})),x.$on("Html",(function(i){t.getHtmlint()}))},methods:{changeValue:function(t){this.newHtml=t,this.$emit("editorContent",t),this.$emit("input",t)},getPic:function(t){var i=this;i.img=t.att_dir,i.modalPic=!1,this.editor.cmd.do("insertHTML",''))},getimg:function(){var t=this;t.isChoice="多选",t.$modalUpload((function(i){i.map((function(i){t.editor.cmd.do("insertHTML",''))}))}))},getvideoint:function(){this.modalVideo=!0},getHtmlint:function(){this.monacoBox=!this.monacoBox,this.value=this.newHtml,this.monacoBox||this.editor.txt.html(this.newHtml)},getPicD:function(t){var i=this,e=this;e.modalPic=!1,t.map((function(t){i.editor.cmd.do("insertHTML",''))}))},getvideo:function(t){var i=this;i.modalVideo=!1,this.video=t,this.editor.cmd.do("insertHTML",'