|
@@ -10,4 +10,14 @@ class Download extends MobileBaseController
|
|
|
{
|
|
|
return view();
|
|
|
}
|
|
|
+
|
|
|
+ public function down()
|
|
|
+ {
|
|
|
+ $file_url = input('file_url', '');
|
|
|
+ $file_path = public_path('static/mobile/download').$file_url;
|
|
|
+ if (!file_exists($file_path)) {
|
|
|
+ jump('文件不存在或已过期!');
|
|
|
+ }
|
|
|
+ return download($file_path,$file_url);
|
|
|
+ }
|
|
|
}
|