1.创建门面类WeixinUtilFacade.php
<?php namespace app\facade; use think\Facade; /** * */ class WeixinUtilFacade extends Facade { protected static function getFacadeClass() { //指向工具类 return \app\util\WeixinUtil::class; } }
1.创建门面类WeixinUtilFacade.php
<?php namespace app\facade; use think\Facade; /** * */ class WeixinUtilFacade extends Facade { protected static function getFacadeClass() { //指向工具类 return \app\util\WeixinUtil::class; } }