AuthPinkFail.php 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
  4. // +----------------------------------------------------------------------
  5. // | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
  6. // +----------------------------------------------------------------------
  7. // | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
  8. // +----------------------------------------------------------------------
  9. // | Author: CRMEB Team <admin@crmeb.com>
  10. // +----------------------------------------------------------------------
  11. namespace app\jobs\activity\pink;
  12. use app\services\activity\combination\StorePinkServices;
  13. use crmeb\basic\BaseJobs;
  14. use crmeb\traits\QueueTrait;
  15. use think\db\exception\DataNotFoundException;
  16. use think\db\exception\ModelNotFoundException;
  17. /**
  18. * 分页处理拼团
  19. * Class AuthPinkFail
  20. * @package app\jobs\pink
  21. */
  22. class AuthPinkFail extends BaseJobs
  23. {
  24. use QueueTrait;
  25. /**
  26. * @return string
  27. */
  28. protected static function queueName()
  29. {
  30. return 'CRMEB_PRO_TASK';
  31. }
  32. /**
  33. * @param $page
  34. * @param $limit
  35. * @return bool
  36. * @throws DataNotFoundException
  37. * @throws ModelNotFoundException
  38. */
  39. public function doJob($page, $limit)
  40. {
  41. /** @var StorePinkServices $service */
  42. $service = app()->make(StorePinkServices::class);
  43. return $service->statusPink((int)$page, (int)$limit);
  44. }
  45. }