1
This commit is contained in:
@@ -547,7 +547,7 @@ class Datebase extends Controller
|
|||||||
|
|
||||||
public function Mycreate(){
|
public function Mycreate(){
|
||||||
$data = $this->request->post();
|
$data = $this->request->post();
|
||||||
$url = "http://ts.tmrjournals.com/api/dataApi/createTemplate";
|
$url = $this->ts_base_url."api/dataApi/createTemplate";
|
||||||
$stage_info = $this->journal_stage_obj->where("journal_stage_id", $data['journal_stage_id'])->find();
|
$stage_info = $this->journal_stage_obj->where("journal_stage_id", $data['journal_stage_id'])->find();
|
||||||
$re['issue'] = $stage_info['issue_date'] . ", Volume " . $stage_info['stage_vol'] . " Issue " . $stage_info["stage_no"];
|
$re['issue'] = $stage_info['issue_date'] . ", Volume " . $stage_info['stage_vol'] . " Issue " . $stage_info["stage_no"];
|
||||||
$adate = [];
|
$adate = [];
|
||||||
@@ -568,7 +568,7 @@ class Datebase extends Controller
|
|||||||
if (!is_dir($base_dir)) {
|
if (!is_dir($base_dir)) {
|
||||||
@mkdir($base_dir);
|
@mkdir($base_dir);
|
||||||
}
|
}
|
||||||
copy('http://ts.tmrjournals.com/upload/' . $file, $base_dir . '/' . $stage_info["journal_stage_id"] . ".docx");
|
copy($this->ts_base_url.'upload/' . $file, $base_dir . '/' . $stage_info["journal_stage_id"] . ".docx");
|
||||||
echo 'success !';
|
echo 'success !';
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -576,7 +576,7 @@ class Datebase extends Controller
|
|||||||
|
|
||||||
private function createEmailFile($journal_stage_id)
|
private function createEmailFile($journal_stage_id)
|
||||||
{
|
{
|
||||||
$url = "http://ts.tmrjournals.com/api/dataApi/createTemplate";
|
$url = $this->ts_base_url."api/dataApi/createTemplate";
|
||||||
//查找分期信息
|
//查找分期信息
|
||||||
$stage_info = $this->journal_stage_obj->where("journal_stage_id", $journal_stage_id)->find();
|
$stage_info = $this->journal_stage_obj->where("journal_stage_id", $journal_stage_id)->find();
|
||||||
$journal_info = $this->journal_obj->where("journal_id", $stage_info["journal_id"])->find();
|
$journal_info = $this->journal_obj->where("journal_id", $stage_info["journal_id"])->find();
|
||||||
@@ -602,7 +602,7 @@ class Datebase extends Controller
|
|||||||
}
|
}
|
||||||
$zip = new \ZipArchive;
|
$zip = new \ZipArchive;
|
||||||
$zip->open($base_dir . '/' . $stage_info["journal_stage_id"] . '.zip', \ZipArchive::CREATE);
|
$zip->open($base_dir . '/' . $stage_info["journal_stage_id"] . '.zip', \ZipArchive::CREATE);
|
||||||
copy('http://ts.tmrjournals.com/upload/' . $file, $base_dir . '/' . $stage_info["journal_stage_id"] . ".docx");
|
copy($this->ts_base_url.'upload/' . $file, $base_dir . '/' . $stage_info["journal_stage_id"] . ".docx");
|
||||||
$zip->addFile($base_dir . '/' . $stage_info["journal_stage_id"] . ".docx", "Contents.docx");
|
$zip->addFile($base_dir . '/' . $stage_info["journal_stage_id"] . ".docx", "Contents.docx");
|
||||||
foreach ($alist as $k => $v) {
|
foreach ($alist as $k => $v) {
|
||||||
// echo "https://www.tmrjournals.com/public/articlePDF/" . $v['file_pdf'];
|
// echo "https://www.tmrjournals.com/public/articlePDF/" . $v['file_pdf'];
|
||||||
|
|||||||
Reference in New Issue
Block a user