• 再请教一个问题为啥图片处理我加了文字水印的在社区里显示的图片里又没有水印呢

  • 已解决了

  • 我配置了参数了也不行啊😩

    image/resize,p_100/auto-orient,1/quality,q_90/watermark,text_VGVzdGVyaW8,color_ffffff,size_40,x_10,y_10
    

    前端死活不显示 url 直接访问又可以显示(复制下面的地址放浏览器地址栏直接访问是可以访问的) https://qcdn.testerio.com/user/avatar/2/1fc75f.jpg?x-oss-process=style/image

  • 我还是用本地存储算了😭 不会配那些图片处理样式

  • 如果可以的话,我想要个首页有最新文章、置顶文章、精华文章的 html。😃

    这样的

  • 嗯,再请教一个问题上传图片我配置了阿里云对象存储图片也成功上传到 oss 了但是在社区前端页面显示不出来 图片全路径:https://qcdn.testerio.com/user/avatar/2/07ff3f.png?x-oss-process=image%2Fresize%2Cw_192%2Ch_192%2Cm_fill

    我把路径后面的:x-oss-process=image%2Fresize%2Cw_192%2Ch_192%2Cm_fill 删掉去访问又能打开是还需要配置其他的吗

  • @lanzhiheng 首页的 html 有模板吗😅 我不会写

  • 已解决了把端口改成 587 就可以收到邮件了有点奇怪

  • 我换成这个配置有报这种说 25 端口无法访问啥的😭

    mailer_provider=smtp
    mailer_sender=noreply@mqtian.com
    mailer_options.address=smtp.exmail.qq.com
    mailer_options.port=465
    mailer_options.domain=qq.com
    mailer_options.user_name=noreply@mqtian.com
    mailer_options.password=XXXXXX
    mailer_options.authentication=plain
    mailer_options.enable_starttls_auto=true
    
    Network is unreachable - connect(2) for nil port 25
    
    --------------------------------------------------
    
    #<Errno::ENETUNREACH: Network is unreachable - connect(2) for nil port 25>
    
    
    /usr/local/lib/ruby/2.7.0/net/smtp.rb:539:in `initialize'
    /usr/local/lib/ruby/2.7.0/net/smtp.rb:539:in `open'
    /usr/local/lib/ruby/2.7.0/net/smtp.rb:539:in `tcp_socket'
    /usr/local/lib/ruby/2.7.0/net/smtp.rb:549:in `block in do_start'
    /usr/local/lib/ruby/2.7.0/timeout.rb:95:in `block in timeout'
    /usr/local/lib/ruby/2.7.0/timeout.rb:105:in `timeout'
    /usr/local/lib/ruby/2.7.0/net/smtp.rb:548:in `do_start'
    /usr/local/lib/ruby/2.7.0/net/smtp.rb:518:in `start'
    /usr/local/bundle/gems/mail-2.7.1/lib/mail/network/delivery_methods/smtp.rb:109:in `start_smtp_session'
    /usr/local/bundle/gems/mail-2.7.1/lib/mail/network/delivery_methods/smtp.rb:100:in `deliver!'
    /usr/local/bundle/gems/mail-2.7.1/lib/mail/message.rb:2159:in `do_delivery'
    /usr/local/bundle/gems/mail-2.7.1/lib/mail/message.rb:260:in `block in deliver'
    /usr/local/bundle/gems/actionmailer-6.1.0/lib/action_mailer/base.rb:559:in `block in deliver_mail'
    /usr/local/bundle/gems/activesupport-6.1.0/lib/active_support/notifications.rb:203:in `block in instrument'
    /usr/local/bundle/gems/activesupport-6.1.0/lib/active_support/notifications/instrumenter.rb:24:in `instrument'
    /usr/local/bundle/gems/activesupport-6.1.0/lib/active_support/notifications.rb:203:in `instrument'
    /usr/local/bundle/gems/actionmailer-6.1.0/lib/action_mailer/base.rb:557:in `deliver_mail'
    /usr/local/bundle/gems/mail-2.7.1/lib/mail/message.rb:260:in `deliver'
    /usr/local/bundle/gems/actionmailer-6.1.0/lib/action_mailer/message_delivery.rb:119:in `block in deliver_now'
    /usr/local/bundle/gems/actionmailer-6.1.0/lib/action_mailer/rescuable.rb:17:in `handle_exceptions'
    /usr/local/bundle/gems/actionmailer-6.1.0/lib/action_mailer/message_delivery.rb:118:in `deliver_now'
    /usr/local/bundle/gems/actionmailer-6.1.0/lib/action_mailer/mail_delivery_job.rb:23:in `perform'
    /usr/local/bundle/gems/activejob-6.1.0/lib/active_job/execution.rb:48:in `block in perform_now'
    /usr/local/bundle/gems/activesupport-6.1.0/lib/active_support/callbacks.rb:117:in `block in run_callbacks'
    /usr/local/bundle/gems/i18n-1.8.5/lib/i18n.rb:313:in `with_locale'
    /usr/local/bundle/gems/activejob-6.1.0/lib/active_job/translation.rb:9:in `block (2 levels) in <module:Translation>'
    /usr/local/bundle/gems/activesupport-6.1.0/lib/active_support/callbacks.rb:126:in `instance_exec'
    /usr/local/bundle/gems/activesupport-6.1.0/lib/active_support/callbacks.rb:126:in `block in run_callbacks'
    /usr/local/bundle/gems/activesupport-6.1.0/lib/active_support/core_ext/time/zones.rb:66:in `use_zone'
    /usr/local/bundle/gems/activejob-6.1.0/lib/active_job/timezones.rb:9:in `block (2 levels) in <module:Timezones>'
    /usr/local/bundle/gems/activesupport-6.1.0/lib/active_support/callbacks.rb:126:in `instance_exec'
    /usr/local/bundle/gems/activesupport-6.1.0/lib/active_support/callbacks.rb:126:in `block in run_callbacks'
    /usr/local/bundle/gems/activejob-6.1.0/lib/active_job/instrumentation.rb:21:in `block in instrument'
    /usr/local/bundle/gems/activesupport-6.1.0/lib/active_support/notifications.rb:203:in `block in instrument'
    /usr/local/bundle/gems/activesupport-6.1.0/lib/active_support/notifications/instrumenter.rb:24:in `instrument'
    /usr/local/bundle/gems/activesupport-6.1.0/lib/active_support/notifications.rb:203:in `instrument'
    /usr/local/bundle/gems/activejob-6.1.0/lib/active_job/instrumentation.rb:28:in `instrument'
    /usr/local/bundle/gems/activejob-6.1.0/lib/active_job/instrumentation.rb:14:in `block (2 levels) in <module:Instrumentation>'
    /usr/local/bundle/gems/activesupport-6.1.0/lib/active_support/callbacks.rb:126:in `instance_exec'
    /usr/local/bundle/gems/activesupport-6.1.0/lib/active_support/callbacks.rb:126:in `block in run_callbacks'
    /usr/local/bundle/gems/activejob-6.1.0/lib/active_job/logging.rb:22:in `block in tag_logger'
    /usr/local/bundle/gems/activesupport-6.1.0/lib/active_support/tagged_logging.rb:99:in `block in tagged'
    /usr/local/bundle/gems/activesupport-6.1.0/lib/active_support/tagged_logging.rb:37:in `tagged'
    /usr/local/bundle/gems/activesupport-6.1.0/lib/active_support/tagged_logging.rb:99:in `tagged'
    /usr/local/bundle/gems/activejob-6.1.0/lib/active_job/logging.rb:22:in `tag_logger'
    /usr/local/bundle/gems/activejob-6.1.0/lib/active_job/logging.rb:15:in `block (2 levels) in <module:Logging>'
    /usr/local/bundle/gems/activesupport-6.1.0/lib/active_support/callbacks.rb:126:in `instance_exec'
    /usr/local/bundle/gems/activesupport-6.1.0/lib/active_support/callbacks.rb:126:in `block in run_callbacks'
    /usr/local/bundle/gems/activesupport-6.1.0/lib/active_support/callbacks.rb:137:in `run_callbacks'
    /usr/local/bundle/gems/activejob-6.1.0/lib/active_job/execution.rb:47:in `perform_now'
    /usr/local/bundle/gems/activejob-6.1.0/lib/active_job/execution.rb:25:in `block in execute'
    /usr/local/bundle/gems/activesupport-6.1.0/lib/active_support/callbacks.rb:117:in `block in run_callbacks'
    /usr/local/bundle/gems/activejob-6.1.0/lib/active_job/railtie.rb:47:in `block (4 levels) in <class:Railtie>'
    /usr/local/bundle/gems/activesupport-6.1.0/lib/active_support/execution_wrapper.rb:88:in `wrap'
    /usr/local/bundle/gems/activesupport-6.1.0/lib/active_support/reloader.rb:72:in `block in wrap'
    /usr/local/bundle/gems/activesupport-6.1.0/lib/active_support/execution_wrapper.rb:84:in `wrap'
    /usr/local/bundle/gems/activesupport-6.1.0/lib/active_support/reloader.rb:71:in `wrap'
    /usr/local/bundle/gems/activejob-6.1.0/lib/active_job/railtie.rb:46:in `block (3 levels) in <class:Railtie>'
    /usr/local/bundle/gems/activesupport-6.1.0/lib/active_support/callbacks.rb:126:in `instance_exec'
    /usr/local/bundle/gems/activesupport-6.1.0/lib/active_support/callbacks.rb:126:in `block in run_callbacks'
    /usr/local/bundle/gems/activesupport-6.1.0/lib/active_support/callbacks.rb:137:in `run_callbacks'
    /usr/local/bundle/gems/activejob-6.1.0/lib/active_job/execution.rb:23:in `execute'
    /usr/local/bundle/gems/activejob-6.1.0/lib/active_job/queue_adapters/sidekiq_adapter.rb:42:in `perform'
    /usr/local/bundle/gems/sidekiq-6.1.2/lib/sidekiq/processor.rb:196:in `execute_job'
    /usr/local/bundle/gems/sidekiq-6.1.2/lib/sidekiq/processor.rb:164:in `block (2 levels) in process'
    /usr/local/bundle/gems/sidekiq-6.1.2/lib/sidekiq/middleware/chain.rb:133:in `invoke'
    /usr/local/bundle/gems/sidekiq-6.1.2/lib/sidekiq/processor.rb:163:in `block in process'
    /usr/local/bundle/gems/sidekiq-6.1.2/lib/sidekiq/processor.rb:136:in `block (6 levels) in dispatch'
    /usr/local/bundle/gems/sidekiq-6.1.2/lib/sidekiq/job_retry.rb:111:in `local'
    /usr/local/bundle/gems/sidekiq-6.1.2/lib/sidekiq/processor.rb:135:in `block (5 levels) in dispatch'
    /usr/local/bundle/gems/sidekiq-6.1.2/lib/sidekiq/rails.rb:14:in `block in call'
    /usr/local/bundle/gems/activesupport-6.1.0/lib/active_support/execution_wrapper.rb:88:in `wrap'
    /usr/local/bundle/gems/activesupport-6.1.0/lib/active_support/reloader.rb:72:in `block in wrap'
    /usr/local/bundle/gems/activesupport-6.1.0/lib/active_support/execution_wrapper.rb:88:in `wrap'
    /usr/local/bundle/gems/activesupport-6.1.0/lib/active_support/reloader.rb:71:in `wrap'
    /usr/local/bundle/gems/sidekiq-6.1.2/lib/sidekiq/rails.rb:13:in `call'
    /usr/local/bundle/gems/sidekiq-6.1.2/lib/sidekiq/processor.rb:131:in `block (4 levels) in dispatch'
    /usr/local/bundle/gems/sidekiq-6.1.2/lib/sidekiq/processor.rb:257:in `stats'
    /usr/local/bundle/gems/sidekiq-6.1.2/lib/sidekiq/processor.rb:126:in `block (3 levels) in dispatch'
    /usr/local/bundle/gems/sidekiq-6.1.2/lib/sidekiq/job_logger.rb:13:in `call'
    /usr/local/bundle/gems/sidekiq-6.1.2/lib/sidekiq/processor.rb:125:in `block (2 levels) in dispatch'
    /usr/local/bundle/gems/sidekiq-6.1.2/lib/sidekiq/job_retry.rb:78:in `global'
    /usr/local/bundle/gems/sidekiq-6.1.2/lib/sidekiq/processor.rb:124:in `block in dispatch'
    /usr/local/bundle/gems/sidekiq-6.1.2/lib/sidekiq/logger.rb:10:in `with'
    /usr/local/bundle/gems/sidekiq-6.1.2/lib/sidekiq/job_logger.rb:33:in `prepare'
    /usr/local/bundle/gems/sidekiq-6.1.2/lib/sidekiq/processor.rb:123:in `dispatch'
    /usr/local/bundle/gems/sidekiq-6.1.2/lib/sidekiq/processor.rb:162:in `process'
    /usr/local/bundle/gems/sidekiq-6.1.2/lib/sidekiq/processor.rb:78:in `process_one'
    /usr/local/bundle/gems/sidekiq-6.1.2/lib/sidekiq/processor.rb:68:in `run'
    /usr/local/bundle/gems/sidekiq-6.1.2/lib/sidekiq/util.rb:15:in `watchdog'
    /usr/local/bundle/gems/sidekiq-6.1.2/lib/sidekiq/util.rb:24:in `block in safe_thread'
    
  • 就是没找到我才来社区求助的😭

  • 这个报错信息我是直接在后台通过异常按钮点进去看的看的

  • 服务器是腾讯云的