纠正查询表名

This commit is contained in:
liuxiaoquan 2023-03-01 02:58:14 +08:00
parent 5492e6e26b
commit 46c9611d48

View File

@ -53,7 +53,7 @@ class PublicBenefitEnroll extends ArticleCommon{
$this->addArticle($params, function($aid)use($params){
$params['article_id'] = $aid;
// 更新文章相关的报名信息
return Db::table(ARTICLE_EDUCATION_LIVE)->strict(false)->field(true)->insertGetId(['article_id'=>$aid,'promoter'=>$params['promoter'],'enrolled_num'=>$params['enrolled_num']]);
return Db::table(self::ARTICLE_PUBLIC_BENEFIT)->strict(false)->field(true)->insertGetId(['article_id'=>$aid,'promoter'=>$params['promoter'],'enrolled_num'=>$params['enrolled_num']]);
});
}else{
View::assign('editor', get_system_config('other','editor'));