mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-11 18:42:54 +00:00
perf: 优化会议室
This commit is contained in:
parent
0a26361724
commit
41c09b3838
@ -202,7 +202,7 @@ class SystemController extends AbstractController
|
|||||||
*
|
*
|
||||||
* @apiParam {String} type
|
* @apiParam {String} type
|
||||||
* - get: 获取(默认)
|
* - get: 获取(默认)
|
||||||
* - save: 保存设置(参数:['open', 'appid', 'app_certificate'])
|
* - save: 保存设置(参数:['open', 'appid', 'app_certificate', 'api_key', 'api_secret'])
|
||||||
* @apiSuccess {Number} ret 返回状态码(1正确、0错误)
|
* @apiSuccess {Number} ret 返回状态码(1正确、0错误)
|
||||||
* @apiSuccess {String} msg 返回信息(错误描述)
|
* @apiSuccess {String} msg 返回信息(错误描述)
|
||||||
* @apiSuccess {Object} data 返回数据
|
* @apiSuccess {Object} data 返回数据
|
||||||
@ -222,12 +222,14 @@ class SystemController extends AbstractController
|
|||||||
'open',
|
'open',
|
||||||
'appid',
|
'appid',
|
||||||
'app_certificate',
|
'app_certificate',
|
||||||
|
'api_key',
|
||||||
|
'api_secret',
|
||||||
])) {
|
])) {
|
||||||
unset($all[$key]);
|
unset($all[$key]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ($all['open'] === 'open' && (!$all['appid'] || !$all['app_certificate'])) {
|
if ($all['open'] === 'open' && (!$all['appid'] || !$all['app_certificate'])) {
|
||||||
return Base::retError('请填写完整的参数');
|
return Base::retError('请填写基本配置');
|
||||||
}
|
}
|
||||||
$setting = Base::setting('meetingSetting', Base::newTrim($all));
|
$setting = Base::setting('meetingSetting', Base::newTrim($all));
|
||||||
} else {
|
} else {
|
||||||
@ -238,6 +240,8 @@ class SystemController extends AbstractController
|
|||||||
if (env("SYSTEM_SETTING") == 'disabled') {
|
if (env("SYSTEM_SETTING") == 'disabled') {
|
||||||
$setting['appid'] = substr($setting['appid'], 0, 4) . str_repeat('*', strlen($setting['appid']) - 8) . substr($setting['appid'], -4);
|
$setting['appid'] = substr($setting['appid'], 0, 4) . str_repeat('*', strlen($setting['appid']) - 8) . substr($setting['appid'], -4);
|
||||||
$setting['app_certificate'] = substr($setting['app_certificate'], 0, 4) . str_repeat('*', strlen($setting['app_certificate']) - 8) . substr($setting['app_certificate'], -4);
|
$setting['app_certificate'] = substr($setting['app_certificate'], 0, 4) . str_repeat('*', strlen($setting['app_certificate']) - 8) . substr($setting['app_certificate'], -4);
|
||||||
|
$setting['api_key'] = substr($setting['api_key'], 0, 4) . str_repeat('*', strlen($setting['api_key']) - 8) . substr($setting['api_key'], -4);
|
||||||
|
$setting['api_secret'] = substr($setting['api_secret'], 0, 4) . str_repeat('*', strlen($setting['api_secret']) - 8) . substr($setting['api_secret'], -4);
|
||||||
}
|
}
|
||||||
//
|
//
|
||||||
return Base::retSuccess('success', $setting ?: json_decode('{}'));
|
return Base::retSuccess('success', $setting ?: json_decode('{}'));
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
<div class="setting-component-item">
|
<div class="setting-component-item">
|
||||||
<Form ref="formData" :model="formData" :rules="ruleData" label-width="auto" @submit.native.prevent>
|
<Form ref="formData" :model="formData" :rules="ruleData" label-width="auto" @submit.native.prevent>
|
||||||
<div class="block-setting-box">
|
<div class="block-setting-box">
|
||||||
<h3>AgoraIO</h3>
|
<h3>AgoraIO 声网</h3>
|
||||||
<div class="form-box">
|
<div class="form-box">
|
||||||
<FormItem :label="$L('会议功能')" prop="open">
|
<FormItem :label="$L('会议功能')" prop="open">
|
||||||
<RadioGroup v-model="formData.open">
|
<RadioGroup v-model="formData.open">
|
||||||
@ -11,12 +11,33 @@
|
|||||||
</RadioGroup>
|
</RadioGroup>
|
||||||
</FormItem>
|
</FormItem>
|
||||||
<template v-if="formData.open === 'open'">
|
<template v-if="formData.open === 'open'">
|
||||||
|
<Divider orientation="left">{{$L('基本配置')}}</Divider>
|
||||||
|
<div class="form-tip form-list">
|
||||||
|
<ul>
|
||||||
|
<li>{{$L('基本配置')}}: {{$L('用于生成会议频道。')}}</li>
|
||||||
|
<li>{{$L('获取方式')}}: <a href="https://docportal.shengwang.cn/cn/Agora%20Platform/token_server#%E8%8E%B7%E5%8F%96-app-id-%E5%8F%8A-app-%E8%AF%81%E4%B9%A6" target="_blank">Open Link</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
<FormItem label="App ID " prop="appid">
|
<FormItem label="App ID " prop="appid">
|
||||||
<Input :maxlength="255" v-model="formData.appid"/>
|
<Input :maxlength="255" v-model="formData.appid"/>
|
||||||
</FormItem>
|
</FormItem>
|
||||||
<FormItem label="App certificate" prop="app_certificate">
|
<FormItem label="App certificate" prop="app_certificate">
|
||||||
<Input :maxlength="255" v-model="formData.app_certificate" type="password"/>
|
<Input :maxlength="255" v-model="formData.app_certificate" type="password"/>
|
||||||
</FormItem>
|
</FormItem>
|
||||||
|
<div class="clearfix"></div>
|
||||||
|
<Divider orientation="left">RESTful Api({{$L('可选')}})</Divider>
|
||||||
|
<div class="form-tip form-list">
|
||||||
|
<ul>
|
||||||
|
<li>RESTful Api: {{$L('用于频道管理。')}} ({{$L('比如')}}: {{$L('结束会议室')}})</li>
|
||||||
|
<li>{{$L('获取方式')}} <a href="https://doc.shengwang.cn/doc/rtc/restful/get-started/enable-service#%E8%8E%B7%E5%8F%96%E5%AE%A2%E6%88%B7-id-%E5%92%8C%E5%AE%A2%E6%88%B7%E5%AF%86%E9%92%A5" target="_blank">Open Link</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<FormItem label="key " prop="api_key">
|
||||||
|
<Input :maxlength="255" v-model="formData.api_key"/>
|
||||||
|
</FormItem>
|
||||||
|
<FormItem label="secret" prop="secret">
|
||||||
|
<Input :maxlength="255" v-model="formData.api_secret" type="password"/>
|
||||||
|
</FormItem>
|
||||||
</template>
|
</template>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user