代码优化

This commit is contained in:
wong
2025-09-11 15:16:04 +08:00
parent ecb5a741bf
commit bea5f44565
3 changed files with 26 additions and 24 deletions

View File

@@ -12,13 +12,14 @@ class Workbench extends Validate
const TYPE_GROUP_PUSH = 3; // 群消息推送
const TYPE_GROUP_CREATE = 4; // 自动建群
const TYPE_TRAFFIC_DISTRIBUTION = 5; // 流量分发
const TYPE_IMPORT_CONTACT = 6; // 流量分发
/**
* 验证规则
*/
protected $rule = [
'name' => 'require|max:100',
'type' => 'require|in:1,2,3,4,5',
'type' => 'require|in:1,2,3,4,5,6',
//'autoStart' => 'require|boolean',
// 自动点赞特有参数
'interval' => 'requireIf:type,1|number|min:1',