latex update
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user