徐总多门店
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
jiuhaoshenghuo/app/jobs/work/WorkGroupMsgJob.php

64 lines
1.5 KiB

<?php
namespace app\jobs\work;
use app\services\work\WorkGroupMsgSendResultServices;
use app\services\work\WorkGroupMsgTaskServices;
use app\services\work\WorkGroupTemplateServices;
use crmeb\basic\BaseJobs;
use crmeb\traits\QueueTrait;
/**
* 企业微信群发任务
* Class WorkGroupMsgJob
* @package app\jobs\work
*/
class WorkGroupMsgJob extends BaseJobs
{
use QueueTrait;
/**
* 批量
* @param $id
* @param $userId
* @param $count
* @return bool
*/
public function batch($id, $userId, $count)
{
/** @var WorkGroupTemplateServices $service */
$service = app()->make(WorkGroupTemplateServices::class);
return $service->batch((int)$id, $userId, (int)$count);
}
/**
* 获取群发成员发送任务列表
* @param $type
* @param $msgid
* @param $cursor
* @return mixed
*/
public function getTaks($type, $msgid, $cursor)
{
/** @var WorkGroupMsgTaskServices $service */
$service = app()->make(WorkGroupMsgTaskServices::class);
return $service->getTaks($type, $msgid, $cursor);
}
/**
* @param $type
* @param $userid
* @param $msgid
* @param $cursor
* @return bool
*/
public function getSendResult($type, $userid, $msgid, $cursor)
{
/** @var WorkGroupMsgSendResultServices $service */
$service = app()->make(WorkGroupMsgSendResultServices::class);
return $service->getSendResult($type, $userid, $msgid, $cursor);
}
}