已供应为例子:打开文件module/sell/sell.class.php 在代码function pass($post)前面增加一个title_exists函数: function title_exists($title) { $condition = "title='$title'"; return $this->db->get_one("SELECT itemid FROM {$this->table} WHERE $condition"); } 在if($post['totime'])这前面添加 if(strlen($post['title']) < 3) return $this->_(lang('message->pass_title')); if(!$this->itemid && $this->title_exists($post['title'])) return $this->_(lang('message->pass_chongfu')); 最后在找到lang\zh-cn\message.inc.php添加一行$L['pass_chongfu'] = '标题重复请重新填写';
◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。