微信检测

This commit is contained in:
2022-09-09 15:41:50 +08:00
parent 14f5e4962a
commit cd5339eca3

20
app/controller/Check.php Normal file
View File

@@ -0,0 +1,20 @@
<?php
namespace app\controller;
use EasyWeChat\Factory;
use think\facade\Config;
class Check
{
public function index()
{
$url = $GLOBALS['data']['data']['mobile'];
$app = Factory::officialAccount(Config::get('wechat'));
dump($app->url->shorten($url));
}
}