Giter Club home page Giter Club logo

Comments (13)

sml2h3 avatar sml2h3 commented on August 28, 2024 1

果然,上传了这个就ok了

from alidayu.

sml2h3 avatar sml2h3 commented on August 28, 2024

FatalThrowableError in Controller.php line 68:
Class 'Flc\Alidayu\Client' not found
Laravel 5.4版本

from alidayu.

sml2h3 avatar sml2h3 commented on August 28, 2024

忘了说了环境,Centos 7,php7.0

from alidayu.

flc1125 avatar flc1125 commented on August 28, 2024

你是什麼方式引入的?

from alidayu.

sml2h3 avatar sml2h3 commented on August 28, 2024

直接compose,composer require flc/alidayu
然后
use Flc\Alidayu\Client;
use Flc\Alidayu\App;
use Flc\Alidayu\Requests\AlibabaAliqinFcSmsNumSend;
use Flc\Alidayu\Requests\IRequest;

from alidayu.

flc1125 avatar flc1125 commented on August 28, 2024

那我可以说不会吗?我试过很多次均正常。而且众多网友也有用过,而且不限于laravel。都没有此问题!

from alidayu.

sml2h3 avatar sml2h3 commented on August 28, 2024

我在我自己mac上也没问题,一到服务器里面就报错了。。我具体的环境PHP 7.0.7,centos 6.8,php探针http://123.57.138.167/p.php

from alidayu.

flc1125 avatar flc1125 commented on August 28, 2024

你是通过什么方式将代码传到服务器上的?是不是git?如果是,那需要考虑相关文件是不是对应传上去了。git本身忽略了一部分文件,包括根目录的vendor目录

from alidayu.

sml2h3 avatar sml2h3 commented on August 28, 2024

直接ftp的呢,我在ssh里面看了一下flc的文件夹里面东西也不缺啊

from alidayu.

flc1125 avatar flc1125 commented on August 28, 2024

建议你把整个vendor文件夹重新上传。如果你只是传了flc那个文件夹,对应的autoload的一些文件没有上传,就会出现你这个问题!

from alidayu.

sml2h3 avatar sml2h3 commented on August 28, 2024

好的,我试试看看

from alidayu.

flc1125 avatar flc1125 commented on August 28, 2024

vendor\composer主要是这个文件夹!

from alidayu.

flc1125 avatar flc1125 commented on August 28, 2024

建议去了解下composer自动载入文件的原理😄

from alidayu.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.