latex update

This commit is contained in:
wangjinlei
2026-02-02 11:23:50 +08:00
parent 63a89b4af7
commit 875d486ab5
2 changed files with 57 additions and 54 deletions

View File

@@ -260,22 +260,24 @@ class Production extends Base
*/
public function getProductionMains()
{
die("stop service!");
// $data = $this->request->post();
// $rule = new Validate([
// "p_article_id" => "require"
// ]);
// if (!$rule->check($data)) {
// return jsonError($rule->getError());
// }
// $p_info = $this->production_article_obj->where('p_article_id', $data['p_article_id'])->find();
// die("stop service!");
$data = $this->request->post();
$rule = new Validate([
"p_article_id" => "require"
]);
if (!$rule->check($data)) {
return jsonError($rule->getError());
}
$p_info = $this->production_article_obj->where('p_article_id', $data['p_article_id'])->find();
$frag = getArticleMains($p_info['article_id']);
// $frag = $this->getProductionMainImgs($data['p_article_id']);
// if (count($frag) == 0) {
// return jsonError("create error");
// }
// $re['mains'] = $frag;
// $re['production'] = $p_info;
// return jsonSuccess($re);
$re['mains'] = $frag;
$re['production'] = $p_info;
return jsonSuccess($re);
}
/**
@@ -815,6 +817,7 @@ class Production extends Base
$pra['authors'] = json_encode($authors);
$pra['organs'] = json_encode($organs);
$res = object_to_array(json_decode(myPost($url, $pra)));
if ($res['code'] == 0) {
$r_update['state'] = 2;
$r_update['w_article_id'] = isset($res['data']['article_id']) ? $res['data']['article_id'] : 0;