$disk = new Disk([
// 百度appId
"app_id" => '250528',
/** 登录cookies **/
"cookies" => 'BAIDUID=CF707618FE595DF2FED9489A30F529D5:FG=1; BIDUPSID=3F900108930D11475F6D15543E86BEBB; PSTM=1533867674; H_PS_PSSID=1436_21094_26920_22159; PSINO=3; BDORZ=B490B5EBF6F3CD402E515D22BCDA1598; BDUSS=XVsZU93SVMycWFGTHRxZ3NmN0NtaGV2ZGdHNUt2UVIwTTN4Z2tYMERzQ25nNVJiQUFBQUFBJCQAAAAAAAAAAAEAAADzga5SztLP69Kq0KHD1zUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAKf2bFun9mxbZ; PANWEB=1; SCRC=44f548891b8565512f34f1c41f54640b; STOKEN=d76d05c52d7485929f29102ef3ac97dce006b5b56e910db6b03c87c1cbcccaac; PANPSC=6138060809989037094%3AzKsuZfKzYZO%2BotxC47C9l%2Bn90oj%2BY%2FIsAtqdpC88XMaj7IhdbAeID0Y8fbM8BwVwXZppmOynmt0wwo4y0uRbvX9caaOGKk2RKIw1F%2F%2BNV2H%2F5yY%2B2yl0OfJmtbgKOavkK1jqgN6tzwnA7ohSXIR1cjm7g7CLsfI4RPoS1ZAzLYpJLOsdih%2BPVA%3D%3D; Hm_lvt_7a3960b6f067eb0085b7f96ff5e660b0=1533867690; Hm_lpvt_7a3960b6f067eb0085b7f96ff5e660b0=1533867690; cflag=15%3A3',
// 文件方参数
"bduss" => 'pansec_DCb740ccc5511e5e8fedcff06b081203-+RIXHjaNduLh5uFqehjW9HDTXR0huDjRW0KGvZR/pDGXD+TRZGrXIIOWl0xj1ndMwRau+g4hSP7phgFFNVODPFHT0Rp4WwT3SxRD/diRzexOynt4UJX9W7Km5LbktRfNcd/ml32VP0g3LJ75Gxp4MOWHXOVtWO7DsSFyFL56mRMc5/PAYOScfs2tj4Vl6CDmR0MZq6y94CzTVrcb/3hRZxVaCxj/so9GnrQS2eEaaNBgT+XJffjAwdLmc6Ftn6xU5KzEBXbXaXsGRWmr72A6sQ==',
]);
$result = BaiduDisk::upload($sourcePath, $toPath)->getResult();
$path = BaiduDisk::getShareUrlByResult($result);