2018-03-19 5412℃
找到文件:attachments.php
路径: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']即可。
老办法记录下来备用。