0], // 业务验证(按顺序执行) [ 'app_id', new AppExistenceValidator($this, ['app_secret', 'app']), 'msg' => '应用不存在或密钥错误' ], [ 'app_id', new AppStatusValidator($this, ['app']), 'msg' => '应用状态异常' ], ]; } /** * 默认值 */ public function default(): array { return [ 'user_id' => 0, ]; } }