限制用户某些模块应用内容发布数量限制,比如只能发布1条
示例1:模块Demo下表单Test内容只能发布1条
dayrui/App/Demo/Controllers/Test.php
public function post() { // 提交前的操作 if (XR_M()->table_site("store_form_jiaqun")->where('cid', $this->cid)->where("uid", $this->uid)->counts() > 0) { \Phpcmf\Service::C()->_json(0, '只能添加1条'); } // 提交处理 $this->_Home_Post(); }