latex update
This commit is contained in:
@@ -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) {
|
||||
// 空内容直接返回
|
||||
|
||||
Reference in New Issue
Block a user