'require', 'uid' => 'require', ]; protected $message = [ 'token.require' => '缺少必要参数token', 'uid.require' => '缺少必要参数uid', ]; //UserToken验证 public function sceneUserToken() { return $this->only(['uid', 'token']); } //JwtToken验证 public function sceneJwtToken() { return $this->only(['token']); } }