微信检测
This commit is contained in:
20
app/controller/Check.php
Normal file
20
app/controller/Check.php
Normal 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));
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user