mirror of
https://github.com/kuaifan/dootask.git
synced 2026-02-02 10:59:42 +00:00
no message
This commit is contained in:
parent
93387c289e
commit
6e0a575da9
@ -0,0 +1,35 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
use App\Models\ProjectPermission;
|
||||||
|
use App\Module\Base;
|
||||||
|
use Illuminate\Database\Migrations\Migration;
|
||||||
|
|
||||||
|
class UpdateSettingEmailSettings extends Migration
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Run the migrations.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function up()
|
||||||
|
{
|
||||||
|
$setting = Base::setting('emailSetting');
|
||||||
|
if (!isset($setting['msg_unread_time_ranges'])) {
|
||||||
|
$setting['msg_unread_time_ranges'] = [
|
||||||
|
['00:00', '09:00'],
|
||||||
|
['18:00', '23:59'],
|
||||||
|
];
|
||||||
|
Base::setting('emailSetting', $setting);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reverse the migrations.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function down()
|
||||||
|
{
|
||||||
|
//
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -63,22 +63,22 @@
|
|||||||
transfer/>
|
transfer/>
|
||||||
</div>
|
</div>
|
||||||
<Button type="default" icon="md-add" @click="onAddTimeRange">{{ $L('添加时间范围') }}</Button>
|
<Button type="default" icon="md-add" @click="onAddTimeRange">{{ $L('添加时间范围') }}</Button>
|
||||||
<div class="form-tip">{{ $L('仅在通知时间内发送邮件。') }}</div>
|
<div class="form-tip">{{ $L('仅在指定时间范围内发送邮件通知。') }}</div>
|
||||||
</div>
|
</div>
|
||||||
</FormItem>
|
</FormItem>
|
||||||
<FormItem :label="$L('未读个人消息')" prop="msg_unread_user_minute">
|
<FormItem :label="$L('未读个人消息')" prop="msg_unread_user_minute">
|
||||||
<div class="input-number-box">
|
<div class="input-number-box">
|
||||||
<InputNumber v-model="formData.msg_unread_user_minute" :min="0" :step="1"/>
|
<InputNumber v-model="formData.msg_unread_user_minute" :min="0" :step="1"/>
|
||||||
<label>{{ $L('分钟') }}(m)</label>
|
<label>{{ $L('分钟') }}</label>
|
||||||
</div>
|
</div>
|
||||||
</FormItem>
|
</FormItem>
|
||||||
<FormItem :label="$L('未读群聊消息')" prop="msg_unread_group_minute">
|
<FormItem :label="$L('未读群聊消息')" prop="msg_unread_group_minute">
|
||||||
<div class="input-number-box">
|
<div class="input-number-box">
|
||||||
<InputNumber v-model="formData.msg_unread_group_minute" :min="0" :step="1"/>
|
<InputNumber v-model="formData.msg_unread_group_minute" :min="0" :step="1"/>
|
||||||
<label>{{ $L('分钟') }}(m)</label>
|
<label>{{ $L('分钟') }}</label>
|
||||||
</div>
|
</div>
|
||||||
</FormItem>
|
</FormItem>
|
||||||
<div class="form-tip">{{$L('填写-1则不通知,误差±10分钟')}}</div>
|
<div class="form-tip">{{$L('未读消息超过指定时间后发送邮件通知,设为-1则不通知。')}}</div>
|
||||||
</Form>
|
</Form>
|
||||||
</FormItem>
|
</FormItem>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user