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