Files

45 lines
1.4 KiB
PHP
Raw Permalink 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
declare (strict_types = 1);
namespace app\frontend\controller;
use ywxapp\controller\FrontendBase;
/**
* 文档 / 示例入口(由 app/wxapp 合并至 app/frontend
*/
class Doc extends FrontendBase
{
protected $noNeedLogin = ['index'];
protected $noNeedVerify = ['*'];
public function index()
{
$docs = [
[
'title' => 'mqpay 支付钩子机制与时序图',
'desc' => '事件系统、订阅器注册、会员开通链路详解',
'path' => 'addon/mqpay/docs/payment_hooks.md',
'url' => '/addon/mqpay/docs/payment_hooks.md',
],
[
'title' => '安卓到账监听 App 接入指南',
'desc' => '免签监听 App 对接 notify-app 接口说明',
'path' => 'addon/mqpay/docs/listen_app_guide.md',
'url' => '/addon/mqpay/docs/listen_app_guide.md',
],
[
'title' => 'mqpay 插件总览',
'desc' => '插件能力、配置项、钩子速查表',
'path' => 'addon/mqpay/README.md',
'url' => '/addon/mqpay/README.md',
],
];
return view('doc/index', [
'controller' => $this->request->controller(),
'docs' => $docs,
]);
}
}