Argument 1 passed to UpyunApiRest::__construct() must be an instance of UpyunConfig, instance of dataextendypy_sdksrcUpyunConfig given, called in /www/wwwroot/cswh.me/app/data/extend/ypy_sdk/src/Upyun/Uploader.php on line 36 and defined
代码如下
$serviceConfig = new ypuConfig('udh', 'jxwql', 'jafdasq');
$client = new UpYun($serviceConfig);
$res = $client->write('/app20170907/test.jpeg', $file);
var_dump($res);die;