diff --git a/application/api/controller/Article.php b/application/api/controller/Article.php
index 878100b..7c9f043 100644
--- a/application/api/controller/Article.php
+++ b/application/api/controller/Article.php
@@ -74,6 +74,14 @@ class Article extends Controller {
$no = $stage_info['stage_no'] == 0 ? ':' : '(' . $stage_info['stage_no'] . '):';
$cite = $article_info['abbr'] . '. ' . $article_info['title'] . '. ' . $journal_info['jabbr'] . '. ' . $stage_info['stage_year'] . ';' . $stage_info['stage_vol'] . $no . $article_info['npp'] . '. doi:' . $article_info['doi'];
+ //标题斜体
+ $caches = $this->article_ltai_obj->where('article_id',$article_info['article_id'])->where('state',0)->column('content');
+ $cache_title = $article_info['title'];
+ foreach ($caches as $val){
+ $cache_title = str_replace($val, ''.$val.'', $cache_title);
+ }
+ $article_info['title'] = $cache_title;
+
//修改keywords
$article_info['keywords'] = str_replace(',', ' ', $article_info['keywords']);
diff --git a/application/master/controller/Mysystem.php b/application/master/controller/Mysystem.php
index f4debd5..8631006 100644
--- a/application/master/controller/Mysystem.php
+++ b/application/master/controller/Mysystem.php
@@ -291,6 +291,7 @@ class Mysystem extends Controller {
* @param name:author type:string require:1 desc:作者
* @param name:isbn type:string require:1
* @param name:price type:string require:1
+ * @param name:pdf type:string require:1 desc:pdf地址
* @param name:phone type:string require:1
* @param name:icon type:string require:1 desc:书皮图片
* @param name:sale_icon type:string require:1 desc:销售二维码
@@ -304,6 +305,7 @@ class Mysystem extends Controller {
$insert['author'] = $data['author'];
$insert['isbn'] = $data['isbn'];
$insert['price'] = $data['price'];
+ $insert['pdf'] = $data['pdf'];
$insert['phone'] = $data['phone'];
$insert['icon'] = $data['icon'];
$insert['sale_icon'] = $data['sale_icon'];
@@ -340,6 +342,7 @@ class Mysystem extends Controller {
* @param name:language type:string require:1 desc:语言
* @param name:author type:string require:1 desc:作者
* @param name:isbn type:string require:1
+ * @param name:pdf type:string require:1 desc:pdf地址
* @param name:price type:string require:1
* @param name:phone type:string require:1
* @param name:icon type:string require:1 desc:书皮图片
@@ -353,6 +356,7 @@ class Mysystem extends Controller {
$upload['language'] = $data['language'];
$upload['author'] = $data['author'];
$upload['isbn'] = $data['isbn'];
+ $upload['pdf'] = $data['pdf'];
$upload['price'] = $data['price'];
$upload['phone'] = $data['phone'];
$upload['icon'] = $data['icon'];
@@ -376,4 +380,27 @@ class Mysystem extends Controller {
$re['books'] = $list;
return jsonSuccess($re);
}
+
+ /**
+ * @title pdf上传
+ * @description pdf上传
+ * @author wangjinlei
+ * @url /master/Mysystem/up_pdf_file
+ * @method POST
+ *
+ * @param name:name type:string require:1 default:bookpdf desc:文件域名称
+ *
+ * @return upurl:图片地址
+ */
+ public function up_pdf_file() {
+ $file = request()->file('bookpdf');
+ if ($file) {
+ $info = $file->move(ROOT_PATH . 'public' . DS . 'bookpdf');
+ if ($info) {
+ return json(['code'=>0 , 'msg'=>'success', 'upurl' => str_replace("\\", "/", $info->getSaveName())]);
+ } else {
+ return json(['code' => 1, 'msg' => $file->getError()]);
+ }
+ }
+ }
}