|
@@ -189,18 +189,18 @@ class CurrencyFiletype extends AdminController{
|
|
|
$response_obj->msg = '排序不能为空';
|
|
|
return \StrUtil::back($response_obj,'CurrencyFiletypeInfoDlg.callBack');
|
|
|
}
|
|
|
+ $files = $this->request->file();
|
|
|
|
|
|
|
|
|
-
|
|
|
- if($this->request['templateFile']){
|
|
|
+ if(array_key_exists('templateFile',$files)){
|
|
|
$uploadapi = new UploadApi();
|
|
|
$file_check_res = $uploadapi->uploadOne($this->request->file('templateFile'), 'system');
|
|
|
if ($file_check_res->code == 500) {
|
|
|
return \StrUtil::back($file_check_res, "CurrencyFiletypeInfoDlg.callBack");
|
|
|
}
|
|
|
- $cft->templateUrl = $templateUrl = $file_check_res->filepath;
|
|
|
+ $cft->templateUrl = $file_check_res->filepath;
|
|
|
}else{
|
|
|
- $cft->templateUrl = $templateUrl = "";
|
|
|
+ $cft->templateUrl = "";
|
|
|
}
|
|
|
|
|
|
$cft->updateTime = date("Y-m-d H:i:s");
|