lip 12 часов назад
Родитель
Сommit
4513f7d6ac
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      app/Models/LhcOrder.php

+ 1 - 1
app/Models/LhcOrder.php

@@ -12,7 +12,7 @@ class LhcOrder extends BaseModel
 
     public function lottery()
     {
-        return $this->hasOne(LhcLottery::class, 'issue', 'issue')->field('issue,type,open_code, open_time,is_settlement');
+        return $this->belongsTo(LhcLottery::class, 'issue', 'issue')->field('issue,type,open_code, open_time,is_settlement');
     }
  
 }