新增微信模块

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

@@ -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);
}
}