参考文献type
This commit is contained in:
@@ -11,6 +11,7 @@ use think\Queue;
|
||||
use think\Validate;
|
||||
use think\log;
|
||||
use app\common\ArticleSymbolNormalizer;
|
||||
use app\common\ReferenceDispatchService;
|
||||
|
||||
/**
|
||||
* @title 公共管理相关
|
||||
@@ -1931,7 +1932,7 @@ class Production extends Base
|
||||
}
|
||||
|
||||
$this->referToDoi($data['p_article_id']);
|
||||
$this->doiTofrag($data['p_article_id']);
|
||||
(new ReferenceDispatchService())->dispatchRefersByType($data['p_article_id']);
|
||||
return jsonSuccess([]);
|
||||
}
|
||||
|
||||
@@ -1998,19 +1999,7 @@ class Production extends Base
|
||||
|
||||
public function doiTofrag($p_article_id)
|
||||
{
|
||||
$p_info = $this->production_article_obj->where('p_article_id', $p_article_id)->find();
|
||||
$refers = $this->production_article_refer_obj->where('p_article_id', $p_info['p_article_id'])->where('state', 0)->select();
|
||||
foreach ($refers as $v) {
|
||||
if ($v['refer_doi'] == '') {
|
||||
$this->production_article_refer_obj->where('p_refer_id', $v['p_refer_id'])->update(['refer_frag' => $v['refer_content']]);
|
||||
} else {
|
||||
|
||||
//修改队列兼容对接OPENAI接口 chengxiaoling 20251128 start
|
||||
// Queue::push('app\api\job\ts@fire1', $v, 'ts');
|
||||
Queue::push('app\api\job\ArticleReferDetailQueue@fire', $v, 'ArticleReferDetailQueue');
|
||||
//修改队列兼容对接OPENAI接口 chengxiaoling 20251128 end
|
||||
}
|
||||
}
|
||||
(new ReferenceDispatchService())->dispatchRefersByType($p_article_id);
|
||||
return jsonSuccess([]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user