|
@@ -1093,7 +1093,7 @@ class ClientController extends DooController
|
|
|
$itemMeasureNumArray = array('iaid' => $iaid, 'pid' => $pidArray['pid'], 'pmid' => $this->params['tenderid'], 'numpname' => $_POST['phase'], 'ownerid' => $this->params['uid'], 'itemid' => $_POST['itemid'], 'categoryid' => array_search($_POST['category'], $this->fileTypeArray), 'tips' => $memoStr);
|
|
|
if (($imnid = $this->itemMeasureNum->insert($itemMeasureNumArray)) > 0) {
|
|
|
$extPath = pathinfo($fileArray['filepath']);
|
|
|
- $itemArray = array('onlineFileName' => $extPath['filename'] . '.' . $extPath['extension'], 'imnid' => $imnid);
|
|
|
+ $itemArray = array('onlineFileName' => $extPath['filename'] . '.' . $extPath['extension'], 'imnid' => $imnid, 'fileurl' => Doo::conf()->APP_URL . $fileArray['filepath']);
|
|
|
$status = array('status' => TRUE, 'msg' => '', 'iteminfo' => $itemArray);
|
|
|
echo json_encode($status, JSON_UNESCAPED_UNICODE);
|
|
|
die();
|
|
@@ -1138,14 +1138,15 @@ class ClientController extends DooController
|
|
|
$memoStr = iconv('GBK', 'UTF-8', $_POST['Memo']);
|
|
|
$filenameStr = iconv('GBK', 'UTF-8', $_POST['FileName']);
|
|
|
$imnidArray = $this->itemMeasureNum->getRowData($this->params['fileid']);
|
|
|
- if ($this->itemMeasureNum->updateItemFields($this->params['fileid'], $memoStr) > 0) {
|
|
|
- $this->itemfile->updateItemFields($imnidArray['iaid'], $filenameStr);
|
|
|
- echo json_encode(array('status' => 'TRUE', 'msg' => ''), JSON_UNESCAPED_UNICODE);
|
|
|
- die();
|
|
|
- } else {
|
|
|
- echo json_encode(array('status' => 'FALSE', 'msg' => '附件更新接口参数错误'), JSON_UNESCAPED_UNICODE);
|
|
|
- die();
|
|
|
- }
|
|
|
+ // if ($this->itemMeasureNum->updateItemFields($this->params['fileid'], $memoStr) > 0) {
|
|
|
+ $this->itemMeasureNum->updateItemFields($this->params['fileid'], $memoStr);
|
|
|
+ $this->itemfile->updateItemFields($imnidArray['iaid'], $filenameStr);
|
|
|
+ echo json_encode(array('status' => 'TRUE', 'msg' => ''), JSON_UNESCAPED_UNICODE);
|
|
|
+ die();
|
|
|
+ // } else {
|
|
|
+ // echo json_encode(array('status' => 'FALSE', 'msg' => '附件更新接口参数错误'), JSON_UNESCAPED_UNICODE);
|
|
|
+ // die();
|
|
|
+ // }
|
|
|
} else {
|
|
|
$this->msg(0, '附件更新接口参数错误');
|
|
|
}
|