From 0c3185691a4bf621871ca9ef9220aebc80b510f8 Mon Sep 17 00:00:00 2001 From: Edward Yang Date: Thu, 11 Aug 2022 14:37:31 +0800 Subject: [PATCH] key and secret must be 81 --- plugins/Paypal/columns.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/plugins/Paypal/columns.php b/plugins/Paypal/columns.php index cdb042a6..bd7188ab 100644 --- a/plugins/Paypal/columns.php +++ b/plugins/Paypal/columns.php @@ -15,14 +15,15 @@ return [ 'label' => 'Sandbox Client ID', 'type' => 'string', 'required' => true, - 'rules' => 'required|min:3|max:5', + 'rules' => 'required|size:80', 'description' => '沙盒模式 Client ID', ], [ - 'name' => 'sandbox_Secret', + 'name' => 'sandbox_secret', 'label' => 'Sandbox Secret', 'type' => 'string', 'required' => true, + 'rules' => 'required|size:80', 'description' => '沙盒模式 Secret', ], [ @@ -30,13 +31,15 @@ return [ 'label' => 'Live Client ID', 'type' => 'string', 'required' => true, + 'rules' => 'required|size:80', 'description' => '正式环境 Client ID', ], [ - 'name' => 'live_Secret', + 'name' => 'live_secret', 'label' => 'Live Secret', 'type' => 'string', 'required' => true, + 'rules' => 'required|size:80', 'description' => '正式环境 Secret', ], [