seven hace 2 semanas
padre
commit
823aad2041
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      app/Services/BetService.php

+ 3 - 0
app/Services/BetService.php

@@ -519,6 +519,9 @@ class BetService extends BaseService
     public static function record($memberId, $messageId = null, $page = 1, $limit = 5)
     {
         $type = Cache::get('message_id_bet_record_' . $memberId, 0);
+        if($type == 0){
+            $type = '';
+        }
 
         $msg['chat_id'] = $memberId;
         $list = self::model()::where('member_id', $memberId)->whereIn('status', [self::model()::STATUS_STAY, self::model()::STATUS_SETTLED])->where(self::getWhere(['is_winner' => $type]))->orderBy('id', 'desc')->forPage($page, $limit)->get();