把phpcms\modules\attachment\attachments.php中
将 if(empty($this->userid)){
改成 if(empty($_POST['userid'])){
因为在提交时$this->userid一定为空,但在调用时用到了$attachment->set_userid($_POST['userid']);
而$_POST['userid']即是userid的数据。因此将$this->userid改成$_POST['userid']即可。

相关文章:

  • 2022-12-23
  • 2021-07-16
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-18
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-03-07
  • 2022-12-23
  • 2022-12-23
  • 2021-11-14
  • 2022-12-23
相关资源
相似解决方案