merge backend

このコミットが含まれているのは:
dragon1211 2022-02-02 13:32:54 -08:00
コミット 41bfaba31a
2個のファイルの変更3行の追加3行の削除

ファイルの表示

@ -130,7 +130,7 @@ trait AuthenticationTrait {
// セッションを想像する
$login_user_datum = $this->makeSession($this->getGuard(), $get->toArray());
return ['status_code' => 200, 'params' => ['id' => $login_user_datum['id'], 'expire' => $expire * 1000]];
return ['status_code' => 200, 'params' => ['id' => $login_user_datum['id'], 'expire' => (int)$expire * 1000]];
}
public function logout () {

ファイルの表示

@ -33,7 +33,7 @@ class FilesController extends Controller {
// 子供
if (session()->has('children')) {
// ミーティング
if (null !== ($rel = FatherRelation::where('child_id', (int)session()->get('children')['id'])->first())) {
foreach ($rel = FatherRelation::where('child_id', (int)session()->get('children')['id'])->get() as $rel) {
if (null !== (Meeting::where('father_id', $rel->father_id)->where('pdf', '/files/'.$path)->first())) {
$got = true;
}
@ -55,7 +55,7 @@ class FilesController extends Controller {
if (null !== ($meetimg = MeetingImage::where('image', '/files/'.$path)->first())) {
// 子供
if (session()->has('children')) {
if (null !== ($rel = FatherRelation::where('child_id', (int)session()->get('children')['id'])->first())) {
foreach (FatherRelation::where('child_id', (int)session()->get('children')['id'])->get() as $rel) {
if (null !== (Meeting::where('id', $meetimg->meeting_id)->where('father_id', $rel->father_id)->first())) {
$got = true;
}