必填
This commit is contained in:
@@ -672,7 +672,9 @@ class Production extends Base
|
|||||||
if (!$rule->check($data)) {
|
if (!$rule->check($data)) {
|
||||||
return jsonError($rule->getError());
|
return jsonError($rule->getError());
|
||||||
}
|
}
|
||||||
$updata['abstract'] = trim($data['abstract']);
|
if(isset($data['abstract'])){
|
||||||
|
$updata['abstract'] = trim($data['abstract']);
|
||||||
|
}
|
||||||
$updata['doi'] = $data['doi'];
|
$updata['doi'] = $data['doi'];
|
||||||
$updata['pub_date'] = $data['pub_date'];
|
$updata['pub_date'] = $data['pub_date'];
|
||||||
$this->production_article_obj->where('p_article_id', $data['p_article_id'])->update($updata);
|
$this->production_article_obj->where('p_article_id', $data['p_article_id'])->update($updata);
|
||||||
@@ -1476,8 +1478,8 @@ class Production extends Base
|
|||||||
$typesetInfo['images'] = null;
|
$typesetInfo['images'] = null;
|
||||||
$typesetInfo['tables'] = null;
|
$typesetInfo['tables'] = null;
|
||||||
|
|
||||||
// $url = $this->ts_base_url."api/typeset/createDocx";
|
$url = $this->ts_base_url."api/typeset/createDocx";
|
||||||
$url = "http://192.168.110.110:8081/typeset/createDocx";
|
// $url = "http://192.168.110.110:8081/typeset/createDocx";
|
||||||
// $url = "http://192.168.110.110:8081/typeset/testqt";
|
// $url = "http://192.168.110.110:8081/typeset/testqt";
|
||||||
$res = object_to_array(json_decode(myPost1($url, $typesetInfo)));
|
$res = object_to_array(json_decode(myPost1($url, $typesetInfo)));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user