'require', 'app_secret' => 'require',//防止key值重复 ]; protected $message = [ 'app_id.require' => 'validate_wechat.appid_require', 'app_secret.require' => 'validate_wechat.appsecret_require', ]; protected $scene = [ 'set' => ['app_id', 'app_secret'], ]; }