获取自动化设置
方法概览
| 项目 | 内容 |
|---|---|
| 文档类型 | PHP 类方法 |
| 方法标识 | app\common\model\ConfigurationModel::cronList |
| 所属业务 | 公共接口 |
| 来源模块/系统 | 用户模型 |
功能说明
获取自动化设置
调用示例
$result = (new \app\common\model\ConfigurationModel())->cronList();参数
该函数/方法无需传入参数。
返回值
| 返回项 | 类型 | 说明 |
|---|---|---|
cron_shell | int | 自动化脚本 |
cron_status | int | 自动化状态,正常返回success,不正常返回error |
cron_due_suspend_swhitch | int | 产品到期暂停开关 1开启,0关闭 |
cron_due_suspend_day | int | 产品到期暂停X天后暂停 |
cron_due_unsuspend_swhitch | int | 财务原因产品暂停后付款自动解封开关 1开启,0关闭 |
cron_due_terminate_swhitch | int | 产品到期删除开关 1开启,0关闭 |
cron_due_terminate_day | int | 产品到期X天后删除 |
cron_due_renewal_first_swhitch | int | 续费第一次提醒开关 1开启,0关闭 |
cron_due_renewal_first_day | int | 续费X天后到期第一次提醒 |
cron_due_renewal_second_swhitch | int | 续费第二次提醒开关 1开启,0关闭 |
cron_due_renewal_second_day | int | 续费X天后到期第二次提醒 |
cron_overdue_first_swhitch | int | 产品逾期第一次提醒开关 1开启,0关闭 |
cron_overdue_first_day | int | 产品逾期X天后第一次提醒 |
cron_overdue_second_swhitch | int | 产品逾期第二次提醒开关 1开启,0关闭 |
cron_overdue_second_day | int | 产品逾期X天后第二次提醒 |
cron_overdue_third_swhitch | int | 产品逾期第三次提醒开关 1开启,0关闭 |
cron_overdue_third_day | int | 产品逾期X天后第三次提醒 |
cron_ticket_close_swhitch | int | 自动关闭工单开关 1开启,0关闭 |
cron_ticket_close_day | int | 已回复状态的工单超过x小时后关闭 |
cron_aff_swhitch | int | 推介月报开关 1开启,0关闭 |
cron_order_overdue_swhitch | int | 订单未付款通知开关 1开启,0关闭 required |
cron_order_overdue_day | int | 订单未付款X天后通知 required |
cron_task_shell | int | 任务队列命令 required |
cron_task_status | int | 任务队列最新状态 required |
cron_order_unpaid_delete_swhitch | int | 订单自动删除开关 1开启,0关闭 required |
cron_order_unpaid_delete_day | int | 订单未付款X天后自动删除 required |
cron_day_start_time | int | 定时任务开始时间 required |
cron_system_log_delete_swhitch | int | 系统日志自动删除开关 1开启,0关闭 required |
cron_system_log_delete_day | int | 系统日志创建X天后自动删除 required |
cron_sms_log_delete_swhitch | int | 短信日志自动删除开关 1开启,0关闭 required |
cron_sms_log_delete_day | int | 短信日志创建X天后自动删除 required |
cron_email_log_delete_swhitch | int | 邮件日志自动删除开关 1开启,0关闭 required |
cron_email_log_delete_day | int | 邮件日志创建X天后自动删除 required |
cron_on_demand_cron_status | string | 按需出账状态,正常返回success,不正常返回error |
cron_on_demand_cron_shell | string | 按需出账任务命令 |
正常返回
{
"cron_shell": 1,
"cron_status": 1,
"cron_due_suspend_swhitch": 1,
"cron_due_suspend_day": 1,
"cron_due_unsuspend_swhitch": 1,
"cron_due_terminate_swhitch": 1,
"cron_due_terminate_day": 1,
"cron_due_renewal_first_swhitch": 1,
"cron_due_renewal_first_day": 1,
"cron_due_renewal_second_swhitch": 1,
"cron_due_renewal_second_day": 1,
"cron_overdue_first_swhitch": 1,
"cron_overdue_first_day": 1,
"cron_overdue_second_swhitch": 1,
"cron_overdue_second_day": 1,
"cron_overdue_third_swhitch": 1,
"cron_overdue_third_day": 1,
"cron_ticket_close_swhitch": 1,
"cron_ticket_close_day": 1,
"cron_aff_swhitch": 1,
"cron_order_overdue_swhitch": 1,
"cron_order_overdue_day": 1,
"cron_task_shell": 1,
"cron_task_status": 1,
"cron_order_unpaid_delete_swhitch": 1,
"cron_order_unpaid_delete_day": 1,
"cron_day_start_time": 1752984000,
"cron_system_log_delete_swhitch": 1,
"cron_system_log_delete_day": 1,
"cron_sms_log_delete_swhitch": 1,
"cron_sms_log_delete_day": 1,
"cron_email_log_delete_swhitch": 1,
"cron_email_log_delete_day": 1,
"cron_on_demand_cron_status": "Active",
"cron_on_demand_cron_shell": "string"
}异常情况
| 异常类型 | 说明 |
|---|---|
Throwable | 调用失败时由具体实现抛出异常,异常信息以运行时结果为准。 |