1、更换编辑器
2、seo优化功能 3、表单的bug
This commit is contained in:
@@ -90,10 +90,10 @@ class Base extends \think\Controller{
|
||||
foreach ($seo as $key => $value) {
|
||||
if (is_array($value)) {
|
||||
foreach ($value as $k => $v) {
|
||||
$meta[$key] = str_replace("[".$k."]", $v, $meta[$key]);
|
||||
$meta[$key] = str_replace("[".$k."]", $v . '|', $meta[$key]);
|
||||
}
|
||||
}else{
|
||||
$meta[$key] = str_replace("[".$key."]", $value, $meta[$key]);
|
||||
$meta[$key] = str_replace("[".$key."]", $value . '|', $meta[$key]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -57,6 +57,20 @@ class Upload {
|
||||
echo $data->output();
|
||||
}
|
||||
|
||||
public function editor(){
|
||||
$file = request()->file('upload_file');
|
||||
$info = $file->move(config('editor_upload.rootPath'), true, false);
|
||||
if ($info) {
|
||||
$data = $this->parse_file($info);
|
||||
$data['success'] = true;
|
||||
$data['file_path'] = $data['url'];
|
||||
}else{
|
||||
$data['success'] = false;
|
||||
$data['msg'] = "error message";
|
||||
}
|
||||
return $data;
|
||||
}
|
||||
|
||||
public function delete(){
|
||||
$data = array(
|
||||
'status' => 1,
|
||||
|
||||
Reference in New Issue
Block a user