$region, 'schema' => 'http', //协议头部,默认为http 'credentials'=> array( 'secretId' => $secretId , 'secretKey' => $secretKey))); $upPic=new UpPic(); $upPic->main($cosClient);