12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- <?php
- namespace refill\event;
- class test_crash
- {
- use crash;
- protected const cache_name = 'card_crash';
- protected $mChannels = [];
- protected $mSuccInterval = 900;
- public function __construct()
- {
- }
- public function load($cfgs)
- {
- $channels = $cfgs['channels'] ?? '';
- $channels = explode(',',$channels);
- $this->mChannels = [];
- foreach ($channels as $item) {
- $this->mChannels[] = trim($item);
- }
- $this->mSuccInterval = intval($cfgs['succ_interval'] ?? 900);
- }
- public function testDelete($card_no)
- {
- $this->delete($card_no);
- }
- public function testCan_submit($card_no)
- {
- return $this->can_submit($card_no);
- }
- public function testSubmit($card_no, $oid)
- {
- $this->submit($card_no,$oid);
- }
- public function testCan_commit($card_no, $oid, $ch_name)
- {
- return $this->can_commit($card_no, $oid, $ch_name);
- }
- public function testCommit($card_no, $oid, $ch_name)
- {
- $this->commit($card_no, $oid, $ch_name);
- }
- public function testNotify($card_no, $oid, $ch_name,$succ)
- {
- $this->notify($card_no, $oid, $ch_name,$succ);
- }
- public function testComplete($card_no, $oid, $ch_name,$succ)
- {
- $this->complete($card_no, $oid, $ch_name,$succ);
- }
- }
|