新增微信模块
This commit is contained in:
parent
e9c8940730
commit
ec5a5a8402
@ -1 +0,0 @@
|
|||||||
<?php
|
|
@ -1 +0,0 @@
|
|||||||
<?php
|
|
@ -1 +0,0 @@
|
|||||||
<?php
|
|
25
catch/wechat/controller/Users.php
Normal file
25
catch/wechat/controller/Users.php
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* @filename Users.php
|
||||||
|
* @date 2020/6/7
|
||||||
|
* @project https://github.com/yanwenwu/catch-admin
|
||||||
|
* @document http://doc.catchadmin.com
|
||||||
|
* @author JaguarJack <njphper@gmail.com>
|
||||||
|
* @copyright By CatchAdmin
|
||||||
|
* @license https://github.com/yanwenwu/catch-admin/blob/master/LICENSE.txt
|
||||||
|
*/
|
||||||
|
namespace catchAdmin\wechat\controller;
|
||||||
|
|
||||||
|
use catcher\base\CatchController;
|
||||||
|
use catcher\CatchResponse;
|
||||||
|
use catcher\library\WeChat;
|
||||||
|
|
||||||
|
class Users extends CatchController
|
||||||
|
{
|
||||||
|
public function index()
|
||||||
|
{
|
||||||
|
$response = WeChat::officialAccount()->base->getValidIps();
|
||||||
|
|
||||||
|
return CatchResponse::success($response);
|
||||||
|
}
|
||||||
|
}
|
11
catch/wechat/route.php
Normal file
11
catch/wechat/route.php
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* @filename route.php
|
||||||
|
* @date 2020/6/7
|
||||||
|
* @project https://github.com/yanwenwu/catch-admin
|
||||||
|
* @document http://doc.catchadmin.com
|
||||||
|
* @author JaguarJack <njphper@gmail.com>
|
||||||
|
* @copyright By CatchAdmin
|
||||||
|
* @license https://github.com/yanwenwu/catch-admin/blob/master/LICENSE.txt
|
||||||
|
*/
|
||||||
|
$router->resource('official/users', '\catchAdmin\wechat\controller\Users');
|
10
extend/catcher/library/WeChat.php
Normal file
10
extend/catcher/library/WeChat.php
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* @filename WeChat.php
|
||||||
|
* @date 2020/6/7
|
||||||
|
* @project https://github.com/yanwenwu/catch-admin
|
||||||
|
* @document http://doc.catchadmin.com
|
||||||
|
* @author JaguarJack <njphper@gmail.com>
|
||||||
|
* @copyright By CatchAdmin
|
||||||
|
* @license https://github.com/yanwenwu/catch-admin/blob/master/LICENSE.txt
|
||||||
|
*/
|
Loading…
x
Reference in New Issue
Block a user