latex update

This commit is contained in:
wangjinlei
2026-01-07 11:05:06 +08:00
parent ef8c7de183
commit 9849282f4b

View File

@@ -528,6 +528,7 @@ class Production extends Base
$update['keywords'] = trim($data['keywords']);
$update['abbreviation'] = isset($data['abbreviation']) ? trim($data['abbreviation']) : '';
$update['acknowledgment'] = trim($data['acknowledgment']);
$update['executive_editor'] = isset($data['executive_editor']) ? trim($data['executive_editor']) : '';
$update['abbr'] = trim($data['abbr']);
// $update['pub_date'] = trim($data['pub_date']);
$update['npp'] = isset($data['npp']) ? $data['npp'] : '';
@@ -2219,6 +2220,24 @@ class Production extends Base
public function mytestconver(){
$data = $this->request->post();
$rule = new Validate([
"id"=>"require"
]);
if(!$rule->check($data)){
return jsonError($rule->getError());
}
$info = $this->article_main_obj->where("am_id",$data['id'])->find();
$production_info = $this->production_article_obj->where("article_id",$info['article_id'])->find();
$refers = $this->production_article_refer_obj->where("p_article_id",$production_info['p_article_id'])->where('state',0)->order("index")->select();
$res = $this->convertToLatex($info['content'],$refers);
return jsonSuccess([$res]);
}
public function convertToLatex($content,$references) {
// 空内容直接返回