迅睿開源框架是一款PHP8高性能·簡單易用的PHP開源開發(fā)框架, 基于MIT開源許可協(xié)議發(fā)布,不限制商業(yè)使用,以多端互聯(lián)為設計理念, 支持的微信公眾號、小程序、APP客戶端、移動端網(wǎng)站、PC網(wǎng)站等多終端式管理系統(tǒng)。
業(yè)務經(jīng)理
微信掃描以上二維碼
028-61286886
技術咨詢
哪位大神能幫寫個評論刪除么 謝謝了。
下面是評論的接口 求個評論刪除
插件版權:第三方插件插件名稱:評論系統(tǒng)
// 刪除
\Phpcmf\Service::M()->table($this->comment_model->mytable.'_comment')->delete($data['id']);
\Phpcmf\Service::M('member')->delete_admin_notice(MOD_DIR.'/'.$this->fid.'_comment_verify/edit:cid/'.$data['cid'].'/id/'.$data['id'], SITE_ID);
// 重新統(tǒng)計評論數(shù)
$this->comment_model->comment_update_total($data);
$this->comment_model->comment_update_review($data);
$this->_json(1, '刪除成功');
如何結合呢 求解
兩個問題 150 有人接么
接單,開工
https://你的網(wǎng)站地址/index.php?v=1&appid=[授權ID]&appsecret=[授權碼]&api_auth_code=[登錄授權碼]&api_auth_uid[用戶id]&&s=news&c=comment&m=op&t=delete&rid=評論id&id=文章id
// 刪除
\Phpcmf\Service::M()->table($this->comment_model->mytable.'_comment')->delete($data['id']);
\Phpcmf\Service::M('member')->delete_admin_notice(MOD_DIR.'/'.$this->fid.'_comment_verify/edit:cid/'.$data['cid'].'/id/'.$data['id'], SITE_ID);
// 重新統(tǒng)計評論數(shù)
$this->comment_model->comment_update_total($data);
$this->comment_model->comment_update_review($data);
$this->_json(1, '刪除成功');
如何結合呢 求解
兩個問題 150 有人接么
接單,開工