Changeset 3386524
- Timestamp:
- 10/29/2025 03:12:05 PM (5 months ago)
- Location:
- ry-woocommerce-tools/trunk
- Files:
-
- 17 edited
-
includes/update.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
ry-woocommerce-tools.php (modified) (2 diffs)
-
woocommerce/abstracts/abstract-wc-payment-gateway.php (modified) (1 diff)
-
woocommerce/gateways/ecpay/gateway-atm.php (modified) (1 diff)
-
woocommerce/gateways/ecpay/gateway-barcode.php (modified) (1 diff)
-
woocommerce/gateways/ecpay/gateway-credit-installment.php (modified) (1 diff)
-
woocommerce/gateways/ecpay/gateway-cvs.php (modified) (1 diff)
-
woocommerce/gateways/newebpay/gateway-atm.php (modified) (1 diff)
-
woocommerce/gateways/newebpay/gateway-barcode.php (modified) (1 diff)
-
woocommerce/gateways/newebpay/gateway-credit-installment.php (modified) (2 diffs)
-
woocommerce/gateways/newebpay/gateway-cvs.php (modified) (1 diff)
-
woocommerce/gateways/smilepay/gateway-atm.php (modified) (1 diff)
-
woocommerce/gateways/smilepay/gateway-barcode.php (modified) (1 diff)
-
woocommerce/gateways/smilepay/gateway-cvs-711.php (modified) (1 diff)
-
woocommerce/gateways/smilepay/gateway-cvs-fami.php (modified) (1 diff)
-
woocommerce/gateways/smilepay/gateway-webatm.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
ry-woocommerce-tools/trunk/includes/update.php
r3386501 r3386524 117 117 } 118 118 119 if (version_compare($now_version, '3.5.1 4', '<')) {120 RY_WT::update_option('version', '3.5.1 4', true);119 if (version_compare($now_version, '3.5.15', '<')) { 120 RY_WT::update_option('version', '3.5.15', true); 121 121 } 122 122 } -
ry-woocommerce-tools/trunk/readme.txt
r3386501 r3386524 6 6 Requires PHP: 8.0 7 7 Tested up to: 6.8 8 Stable tag: 3.5.1 48 Stable tag: 3.5.15 9 9 License: GPLv3 10 10 License URI: https://www.gnu.org/licenses/gpl-3.0.txt … … 41 41 == Changelog == 42 42 43 = 3.5.1 4- 2025-10-29 =43 = 3.5.15 - 2025-10-29 = 44 44 * 修正 - 在部份情況下可能金流設定可能出現 PHP 錯誤。 45 45 -
ry-woocommerce-tools/trunk/ry-woocommerce-tools.php
r3386501 r3386524 5 5 * Plugin URI: https://ry-plugin.com/ry-woocommerce-tools 6 6 * Description: WooCommerce paymet and shipping tools 7 * Version: 3.5.1 47 * Version: 3.5.15 8 8 * Requires at least: 6.6 9 9 * Requires PHP: 8.0 … … 22 22 function_exists('plugin_dir_url') or exit('No direct script access allowed'); 23 23 24 define('RY_WT_VERSION', '3.5.1 4');24 define('RY_WT_VERSION', '3.5.15'); 25 25 define('RY_WT_PLUGIN_URL', plugin_dir_url(__FILE__)); 26 26 define('RY_WT_PLUGIN_DIR', plugin_dir_path(__FILE__)); -
ry-woocommerce-tools/trunk/woocommerce/abstracts/abstract-wc-payment-gateway.php
r3386501 r3386524 15 15 $this->init_settings(); 16 16 17 $this->title = $this->settings['title'] ?: $this->method_title; 18 $this->description = $this->settings['description'] ?: ''; 19 $this->min_amount = (int) ($this->settings['min_amount'] ?: 0); 20 $this->max_amount = (int) ($this->settings['max_amount'] ?: 0); 17 $this->title = $this->settings['title'] ?? ''; 18 if (empty($this->title)) { 19 $this->title = $this->method_title; 20 } 21 $this->description = $this->settings['description'] ?? ''; 22 $this->min_amount = (int) ($this->settings['min_amount'] ?? 0); 23 $this->max_amount = (int) ($this->settings['max_amount'] ?? 0); 21 24 22 25 add_action('woocommerce_admin_order_data_after_billing_address', [$this, 'admin_payment_info']); -
ry-woocommerce-tools/trunk/woocommerce/gateways/ecpay/gateway-atm.php
r3386206 r3386524 22 22 parent::__construct(); 23 23 24 $this->expire_date = (int) ($this->settings['expire_date'] ? :3);24 $this->expire_date = (int) ($this->settings['expire_date'] ?? 3); 25 25 26 26 add_filter('ry_admin_payment_info-ry_ecpay_atm', [$this, 'show_payment_info'], 10, 2); -
ry-woocommerce-tools/trunk/woocommerce/gateways/ecpay/gateway-barcode.php
r3386206 r3386524 22 22 parent::__construct(); 23 23 24 $this->expire_date = (int) ($this->settings['expire_date'] ? :7);24 $this->expire_date = (int) ($this->settings['expire_date'] ?? 7); 25 25 26 26 add_filter('ry_admin_payment_info-ry_ecpay_barcode', [$this, 'show_payment_info'], 10, 2); -
ry-woocommerce-tools/trunk/woocommerce/gateways/ecpay/gateway-credit-installment.php
r3386206 r3386524 24 24 parent::__construct(); 25 25 26 $this->number_of_periods = $this->settings['number_of_periods'] ?: []; 26 $this->number_of_periods = (array) ($this->settings['number_of_periods'] ?? []); 27 $this->number_of_periods = array_filter(array_map('intval', $this->number_of_periods)); 27 28 } 28 29 -
ry-woocommerce-tools/trunk/woocommerce/gateways/ecpay/gateway-cvs.php
r3386206 r3386524 22 22 parent::__construct(); 23 23 24 $this->expire_date = (int) ($this->settings['expire_date'] ? :10080);24 $this->expire_date = (int) ($this->settings['expire_date'] ?? 10080); 25 25 26 26 add_filter('ry_admin_payment_info-ry_ecpay_cvs', [$this, 'show_payment_info'], 10, 2); -
ry-woocommerce-tools/trunk/woocommerce/gateways/newebpay/gateway-atm.php
r3386206 r3386524 18 18 parent::__construct(); 19 19 20 $this->expire_date = (int) ($this->settings['expire_date'] ? :7);20 $this->expire_date = (int) ($this->settings['expire_date'] ?? 7); 21 21 22 22 add_filter('ry_admin_payment_info-ry_newebpay_atm', [$this, 'show_payment_info'], 10, 2); -
ry-woocommerce-tools/trunk/woocommerce/gateways/newebpay/gateway-barcode.php
r3386206 r3386524 22 22 parent::__construct(); 23 23 24 $this->expire_date = (int) ($this->settings['expire_date'] ? :7);24 $this->expire_date = (int) ($this->settings['expire_date'] ?? 7); 25 25 26 26 add_filter('ry_admin_payment_info-ry_newebpay_barcode', [$this, 'show_payment_info'], 10, 2); -
ry-woocommerce-tools/trunk/woocommerce/gateways/newebpay/gateway-credit-installment.php
r3386206 r3386524 5 5 public const Payment_Type = 'InstFlag'; 6 6 7 public $number_of_periods = '';7 public $number_of_periods = []; 8 8 9 9 public function __construct() … … 20 20 parent::__construct(); 21 21 22 $this->number_of_periods = $this->settings['number_of_periods'] ?: []; 22 $this->number_of_periods = (array) ($this->settings['number_of_periods'] ?? []); 23 $this->number_of_periods = array_filter(array_map('intval', $this->number_of_periods)); 23 24 } 24 25 -
ry-woocommerce-tools/trunk/woocommerce/gateways/newebpay/gateway-cvs.php
r3386206 r3386524 22 22 parent::__construct(); 23 23 24 $this->expire_date = (int) ($this->settings['expire_date'] ? :7);24 $this->expire_date = (int) ($this->settings['expire_date'] ?? 7); 25 25 26 26 add_filter('ry_admin_payment_info-ry_newebpay_cvs', [$this, 'show_payment_info'], 10, 2); -
ry-woocommerce-tools/trunk/woocommerce/gateways/smilepay/gateway-atm.php
r3386206 r3386524 23 23 parent::__construct(); 24 24 25 $this->expire_date = (int) ($this->settings['expire_date'] ? :3);25 $this->expire_date = (int) ($this->settings['expire_date'] ?? 3); 26 26 27 27 add_filter('ry_admin_payment_info-ry_smilepay_atm', [$this, 'show_payment_info'], 10, 2); -
ry-woocommerce-tools/trunk/woocommerce/gateways/smilepay/gateway-barcode.php
r3386206 r3386524 23 23 parent::__construct(); 24 24 25 $this->expire_date = (int) ($this->settings['expire_date'] ? :7);25 $this->expire_date = (int) ($this->settings['expire_date'] ?? 7); 26 26 27 27 add_filter('ry_admin_payment_info-ry_smilepay_barcode', [$this, 'show_payment_info'], 10, 2); -
ry-woocommerce-tools/trunk/woocommerce/gateways/smilepay/gateway-cvs-711.php
r3386206 r3386524 23 23 parent::__construct(); 24 24 25 $this->expire_date = (int) ($this->settings['expire_date'] ? :4320);25 $this->expire_date = (int) ($this->settings['expire_date'] ?? 4320); 26 26 27 27 add_filter('ry_admin_payment_info-ry_smilepay_cvs_711', [$this, 'show_payment_info'], 10, 2); -
ry-woocommerce-tools/trunk/woocommerce/gateways/smilepay/gateway-cvs-fami.php
r3386206 r3386524 23 23 parent::__construct(); 24 24 25 $this->expire_date = (int) ($this->settings['expire_date'] ? :4320);25 $this->expire_date = (int) ($this->settings['expire_date'] ?? 4320); 26 26 27 27 add_filter('ry_admin_payment_info-ry_smilepay_cvs_fami', [$this, 'show_payment_info'], 10, 2); -
ry-woocommerce-tools/trunk/woocommerce/gateways/smilepay/gateway-webatm.php
r3386206 r3386524 22 22 parent::__construct(); 23 23 24 $this->expire_date = (int) ($this->settings['expire_date'] ? :7);24 $this->expire_date = (int) ($this->settings['expire_date'] ?? 7); 25 25 } 26 26 }
Note: See TracChangeset
for help on using the changeset viewer.