|
|
@ -60,7 +60,7 @@ function findParent($obj, $id, &$path) |
|
|
function getResourceShareInfo() |
|
|
function getResourceShareInfo() |
|
|
{ |
|
|
{ |
|
|
$code = uniqid(); |
|
|
$code = uniqid(); |
|
|
$share_link = url('share/index', ['id' => $code])->domain(true); |
|
|
|
|
|
|
|
|
$share_link = url('share/index', ['code' => $code])->domain(true); |
|
|
$password = str_pad(rand(0, 9999), 4, '0', STR_PAD_LEFT); |
|
|
$password = str_pad(rand(0, 9999), 4, '0', STR_PAD_LEFT); |
|
|
return [ |
|
|
return [ |
|
|
'code' => $code, |
|
|
'code' => $code, |
|
|
|