新增微信模块

This commit is contained in:
JaguarJack 2020-06-07 14:22:41 +08:00
parent e9c8940730
commit ec5a5a8402
6 changed files with 46 additions and 3 deletions

View File

@ -1 +0,0 @@
<?php

View File

@ -1 +0,0 @@
<?php

View File

@ -1 +0,0 @@
<?php

View 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
View 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');

View 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
*/