This commit is contained in:
2026-01-14 16:48:40 +08:00
parent 539494282c
commit 5a9b2be053
2 changed files with 4 additions and 3 deletions
@@ -65,6 +65,7 @@ class UploadController
} }
return $this->error('file not found'); return $this->error('file not found');
} catch (\Throwable $e) { } catch (\Throwable $e) {
Log::info('uploadFile',[$e->getMessage(),$e->getFile(),$e->getLine()]);
return $this->error($e->getMessage()); return $this->error($e->getMessage());
} }
} }
@@ -110,6 +111,7 @@ class UploadController
return $this->success($data); return $this->success($data);
}catch (\Throwable $e){ }catch (\Throwable $e){
Log::info('uploadFile',[$e->getMessage(),$e->getFile(),$e->getLine()]);
return $this->error($e->getMessage()); return $this->error($e->getMessage());
} }
} }
@@ -155,6 +157,7 @@ class UploadController
return $this->success($data); return $this->success($data);
} catch (\Throwable $e) { } catch (\Throwable $e) {
// return json(['errno' => 1, 'message' => $e->getMessage()]); // return json(['errno' => 1, 'message' => $e->getMessage()]);
Log::info('uploadFile',[$e->getMessage(),$e->getFile(),$e->getLine()]);
return $this->error($e->getMessage()); return $this->error($e->getMessage());
} }
} }
-2
View File
@@ -217,8 +217,6 @@ class AuthLogic
throw new BusinessException('授权失败,请重试'); throw new BusinessException('授权失败,请重试');
} }
Log::info('userInfo:' ,[$userInfo]);
User::firstOrCreate(['union_id'=>$userInfo['data']['union_id']],[ User::firstOrCreate(['union_id'=>$userInfo['data']['union_id']],[
'union_id'=>$userInfo['data']['union_id'], 'union_id'=>$userInfo['data']['union_id'],
'name'=>$userInfo['data']['name'], 'name'=>$userInfo['data']['name'],