郑晓宇 %!s(int64=6) %!d(string=hai) anos
pai
achega
19be92aebf
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/Jobs/Settlement.php

+ 1 - 1
app/Jobs/Settlement.php

@@ -133,7 +133,7 @@ class Settlement implements ShouldQueue
                 $message['winer'] = $winer;
                 $message['winer_score'] = $winer_score;
                 $message['type'] = 'game_end';
-                Gateway::sendToUid($user->user_id, $message);
+                Gateway::sendToUid($user->user_id, json_encode($message));
             }
 
         }else{