yuanzhihai / webman-task

dynamic crontab plugin for webman.
17 stars 4 forks source link

“parameter” 参数不能为数组,但execute需要接收参数却需要用is_array进行判断 #2

Closed ZhuoWei93 closed 1 year ago

ZhuoWei93 commented 2 years ago

您好,在使用您的包时候,对 type=2的时候,execute方法是需要接收数组才可传参,

        $param = [
            'method' => 'crontabCreate',
            'args' => [
                'title' => '输出 webman 版本',
                'type' => 2,
                'parameter' => ['test'=>1],
                'rule' => '*/30 * * * * *',
                'target' => 'app\task\CrontabTask',
                'status' => 1,
                'remark' => '每30秒执行',
            ],
        ];

        $result = \yzh52521\Task\Client::instance()->request($param);
        return json($result);

image

image

yuanzhihai commented 2 years ago

已经修复了

ZhuoWei93 commented 2 years ago

感谢