会员支付管理后台-用于提供会员管理小程序支付的api接口,与后台数据管理展示
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

42 lines
2.1 KiB

<?php
// +----------------------------------------------------------------------
// | Niucloud-admin 企业快速开发的多应用管理平台
// +----------------------------------------------------------------------
// | 官方网址:https://www.niucloud.com
// +----------------------------------------------------------------------
// | niucloud团队 版权所有 开源版本可自由商用
// +----------------------------------------------------------------------
// | Author: Niucloud Team
// +----------------------------------------------------------------------
namespace addon\hygl\app\validate\config;
use core\base\BaseValidate;
/**
* 配置项验证器
* Class Config
* @package addon\hygl\app\validate\config
*/
class Config extends BaseValidate
{
protected $rule = [
'we_chat_pay_notify_url' => 'require',
// 'alipay_notify_url' => 'require',
'we_chat_pay_mch_secret_cert' => 'require',
'we_chat_pay_mch_public_cert_path' => 'require',
];
protected $message = [
'we_chat_pay_notify_url.require' => ['common_validate.require', ['we_chat_pay_notify_url']],
// 'alipay_notify_url.require' => ['common_validate.require', ['alipay_notify_url']],
'we_chat_pay_mch_secret_cert.require' => ['common_validate.require', ['we_chat_pay_mch_secret_cert']],
'we_chat_pay_mch_public_cert_path.require' => ['common_validate.require', ['we_chat_pay_mch_public_cert_path']],
];
protected $scene = [
"add" => ['we_chat_pay_appid', 'we_chat_pay_app_id', 'we_chat_pay_miniapp_id', 'we_chat_pay_mch_id', 'we_chat_pay_key', 'we_chat_pay_miniapp_secret', 'we_chat_pay_notify_url', 'alipay_appId', 'alipay_rsa_private_key', 'alipay_public_key',
'alipay_notify_url'],
"edit" => ['we_chat_pay_appid', 'we_chat_pay_app_id', 'we_chat_pay_miniapp_id', 'we_chat_pay_mch_id', 'we_chat_pay_key', 'we_chat_pay_miniapp_secret', 'we_chat_pay_notify_url', 'alipay_appId', 'alipay_rsa_private_key', 'alipay_public_key', 'alipay_notify_url']
];
}