Files
plugins/WeChatHelper/Addons/DrivingTest/Addon.php
chorblack e75f275ef4
Some checks failed
定时更新GitHub源插件 / 自动更新GitHub插件 (push) Has been cancelled
Initial commit
2026-03-07 11:19:25 +08:00

59 lines
1.7 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
/**
* @name 驾驶执照考试
* @package DrivingTest
* @author 冰剑
* @link http://www.binjoo.net
* @description 考驾照科目一练习
* @version 1.0.0
*/
class AddonsDrivingTest {
private $result;
private $data;
function __construct($result) {
$this->result = $result;
$this->data = array(
array(
'title' => '驾校一点通模拟考试',
'description' => '',
'picurl' => '',
'url' => ''
),
array(
'title' => '小车考试科目一 车型C1 C2照',
'description' => '',
'picurl' => '',
'url' => 'http://m.jxedt.com/mnks/indexlx.asp'
),
array(
'title' => '货车考试科目一 车型A2 B2照',
'description' => '',
'picurl' => '',
'url' => 'http://m.jxedt.com/mnks/indexlx.asp?type=b'
),
array(
'title' => '客车考试科目一 车型A1 A3 B1照',
'description' => '',
'picurl' => '',
'url' => 'http://m.jxedt.com/mnks/indexlx.asp?type=a'
),
array(
'title' => '安全文明科目四 车型C1 C2 B2照',
'description' => '',
'picurl' => '',
'url' => 'http://m.jxedt.com/mnks/indexlx.asp?type=s'
)
);
}
public function execute(){
foreach ($this->data as $row) {
$this->result->addItem($row);
}
$this->result->setMsgType(MessageTemplate::NEWS)->send();
}
}
?>