• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

miaoxing / services / 5482043706

pending completion
5482043706

push

github

twinh
feat(services): 允许通过 `schedule` 缓存查看计划任务运行信息

0 of 2 new or added lines in 1 file covered. (0.0%)

61 of 624 relevant lines covered (9.78%)

5.68 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/ServicesPlugin.php
1
<?php
2

3
namespace Miaoxing\Services;
4

5
use Miaoxing\Plugin\BasePlugin;
6
use Wei\Time;
7

8
/**
9
 * @mixin \CachePropMixin
10
 */
11
class ServicesPlugin extends BasePlugin
12
{
13
    protected $name = '通用服务';
14

15
    protected $description = '存放一些通用的功能,连接底层类库和上层业务';
16

17
    protected $code = 201;
18

19
    public function onSchedule()
20
    {
NEW
21
        $this->cache->set('schedule', [
×
NEW
22
            'lastRunAt' => Time::now(),
×
23
        ]);
24
    }
25
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc