mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-08-09 23:19:45 +08:00
[更新]修改配置
This commit is contained in:
parent
d42da55213
commit
3efba186a5
@ -94,14 +94,14 @@ class Config extends Controller
|
|||||||
if (empty($local) || stripos($local, '.aliyuncs.com') !== false) {
|
if (empty($local) || stripos($local, '.aliyuncs.com') !== false) {
|
||||||
sysconf('storage_oss_domain', $domain);
|
sysconf('storage_oss_domain', $domain);
|
||||||
}
|
}
|
||||||
$this->success('阿里云OSS存储动态配置成功!');
|
$this->success('阿里云OSS存储配置成功!');
|
||||||
} catch (HttpResponseException $exception) {
|
} catch (HttpResponseException $exception) {
|
||||||
throw $exception;
|
throw $exception;
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
$this->error("阿里云OSS存储配置失效,{$e->getMessage()}");
|
$this->error("阿里云OSS存储配置失效,{$e->getMessage()}");
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$this->success('系统参数配置成功!');
|
$this->success('参数配置成功!');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -59,7 +59,7 @@
|
|||||||
<div class="layui-form-item layui-inline">
|
<div class="layui-form-item layui-inline">
|
||||||
<label class="layui-form-label">授权时间</label>
|
<label class="layui-form-label">授权时间</label>
|
||||||
<div class="layui-input-inline">
|
<div class="layui-input-inline">
|
||||||
<input id="create_at" name="create_at" value="{$Think.get.create_at|default=''}" placeholder="请选择授权时间" class="layui-input">
|
<input data-date-range name="create_at" value="{$Think.get.create_at|default=''}" placeholder="请选择授权时间" class="layui-input">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -73,5 +73,4 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
window.form.render();
|
window.form.render();
|
||||||
window.laydate.render({range: true, elem: '#create_at'});
|
</script>
|
||||||
</script>
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user