[ 'name' => get_lang('dict_pay.type_wechatpay'), 'key' => self::WECHATPAY, 'icon' => self::WECHATPAY_ICON, 'setting_component' => '/src/app/views/setting/components/pay-wechatpay.vue', 'encrypt_params' => [ 'mch_public_cert_path', 'mch_secret_cert', 'mch_secret_key', 'wechat_public_cert_path' ], ], // // 支付宝支付 // self::ALIPAY => [ // 'name' => get_lang('dict_pay.type_alipay'), // 'key' => self::ALIPAY, // 'icon' => self::ALIPAY_ICON, // 'setting_component' => '/src/app/views/setting/components/pay-alipay.vue', // 'encrypt_params' => [ 'app_secret_cert', 'app_public_cert_path', 'alipay_public_cert_path', 'alipay_root_cert_path' ], // ], // // 余额支付 // self::BALANCEPAY => [ // 'name' => get_lang('dict_pay.type_balancepay'), // 'key' => self::BALANCEPAY, // 'icon' => self::BALANCEPAY_ICON, // 'setting_component' => '', // 'encrypt_params' => [ 'secret_key' ], // ], // // 找朋友帮忙付 // self::FRIENDSPAY => [ // 'name' => get_lang('dict_pay.type_friendspay'), // 'key' => self::FRIENDSPAY, // 'icon' => self::FRIENDSPAY_ICON, // 'setting_component' => '/src/app/views/setting/components/pay-friendspay.vue', // 'encrypt_params' => [], // ], ]; $list = array_merge($list, ...event('PayType')); if (!empty($types)) { foreach ($list as $k => $v) { if (!in_array($k, $types)) { unset($list[ $k ]); } } } return $list; } /** * 获取状态 * @return array */ public static function getStatus() { return [ self::STATUS_WAIT => get_lang('dict_pay.status_wait'), self::STATUS_ING => get_lang('dict_pay.status_ing'), self::STATUS_FINISH => get_lang('dict_pay.status_finish'), self::STATUS_CANCLE => get_lang('dict_pay.status_cancle'), self::STATUS_AUDIT => get_lang('dict_pay.status_audit') ]; } }