Commit 091e0fb6 authored by zhoujun's avatar zhoujun

上传bug

parent c89723ed
......@@ -50,7 +50,7 @@ class ApkService implements IApkService
$row->name = $postData['name'];
$row->version = $postData['version'];
$row->file_url = '';
$row->local_url = env('UPLOAD_PATH').'/'.$postData['apk'];
$row->local_url = $postData['apk'];
$md5 = MD5($this->time.$row->file_url.$row->local_url.$this->time);
$row->down_url = '';
......
......@@ -81,7 +81,7 @@ class UserService implements IUserService
}
/**
* 严重用户
* 验证用户
* @return array
* @date 2020/11/26
* @author live
......
......@@ -21,7 +21,7 @@ return [
],
'apk' => [
'3001' => '请上传apk包',
'3001' => '请上传apk包',
'3002' => '上传apk失败',
],
......
......@@ -29,7 +29,7 @@ return [
|
*/
'lifetime' => env('SESSION_LIFETIME', 60),
'lifetime' => env('SESSION_LIFETIME', 10080),
'expire_on_close' => false,
......
......@@ -197,6 +197,8 @@ var AetherUpload = {
form.append("upload_ext", this.uploadExt);
form.append("file_name", this.fileName);
form.append("chunk_total", this.chunkCount);
form.append("chunk_index", this.i + 1);
......
......@@ -35,7 +35,7 @@
</div>
<div class="user-info">
<span class="user-name">用户</span>
<span class="user-profile">{{ Auth::user()->name }}</span>
<span class="user-profile">{{ Auth::user()->name ?? '' }}</span>
</div>
</div>
</div>
......
......@@ -24,7 +24,7 @@ Route::group(['prefix' => 'user','middleware' => ['login']],function() {
Route::post('/set/status','UserController@getUserSetStatus');//设置用户状态
});
Route::group(['prefix' => 'apk'],function() {
Route::group(['prefix' => 'apk','middleware' => ['login']],function() {
Route::any('/list','ApkController@getApkList');//apk包列表
Route::post('/add','ApkController@getApkAdd');//新增apk包
Route::post('/edit','ApkController@getApkEdit');//编辑apk包
......
128
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment