为easywechat composer 安装了,我是用tp5框架,出现Class 'EasyWeChat\Factory' not found

lockllb
<?php

namespace app\wechat\Controller;

use EasyWeChat\Factory;

class Index extends \Wkidt\think5\Controller{

    public function index(){
        $config = config("wechat");

        $app = Factory::officialAccount($config);
        $ip = $app->base->getValidIps();

        var_export($app);
    }

}

致命错误: Class 'EasyWeChat\Factory' not found namespace app\wechat\Controller;

use EasyWeChat\Factory;

class Index extends \Wkidt\think5\Controller{

public function index(){
    $config = config("wechat");

    $app = Factory::officialAccount($config);

    var_export($app);
}

}

tp5里面的index.php有没有引入autoload.php

楼主有解决吗?我也碰到这个问题

有解决不,怎么解决的?能说下不